<div dir="ltr">Hi Brian,<br><br>Thanks for the feedback.<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 3:13 AM, Brian Egge <span dir="ltr">&lt;<a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote">&lt;snip&gt;<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>The NYC addresses are working well. I have a minor correction as follows:</div><div><br></div><div><div>Index: resources/styles/default/inc/address</div><div>===================================================================</div><div>--- resources/styles/default/inc/address<span style="white-space:pre-wrap">        </span>(revision 3342)</div><div>+++ resources/styles/default/inc/address<span style="white-space:pre-wrap">        </span>(working copy)</div><div>@@ -66,8 +66,11 @@</div><div> # New York City has different admin levels than the rest of the US.</div><div> # <a href="https://wiki.openstreetmap.org/wiki/United_States_admin_level" target="_blank">https://wiki.openstreetmap.org/wiki/United_States_admin_level</a></div><div> mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;New York County&#39; { set mkgmap:city=&#39;New York&#39; }</div><div>-mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;Bronx County&#39; { set mkgmap:city=&#39;The Bronx&#39; }</div><div>+mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;Bronx County&#39; { set mkgmap:city=&#39;Bronx&#39; }</div><div> mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;Kings County&#39; { set mkgmap:city=&#39;Brooklyn&#39; }</div><div>+# Queens uses neighborhoods for city in postal addresses</div><div>+# <a href="http://en.wikipedia.org/wiki/List_of_Queens_neighborhoods" target="_blank">http://en.wikipedia.org/wiki/List_of_Queens_neighborhoods</a></div><div>+mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;Queens County&#39; &amp; mkgmap:admin_level8=* { set mkgmap:city=&#39;${mkgmap:admin_level8}&#39; }</div><div> mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;Queens County&#39; { set mkgmap:city=&#39;Queens&#39; }</div><div> mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level6=&#39;Richmond County&#39; { set mkgmap:city=&#39;Staten Island&#39; }</div><div> mkgmap:country=USA &amp; mkgmap:city!=* &amp; mkgmap:admin_level8=* { set mkgmap:city=&#39;${mkgmap:admin_level8|subst:City of }’ }</div></div><div><br></div><div>One always says ‘The Bronx’, but in addresses is it’s simply Bronx. For Queens, the neighborhood is used in mailing addresses, though sometimes people will use ‘Queens’ instead. If you look up &quot;40-01 43 AVENUE” <a href="http://www.usps.com" target="_blank">www.usps.com</a>, it says the standardized address is:</div><div>4001 43RD AVE<br>SUNNYSIDE NY 11104-3205</div><div><br></div><div>But, the <a href="http://schools.nyc.gov/SchoolPortals/30/Q150/default.htm" target="_blank">school board</a> lists it’s address as:</div><div>40-01 43 AVENUE<br>QUEENS, NY11104</div><div><br></div><div>While the <a href="https://sites.google.com/site/ps150queens/" target="_blank">school itself</a> says it’s address is:</div><div>40-01 43 Avenue  Sunnyside, NY 11104</div><div><br></div><div>If I’m given an address, most likely it will have the neighborhood in it, and not ‘Queens’. </div></div></blockquote><div><br></div><div>I briefly looked into this as well and you are correct. Good catch, thanks. <br><br>@Gerd (or other mkgmap developers): Can you update the address rules for NYC with Brian&#39;s patch. Thanks.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>Here’s an alternative patch to pick up place_name:</div><div><div>Index: src/uk/me/parabola/mkgmap/build/LocatorUtil.java</div><div>===================================================================</div><div>--- src/uk/me/parabola/mkgmap/build/LocatorUtil.java<span style="white-space:pre-wrap">        </span>(revision 3342)</div><div>+++ src/uk/me/parabola/mkgmap/build/LocatorUtil.java<span style="white-space:pre-wrap">        </span>(working copy)</div><div>@@ -28,7 +28,7 @@</div><div> <span style="white-space:pre-wrap">                        </span>.compile(&quot;[,<a>\\s</a>]+&quot;);</div><div> <span style="white-space:pre-wrap">        </span></div><div> <span style="white-space:pre-wrap">        </span>public static List&lt;String&gt; getNameTags(Properties props) {</div><div>-<span style="white-space:pre-wrap">                </span>String nameTagProp = props.getProperty(&quot;name-tag-list&quot;, &quot;name&quot;);</div><div>+<span style="white-space:pre-wrap">                </span>String nameTagProp = props.getProperty(&quot;name-tag-list&quot;, &quot;name,place_name&quot;);</div><div> <span style="white-space:pre-wrap">                </span>return Arrays.asList(COMMA_OR_SPACE_PATTERN.split(nameTagProp));</div><div> <span style="white-space:pre-wrap">        </span>}</div></div></div></blockquote><div><br></div><div>I think it makes sense to have this in mkgmap. Personally I prefer the patch which displays a warning message so that I can include it in the list of warnings to fix on my website. But I guess the mkgmap developers are in the best position to decide which is best. If this solution is chosen, a comment would be useful - maybe just indicate that &#39;place_name&#39; is only included for compatibility with an old tag. Perhaps place_name would be removed in the future when it&#39;s no longer in OSM.<br></div><div> <br></div><div>Your other patches seem ok to me but I&#39;m probably not the best person to review them. :)<br><br>Thanks again for this work.<br><br></div><div>Ben<br> </div></div></div></div></div>