Add GeoSpatial backends for geocoding

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Geospatial Backend

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-03-12 11:52:28 +01:00
parent f7284740e3
commit 98b7618338
29 changed files with 1301 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
defmodule Mobilizon.Mobilizon.Service.Geospatial.Mock do
@moduledoc """
Mock for Geospatial Provider implementations
"""
alias Mobilizon.Service.Geospatial.Provider
alias Mobilizon.Addresses.Address
@behaviour Provider
@impl Provider
def geocode(_lon, _lat, _options \\ []), do: [%Address{}]
@impl Provider
def search(_q, _options \\ []), do: [%Address{}]
end