views:

2153

answers:

2

How can I find the nearest hospital/fire department or anything like that around a specific city/area?

If you go to maps.google.com, then you type "San Francisco", then type "hospital", you will see all the hospitals around San Francisco.

Can the same thing be applied using geocoder?

Thanks a bunch!

Additional Note: I'm trying to use the geocoder manually, instead of using the search bar. That way I can control the outcome of the search-results.

+2  A: 

Yes, it can.

It is explained here: http://code.google.com/apis/maps/documentation/services.html#LocalSearch

See an example here: http://code.google.com/apis/maps/documentation/examples/control-googlebar.html

Kevin Crowell
Thanks. But the problem with the search-bar, is that I can't control the results. I would expect to use something similar to GClientDecoder so that I can manipulate the result before being shown to the map.
KOkon
+3  A: 

Use HTTP Geocoder with Viewport Biasing (see: ReverseGeocoding and Viewport Biasing) and filter the JSON result.

muratgu