The address is collected from a database, the spaces replaced with plus signs and given the variable name $map. All well and good and the map display:
<img src="http://maps.googleapis.com/maps/api/staticmap?center=' . $map . '&zoom=13&size=300x300&markers=color:blue&maptype=roadmap&sensor=false">
To display the marker I need to convert the address into lat/long and despite much reading of the google API I still can't work out how to use the Geocoding json.
I'm assuming I need to send the $map variable to Google and json will return the lat/long which I can then add to the map parameters.
But how?

New Topic/Question
Reply



MultiQuote





|