Hi Gerd,<br><br>I hard coded it so the program could raise a warning. From what I&#39;ve read, the tag is depreciated. However, maybe we don&#39;t need another warning in mkgmap?  If so, I would suggest adding it to the default name tag list. <br><br>Regarding the second item, I built a map using these tags, and address information is much more complete (for me). I&#39;ll work on cleaning it up into a patch. <br><br>Brian<br><div class="gmail_quote">On Fri, Oct 31, 2014 at 5:11 AM Gerd Petermann &lt;<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">


<div dir="ltr">Hi Brian,<br><br>reg. your patch: I don&#39;t understand why you think that this works better than adding place_name to <br>the end of the name-tag-list. It seems to have the same effect, but would be hard-coded?<br><br>Reg. is_in:country and is_in:state:<br>I don&#39;t understand what change you have in mind. Do you want to fill fields like mkgmap:admin_level2 using<br>the values given in is_in:country if the value would be null else?<br><br>Gerd<br><br><br><div><hr>From: <a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a><br>Date: Fri, 31 Oct 2014 00:10:56 -0400</div></div></div></div><div><div dir="ltr"><div dir="ltr"><div><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] Building northeast map<br><br><div>Hi Gerd,</div><div><br></div><div>I found the first issue why so many cities were missing. It turns out in my area many boundaries contain &#39;place_name&#39; instead of &#39;name&#39;. Examples: <a href="http://overpass-turbo.eu/s/5HL" target="_blank">http://overpass-turbo.eu/s/5HL</a></div><div><br></div><div>I realize I could add this tag to name-tag-list, but i think it would be better to have it searched as a last resort. Thus, I propose the following patch:</div><div><br></div><div><div>Index: src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryLocationPreparer.java</div><div>===================================================================</div><div>--- src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryLocationPreparer.java<span style="white-space:pre-wrap">        </span>(revision 3341)</div><div>+++ src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryLocationPreparer.java<span style="white-space:pre-wrap">        </span>(working copy)</div><div>@@ -69,6 +69,9 @@</div><div> <span style="white-space:pre-wrap">                </span>int admLevel = getAdminLevel(tags);</div><div> <span style="white-space:pre-wrap">                </span>boolean isISO = false;</div><div> <span style="white-space:pre-wrap">                </span>String name = getName(tags);</div><div>+<span style="white-space:pre-wrap">                </span>if (name == null) {</div><div>+<span style="white-space:pre-wrap">                        </span>log.warn(&quot;No name found for boundary&quot;, tags);</div><div>+<span style="white-space:pre-wrap">                </span>}</div><div> <span style="white-space:pre-wrap">                </span>if (locator != null){</div><div> <span style="white-space:pre-wrap">                        </span>if (admLevel == 2) {</div><div> <span style="white-space:pre-wrap">                                </span>String isoCode = locator.addCountry(tags);</div><div><div>@@ -142,6 +145,11 @@</div><div> <span style="white-space:pre-wrap">                        </span>}</div><div> <span style="white-space:pre-wrap">                        </span>return nameParts[0].trim().intern();</div><div> <span style="white-space:pre-wrap">                </span>}</div><div>+<span style="white-space:pre-wrap">                </span>String place_name = tags.get(&quot;place_name&quot;);</div><div>+<span style="white-space:pre-wrap">                </span>if (place_name != null) {</div><div>+<span style="white-space:pre-wrap">                        </span>log.warn(&quot;Boundry has controversial place_name:&quot;, place_name, tags, &quot;<a href="http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name" target="_blank">http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name</a>&quot;);</div><div>+<span style="white-space:pre-wrap">                        </span>return place_name;</div><div>+<span style="white-space:pre-wrap">                </span>}</div><div> <span style="white-space:pre-wrap">                </span></div><div> <span style="white-space:pre-wrap">                </span>return null;</div><div> <span style="white-space:pre-wrap">        </span>}</div></div></div><div><br></div><div>Secondly, while I don&#39;t have a complete admin_level2 in my boundary file, most city, county and state boundaries contain is_in tags. For example, Danbury (<a href="http://www.openstreetmap.org/way/33271879" target="_blank">http://www.openstreetmap.org/way/33271879</a>), contains </div><div><table style="border-spacing:0px;width:310px;border:1px solid rgb(221,221,221);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;font-size:12px;table-layout:fixed;color:rgb(34,34,34);font-family:&#39;Helvetica Neue&#39;,Arial,sans-serif;line-height:19.9992008209229px;background-color:rgb(246,246,246)"><tbody><tr><th style="padding:6px 10px;line-height:20px;font-weight:500;vertical-align:top;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word"><a href="http://wiki.openstreetmap.org/wiki/Key:is%20in:country?uselang=en-US" title="The wiki description page for the is_in:country tag" style="color:rgb(34,68,221)" target="_blank">is_in:country</a></th><td style="padding:6px 10px;line-height:20px;vertical-align:middle;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(255,255,255)">USA</td></tr></tbody></table><div><table style="border-spacing:0px;width:310px;border:1px solid rgb(221,221,221);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;font-size:12px;table-layout:fixed;color:rgb(34,34,34);font-family:&#39;Helvetica Neue&#39;,Arial,sans-serif;line-height:19.9992008209229px;background-color:rgb(246,246,246)"><tbody><tr><th style="padding:6px 10px;line-height:20px;font-weight:500;vertical-align:top;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word"><a href="http://wiki.openstreetmap.org/wiki/Key:is%20in:state?uselang=en-US" title="The wiki description page for the is_in:state tag" style="color:rgb(34,68,221);text-decoration:none" target="_blank">is_in:state</a></th><td style="padding:6px 10px;line-height:20px;vertical-align:middle;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(255,255,255)">Connecticut</td></tr></tbody></table><div>With these tags, I should be able to set state and country information even if I don&#39;t have those boundaries explicitly loaded. I was thinking this extra information could be added to the BoundaryLocationInfo class, much like how the zip code is today. What do you think about that approach?</div></div></div><div><br></div><div>Brian</div><br><div><blockquote><div>On Oct 30, 2014, at 4:00 AM, Gerd Petermann &lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt; wrote:</div><br><div>


