Contents

new Geocoder(options)

Creates a geocoder object and sets optional language and user location properties.

Declaration

constructor(options?: ServiceConstructorOptions);

Discussion

To use geocoding, create an instance of Geocoder. Optionally, you can set the language and getsUserLocation properties of a Geocoder object on initialization, as the following examples shows:

const geocoder = new mapkit.Geocoder({
    language: "en-GB",
    getsUserLocation: true
});

See Also

Creating a geocoder object