Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_EARTH_RADIUS: Double = 6372.795

The default radius for the earth, @see (http://en.wikipedia.org/wiki/Great_circle_distance)

Link copied to clipboard
const val RAIL: Double = 1.2

The circuity factor for rail networks, see pg 559 of Ballou

Link copied to clipboard
const val ROADS: Double = 1.17

The circuity factor for road networks, see pg 559 of Ballou

Functions

Link copied to clipboard

Gets the sign associated with the supplied direction

Link copied to clipboard
fun latitude(direction: GreatCircleBasedSpatialModel.Companion.Direction = Direction.NORTH, degrees: Double = 51.0, minutes: Double = 28.0, seconds: Double = 40.5408): Double

Returns a latitude in degrees

Link copied to clipboard
fun longitude(direction: GreatCircleBasedSpatialModel.Companion.Direction = Direction.WEST, degrees: Double = 0.0, minutes: Double = 0.0, seconds: Double = 5.562): Double

Returns a longitude in degrees