2019-03-14 17:31:14 +00:00
|
|
|
defmodule Mobilizon.Service.Geospatial.Mock do
|
2019-03-12 10:52:28 +00:00
|
|
|
@moduledoc """
|
|
|
|
Mock for Geospatial Provider implementations
|
|
|
|
"""
|
|
|
|
alias Mobilizon.Service.Geospatial.Provider
|
|
|
|
alias Mobilizon.Addresses.Address
|
|
|
|
|
|
|
|
@behaviour Provider
|
|
|
|
|
|
|
|
@impl Provider
|
2019-03-14 17:31:14 +00:00
|
|
|
def geocode(_lon, _lat, _options \\ []), do: []
|
2019-03-12 10:52:28 +00:00
|
|
|
|
|
|
|
@impl Provider
|
2019-03-14 17:31:14 +00:00
|
|
|
def search(_q, _options \\ []), do: [%Address{description: "10 rue Jangot, Lyon"}]
|
2019-03-12 10:52:28 +00:00
|
|
|
end
|