1
1
mirror of https://github.com/Pygmalion69/OpenTopoMapViewer.git synced 2025-10-06 00:02:42 +02:00

Add POIs request

This commit is contained in:
Pygmalion69
2025-08-23 14:44:26 +02:00
parent d32a388021
commit 00252cddb4

View File

@@ -0,0 +1,25 @@
package org.nitri.ors.model.pois
import kotlinx.serialization.Serializable
@Serializable
data class PoisRequest(
val request: String = "pois",
val geometry: Geometry,
val filters: Map<String, String>? = null,
val limit: Int? = null,
val sortby: String? = null
)
@Serializable
data class Geometry(
val bbox: List<List<Double>>? = null, // [[minLon,minLat],[maxLon,maxLat]]
val geojson: GeoJsonGeometry? = null, // optional: GeoJSON geometry
val buffer: Int? = null // optional: buffer in meters
)
@Serializable
data class GeoJsonGeometry(
val type: String, // e.g., "Point"
val coordinates: List<Double> // [lon, lat]
)