Results 1 to 5 of 5
hi!
I trying to extract via command line the latitude and longitude with this command
Code:
curl -s 'http://maps.google.com/maps?q=Madrid, Spain'
Can anybody help me to use any more command to ...
- 08-10-2010 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 48
Extract latitude and longitude from maps.google
hi!
I trying to extract via command line the latitude and longitude with this command
Can anybody help me to use any more command to parse this result?Code:curl -s 'http://maps.google.com/maps?q=Madrid, Spain'
very thanks
- 08-10-2010 #2
There is a public API to the google maps service. One should not parse the website content, also because it is really slow and bandwidth consuming. The service provides you data that will be easy to parse.
- 08-11-2010 #3Just Joined!
- Join Date
- Oct 2008
- Posts
- 48
but i don't have any web page to obtain a public KEY for an API.
How can I resolve this?
In my case I have a MySQL with all postal codes, cities and countries.
My idea is to start a script to collect all information and insert all longitudes and latitudes.
- 08-11-2010 #4Just Joined!
- Join Date
- Aug 2010
- Posts
- 89
You can find this easily with google search !!. Here is it : Sign Up for the Google Maps API - Google Maps API Family - Google Code
It's a huge job to scan all cities in the world !! And probably lot of them will never be used. Try to query the API when you need one instead of storing lot of stuff !
- 08-12-2010 #5Just Joined!
- Join Date
- Oct 2008
- Posts
- 48
ok thanks.


Reply With Quote