Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Using Google Maps API can I do proximity analysis, for example:

  • In a state, let's say Virginia, display all the points that are 500 ft/m from a POI such as McDonalds or Bob's Diner, 1,000 ft/m from a National Park and within 5 minutes driving from an interstate highway (Example I-95)
share|improve this question
    
I know that google earth pro allows this type of analysis; but I don't know if it uses gmaps api. –  relima Feb 16 '11 at 11:46
    
@relima - so my best bet is to create a POSTGIS db with all my POI and do the analysis on the postgis level but display the results on google maps –  dassouki Feb 16 '11 at 11:50
1  
@dassauki that is exactly what I would do. You can use google's api to query distances to fill your db with more precise information or just go with pythagoras. –  relima Feb 16 '11 at 12:08
    
@relima - the issue with that is that i'll need to build a full blown postgis data, some form of tiling / wms server and my data sources won't be free and not as accurate as google's –  dassouki Feb 16 '11 at 12:39
    
I don't know the size of the db that you are dealing with; but in a small scale, I have used google docs spreadsheet application with a distances gadget or some sort of ditances function to create a table of distances that suits your needs; It won't help you at all if your db is anything but very small; but I am really out of other ideas. –  relima Feb 16 '11 at 13:06
show 1 more comment

1 Answer

up vote 6 down vote accepted

You can use the Local Search within the Google Maps API (V3).

http://gmaps-samples-v3.googlecode.com/svn/trunk/localsearch/places.html

sandbox:

http://code.google.com/apis/ajax/playground/?exp=localsearch#markers_v3

You can even find POI's along a route if you wanted too:

http://gis5.com/pois_along_route/gm_pois_along_route.php

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.