<div dir="ltr">I don't know how long it takes changes to get to <span style="font-family:arial,sans-serif;font-size:13px">Nominatim but I made the changes to move Alameda (city) to a relation and the problem persists. I made the change at </span><font face="arial, sans-serif">Fri, 14 Jun 2013 17:40:00 GMT</font><div>

<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">I've done some more poking around to try to figure out what is exactly going on and found some strange things.</span></div>

<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">These two locations get the wrong address information:</span></div>

<div style><font face="arial, sans-serif"><a href="http://nominatim.openstreetmap.org/details.php?place_id=5983600865">http://nominatim.openstreetmap.org/details.php?place_id=5983600865</a></font><br></div><div style><font face="arial, sans-serif"><a href="http://nominatim.openstreetmap.org/details.php?place_id=17444405">http://nominatim.openstreetmap.org/details.php?place_id=17444405</a><br>

</font></div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><font face="arial, sans-serif">But the Downtown Berkeley BART Station has the correct address:</font></div><div style>

<font face="arial, sans-serif"><a href="http://nominatim.openstreetmap.org/details.php?place_id=5988439343">http://nominatim.openstreetmap.org/details.php?place_id=5988439343</a><br></font></div><div style><font face="arial, sans-serif"><br>

</font></div><div style><font face="arial, sans-serif">The places with the wrong city seem to get attached to the Alameda (city) node <a href="http://www.openstreetmap.org/browse/node/150942648">http://www.openstreetmap.org/browse/node/150942648</a></font></div>

<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">Also some other weirdness in the place page for Berkeley, CA: </font><span style="font-family:arial,sans-serif"><a href="http://nominatim.openstreetmap.org/details.php?place_id=5984546934">http://nominatim.openstreetmap.org/details.php?place_id=5984546934</a></span></div>

<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">seems to combine Oakland and Berkeley in the map view</font></div><div style><font face="arial, sans-serif"><br></font></div>

<div style><font face="arial, sans-serif">Any ideas what else to try?</font></div><div style><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 10:23 AM, David Chiles <span dir="ltr"><<a href="mailto:dwalterc@gmail.com" target="_blank">dwalterc@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks. I'll give that a try</div><div class="HOEnZb"><div class="h5"><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><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><font color="#888888"><br>
<br>
Sarah<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>