Typespec fixes and refactoring

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-05-03 12:23:09 +02:00
parent f6a17d8b3a
commit 999a33c7c3
10 changed files with 28 additions and 30 deletions

View File

@@ -72,7 +72,7 @@ defmodule Mobilizon.Service.Geospatial.GoogleMaps do
end
end
@spec build_url(:search | :geocode, map(), list()) :: String.t() | no_return
@spec build_url(:search | :geocode | :place_details, map(), list()) :: String.t() | no_return
defp build_url(method, args, options) do
limit = Keyword.get(options, :limit, 10)
lang = Keyword.get(options, :lang, "en")