mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-28 19:06:23 +00:00
16 lines
399 B
Elixir
16 lines
399 B
Elixir
defmodule Mobilizon.Service.Geospatial.Mock do
|
|
@moduledoc """
|
|
Mock for Geospatial Provider implementations.
|
|
"""
|
|
|
|
alias Mobilizon.Addresses.Address
|
|
alias Mobilizon.Service.Geospatial.Provider
|
|
|
|
@behaviour Provider
|
|
|
|
@impl Provider
|
|
def geocode(_lon, _lat, _options \\ []), do: []
|
|
|
|
@impl Provider
|
|
def search(_q, _options \\ []), do: [%Address{description: "10 rue Jangot, Lyon"}]
|
|
end
|