numero = 104453
interpreted = N
texte = --0015174c0eaabc338d047d0e7e42Content-Type: text/plain; charset=UTF-8Terry / Jym,Ok here's the code I use, you'll obviously have to amend it for your needs. I have to send it in three parts as the list software rejected my firstemail as being too big. Watch out for wrapped lines etc. Sorry I haven'thad time to package it better. Come back to me if you have questions orproblems.- Tom1. Code for admin pageThe following snippet will geocode (i.e. get the lat and lng) for anaddress. The receiving db needs to have fields named 'sLAT' 'sLNG, and'sZOOM'. This map is centred on Dublin - so you'll obviously need tochange that. Be sure to call in the Google Maps javascript with your API keyin the header of this page. --0015174c0eaabc338d047d0e7e42Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableTerry / Jym,
Ok here's the code I use, you'll obviously have to amend it for y=our needs. =C2=A0I have to send it in three parts as the list software reje=cted my first email as being too big. Watch out for wrapped lines etc. =C2==A0 Sorry I haven't had time to package it better. =C2=A0Come back to m=e if you have questions or problems.
- Tom
1. Code for admin page
The following snippet will geocode (i.e. get the= lat and lng) for an address. =C2=A0The receiving db needs to have fields n=amed 'sLAT' 'sLNG, and 'sZOOM'. =C2=A0 This map is cent=red on Dublin - so you'll obviously need to change that. Be sure to cal=l in the Google Maps javascript with your API key in the header of this pag=e.
<script>JavaScript must =be enabled in order for you to use Google Maps.</script>=C2=A0
However, it seems JavaScript is either disabled =or not supported by your browser. To view Google Maps, enable JavaScript by= changing your browser options, and then try again.
=span>// =3D=3D=3D=3D=3D=3D Create a Client Geocoder =3D=3D=3D=3D=3D=3D
var =geo =3D new GClientGeocoder(new GGeocodeCache());=C2=A0
// =3D=3D=3D=3D=3D=3D Array for decoding th=e failure codes =3D=3D=3D=3D=3D=3D
var reasons=3D[];
reaso=ns[G_GEO_SUCCESS]=3D "Succ=ess";
reasons[G_GEO_MISSING_ADDRESS] =C2=A0 =C2=A0=3D "Missing Ad=dress: The address was either missing or had no value.";
reaso=ns[G_GEO_UNKNOWN_ADDRESS] =C2=A0 =C2=A0=3D "Unknown Address: =C2=A0No =corresponding geographic location could be found for the specified address.=";
reasons[G_GEO_UNAVAILABLE_ADDRES=S]=3D "Unavailable Address: =C2=A0The geocode for the given address ca=nnot be returned due to legal or contractual reasons.";
reasons[G_GEO_BAD_KEY]=3D "Bad Key: The API key is either =invalid or does not match the domain for which it was given";
reasons[G_GEO_TOO_MANY_QUERIES] ==C2=A0 =3D "Too Many Queries: The daily geocoding quota for this site =has been exceeded.";
reasons[G_GEO_SERVER_ERROR]=C2=A0=3D "Server error: The geocoding request co=uld not be successfully processed.";
--0015174c0eaabc338d047d0e7e42Content-Type: text/plain; charset=UTF-8Terry / Jym,Ok here's the code I use, you'll obviously have to amend it for your needs. I have to send it in three parts as the list software rejected my firstemail as being too big. Watch out for wrapped lines etc. Sorry I haven'thad time to package it better. Come back to me if you have questions orproblems.- Tom1. Code for admin pageThe following snippet will geocode (i.e. get the lat and lng) for anaddress. The receiving db needs to have fields named 'sLAT' 'sLNG, and'sZOOM'. This map is centred on Dublin - so you'll obviously need tochange that. Be sure to call in the Google Maps javascript with your API keyin the header of this page. --0015174c0eaabc338d047d0e7e42Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableTerry / Jym,
Ok here's the code I use, you'll obviously have to amend it for y=our needs. =C2=A0I have to send it in three parts as the list software reje=cted my first email as being too big. Watch out for wrapped lines etc. =C2==A0 Sorry I haven't had time to package it better. =C2=A0Come back to m=e if you have questions or problems.
- Tom
1. Code for admin page
The following snippet will geocode (i.e. get the= lat and lng) for an address. =C2=A0The receiving db needs to have fields n=amed 'sLAT' 'sLNG, and 'sZOOM'. =C2=A0 This map is cent=red on Dublin - so you'll obviously need to change that. Be sure to cal=l in the Google Maps javascript with your API key in the header of this pag=e.
<script>JavaScript must =be enabled in order for you to use Google Maps.</script>=C2=A0
However, it seems JavaScript is either disabled =or not supported by your browser. To view Google Maps, enable JavaScript by= changing your browser options, and then try again.
=span>// =3D=3D=3D=3D=3D=3D Create a Client Geocoder =3D=3D=3D=3D=3D=3D
var =geo =3D new GClientGeocoder(new GGeocodeCache());=C2=A0
// =3D=3D=3D=3D=3D=3D Array for decoding th=e failure codes =3D=3D=3D=3D=3D=3D
var reasons=3D[];
reaso=ns[G_GEO_SUCCESS]=3D "Succ=ess";
reasons[G_GEO_MISSING_ADDRESS] =C2=A0 =C2=A0=3D "Missing Ad=dress: The address was either missing or had no value.";
reaso=ns[G_GEO_UNKNOWN_ADDRESS] =C2=A0 =C2=A0=3D "Unknown Address: =C2=A0No =corresponding geographic location could be found for the specified address.=";
reasons[G_GEO_UNAVAILABLE_ADDRES=S]=3D "Unavailable Address: =C2=A0The geocode for the given address ca=nnot be returned due to legal or contractual reasons.";
reasons[G_GEO_BAD_KEY]=3D "Bad Key: The API key is either =invalid or does not match the domain for which it was given";
reasons[G_GEO_TOO_MANY_QUERIES] ==C2=A0 =3D "Too Many Queries: The daily geocoding quota for this site =has been exceeded.";
reasons[G_GEO_SERVER_ERROR]=C2=A0=3D "Server error: The geocoding request co=uld not be successfully processed.";
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...