jquery - Google maps API using UK town or post code -
i'm working on system @ moment work similar yell.com, can enter location (either town or post code) , return other towns in 10 mile radius.
i've found plenty of code allow me enter post code, , i'm sure it's easy convert allow town, maybe have 2 text boxes easy enough, or 1 text box checks you've entered , can work out if it's town or postcode, wouldn't hard either, wondering if knows way of doing straight through api chuck whatever have , works out...
if not no worries thought :)
cheers
daz
yep can ..sorry guys i've answered own question here :)
var address = 'doncaster'; //var address = 'ls2'; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.geocoderstatus.ok) { alert(results[0].formatted_address); } })
Comments
Post a Comment