FormattedLocation class

Annotations
  • @freezed

Constructors

FormattedLocation({required String placeId, required double lat, required double lon, required String licence, required String osmType, String? icon, required int osmId, required int placeRank, required String category, required String type, required double importance, required String addressType, required String name, required String displayName, required Address address, required Map<String, dynamic> extratags, required Map<String, dynamic> namedetails, required LatLngBounds? boundingBox, required GeoGeometry geojson})
const
factory

Properties

address Address
dictionary of address details
no setterinherited
addressType String
no setterinherited
boundingBox LatLngBounds?
area of corner coordinates
no setterinherited
category String
key of the main OSM tag
no setterinherited
copyWith → $FormattedLocationCopyWith<FormattedLocation>
no setterinherited
displayName String
full comma-separated address
no setterinherited
extratags Map<String, dynamic>
dictionary with additional useful tags like website or max speed
no setterinherited
geojson GeoGeometry
GeoBounds of object
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
icon String?
no setterinherited
identifier String
no setter
importance double
computed importance rank
no setterinherited
lat double
latitude of the centroid of the object
no setterinherited
licence String
no setterinherited
lon double
longitude of the centroid of the object
no setterinherited
name String
no setterinherited
namedetails Map<String, dynamic>
dictionary with full list of available names including ref etc
no setterinherited
osmId int
reference to the OSM object
no setterinherited
osmType String
reference to the OSM object
no setterinherited
placeId String
reference to the Nominatim internal database ID
no setterinherited
placeRank int
search rank of the object
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
value of the main OSM tag
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toLatLng() LatLng
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) FormattedLocation
fromLatLng({required double lat, required double lon, String placeId = '', String addressType = '', String category = '', String licence = '', String type = '', String name = '', String osmType = '', String? displayName, String? icon, Address address = const Address(), Map<String, String> names = const {}, Map<String, String> extratags = const {}, Map<String, String> namedetails = const {}, LatLngBounds? boundingBox, GeoGeometry? geojson, double importance = 0, int placeRank = 0, int osmId = 0}) FormattedLocation