Hi,

I have a local Nominatim instance with a US/Pennsylvania extract loaded. When a make reverse geocode requests, I never get a state back unless the coordinates are close to the centroid of the state.

I am aware that the openstreetmap version of Nominatim always returns valid results for my test coordinates, so what am I doing wrong?

for example... http://myserver/nominatim/reverse.php?format=xml&lat=40.658773&lon=-75.295520

returns

<reversegeocodetimestamp="Fri, 09 Jan 15 11:40:46 -0500"attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright"querystring="format=xml&lat=40.658773&lon=-75.295520";> <resultplace_id="637091"osm_type="way"osm_id="19996066"ref="Baglyos Circle"lat="40.6608768"lon="-75.2980609">
Baglyos Circle, Farmersville, Northampton, 18020, United States of America
</result>
<addressparts>
<road>Baglyos Circle</road>
<hamlet>Farmersville</hamlet>
<county>Northampton</county>
<postcode>18020</postcode>
<country>United States of America</country>
<country_code>us</country_code>
</addressparts>
</reversegeocode>

while

http://myserver/nominatim/reverse.php?format=xml&lat=40.736505&lon=-77.884580

returns

<reversegeocodetimestamp="Fri, 09 Jan 15 11:45:27 -0500"attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright"querystring="format=xml&lat=40.736505&lon=-77.884580";> <resultplace_id="320232"osm_type="way"osm_id="11842937"ref="Ward Alley"lat="40.735668"lon="-77.8842848"> Ward Alley, Pine Grove Mills, Centre, Pennsylvania, 16801, United States of America
</result>
<addressparts>
<road>Ward Alley</road>
<hamlet>Pine Grove Mills</hamlet>
<county>Centre</county>
<state>Pennsylvania</state>
<postcode>16801</postcode>
<country>United States of America</country>
<country_code>us</country_code>
</addressparts>
</reversegeocode>

Thanks,
John
_______________________________________________
Geocoding mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/geocoding

Reply via email to