I did the following test:
 
$url = "
http://maps.googleapis.com/maps/api/geocode/xml?address=".urlencode($adress)."&sensor=false";
 

$geo = new SimpleXMLElement(file_get_contents($url));
if ($geo->status == "OK") {
 $vanpllat = $geo->result->geometry->location->lat;
echo $vanpllat;  //result = 52.1333333
$aa = $vanpllat * 1;
echo $aa; //result = 52
$aa = floatval($vanpllat);
echo $aa; //result = 52.1333333
so the conclusion is that you have to floatval the geo result before you can 
use it in a calculation. Thank you for your cooporation.

-- 
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/-/uKBxd6p_yv0J.
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.

Reply via email to