Find features near a geographic point
elements().nearby(ElementNearbyParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : FeatureCollection
GET/api/v1/features/nearby
Find features near a geographic point
package com.plazafyi.example
import com.plazafyi.client.PlazaClient
import com.plazafyi.client.okhttp.PlazaOkHttpClient
import com.plazafyi.models.FeatureCollection
import com.plazafyi.models.elements.ElementNearbyParams
fun main() {
val client: PlazaClient = PlazaOkHttpClient.fromEnv()
val params: ElementNearbyParams = ElementNearbyParams.builder()
.lat(0.0)
.lng(0.0)
.build()
val featureCollection: FeatureCollection = client.elements().nearby(params)
}