KNLocation
INFO
This English reference is based on Directions SDK 1.12.12. For the latest version, see the Korean reference.
- Inherits from: NSObject
- Declared in: KNLocation.h
Provides location information along the route. It can also reflect information such as traffic conditions and facility types in route guidance.
Properties
| Name | Description | Type |
|---|---|---|
pos | Position coordinates along the route (uses the KATEC coordinate system) | @property (nonatomic, readonly) IntPoint pos |
roadName | Name of the road at the current location along the route. (If there is no road name: nil) | @property (nonatomic, readonly) NSString *roadName |
roadType | Type of the road at the current location along the route | @property (nonatomic, readonly) KNRoadType roadType |
facilityType | Traffic facility at the current location along the route | @property (nonatomic, readonly) KNFacilityType facilityType |
trafficSt | Traffic information for the road at the current location along the route | @property (nonatomic, readonly) KNTrafficState trafficSt |
trafficSpd | Driving speed of the road at the current location along the route (unit: km/h). Driving speed, also called section speed, indicates the average speed in the current section. This speed may vary depending on factors such as weather, time, and traffic volume. | @property (nonatomic, readonly) SInt32 trafficSpd |
Methods
avrSpeedAndTrafStToLocation
Provides the traffic conditions and average speed from the current location to the destination. The average speed is a combination of the average of the traffic condition states and speeds of the two points.
- (SInt32) avrSpeedAndTrafStToLocation: (KNLocation *) aLocationParameters
| Name | Description |
|---|---|
aLocation | Destination |
costToLocation
Returns the fee from the current location to the destination (unit: KRW).
- (SInt32) costToLocation: (KNLocation *) aLocationParameters
| Name | Description |
|---|---|
aLocation | Destination |
distToLocation
Returns the distance from the current location to the destination (unit: m).
- (SInt32) distToLocation: (KNLocation *) aLocationParameters
| Name | Description |
|---|---|
aLocation | Destination |
locationAfterDist
Returns a location that is a specific distance away along the route.
- (KNLocation *) locationAfterDist: (SInt32) aDistParameters
| Name | Description |
|---|---|
aDist | Distance away |
timeToLocation
Returns the time from the current location to the destination (unit: seconds).
- (SInt32) timeToLocation: (KNLocation *) aLocationParameters
| Name | Description |
|---|---|
aLocation | Destination |
isSameToLocation
Compares the location information of two objects to determine whether the location information and details are identical.
- (BOOL) isSameToLocation: (KNLocation *) aLocation;Parameters
| Name | Description |
|---|---|
aLocation | Location to compare |