On 08/04/2010 22:48, Matthew Somerville wrote:
Matthew Somerville wrote:
Sure, it's almost certainly good enough (it's how WriteToThem works,
after all), but it just wasn't what was asked for, is all :-)
Sorry, I should clarify that. Postcode areas and admin boundaries aren't
really linked at all, so if you take a particular lat/lon, it's quite
possible the closest postal centroid could be in a different
ward/council, and so for an accurate point lookup you need to do
point-in-polygon test. That's how FixMyStreet functions.
Is the data that FixMyStreet uses easily accessible anywhere?
It's possible a
postcode area straddles a ward boundary, but in the main, for addresses,
a postcode lookup will be enough. So it really depends what you're
doing, as with anything.
What I'm actually doing is trying to determine which local authority is
responsible for planning permission for any particular listed building,
the location of which is officially defined by OS grid reference rather
than an address (and a significant number of which don't have postal
addresses anyway, as they're not residential or commercial premises and
hence don't receive post - there's no postcode for a maypole or a tithe
barn!).
Mark
_______________________________________________
Mailing list [email protected]
Archive, settings, or unsubscribe:
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public