PeliasGeocoderService
Provides geocoding via a Pelias server.
// Configure a Viewer to use the Pelias server hosted by https://geocode.earth/
const viewer = new Viewer('cesiumContainer', {
geocoder: new PeliasGeocoderService(new Resource({
url: 'https://api.geocode.earth/v1/',
queryParameters: {
api_key: '<Your geocode.earth API key>'
}
}))
});
Content copied to clipboard
See also
Properties
Functions
Link copied to clipboard
suspend fun geocode(query: String, type: GeocodeType? = definedExternally): <Error class: unknown class><GeocoderService.Result>
Link copied to clipboard
fun geocodeAsync( query: String, type: GeocodeType? = definedExternally): <Error class: unknown class><<Error class: unknown class><GeocoderService.Result>>