<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>It would make it easier for someone (a moped rider?) who wanted to make a special-purpose map for routing on his moped. The point I would like to make, is that once you have a central place for "country specific rules" (some may say "country defaults" but that may be a dangerous term to use in the OSM) there are many other ways that it can be sensibly used. Indeed, we already have the address handling, and I have phone number handling (which I posted about a few months back).</p>
<p><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px;">I am just thinking a bit like an architect - "it's what I do" - a simple change which enables a wide variety of functions, even ones which haven't been thought of yet. The current include files are divided first by function ("address", "roadspeed" etc) and then sometimes internally by country. Listening to myself for a minute it sounds like I am advocating inverting that structure. I am probably a bit late to the party with profound ideas like that!</span></p>
<p>Anyway thanks for a wonderful program and keep up the great work!</p>
<p><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px;">Colin</span></p>
<p><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px;">On 2014-04-18 13:16, WanMil wrote:</span></p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>Hi Colin,</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Another couple of examples of country defaults for NLD: cycleway: add mofa=yes; add moped=no</blockquote>
<pre>mofa and moped are not supported with the default style so it makes no sense to add those rules.</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">motorway/link: add bicycle=no; add mofa=no; add moped=no; add foot=no; add agricultural=no; add maxspeed=130;</blockquote>
<pre>agricultural is also not supported int the default style. Adding maxspeed in the access rules is not appropriate. It should be done in the roadspeed include.</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Would it be more manageable to have a directory structure containing a small file per country, which is loaded (cached) on first use? Then we won't have to merge so many changes into the one big file as the usage of this facility spreads across the globe.</blockquote>
<pre>It's the same thing with the address include which exists since a long time. Anyhow the country specifc rule are not so numerous so that I think it's not worthy to create country specific include files.
WanMil</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Colin On 2014-04-18 12:37, Minko wrote:
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Wanmil, here are two examples of country specific rules. Maybe put them in one inc/access_country file so anyone can add their speific country rules to this file? # The Netherlands highway=trunk & mkgmap:country=NLD { add bicycle=no; add foot=no } highway=cycleway & mkgmap:country=NLD { add foot=yes } highway=bridleway & mkgmap:country=NLD { add foot=yes } # Belgium highway=trunk & mkgmap:country=BEL { add bicycle=no; add foot=no } highway=cycleway & mkgmap:country=BEL { add foot=yes } highway=bridleway & mkgmap:country=BEL { add foot=yes } _______________________________________________ mkgmap-dev mailing list <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a> <mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote>
_______________________________________________ mkgmap-dev mailing list <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote>
<pre>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</pre>
</blockquote>
</body></html>