Forum Moderators: coopster
From a development perspective, which API is the most straightforward and fastest to implement? My need is simply to click a link and display a map that provides the location with zoom....don't really care how many pizzarias are within a 5 mile radius. I saw a Yahoo solution by Rasmus but it required PHP5.
Yahoo will let you unserialize the data returned from their API and then it's in the form of an array:
$phpobj = unserialize($response);
$lat = $phpobj['ResultSet']['Result']['Latitude'];
$lon = $phpobj['ResultSet']['Result']['Longitude'];
Just put a link in your bubble with "Get directions to here" and you can take the user to a google maps page, centered on the same location, with the destination address filled out and the cursor in the 'Start address' field.