This is from a site of mine. In an example that I tested, the outcome of 
$vanposlat was 52.133333. $zoekafstand = 15. The result of  $zoekafstand / 
(69 * 1.61) = 0,1350256. And surprise surprse $maxlat = 52.1350256???? So we 
lost the 0.133333???? However when I echo $vanposlat it = 52.133333, but if 
I do whatever calculation with it, you calculate only with 52??????
 
Any suggestions?
 
$url = "
http://maps.googleapis.com/maps/api/geocode/xml?address=".urlencode($zoekpos)."&sensor=false";
 

   $geo = new SimpleXMLElement(file_get_contents($url));
   if ($geo->status == "OK") {  
    $vanposlat = $geo->result->geometry->location->lat; 
    $vanposlng = $geo->result->geometry->location->lng;
    $maxlat = $vanposlat + ( $zoekafstand / (69 * 1.61)); // 69 miles per 
degree of latitude 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Dj0-KAZoy4cJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to