corda / net.corda.finance.utils / WorldCoordinate

WorldCoordinate

data class WorldCoordinate

A latitude/longitude pair.

Constructors

<init>

WorldCoordinate(latitude: Double, longitude: Double)

A latitude/longitude pair.

Properties

latitude

val latitude: Double

longitude

val longitude: Double

Functions

project

fun project(screenWidth: Double, screenHeight: Double, topLatitude: Double, bottomLatitude: Double, leftLongitude: Double, rightLongitude: Double): ScreenCoordinate

Convert to screen coordinates using the Mercator projection. You should have a world map image that you know the precise extents of for this function to work.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.