PlaceGeocode class

The model represents the location.

Place returned when searching for locations by geocoding service GeocodingService.

Constructors

PlaceGeocode(Map<String, dynamic> _data, {required String? name, required double? latitude, required double? longitude, required Map<WeatherLanguage, String>? localNames, required String? countryCode, required String? state})
const
PlaceGeocode.fromJson(Map<String, dynamic> jsonData)
Creating PlaceGeocode instance from json.
factory

Properties

countryCode String?
Country code. Please use ISO 3166-alpha2 country codes.
final
hashCode int
Same hashCode if longitude and latitude are the same.
no setteroverride
latitude double?
Latitude of the weather observation.
final
localNames Map<WeatherLanguage, String>?
Name of the found location in different languages.
final
longitude double?
Longitude of the weather observation.
final
name String?
Name of the found location.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
State of the found location.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The original JSON data from the API
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Two PlaceGeocodes are considered equal if their longitude and latitude are the same.
override