How to do customer Lat-Long place search in radius using google map api?

1 view
Skip to first unread message

Pavan Jay via StackOverflow

unread,
Aug 14, 2014, 4:35:47 AM8/14/14
to google-appengin...@googlegroups.com

I have set of previously obtained latitude & longitude using GIS application for various places. What i have to do is... I want to show these obtained lat-long on map as marker from my current location to certain radius.

Say if my current location is -33.8665433, 151.1956316 and radius 1000 then I want to show all obtained lat-long as marker falling in this range.

This : https://google-developers.appspot.com/maps/documentation/javascript/examples/place-search helps for specific defined place type. I don't have predefined type.

How to solve this?

Thanks in Advance.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/25303582/how-to-do-customer-lat-long-place-search-in-radius-using-google-map-api

Peter Knego via StackOverflow

unread,
Aug 14, 2014, 6:05:55 AM8/14/14
to google-appengin...@googlegroups.com

The problem with geo-queries on AppEngine is that datastore limits inequality queries to at most one property. I.e. you can not perform an inequality query on both lat and lon , which basically limits the geo-proximity queries.

The solution is to geo-hash your data: break the map into discrete grid and give each quadrant an ID. Then also mark all places with the appropriate quadrant ID.

An example of geo-hash on AppEngine. There is also a java library that performs geo-hashing on AppEngine: https://code.google.com/p/javageomodel/



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/25303582/how-to-do-customer-lat-long-place-search-in-radius-using-google-map-api/25305325#25305325
Reply all
Reply to author
Forward
0 new messages