Open GoogleCodeExporter opened 8 years ago
Hi MMackK3540, did you solve that problem? I have the same one, nothing is
returned from the query!
Original comment by ptut...@gmail.com
on 21 Jul 2010 at 7:12
Yes. My main problem was that I didn't understand the appengine database
geocoding requirements. For each address in my geomodel, I had to geocode the
entities according to the instructions here:
http://pypi.python.org/pypi/geomodel
If you've already loaded your data with addresses into the appengine datastore,
you will need to run each address through a geocoder to get the proper lng, lat
coordinates. For example, check out geopy here:
http://code.google.com/p/geopy/wiki/GettingStarted
You'll need to write a script to run each address through the geocoder, then
some_entity.update_location() and some_entity.put() the resulting coordinates
into your geomodel, where some_entity is the instance of your geomodel. The
above instructions describe how to do this fairly well.
There may have been some other minor issues, and since I use the django-nonrel
web framework, I had to convert some of the example code to properly render
the html templates, but if you use the appengine webapp framework those issues
should not affect you.
Good luck!
Original comment by MMacK3...@gmail.com
on 21 Jul 2010 at 10:06
It works here with app engine ie for India
http://www.koolbusiness.com/li?lat=21.1894428&lon=77.3783789&cc=IN exampled
Original comment by teknik...@gmail.com
on 25 Jul 2010 at 12:05
Original issue reported on code.google.com by
MMacK3...@gmail.com
on 23 Jun 2010 at 10:52