On 12 July 2011 18:07, Nico Oudshoorn <[email protected]> wrote:
>
> This is from another page where the lat and lng are generated on the server
> side:
> $url =
> "http://maps.googleapis.com/maps/api/geocode/xml?address=".urlencode($zoekpos2)."&sensor=false";
What is the address you are using? What is the XML you are getting?
> $geo = new SimpleXMLElement(file_get_contents($url));
> usleep(1750000);
> if ($geo->status == "OK") {
> $naarposlat = $geo->result->geometry->location->lat; // = 51.4945758 in the
> calculation this is handled as 51 ???
So the only difference is how $naarposlat is derived. One is set via a
$_GET parameter? And the other is derived from the XML.
I think I concur with Rossko: either something is broken or there are
issues with commas and points and internationalisation. $naarposlat
would be handled as an integer if the decimal character is not what is
expected.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.