Jump to content

Google Map


Lee-Bartlett

Recommended Posts

I got the map but it doesnt give you a text box for example, which allows you to put a longitude and latitude, if i does i must missed it but i searched google for a while to try find it. There map they give you, you have to zoom in drag it to country to country etc...

Link to comment
https://forums.phpfreaks.com/topic/128598-google-map/#findComment-666940
Share on other sites

HI if u know the address u can  specify like this..

$key=google apikey.

 

$apiURL = "http://maps.google.com/maps/geo?q=$zipcode,$country&key=$key&output=xml";

      $addressData = file_get_contents($apiURL);

    $coordinates = split('[,]',between("<coordinates>", "</coordinates>", $addressData));

        $lat = $coordinates[1];

        $lon = $coordinates[0];

Link to comment
https://forums.phpfreaks.com/topic/128598-google-map/#findComment-666977
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.