ReverseGeocodingResponse class

Response model for Neshan reverse-geocoding API.

This model represents the data returned by the Neshan reverse-geocoding API when converting geographic coordinates (latitude/longitude) to a human-readable address.

Based on Neshan API documentation: https://platform.neshan.org/docs/api/reverse-geocoding/

Constructors

ReverseGeocodingResponse({required String status, required String formattedAddress, required String city, required String state, required bool inTrafficZone, required bool inOddEvenZone, String? routeName, String? routeType, String? neighbourhood, String? place, String? municipalityZone, String? village, String? county, String? district})
Creates a ReverseGeocodingResponse instance.
const
ReverseGeocodingResponse.fromJson(Map<String, dynamic> json)
Creates a ReverseGeocodingResponse from JSON data.
factory

Properties

city String
Name of the city.
final
county String?
Name of the county.
final
district String?
Name of the district.
final
formattedAddress String
Complete formatted address including state, city, neighborhood, and street.
final
hashCode int
The hash code for this object.
no setterinherited
inOddEvenZone bool
Whether the point is in odd-even traffic restriction zone.
final
inTrafficZone bool
Whether the point is in traffic restriction zone.
final
municipalityZone String?
Municipality zone number (if available).
final
neighbourhood String?
Name of the neighborhood (if available).
final
place String?
Name of a public place where the point is located (if available).
final
routeName String?
Name of the last street in the address.
final
routeType String?
Type of the last street in the address (e.g., "secondary").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String
Name of the state/province.
final
status String
Status of the API request. "OK" means successful.
final
village String?
Name of the village (if in rural area).
final

Methods

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

Operators

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