Re: [mkgmap-dev] Indexing street belonging to two cities

2022-10-14 Thread gpetermann_muenchen
Hi Piotr,

this probem exists probably around the world. Some mappers split OSM ways at 
boundaries
to solve this. 
Anyway, there is no easy way to solve this in mkgmap. It would be possible to 
split all OSM
ways with highway=* at boundaries before style processing, so that each
part gets different mkgmap:admin_level=* values and thus different mkgmap:city 
values.
When --bounds is used the needed data should be available. Disadvantage would 
be that the
number of road objects in the *.img file increases although we can store 
multiple cities
for one road.

Another simpler approach could be to post process just the way nodes for those 
ways which are
routable (after style processing). This is probably easier to implement and 
closer to the way
how housenumbers are processed, but still a lot of work. 

Why does it work with house numbers? Because each node or way with 
addr:housenumber is 
processed by the style rules and thus different numbers may have different 
mkgmap:city values.
The program collects those values in a list for each road object when the 
housenumbers are processed.
Without housenumbers there is only the information from the road object itself.

Gerd

Von: mkgmap-dev  im Auftrag von Piotr 
Wawrzyniak 
Gesendet: Donnerstag, 13. Oktober 2022 22:02
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: [mkgmap-dev] Indexing street belonging to two cities

Hi there,
It is not uncommon for Poland, that one street is located in two
different cities. If there are addresses, mkgmap can deal with that
problem and allow garmin devices to find the proper address. But if
there are no addresses, I was not able to find a method for proper
search index generation. Is there any solution for this problem?
cgpsmapper supports this type of indexing by using @ in cities name:
CityName=city1@city2 so img format can handle this.
Thanks for any suggestions
Piotr
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Indexing street belonging to two cities

2022-10-14 Thread Piotr Wawrzyniak
pt., 14 paź 2022 o 15:31  napisał(a):
> this probem exists probably around the world. Some mappers split OSM ways at 
> boundaries
> to solve this.

Hi Gerd,
So if I understood correctly it is mainly a data problem not a
compiler problem itself. I am using mkgmap for compiling mp files, so
streets location is clear. As I said cgpsmapper supports this type of
street sharing using @ within cityname. Presently I am compiling
source with cgpsmapper, but I would like to use mkgmap for this
purpose, as for new Garmin receivers there are better voice commands
(especially keep right/left works as it should). I know that mkgmap is
mainly for osm sources, but do you think it would be possible add this
feature for mp files?

Cheers
Piotr
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] Indexing street belonging to two cities

2022-10-14 Thread Gerd Petermann
Hi Piotr,

yes, with *.mp files this should be easier. Please provide a sample input and 
desccribe the expected result
and also attach the output from cgpsmapper.
You can upload a zipp here: https://files.mkgmap.org.uk/

Gerd


Von: mkgmap-dev  im Auftrag von Piotr 
Wawrzyniak 
Gesendet: Freitag, 14. Oktober 2022 20:02
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Indexing street belonging to two cities

pt., 14 paź 2022 o 15:31  napisał(a):
> this probem exists probably around the world. Some mappers split OSM ways at 
> boundaries
> to solve this.

Hi Gerd,
So if I understood correctly it is mainly a data problem not a
compiler problem itself. I am using mkgmap for compiling mp files, so
streets location is clear. As I said cgpsmapper supports this type of
street sharing using @ within cityname. Presently I am compiling
source with cgpsmapper, but I would like to use mkgmap for this
purpose, as for new Garmin receivers there are better voice commands
(especially keep right/left works as it should). I know that mkgmap is
mainly for osm sources, but do you think it would be possible add this
feature for mp files?

Cheers
Piotr
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Indexing street belonging to two cities

2022-10-14 Thread Piotr Wawrzyniak
pt., 14 paź 2022 o 20:24 Gerd Petermann
 napisał(a):
> Hi Piotr,
> yes, with *.mp files this should be easier. Please provide a sample input and 
> desccribe the expected result
> and also attach the output from cgpsmapper.
> You can upload a zipp here: https://files.mkgmap.org.uk/

That could be possible. What is enough for you, just an img file, or
all files required by Mapsource/Basecamp? Additionally, cgpsmapper
will also include data for [SIGN] sections that allows to control what
is printed on the top bar of garmin devices (eg, Exit 2 toward XXX). I
wonder how difficult would it be to support this feature as well.
Piotr
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev