ReverseGeocodingOptions

Reverse geocoding request options.

  • Decides how results are sorted.

    See more
  • Point to reverse geocode.

  • Decides how results are sorted. Distance by default.

    Options are distance, which causes the closest feature to always be returned first, and score, which allows high-prominence features to be sorted higher than nearer, lower-prominence features.

  • Specify the maximum number of results to return. The default is 1 and the maximum supported is 5. Increasing the limit allows returning multiple features of the same type, but only for one type (for example, multiple address results). Consequently, setting limit to a higher-than-default value requires specifying exactly one types parameter.

  • Setting limit to a higher-than-default value requires specifying exactly one types parameter.

  • Limit results to one or more countries. Permitted values are ISO 3166 alpha 2 country codes (e.g. US, DE, GB)

  • List of language codes which used to provide localized results, order matters.

    Locale.preferredLanguages used as default or ["en"] if none. Specify the user’s language. This parameter controls the language of the text supplied in responses, and also affects result scoring, with results matching the user’s query in the requested language being preferred over results that match in another language. For example, an autocomplete query for things that start with Frank might return Frankfurt as the first result with an English (en) language parameter, but Frankreich (“France”) with a German (de) language parameter.

  • Designated initialiser