Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a long list of cities in the United States, and would like to get the coordinates for each city without looking up each one individually. Is there a way to do this?

share|improve this question
1  
    
+1 stackoverflow.com/questions/7155918/… –  Sunil Mar 14 '13 at 4:44
add comment

2 Answers

Have a look at Geonames and its free web services. The service you will most likely want to use is its full text search service.

Have a look at the documentation and examples and see how far you can get.

If you don't know how to use a web API, or know how to populate a spreadsheet, you might ask (or search first) at StackOverflow. See also other questions on this site tagged .

share|improve this answer
    
Thanks! What a great resource. –  user16140 Mar 14 '13 at 19:01
add comment

GPS Visualizer's Easy Batch Geocoder can do this.

Geocode multiple addresses

If you have a large batch of addresses for which you need coordinates, GPS Visualizer's Multiple Address Locator is the solution. This form allows you to geocode an large number of addresses using Yahoo or Google's Geocoding API service. Your data can be in either a raw, jumbled, unformatted list, or in a structured table with a header row; output is plain text but can be plotted on a map or written to a GPX file.

How is works Google and Yahoo each provide a geocoding "API" -- a way for other programs to quickly and easily access their services. But they only allow a certain number of queries per day, based on your IP address. This form uses JavaScript-On-Demand (JSON) code that causes your Web browser to be the one making the request (rather than gpsvisualizer.com), which means your queries don't count against my server's limit. (And thanks are due to the developers of the batch geocoder at BatchGeocode.com for the Yahoo JSON info.) Verifying strange results Sometimes the geocoder returns coordinates that don't seem right. Unfortunately, there's no way to get Yahoo's precision information using this form -- but you can see Yahoo's precision estimate for individual addresses

http://www.gpsvisualizer.com/geocoder/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.