kercos / geomodel

Automatically exported from code.google.com/p/geomodel
0 stars 0 forks source link

No results are returned from my search #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.copied source code and added test data to appengine PublicSchool model.
2.run app and search for results in database
3.

What is the expected output? What do you see instead?
I get a success, line 444 in front.js, but no results are returned from my 
sample data.

What version of the product are you using? On what operating system?
Windows XP, geomodel svn trunk

Please provide any additional information below.

Original issue reported on code.google.com by MMacK3...@gmail.com on 23 Jun 2010 at 10:52

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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