Welcome Guest, Not a member yet? Register   Sign In
BIOSTALL googlempas API
#4

[eluser]skunkbad[/eluser]
Can't you just use the geocoder API to get the GPS coordinates?

Code:
$url = 'http://maps.googleapis.com/maps/api/geocode/json?address='
                    . $address
                    . '&sensor=false';

if( $response = @file_get_contents( $url ) )
{
        $arr = json_decode($response);

        $lat = $arr->results[0]->geometry->location->lat;

        $lng = $arr->results[0]->geometry->location->lng;
}


Messages In This Thread
BIOSTALL googlempas API - by El Forum - 03-21-2011, 06:11 PM
BIOSTALL googlempas API - by El Forum - 03-22-2011, 05:48 AM
BIOSTALL googlempas API - by El Forum - 06-04-2011, 12:39 PM
BIOSTALL googlempas API - by El Forum - 06-04-2011, 05:05 PM
BIOSTALL googlempas API - by El Forum - 06-04-2011, 05:27 PM
BIOSTALL googlempas API - by El Forum - 06-04-2011, 09:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB