Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google reverse geocoding - how to snap to nearest full postcode

I am using Google's reverse geocoding functionality with the maps api v3 to retrieve postal addresses for latitude longitude (when dragging a marker around a map).

This is a UK application only, and part of the system requires a full, or near full, postcode to process correctly. However the reverse geocoder regularly returns just the part of the postcode - for example "GU3", even when the actual address returned appears to be complete - for example including street and house number.

Is there anyway, preferably google but otherwise if not, of 'snapping' the address to the nearest full postcode?

I'm aware similar functionality exists for snapping to the nearest panorama view, but there appears to be no equivalent for postcode.

like image 829
Cruachan Avatar asked Mar 13 '12 18:03

Cruachan


People also ask

How do I get my full address on Google Maps?

What's the address? is a simple tool that can help you find the approximate address of any point on Google Maps. All you have to do is drag the red marker pin to another location and the approximate snail address of that place should pop-up in a marker window.

How do I get a postcode from Google Maps?

Open a contact or an organization with a postal address. Beside the postal address, click on the map icon. The postal address will automatically open on Google Maps.

Is Google Maps reverse geocoding free?

It's free as long as you credit them and you need fewer than 15000 lookups per day. You can pay if you need more.

What is the difference between geocoding and reverse geocoding?

Reverse-Geocoding is a process used to convert coordinates (latitude and longitude) to human-readable addresses. This is not exactly the opposite of Geocoding. In Geocoding, the Place is associated with a name and fixed coordinates.


1 Answers

The UK post code database is available for download from the Ordnance Survey open data www.ordnancesurvey.co.uk/opendata

Alternatively you can use a service like uk-postcode.com to return the closest post codes to a location

like image 187
MymsMan Avatar answered Sep 20 '22 07:09

MymsMan