<div><div dir="ltr">Hi Brian,<br><br>I see.<br>I fear the meanings of the --country-xxx options are not well documented.<br>If I got it right, they have an influence on the address search indexes, but they have no <br>meaning for the rules in the style.<br><br>Maybe your problem could be solved with an<br>additional line in the address rule. Something like this<br>mkgmap:admin_level5=&#39;New York City&#39; &amp; mkgmap:admin_level2!=* { set mkgmap:admin_level2=&#39;USA&#39; }<br>as a first line in inc/address.<br><br>Another option would be to change the LocationHook to optionally use the <br>values given with --country-xxx to fill the mkgmap:admin_level2 tag.<br><br>Gerd<br><br><div><hr>From: <a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a><br>Date: Thu, 30 Oct 2014 02:38:17 +0000<br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] Building northeast map<br><br>Thanks Gerd,<br><br><div>I&#39;ve been adding/fixing city boundaries in my area, so I&#39;m trying to create my own bounds file. If an admin_level2 can&#39;t be found, does it use the <b style="font-family:sans-serif;line-height:19.2000007629395px">--country-abbr </b><span style="font-family:sans-serif;line-height:19.2000007629395px">option?</span></div><div><span style="font-family:sans-serif;line-height:19.2000007629395px"><br></span></div><div><span style="font-family:sans-serif;line-height:19.2000007629395px">Brian</span></div></div></div></div></div></blockquote></div><br><br></div></div></div></div><div><div dir="ltr"><div dir="ltr"><div>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div></div></div></div>
______________________________<u></u>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<u></u>mailman/listinfo/mkgmap-dev</a></blockquote></div>