<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Carlos,<br><br>yes, I think this is possible, but requires a lot of rather complex changes.<br><br>Up to now we use the LocationHook to set the tags<br>like mkgmap:admin_level2 ..11 once for each way / road.<br>These tags are later evaluated in the style.<br><br>1st Idea:<br>We could change that so that the LocationHook checks the<br>values for each point of the road, if any of the tags changes <br>it could split the road and thus assign different mkgmap:admin_levelx<br>values to each part. The style would then assign different mkgmap:city<br>, mkgmap:region, or mkgmap:country etc. values. <br>A new method similar to the RoadMerger would collect the parts<br>and create one road with a list of cities.<br><br>Other idea:<br>Implement a set of rules which just sets mkgmap:country, mkgmap:region,<br>and mkgmap:country and mkgmap:postal_code for a pseudo element which has the tags<br>from the LocationHook. These rules would be evalulated for <br>each point of a road (after normal style processing).<br><br>Both versions are complex, I already thought about this before but<br>found no good reason to implement it.<br>I'll not have the time to do it during the next months.<br><br>Gerd<br><br><div>> Date: Sun, 7 Jun 2015 19:34:12 +0200<br>> From: cdavilam@orangecorreo.es<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Assigning a street to more than one city<br>> <br>> Would it be possible to check if a given street is inside a suburb and a <br>> city boundaries or a municipality boundary and a place polygon (with <br>> different names) and get the city names from both of them.<br>> See for example streets in Valdesalor [1] which are inside admin <br>> boundary relation 1899973 (municipality) and village polygon (way 23186267)<br>> [1] http://www.openstreetmap.org/#map=17/39.37820/-6.34773<br>> <br>> El 07/06/15 a las 18:27, Gerd Petermann escribió:<br>> > Hi Carlos,<br>> ><br>> > the basic support for this was implemented in the housenumber2<br>> > branch, but up to now the only way to use it is to have different<br>> > mkgmap:city values which are assigned to the same road.<br>> ><br>> > That means, we did not implement a way to set multiple cities<br>> > in the style, but if e.g. a the road connects two cities<br>> > and you have housenumber elements in both cities assigned to<br>> > this road, you can find the road in both cities.<br>> ><br>> > Gerd<br>> ><br>> > > Date: Sun, 7 Jun 2015 17:44:10 +0200<br>> > > From: cdavilam@orangecorreo.es<br>> > > To: mkgmap-dev@lists.mkgmap.org.uk<br>> > > Subject: [mkgmap-dev] Assigning a street to more than one city<br>> > ><br>> > > I've seen City Navigator maps are able to find the same street in two<br>> > > cities. I find this quite useful for the case of big municipalities <br>> > with<br>> > > a main city and several minor villages belonging to that <br>> > municipality or<br>> > > big cities with also big suburbs . I these cases you may not be sure<br>> > > what to enter in the "City" field when searching for a given street and<br>> > > finding it in both places eases search. Is it possible to accomplish <br>> > the<br>> > > same with mkgmp?<br>> <br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>