I have a PHP script at the moment which allows users to enter a UK postcode.
I was wondering if there was a way I could get their geolocation from the postcode they enter. (Through Google's API or something?)
I have tried http://code.google.com/apis/maps/documentation/geocoding/index.html but it requires a full address, whereas I only have a postcode.
Help would be appreciated, thanks :) Peter
You could check out the Yahoo PlaceFinder API
Heres an example URL http://where.yahooapis.com/geocode?q=BL12DD&appid=[yourappidhere]
I have used this in the past and found it to be somewhat accurate.
Docs: http://developer.yahoo.com/geo/placefinder/
Heres come code