Added originId property to Photon API response.
Corrected endpoint url for Photon to .io TLD.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user