logo separator

[mkgmap-dev] Problem with routing to a destination at oneway

From Robert Vollmert rvollmert-lists at gmx.net on Wed Feb 18 12:39:26 GMT 2009

On Feb 18, 2009, at 13:07, Clinton Gladstone wrote:
> On Wed, Feb 18, 2009 at 12:41 PM, Robert Vollmert
> <rvollmert-lists at gmx.net> wrote:
>>
>> Thanks for the report. The oneway street is just one way in  
>> the .osm, right?
>>
>> Could you try going via .mp? It's unlikely to make a difference,  
>> but that
>> way we could narrow it down somewhat.
>
> I just happened to notice this exact same error last night while
> driving home. I had an .mp version of the same map handy, and did a
> comparison in mapsource: The map compiled from .mp did not exhibit
> this error.

The obvious difference between the .mp and .osm readers is that the  
"direction indicator" flag is not being set. Does the following patch  
help? Though with the behaviour you're reporting, it seems more likely  
that something goes wrong for just some of the arcs, and not the  
entire road...

--- osmstyle/StyledConverter.java	(revision 899)
+++ osmstyle/StyledConverter.java	(working copy)
@@ -357,8 +357,11 @@

  		// set road parameters.
  		road.setRoadClass(gt.getRoadClass());
-		road.setOneway(line.isDirection());
-		
+		if (way.isBoolTag("oneway")) {
+			road.setOneway(true);
+			road.setDirIndicator(true);
+		}
+
  		// maxspeed attribute overrides default for road type
  		
  		String maxSpeed = way.getTag("maxspeed");




More information about the mkgmap-dev mailing list