public class RoadMatchInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
jniCMemOwn |
protected long |
jniCPtr |
com.ptvag.navigation.sdk.NativeObject |
parent |
Constructor and Description |
---|
RoadMatchInformation()
Constructor
|
RoadMatchInformation(long cPtr,
boolean cMemoryOwn)
Only for internal use - don't try to call this from Java.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Kills rubbish if owning the object.
|
protected void |
finalize() |
long |
getCategory()
Returns the road category.
|
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
java.lang.String |
getCurrentStreetName()
Returns the name of currently matched road.
|
int |
getDistToRoad()
Returns the distance to matched road.
|
Position |
getPosOnRoad()
Returns the matched position on the road in mercator coordinates.
|
long |
getRoadType()
Returns the road type. [0..14].
0 - Speed for fast motorway.
1 - Speed for medium motorway.
2 - Speed for slow motorway (for M&G-City-Maps: Speed for very fast national road).
3 - Speed for fast national road.
4 - Speed for medium national road.
5 - Speed for slow national road.
6 - Speed for fast country road.
7 - Speed for medium country road.
8 - Speed for slow country road.
9 - Speed for fast urban road.
10 - Speed for medium urban road.
11 - Speed for slow urban road.
12 - Speed for Ferry If the value is 0 the ferry is not used.
|
void |
setCategory(long category)
Sets the road category.
|
void |
setCurrentStreetName(java.lang.String currentStreetName)
Sets the name of currently matched road.
|
void |
setDistToRoad(int distToRoad)
Sets the distance to matched road.
|
void |
setPosOnRoad(Position posOnRoad)
Sets the matched position on the road in mercator coordinates.
|
void |
setRoadType(long roadType)
Sets the road type. [0..14].
0 - Speed for fast motorway.
1 - Speed for medium motorway.
2 - Speed for slow motorway (for M&G-City-Maps: Speed for very fast national road).
3 - Speed for fast national road.
4 - Speed for medium national road.
5 - Speed for slow national road.
6 - Speed for fast country road.
7 - Speed for medium country road.
8 - Speed for slow country road.
9 - Speed for fast urban road.
10 - Speed for medium urban road.
11 - Speed for slow urban road.
12 - Speed for Ferry If the value is 0 the ferry is not used.
|
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public RoadMatchInformation()
public RoadMatchInformation(long cPtr, boolean cMemoryOwn)
public long getRoadType()
public void setRoadType(long roadType)
roadType
- - the road type.public long getCategory()
public void setCategory(long category)
category
- - the road category.public Position getPosOnRoad()
public void setPosOnRoad(Position posOnRoad)
posOnRoad
- - the matched position on the roadpublic int getDistToRoad()
public void setDistToRoad(int distToRoad)
distToRoad
- - the distance to matched roadpublic java.lang.String getCurrentStreetName()
public void setCurrentStreetName(java.lang.String currentStreetName)
currentStreetName
- - name of currently matched roadpublic static long getCPtr(com.ptvag.navigation.sdk.NativeObject obj)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void delete()