survey_marker= ndb.GeoPt("35.1, 40.0")
d = search.Document(fields=survey_marker)
search.Index(name="locate_this").put(d)
query_obj= "distance(survey_marker , geopoint(35.2, 40.5)) < 10000"
results = search.Index(name=locate_this).search(query=query_obj)
print results
for doc in results:
print doc
I wasnt indexing earlier. but as i have indexed now(hopefully it is right )
it returns TypeError: 'GeoPt' object is not iterable. btw I m doing this on
interactive console
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/5f4b91b4-7fa7-4320-a89c-545106a45563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.