fix: photon test

This commit is contained in:
setop
2025-11-01 18:05:18 +01:00
parent bfe00e5bd7
commit bdbbb3549b
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
defmodule Mobilizon.Service.Geospatial.Photon do
@moduledoc """
[Photon](https://photon.komoot.de) backend.
[Photon](https://photon.komoot.io) backend.
"""
alias Mobilizon.Addresses.Address

View File

@@ -17,13 +17,14 @@ defmodule Mobilizon.Service.Geospatial.PhotonTest do
|> expect(:call, fn
%{
method: :get,
url: "https://photon.komoot.de/api/?q=10%20rue%20Jangot&lang=en&limit=10"
url: "https://photon.komoot.io/api/?q=10%20rue%20Jangot&lang=en&limit=10"
},
_opts ->
{:ok, %Tesla.Env{status: 200, body: data}}
end)
assert %Address{
origin_id: "photon:3078260611",
locality: "Lyon",
description: "10 Rue Jangot",
region: "Auvergne-Rhône-Alpes",