Added originId property to Photon API response.

Corrected endpoint url for Photon to .io TLD.
This commit is contained in:
Davey Faherty
2025-06-18 17:36:06 +01:00
committed by setop
parent 96ba7d569e
commit 7bfe83b899
2 changed files with 3 additions and 2 deletions

View File

@@ -79,7 +79,8 @@ defmodule Mobilizon.Service.Geospatial.Photon do
geom: coordinates,
timezone: Provider.timezone(coordinates),
postal_code: Map.get(properties, "postcode"),
street: properties |> street_address()
street: properties |> street_address(),
origin_id: "photon:" <> to_string(Map.get(properties, "osm_id"))
}
end)
end