GeoJSON

open class GeoJSON<T>(val type: String, val coordinates: T)

geoJSON class used to create objects in the Nominatim API JSON result it follows the guidelines of the GeoJSON format

Constructors

Link copied to clipboard
constructor(type: String, coordinates: T)

Properties

Link copied to clipboard

the coordinates that will be the type according to the string type. It follows the guidelines of (GeoJSON)https://datatracker.ietf.org/doc/html/rfc7946

Link copied to clipboard

it can be returned by the api as Point, LineString, Polygon and MultiPolygon. This propriety will be important to infer the coordinates T param.