HereMapsGeoLocationService class
Methods
-
discoverPlaces({required double lat, required double lon, int size = 20})
→ Future<Map<String, dynamic>>
-
discoverPlaces returns a List of places near the center of the
lat
and lon
given
size
can be given to set the number of results returned by exploreNearbyPlaces
By default the value of size
is set to 20
-
explorePopularPlaces({required double lat, required double lon, PopularPlacesCategory? category, int offset = 20})
→ Future<Map<String, dynamic>>
-
exploreNearbyPlaces returns a List of popular places near the center of the
lat
and lon
given
category
can be given to retrieve the popular places of particular category
offset
can be given to set the number of results returned by exploreNearbyPlaces
By default the value of offset
is set to 20
nextUrl
can be given to fetch the next set of results
-
geoCode({String? country, String? state, String? county, String? city, String? district, String? street, String? houseNumberOrName, String? postalCode, String? searchtext})
→ Future<GeoCodeResponse>
-
geoCode can be used to retrieves the latitude, longitude and complete address details
based on the
searchText
provided
-
geoCodingAutoComplete({required String query, int maxResults = 1})
→ Future<Map<String, dynamic>>
-
geoCodingAutoComplete provides better results for address searches with fewer keystrokes
query
is the mandatory parameter. The Results is returned on the basis of query
maxResults
can be given to restrict the suggestions based on query
The valid value of maxResults
is between 1 to 10
-
getAddress({required double longitude, required double latitude, dynamic options = const GetAddressOptions()})
→ Future<Address?>
-
-
getAddressFromGeoCoordinates(GeoCoordinates location)
→ Future<Address?>
-
-
getAddressList({required double longitude, required double latitude, dynamic options = const GetAddressOptions()})
→ Future<List<Address?>>
-
-
getAddressListFromGeoCoordinates(GeoCoordinates location)
→ Future<List<Address?>>
-
-
getAddressWithGeoLocation()
→ Future<AddressWithGeoLocation?>
-
-
getGeoCoordinates({double accuracy = 5, int retries = 5})
→ Future<GeoCoordinates?>
-
-
getGeoCoordinatesFromAddress(Address address)
→ Future<GeoCoordinates?>
-
-
getGeoCoordinatesListFromAddress(Address address)
→ Future<List<GeoCoordinates?>>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
reverseGeoCode({double? lat, double? lon, GeoCoordinates? geoCoordinates, ReverseGeoCodeMode mode = ReverseGeoCodeMode.retrieveAddresses, int maxResults = 1})
→ Future<GeoCodeResponse>
-
reverseGeoCode retrieves the first address around a specified
lat
& long
using a 250 meter radius to retrieve the address.
maxResults
can be given to get the number of the Results
By default value of maxResults
is 1
mode
defines the Reverse GeCoding Mode
ReverseGeoCodeMode.retrieveAddresses Search for the closest street address or addresses
ReverseGeoCodeMode.retrieveAreas Retrieve the administrative area information for the position provided in the request
ReverseGeoCodeMode.retrieveLandmarks Search for landmarks like parks and lakes in the proximity provided in the request
ReverseGeoCodeMode.trackPosition Retrieve street and address information based on a position and bearing
ReverseGeoCodeMode.retrieveAll Search for streets, administrative areas and landmarks. This mode aggregates the results of the three different modes in one call
https://developer.here.com/documentation/geocoder/dev_guide/topics/reading-geocoding-response.html
-
toString()
→ String
-
A string representation of this object.
inherited