mapsforge bridge

This commit is contained in:
Arndt Brenschede 2017-02-03 19:21:39 +01:00
parent 61ce13ca33
commit ebd9305528
3 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ public final class MicroCache2 extends MicroCache
if ( !isReverse ) // write geometry for forward links only if ( !isReverse ) // write geometry for forward links only
{ {
WaypointMatcher matcher = wayTags == null || wayTags.accessType < 2 ? null : waypointMatcher; WaypointMatcher matcher = wayTags == null || wayTags.accessType < 2 ? null : waypointMatcher;
if ( matcher != null ) matcher.startNode( ilon, ilat ); if ( matcher != null ) matcher.startNode( ilon, ilat, wayTags.data );
int ilontarget = ilon + dlon_remaining; int ilontarget = ilon + dlon_remaining;
int ilattarget = ilat + dlat_remaining; int ilattarget = ilat + dlat_remaining;

View file

@ -7,7 +7,7 @@ package btools.codec;
*/ */
public interface WaypointMatcher public interface WaypointMatcher
{ {
void startNode( int ilon, int ilat ); void startNode( int ilon, int ilat, byte[] wayTags );
void transferNode( int ilon, int ilat ); void transferNode( int ilon, int ilat );
void endNode( int ilon, int ilat ); void endNode( int ilon, int ilat );
} }

View file

@ -105,7 +105,7 @@ public final class WaypointMatcherImpl implements WaypointMatcher
} }
@Override @Override
public void startNode( int ilon, int ilat ) public void startNode( int ilon, int ilat, byte[] wayTags )
{ {
lonLast = lonStart = ilon; lonLast = lonStart = ilon;
latLast = latStart = ilat; latLast = latStart = ilat;