PhotonForwardParams constructor

const PhotonForwardParams({
  1. PhotonBoundingBox? boundingBox,
  2. int? zoom,
  3. double? locationBiasScale,
  4. int? limit,
  5. double? latitude,
  6. double? longitude,
  7. String? langCode,
  8. PhotonLayer? layer,
  9. String? osmTag,
  10. Map<String, String>? additionalQuery,
})

Improve your results based on additional parameters.

  • Prioritize locations within a certain boundingBox or around a certain latitude and longitude. Can be further influenced by zoom and locationBiasScale, see Photon's documentation
  • The langCode is an ISO-639-1 language code. Supported languages are EN, DE, FR. When no langCode is given, the default language is the main language at the result's location.
  • Use layer to filter by a certain layer, see Photon documentation for this. PhotonLayer specifies constants that are ready to use.
  • Use osmTag to filter by certain OSM tags and values, see Photon documentation for this.
  • limit limits the number of search results
  • additionalQuery is for any additional URL query parameter, e.g., features that will be added in the future and aren't yet supported.

Implementation

const PhotonForwardParams(
    {this.boundingBox,
    this.zoom,
    this.locationBiasScale,
    super.limit,
    super.latitude,
    super.longitude,
    super.langCode,
    super.layer,
    super.osmTag,
    super.additionalQuery});