SearchInfo.fromPhotonAPI constructor

SearchInfo.fromPhotonAPI(
  1. Map data
)

Implementation

SearchInfo.fromPhotonAPI(Map data)
    : this.point = GeoPoint(
          latitude: data["geometry"]["coordinates"][1],
          longitude: data["geometry"]["coordinates"][0]),
      this.address = Address.fromPhotonAPI(data["properties"]);