PhotonFeature constructor
PhotonFeature({
- required LatLng coordinates,
- required int osmId,
- required String osmKey,
- required String osmType,
- required String osmValue,
- required String type,
- String? country,
- String? countryIsoCode,
- String? name,
- String? street,
- String? houseNumber,
- String? postcode,
- String? district,
- String? city,
- String? county,
- String? state,
- 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);
}
}