treee111 / wahooMapsCreator

Create maps for Wahoo device based on latest OSM maps
GNU General Public License v3.0
261 stars 26 forks source link

Some POIs missing in created map #144

Closed masc4ii closed 2 years ago

masc4ii commented 2 years ago

Hi, thank you for this great project!

Expected Behavior

I created a map (tile 135/86, or entire germany) with tag-wahoo-poi.xml via command line on macOS and installed the map and the vtm-elemnt.xml with its icons on my Bolt v2. I would expect all supported pois to be shown on my device now.

Current Behavior

All bakerys, some fuelstations and cafes are now shown on my device, while e.g. railway stations and halts are not shown at all. If I use the default map from wahoo, the bakeries, fuelstations and cafes are gone (to be expected), while railway halts are shown (but no station). If I use cruiser for the generated and for the default map, I get the same results.

Steps to Reproduce the Issue

  1. run python -m wahoomc cli -xy 135/86 -tag tag-wahoo-poi.xml
  2. load map on wahoo or cruiser, load vtm-elemnt.xml with its icons too
  3. see what you get

Context

qiuchengxuan commented 2 years ago

In file wahoomc/constants.py Change TAGS_TO_KEEP_UNIVERSAL key railway like this:

'railway': ['abandoned', 'bus_guideway', 'disused', 'funicular', 'light_rail', 'miniature', 'narrow_gauge', 'preserved', 'rail', 'subway', 'tram', 'station', 'halt', 'stop'],

solves this problem

masc4ii commented 2 years ago

Yes, thank you, your answer is correct. I found out the same yesterday evening. For the problem, "half of existing POIs were shown only", I also found a solution: some POIs are "node" and other POIs of the same type are "way" objects. In the tag xml node POIs are listed only. I forked and changed this plus some other things I like personally. Feel free to copy whatever you like! https://github.com/masc4ii/wahooMapsCreator

treee111 commented 2 years ago

Hi @masc4ii, thanks for your hints! I took over some of your adjustments with #158 ! :-) Thanks for supporting the wahoo OSM community 👍

utack commented 3 months ago

Sorry to ask here, but where do I put the svg icons on my device?

treee111 commented 3 months ago

Hi @utack, it is described here: https://github.com/treee111/wahooMapsCreator/blob/develop/docs/COPY_TO_WAHOO.md#copy-relevant-files-for-pois.

So the icons would be under maps/vtm-elemnt/icons. I.e. maps/vtm-elemnt/icons/bakery.svg.

That applies if you use the theme from this repo, because the path to the icon is defined in the theme. Example for bakery: https://github.com/treee111/wahooMapsCreator/blob/26a7eaf19fb4821d096464584285c3bee22ac751/device_themes/vtm_theme_poi/vtm-elemnt.xml#L853

does that help?