PhotonFeature class

Contains all data returned from the Photon API

Constructors

PhotonFeature({required LatLng coordinates, required int osmId, required String osmKey, required String osmType, required String osmValue, required String type, String? country, String? countryIsoCode, String? name, String? street, String? houseNumber, String? postcode, String? district, String? city, String? county, String? state, List<LatLng>? extent})
PhotonFeature.fromJson(Map<String, dynamic> json)
factory

Properties

city String?
final
coordinates → LatLng
Coordinates of a place or the center coordinate for a rectangle
final
country String?
final
countryIsoCode String?
ISO 3166-1 alpha-2 code of the country
final
county String?
final
district String?
final
extentBoundingBox PhotonBoundingBox?
The bounding box of a relation (only available if osmType is 'R')
latefinal
hashCode int
The hash code for this object.
no setterinherited
houseNumber String?
final
name String?
final
osmId int
OpenStreetMap ID
final
osmKey String
final
osmType String
Possible values are 'R' (relation), 'W' (way), 'N' (node). This may be changed in the future.
final
osmValue String
final
postcode String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
final
street String?
final
type String
final

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