main.com.doorbit.applemaps.BoundingBox.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apple-maps-server-kotlin Show documentation
Show all versions of apple-maps-server-kotlin Show documentation
Apple Maps Server Kotlin implements the Apple Maps Web Service API for use in JVMs.
The newest version!
package com.doorbit.applemaps
/**
* A viewbox that can be used as a hint for the geocoding service.
* The viewbox is defined by 2 points. Lat/Lon of the upper right corner and Lat/Lon of the lower left corner of the viewbox.
*/
data class BoundingBox(
val northLatitude: Double,
val eastLongitude: Double,
val southLatitude: Double,
val westLongitude: Double
) {
fun toQueryString(): String {
return "$northLatitude,$eastLongitude,$southLatitude,$westLongitude"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy