FormattedLocation constructor
const
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,
Implementation
const factory FormattedLocation({
///reference to the Nominatim internal database ID
required String placeId,
/// latitude of the centroid of the object
required double lat,
/// longitude of the centroid of the object
required double lon,
required String licence,
///reference to the OSM object
required String osmType,
String? icon,
/// reference to the OSM object
required int osmId,
/// search rank of the object
required int placeRank,
///key of the main OSM tag
required String category,
/// value of the main OSM tag
required String type,
/// computed importance rank
required double importance,
required String addressType,
required String name,
///full comma-separated address
required String displayName,
/// dictionary of address details
required Address address,
/// dictionary with additional useful tags like website or max speed
required Map<String, dynamic> extratags,
/// dictionary with full list of available names including ref etc
required Map<String, dynamic> namedetails,
///area of corner coordinates
required LatLngBounds? boundingBox,
/// GeoBounds of object
required GeoGeometry geojson,
}) = _FormattedLocation;