@JsType(isNative=true, namespace="Cesium", name="IonGeocoderService") public class IonGeocoderService extends Object implements GeocoderService
Constructor and Description |
---|
IonGeocoderService(IonGeocoderServiceOptions options)
Provides geocoding through Cesium ion.
|
Modifier and Type | Method and Description |
---|---|
static IonGeocoderService |
create(Scene scene)
Fast create
IonGeocoderService instance by Scene |
Promise<GeocoderResult[],Void> |
geocode(String query)
Process query request to service
|
Promise<GeocoderResult[],Void> |
geocode(String query,
GeocodeType type)
Process query request to service
|
@JsConstructor public IonGeocoderService(IonGeocoderServiceOptions options)
options
- IonGeocoderServiceOptions
object.@JsOverlay public static IonGeocoderService create(Scene scene)
IonGeocoderService
instance by Scenescene
- The sceneIonGeocoderService
instance;@JsMethod public Promise<GeocoderResult[],Void> geocode(String query)
query
- The query to be sent to the geocoder service@JsMethod public Promise<GeocoderResult[],Void> geocode(String query, GeocodeType type)
query
- The query to be sent to the geocoder servicetype
- The type of geocode to perform.Copyright © 2019. All rights reserved.