MMKPolylineUtils

class MMKPolylineUtils : NSObject

Undocumented

Summary

Class methods

class func positionsOfFork(withFirstPolyline firstPolyline: MMKPolyline,
                                     firstPolylinePosition: MMKPolylinePosition,
                                            secondPolyline: MMKPolyline,
                                    secondPolylinePosition: MMKPolylinePosition) -> [MMKPolylinePosition]
The position of the fork on the road

class func advancePolylinePosition(with polyline: MMKPolyline,
                                        position: MMKPolylinePosition,
                                        distance: Double) -> MMKPolylinePosition
The position of the polyline

class func pointByPolylinePosition(withGeometry geometry: MMKPolyline,
                                                position: MMKPolylinePosition) -> MMKPoint
The point in the polyline

class func distanceBetweenPolylinePositions(with polyline: MMKPolyline,
                                                     from: MMKPolylinePosition,
                                                       to: MMKPolylinePosition) -> Double
Undocumented

class func createPolylineIndex(with polyline: MMKPolyline) -> MMKPolylineIndex
Creates PolylineIndex for polyline

Class methods

positionsOfFork(withFirstPolyline:firstPolylinePosition:secondPolyline:secondPolylinePosition:)

class func positionsOfFork(withFirstPolyline firstPolyline: MMKPolyline,
                                     firstPolylinePosition: MMKPolylinePosition,
                                            secondPolyline: MMKPolyline,
                                    secondPolylinePosition: MMKPolylinePosition) -> [MMKPolylinePosition]

The position of the fork on the road.

Parameters

firstPolyline

The first path of the fork.

firstPolylinePosition

The position of the first path.

secondPolyline

The second path of the fork.

secondPolylinePosition

The position of the second path.


advancePolylinePosition(with:position:distance:)

class func advancePolylinePosition(with polyline: MMKPolyline,
                                        position: MMKPolylinePosition,
                                        distance: Double) -> MMKPolylinePosition

The position of the polyline.

Parameters

polyline

The polyline.

position

The polyline position.

distance

Distance.


pointByPolylinePosition(withGeometry:position:)

class func pointByPolylinePosition(withGeometry geometry: MMKPolyline,
                                                position: MMKPolylinePosition) -> MMKPoint

The point in the polyline.

Parameters

geometry

The polyline.

position

The polyline position.


distanceBetweenPolylinePositions(with:from:to:)

class func distanceBetweenPolylinePositions(with polyline: MMKPolyline,
                                                     from: MMKPolylinePosition,
                                                       to: MMKPolylinePosition) -> Double

Undocumented


createPolylineIndex(with:)

class func createPolylineIndex(with polyline: MMKPolyline) -> MMKPolylineIndex

Creates PolylineIndex for polyline. See MMKPolylineIndex for details.