Geocoding class
Search locations globally in any language.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
search(
{String apiUrl = 'https://geocoding-api.open-meteo.com/v1/', required String name, int? count, String? language, String? apikey}) → Future -
name
: String to search for. An empty string or only 1 character will return an empty result. 2 characters will only match exact matching locations. 3 and more characters will perform fuzzy matching. The search string can be a location name or a postal code.count
: The number of search results to return. Up to 100 results can be retrieved.language
: Return translated results, if available, otherwise return english or the native location name. Lower-cased.apiUrl
: Custom API URL, format:https://<domain>/<version>/
.apikey
: Only required to commercial use to access reserved API resources for customers.