php - Google Maps API: return results for postcode -


a client has requested page text input takes postcode , returns array of local shops in area.

how achieve google maps api or similar, first time have come across such demand , push in right direction helpful.

thanks, dan

i'm not entirely how in google maps completely, can details of place (including important longitude , latitude) through geocoding api.

for example: http://maps.googleapis.com/maps/api/geocode/json?address=wc1&sensor=false

although able put addresses, rather postcodes in there. use information own database of places. example, can download geonames database , use this answer find closest places in database.

alternatively, can use foursquare api list of places in area. use service pull features tips or around. when looking geocode api, stumbled upon google places api. haven't used , it's in developer preview @ moment, documentation looks interesting @ least.

you might want check tos on whatever service use. remember @ 1 stage couldn't use map api if you're not displaying map on page, etc.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -