NominatimResponse class

Represents the response from the Nominatim reverse geocoding API.

This class contains various details about a location, including its coordinates, classification, and additional metadata.

For more information, refer to the Nominatim API documentation.

Constructors

NominatimResponse({int? placeId, String? licence, String? osmType, int? osmId, String? lat, String? lon, String? addressClass, String? category, String? type, int? placeRank, double? importance, String? addresstype, String? name, String? displayName, Map<String, dynamic>? address, Map<String, dynamic>? extraTags, Map<String, dynamic>? nameDetails, List<String>? boundingbox})
Constructs a NominatimResponse instance.
NominatimResponse.fromJson(Map<String, dynamic> json)
Constructs a NominatimResponse instance from a JSON object.

Properties

address Map<String, dynamic>?
A map containing detailed address information.
getter/setter pair
addressClass String?
The classification of the location (e.g., building, road).
getter/setter pair
addresstype String?
The type of the location (e.g., road, place).
getter/setter pair
boundingbox List<String>?
A list of corner coordinates defining the bounding box of the area.
getter/setter pair
category String?
The main category of the OSM tag.
getter/setter pair
displayName String?
The full comma-separated address of the location.
getter/setter pair
extraTags Map<String, dynamic>?
A map containing additional useful tags such as website or max speed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
importance double?
The computed importance rank of the location.
getter/setter pair
lat String?
The latitude of the centroid of the object.
getter/setter pair
licence String?
The licence under which the data is provided.
getter/setter pair
lon String?
The longitude of the centroid of the object.
getter/setter pair
name String?
The name of the location.
getter/setter pair
nameDetails Map<String, dynamic>?
A map containing a full list of available names, including references.
getter/setter pair
osmId int?
The ID of the OSM object.
getter/setter pair
osmType String?
The type of the OpenStreetMap (OSM) object (e.g., node, way, relation).
getter/setter pair
placeId int?
The internal database ID used by Nominatim.
getter/setter pair
placeRank int?
The search rank of the object.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The specific type of the OSM tag.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited