Package com. citymapper. sdk. core. geo
Types
Link copied to clipboard
data class CoordsBounds(latNorth: Double, lonEast: Double, latSouth: Double, lonWest: Double)
Content copied to clipboard
A geographical area representing a latitude/longitude aligned rectangle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun Coords.coordinateAtOffset(distance: Distance, bearing: Double): Coords
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
tailrec fun PathGeometry.fractionalIndexBackwards(fromIndex: Float, distance: Distance): Float
Content copied to clipboard
fun PathGeometry.fractionalIndexBackwards(fromIndex: Int, distance: Distance): Float
Content copied to clipboard
Link copied to clipboard
tailrec fun PathGeometry.fractionalIndexForwards(fromIndex: Float, distance: Distance): Float
Content copied to clipboard
fun PathGeometry.fractionalIndexForwards(fromIndex: Int, distance: Distance): Float
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun PathGeometry.getDistanceBetween(startIndex: Int, endIndex: Int): Distance
Content copied to clipboard
Link copied to clipboard
fun PathGeometry.getPathBetween(fractionalStartIndex: Float, fractionalEndIndex: Float): List<Coords>
Content copied to clipboard
Link copied to clipboard
fun PathGeometry.getPointAtFractionalIndex(fractionalIndex: Float): Coords
Content copied to clipboard
Link copied to clipboard
https://xkcd.com/2170/
Link copied to clipboard
Link copied to clipboard