logo separator

[mkgmap-dev] motorcycle=no

From Marco Certelli marco_certelli at yahoo.it on Mon Jun 22 18:05:45 BST 2009

Unfortunately, motorcar and motorcycle share the same access bit in IMG...

From MKGMAP SOURCE:

StyledConverter.java:

....

	private final AccessMapping[] accessMap = {
		new AccessMapping("access",     RoadNetwork.NO_MAX), // must be first in list
		new AccessMapping("bicycle",    RoadNetwork.NO_BIKE),
		new AccessMapping("foot",       RoadNetwork.NO_FOOT),
		new AccessMapping("hgv",        RoadNetwork.NO_TRUCK),
		new AccessMapping("motorcar",   RoadNetwork.NO_CAR),
		new AccessMapping("motorcycle", RoadNetwork.NO_CAR),
		new AccessMapping("psv",        RoadNetwork.NO_BUS),
		new AccessMapping("taxi",       RoadNetwork.NO_TAXI),
		new AccessMapping("emergency",  RoadNetwork.NO_EMERGENCY),
		new AccessMapping("delivery",   RoadNetwork.NO_DELIVERY),
		new AccessMapping("goods",      RoadNetwork.NO_DELIVERY),
	};

.................

				if (type.equals("motorcar") ||
				    type.equals("motorcycle")) {
					road.setNoThroughRouting();


.................


I guess there is no way to make a way good for cars and not for bykes

Ciao, Marco.



--- Dom 21/6/09, Mark Burton <markb at ordern.com> ha scritto:

> Da: Mark Burton <markb at ordern.com>
> Oggetto: Re: [mkgmap-dev] motorcycle=no
> A: mkgmap-dev at lists.mkgmap.org.uk, marco_certelli at yahoo.it
> Data: Domenica 21 giugno 2009, 21:35
> 
> Hi Marco,
> 
> From: Marco Certelli <marco_certelli at yahoo.it>
> Subject: [mkgmap-dev] motorcycle=no
> Date: Sun, 21 Jun 2009 15:03:32 +0000 (GMT)
> 
> > The question is: how mkgmap compiles a motocycle=no
> tag?
> 
> I am away from home this week and can't look at the source
> but, from
> memory, I think it will ignore that tag.
> 
> > And is there a way in mkgmap/IMG to make a road
> routable for cars but not for motorcycles?
> 
> I don't know of any way to do that.
> 
> Cheers,
> 
> Mark
> 


      



More information about the mkgmap-dev mailing list