---
title: new Geocoder(options)
framework: mapkitjs
role: symbol
role_heading: Constructor
path: mapkitjs/geocoder/geocoderconstructor
---

# new Geocoder(options)

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

## Declaration

```data
constructor(options?: ServiceConstructorOptions);
```

## Discussion

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

- [ServiceConstructorOptions](mapkitjs/serviceconstructoroptions.md)
- [getsUserLocation](mapkitjs/service/getsuserlocation.md)
- [language](mapkitjs/service/language.md)
