ReverseRequest class

A model class representing a reverse geocoding request.

This class is used to encapsulate the parameters required for making a reverse geocoding request, which involves converting geographic coordinates (latitude and longitude) into a human-readable address.

The ReverseRequest class includes options to specify whether to include detailed address information, extra tags, and alternative names in the response.

Example usage:

ReverseRequest request = ReverseRequest(
  lat: 40.748817,
  lon: -73.985428,
  addressDetails: true,
  extraTags: true,
  nameDetails: true,
);

Properties:

  • lat: The latitude of the location to be reverse geocoded. This is a required parameter.
  • lon: The longitude of the location to be reverse geocoded. This is a required parameter.
  • addressDetails: Specifies whether to include detailed address information in the response. Defaults to false.
  • extraTags: Specifies whether to include extra tags like Wikipedia link, opening hours, etc. Defaults to false.
  • nameDetails: Specifies whether to include a list of alternative names in the results. Defaults to false.

Constructor:

Constructors

ReverseRequest({required double lat, required double lon, bool? addressDetails = true, bool? extraTags = true, bool? nameDetails = true})

Properties

addressDetails bool?
Specifies whether to include detailed address information in the response.
getter/setter pair
extraTags bool?
Specifies whether to include extra tags like Wikipedia link, opening hours, etc.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lat double
The latitude of the location to be reverse geocoded.
final
lon double
The longitude of the location to be reverse geocoded.
final
nameDetails bool?
Specifies whether to include a list of alternative names in the results.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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