Harrison, Stuart wrote:
http://www.uk-postcodes.com/latlng/{lat},{lng}
Should do what you want it to do :)
Isn't that actually the council for the closest postcode to that lat/lon
though, which isn't precisely what's asked for.
Nice. On a slightly related note, is there any published database or API
that allows me to get from either a latitude/longitude or OS grid
reference to local authority names, without needing to know the postcode
first?
I wrote some simple Django example code at the weekend to import
Boundary-Line into a database:
http://github.com/dracos/opendata-boundaryline
It's then as trivial as:
point = Point(400000, 300000)
Council.objects.filter(shape__contains=point)
I'd certainly recommend getting shapefiles into some sort of spatial
database nowadays, it makes things very easy.
ATB,
Matthew
_______________________________________________
Mailing list [email protected]
Archive, settings, or unsubscribe:
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public