PhotonApi class

Constructors

PhotonApi({String baseUrl = 'https://photon.komoot.io'})
Creates an instance of the Photon API Client. The baseUrl parameter can be set to a custom URL if needed.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

forwardSearch(String searchText, {int? limit, double? latitude, double? longitude, String? langCode, PhotonBoundingBox? boundingBox, PhotonLayer? layer, Map<String, String>? additionalQuery, bool secure = true}) Future<List<PhotonFeature>>
Does a forward search with the given searchText.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reverseSearch(double latitude, double longitude, {int? limit, String? langCode, int? radius, PhotonLayer? layer, Map<String, String>? additionalQuery, bool secure = true}) Future<List<PhotonFeature>>
Does a reverse search at the given latitude and longitude. Returns an empty list if there are no results near the given location.
toString() String
A string representation of this object.
inherited

Operators

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