Thanks for comments & suggestions.
I've now got a 'python' routine picking up data from the Mapquest site in json format.

I'm using the 'display_name' data which generally fits the bill.

However for Staffordshire locations the county name has '(ceremonial)' added (presumably to cope with Stoke, Wolverhampton etc). It's rather messy but I'm reluctant to edit the 'County' definition without consultation.

details below.

Any thoughts ?,


Iain


example : (52.7817,-2.2624) "Newport Road, Gnosall, Staffordshire (ceremonial), West Midlands, England, United Kingdom"


Nominatim format :
<reversegeocode timestamp="Tue, 26 Oct 10 14:29:39 -0400" attribution="Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0." querystring="format=xml&lat=52.7817&lon=-2.2624&zoom=18&addressdetails=1">
−
<result place_id="115728783" osm_type="way" osm_id="82464418" ref="A518">
Newport Road, Gnosall, Staffordshire (ceremonial), West Midlands, England, United Kingdom
</result>
−
<addressparts>
<road>Newport Road</road>
<village>Gnosall</village>
<county>Staffordshire (ceremonial)</county>
<state_district>West Midlands</state_district>
<state>England</state>
<country>United Kingdom</country>
<country_code>gb</country_code>
</addressparts>
</reversegeocode>

_______________________________________________
newbies mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/newbies

Reply via email to