title: How to geocode addresses on the server
body: <p>I am writing an app with Google App Engine using python and I am turning a large wikipedia list into a spreadsheet and then inputting the list rows into Locations.  For example this: <a href="http://en.wikipedia.org/wiki/List_of_North_Carolina_state_parks" rel="nofollow">http://en.wikipedia.org/wiki/List_of_North_Carolina_state_parks</a> and I need to turn the name of each park into an address, I would imagine they won't be exact but as long as they are almost correct it is alright with me.</p>
  
  <p>Is there any way I can do this using python on the server side?  I know about Google's Geocoding service but it is all done with javascript and it is rate limited.</p>
  
  <p>Is there any service that can do this?</p>
  
  <p>UPDATE:
  geopy is just what I was looking for.  I am wondering what the best way to deal with multiple results is.  Here is my attempt:</p>
  
  <pre><code>        try:
               place, (lat, lng) = g.geocode(title+", North Carolina")
          except ValueError:
               geocodespot = g.geocode(title+", North Carolina", exactly_one=False)
               place, (lat, lng) = geocodespot[0]
  </code></pre>
  
  <p>It works just fine but I am wondering if there are any better ideas.</p>