PhotonFeature constructor

PhotonFeature({
  1. required LatLng coordinates,
  2. required int osmId,
  3. required String osmKey,
  4. required String osmType,
  5. required String osmValue,
  6. required String type,
  7. String? country,
  8. String? countryIsoCode,
  9. String? name,
  10. String? street,
  11. String? houseNumber,
  12. String? postcode,
  13. String? district,
  14. String? city,
  15. String? county,
  16. String? state,
  17. List<LatLng>? extent,
})

Implementation

PhotonFeature(
    {required this.coordinates,
    required this.osmId,
    required this.osmKey,
    required this.osmType,
    required this.osmValue,
    required this.type,
    this.country,
    this.countryIsoCode,
    this.name,
    this.street,
    this.houseNumber,
    this.postcode,
    this.district,
    this.city,
    this.county,
    this.state,
    List<LatLng>? extent}) {
  if (extent != null && extent.isNotEmpty) {
    final northWest = extent[0];
    final southEast = extent[1];
    extentBoundingBox = PhotonBoundingBox(northWest.longitude,
        southEast.latitude, southEast.longitude, northWest.latitude);
  }
}