You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2012-11-01 13:36:06

brogo
Member
From: 54,11 +-1°
Registered: 2009-06-02
Posts: 553

adress-index

Hi!

The address-part of the style-file looks like:

mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' } 
mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level7=* { set mkgmap:city='${mkgmap:admin_level7}' } 
mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level6=* { set mkgmap:city='${mkgmap:admin_level6}' } 
mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level9=* { set mkgmap:city='${mkgmap:admin_level9}' } 
mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level10=* { set mkgmap:city='${mkgmap:admin_level10}' } 

Could it be possible to change mkgmap, that you have two (or more) mkgmap:city for one street? So you could find a street if you search for the admin8-name OR admin9-name.

Christian

Offline

#2 2012-11-01 15:08:04

WanMil
Member
Registered: 2009-04-09
Posts: 109

Re: adress-index

No - there is no straight forward solution for that. There can be only one city for one street object. This is a limitation of the Garmin map format (as far as we know...).

Maybe it would be possible to create two street objects with different city names for the same OSM street. @Style gurus: Any proposals how to achieve that?

WanMil

Offline

#3 2012-11-01 16:41:55

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: adress-index

You can make two ways:

highway=unclassified  & name=*  & mkgmap:admin_level8=*{ set mkgmap:city='${mkgmap:admin_level8}' } [0x06 road_class=0 road_speed=3 resolution 21 continue]
highway=unclassified  & name=* & mkgmap:admin_level9=*  { set mkgmap:city='${mkgmap:admin_level9}' } [0x06 road_class=0 road_speed=3 resolution 24]

Problem: Only ways which are routable are indexed, they both have to be routable.  I'm not sure what consequences are to have two routable lines on top of each other.

Offline

#4 2012-11-01 21:20:25

popej
Member
Registered: 2008-09-20
Posts: 500
Website

Re: adress-index

Cgpsmapper supports multiple cities for a road, so it is not a map format limitation.


popej

Offline

Board footer

Powered by FluxBB