<div dir="ltr">Thanks. I'll give that a try</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 13, 2013 at 10:34 PM, Sarah Hoffmann <span dir="ltr"><<a href="mailto:lonvia@denofr.de" target="_blank">lonvia@denofr.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<div class="im"><br>
On Thu, Jun 13, 2013 at 03:15:48PM -0700, David Chiles wrote:<br>
> I was using the reverse geocoding api to lookup city and streets. It seems<br>
> no matter where in Alameda County I query it returns Alameda as both the<br>
> county and city.<br>
><br>
> For example in Downtown Berkeley:<br>
> <a href="http://nominatim.openstreetmap.org/reverse?format=json&lat=37.87173&lon=-122.26842&zoom=18&addressdetails=1" target="_blank">http://nominatim.openstreetmap.org/reverse?format=json&lat=37.87173&lon=-122.26842&zoom=18&addressdetails=1</a><br>
><br>
> In Downtwon Oakland:<br>
> <a href="http://nominatim.openstreetmap.org/reverse?format=json&lat=37.80408&lon=-122.27028&zoom=18&addressdetails=1" target="_blank">http://nominatim.openstreetmap.org/reverse?format=json&lat=37.80408&lon=-122.27028&zoom=18&addressdetails=1</a><br>
><br>
> And it seems to work fine in a county and town just to the east:<br>
> <a href="http://nominatim.openstreetmap.org/reverse?format=json&lat=37.87674&lon=-122.17861&zoom=18&addressdetails=1" target="_blank">http://nominatim.openstreetmap.org/reverse?format=json&lat=37.87674&lon=-122.17861&zoom=18&addressdetails=1</a><br>
><br>
> I don't know where the problem lies. I couldn't find a problem with the OSM<br>
> relations<br>
<br>
</div>Nominatim gets confused by the tiger:county tag on the streets in the area.<br>
It ends up prefering anything called Alameda in the address. Ultimately<br>
that is a fault with Nominatim but not one that can be easily fixed.<br>
<br>
You can work around this bug by changing the city boundaries of Alameda<br>
from a way to a boundary relation and adding the Alameda place node as<br>
a label member to that relation. Then it will be automatically taken<br>
out of the addresses.<br>
<br>
Boundary-Way: <a href="http://www.openstreetmap.org/browse/way/33083805" target="_blank">http://www.openstreetmap.org/browse/way/33083805</a><br>
Place-Node: <a href="http://www.openstreetmap.org/browse/node/150942648" target="_blank">http://www.openstreetmap.org/browse/node/150942648</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Sarah<br>
</font></span></blockquote></div><br></div>