I have country and address. How can I retrieve
longitude from Google Maps V3?
I will use this to load the map.
This is my actual code, but seems that Google API return this error :
SOLUTION remove center: location,
You can retreive this with Geocoding Requests.
You can see my last project that I used this here. See function
gmaps3.js for a working real world example. Basically I fetch addresses from database (using AJAX) and then convert them to lat/lon to make markers on the map.
You can use their ReST-API.
The documentation is in The Google Geocoding API. You will have to do a http request e.g.
You need to access geocoding.