Update geospatial package, update config and description.exs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
40658fb6e0
commit
87e9b4c5ef
4 changed files with 52 additions and 112 deletions
|
@ -880,23 +880,17 @@
|
|||
|
||||
config :geospatial, Geospatial.Service, service: Geospatial.Providers.Nominatim
|
||||
|
||||
config :geospatial, Geospatial.Providers.Nominatim,
|
||||
endpoint: "https://nominatim.openstreetmap.org",
|
||||
api_key: nil
|
||||
|
||||
config :geospatial, Geospatial.Providers.Addok, endpoint: "https://api-adresse.data.gouv.fr"
|
||||
|
||||
config :geospatial, Geospatial.Providers.Photon, endpoint: "https://photon.komoot.de"
|
||||
|
||||
config :geospatial, Geospatial.Providers.GoogleMaps,
|
||||
api_key: nil,
|
||||
fetch_place_details: true
|
||||
|
||||
config :geospatial, Geospatial.Providers.MapQuest, api_key: nil
|
||||
config :geospatial, Geospatial.Providers.Nominatim,
|
||||
endpoint: "https://nominatim.openstreetmap.org",
|
||||
api_key: nil
|
||||
|
||||
config :geospatial, Geospatial.Providers.Mimirsbrunn, endpoint: nil
|
||||
|
||||
config :geospatial, Geospatial.Providers.Pelias, endpoint: nil
|
||||
config :geospatial, Geospatial.Providers.Pelias,
|
||||
endpoint: "https://api.geocode.earth",
|
||||
api_key: nil
|
||||
|
||||
config :geospatial, Geospatial.HTTP, user_agent: &Pleroma.Application.user_agent/0
|
||||
|
||||
|
|
|
@ -3582,13 +3582,9 @@
|
|||
type: :module,
|
||||
label: "Geospatial service provider",
|
||||
suggestions: [
|
||||
# Geospatial.Providers.Addok,
|
||||
# Geospatial.Providers.GoogleMaps,
|
||||
# Geospatial.Providers.MapQuest,
|
||||
# Geospatial.Providers.Mimirsbrunn,
|
||||
Geospatial.Providers.Nominatim
|
||||
# Geospatial.Providers.Pelias,
|
||||
# Geospatial.Providers.Photon
|
||||
Geospatial.Providers.GoogleMaps,
|
||||
Geospatial.Providers.Nominatim,
|
||||
Geospatial.Providers.Pelias
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -3612,94 +3608,44 @@
|
|||
suggestions: [nil]
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
group: :geospatial,
|
||||
key: Geospatial.Providers.GoogleMaps,
|
||||
type: :group,
|
||||
description: "Google Maps provider configuration",
|
||||
children: [
|
||||
%{
|
||||
key: :api_key,
|
||||
type: :string,
|
||||
description: "Google Maps API key",
|
||||
suggestions: [nil]
|
||||
},
|
||||
%{
|
||||
key: :fetch_place_details,
|
||||
type: :boolean,
|
||||
description: "Fetch place details"
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
group: :geospatial,
|
||||
key: Geospatial.Providers.Pelias,
|
||||
type: :group,
|
||||
description: "Pelias provider configuration",
|
||||
children: [
|
||||
%{
|
||||
key: :endpoint,
|
||||
type: :string,
|
||||
description: "Pelias endpoint",
|
||||
suggestions: ["https://api.geocode.earth"]
|
||||
},
|
||||
%{
|
||||
key: :api_key,
|
||||
type: :string,
|
||||
description: "Pelias API key",
|
||||
suggestions: [nil]
|
||||
}
|
||||
]
|
||||
}
|
||||
# %{
|
||||
# group: :geospatial,
|
||||
# key: Geospatial.Providers.Addok,
|
||||
# type: :group,
|
||||
# description: "Addok provider configuration",
|
||||
# children: [
|
||||
# %{
|
||||
# key: :endpoint,
|
||||
# type: :string,
|
||||
# description: "Addok endpoint",
|
||||
# suggestions: ["https://api-adresse.data.gouv.fr"]
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# %{
|
||||
# group: :geospatial,
|
||||
# key: Geospatial.Providers.Photon,
|
||||
# type: :group,
|
||||
# description: "Photon provider configuration",
|
||||
# children: [
|
||||
# %{
|
||||
# key: :endpoint,
|
||||
# type: :string,
|
||||
# description: "Photon endpoint",
|
||||
# suggestions: ["https://photon.komoot.de"]
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# %{
|
||||
# group: :geospatial,
|
||||
# key: Geospatial.Providers.GoogleMaps,
|
||||
# type: :group,
|
||||
# description: "Google Maps provider configuration",
|
||||
# children: [
|
||||
# %{
|
||||
# key: :api_key,
|
||||
# type: :string,
|
||||
# description: "Google Maps API key",
|
||||
# suggestions: [nil]
|
||||
# },
|
||||
# %{
|
||||
# key: :fetch_place_details,
|
||||
# type: :boolean,
|
||||
# description: "Fetch place details"
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# %{
|
||||
# group: :geospatial,
|
||||
# key: Geospatial.Providers.MapQuest,
|
||||
# type: :group,
|
||||
# description: "MapQuest provider configuration",
|
||||
# children: [
|
||||
# %{
|
||||
# key: :api_key,
|
||||
# type: :string,
|
||||
# description: "MapQuest API key",
|
||||
# suggestions: [nil]
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# %{
|
||||
# group: :geospatial,
|
||||
# key: Geospatial.Providers.Mimirsbrunn,
|
||||
# type: :group,
|
||||
# description: "Mimirsbrunn provider configuration",
|
||||
# children: [
|
||||
# %{
|
||||
# key: :endpoint,
|
||||
# type: :string,
|
||||
# description: "Mimirsbrunn endpoint",
|
||||
# suggestions: [nil]
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# %{
|
||||
# group: :geospatial,
|
||||
# key: Geospatial.Providers.Pelias,
|
||||
# type: :group,
|
||||
# description: "Pelias provider configuration",
|
||||
# children: [
|
||||
# %{
|
||||
# key: :endpoint,
|
||||
# type: :string,
|
||||
# description: "Pelias endpoint",
|
||||
# suggestions: [nil]
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
]
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -202,7 +202,7 @@ defp deps do
|
|||
{:phoenix_live_dashboard, "~> 0.6.2"},
|
||||
{:ecto_psql_extras, "~> 0.6"},
|
||||
{:icalendar, "~> 1.1"},
|
||||
{:geospatial, "~> 0.1.0"},
|
||||
{:geospatial, "~> 0.2.0"},
|
||||
{:prom_ex, "~> 1.7.1"},
|
||||
{:unplug, "~> 1.0"},
|
||||
|
||||
|
|
6
mix.lock
6
mix.lock
|
@ -8,7 +8,7 @@
|
|||
"cachex": {:hex, :cachex, "3.3.0", "6f2ebb8f27491fe39121bd207c78badc499214d76c695658b19d6079beeca5c2", [:mix], [{:eternal, "~> 1.2", [hex: :eternal, repo: "hexpm", optional: false]}, {:jumper, "~> 1.0", [hex: :jumper, repo: "hexpm", optional: false]}, {:sleeplocks, "~> 1.1", [hex: :sleeplocks, repo: "hexpm", optional: false]}, {:unsafe, "~> 1.0", [hex: :unsafe, repo: "hexpm", optional: false]}], "hexpm", "d90e5ee1dde14cef33f6b187af4335b88748b72b30c038969176cd4e6ccc31a1"},
|
||||
"calendar": {:hex, :calendar, "1.0.0", "f52073a708528482ec33d0a171954ca610fe2bd28f1e871f247dc7f1565fa807", [:mix], [{:tzdata, "~> 0.5.20 or ~> 0.1.201603 or ~> 1.0", [hex: :tzdata, repo: "hexpm", optional: false]}], "hexpm", "990e9581920c82912a5ee50e62ff5ef96da6b15949a2ee4734f935fdef0f0a6f"},
|
||||
"captcha": {:git, "https://gitlab.com/soapbox-pub/elixir-libraries/elixir-captcha.git", "e0f16822d578866e186a0974d65ad58cddc1e2ab", [ref: "e0f16822d578866e186a0974d65ad58cddc1e2ab"]},
|
||||
"castore": {:hex, :castore, "0.1.18", "deb5b9ab02400561b6f5708f3e7660fc35ca2d51bfc6a940d2f513f89c2975fc", [:mix], [], "hexpm", "61bbaf6452b782ef80b33cdb45701afbcf0a918a45ebe7e73f1130d661e66a06"},
|
||||
"castore": {:hex, :castore, "0.1.19", "a2c3e46d62b7f3aa2e6f88541c21d7400381e53704394462b9fd4f06f6d42bb6", [:mix], [], "hexpm", "e96e0161a5dc82ef441da24d5fa74aefc40d920f3a6645d15e1f9f3e66bb2109"},
|
||||
"certifi": {:hex, :certifi, "2.9.0", "6f2a475689dd47f19fb74334859d460a2dc4e3252a3324bd2111b8f0429e7e21", [:rebar3], [], "hexpm", "266da46bdb06d6c6d35fde799bcb28d36d985d424ad7c08b5bb48f5b5cdd4641"},
|
||||
"combine": {:hex, :combine, "0.10.0", "eff8224eeb56498a2af13011d142c5e7997a80c8f5b97c499f84c841032e429f", [:mix], [], "hexpm", "1b1dbc1790073076580d0d1d64e42eae2366583e7aecd455d1215b0d16f2451b"},
|
||||
"comeonin": {:hex, :comeonin, "5.3.2", "5c2f893d05c56ae3f5e24c1b983c2d5dfb88c6d979c9287a76a7feb1e1d8d646", [:mix], [], "hexpm", "d0993402844c49539aeadb3fe46a3c9bd190f1ecf86b6f9ebd71957534c95f04"},
|
||||
|
@ -53,7 +53,7 @@
|
|||
"gen_stage": {:hex, :gen_stage, "0.14.3", "d0c66f1c87faa301c1a85a809a3ee9097a4264b2edf7644bf5c123237ef732bf", [:mix], [], "hexpm"},
|
||||
"gen_state_machine": {:hex, :gen_state_machine, "2.0.5", "9ac15ec6e66acac994cc442dcc2c6f9796cf380ec4b08267223014be1c728a95", [:mix], [], "hexpm"},
|
||||
"geo": {:hex, :geo, "3.4.3", "0ddf3f681993d32c397e5ef346e7b4b6f36f39ed138502429832fa4000ebb9d5", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "e23f2892e5437ec8b063cee1beccec89c58fd841ae11133304700235feb25552"},
|
||||
"geospatial": {:hex, :geospatial, "0.1.0", "56a38e9ffae989d02e1db1c7d8d5075089ce3a0d7d97964be1f9d84ef85f7a74", [:mix], [{:geo, "~> 3.4", [hex: :geo, repo: "hexpm", optional: false]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: false]}, {:tesla, "~> 1.4.0", [hex: :tesla, repo: "hexpm", optional: false]}, {:tz_world, "~> 1.0", [hex: :tz_world, repo: "hexpm", optional: false]}], "hexpm", "08a7826d1f19ea1a6429c016f2285b5630c55d79a5f5732968845fc8f958e0de"},
|
||||
"geospatial": {:hex, :geospatial, "0.2.0", "c6c9f57df647cabbda71825bbba8465645002922a0c2e6410dc50279dbc95265", [:mix], [{:geo, "~> 3.4", [hex: :geo, repo: "hexpm", optional: false]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: false]}, {:tesla, "~> 1.4.0", [hex: :tesla, repo: "hexpm", optional: false]}, {:tz_world, "~> 1.0", [hex: :tz_world, repo: "hexpm", optional: false]}], "hexpm", "b2f0e8f05a3d40f5473bf546d6b971bb82357e28c4f62c93c160d9e3c3581cb0"},
|
||||
"gettext": {:git, "https://github.com/tusooa/gettext.git", "72fb2496b6c5280ed911bdc3756890e7f38a4808", [ref: "72fb2496b6c5280ed911bdc3756890e7f38a4808"]},
|
||||
"glob": {:hex, :glob, "1.0.0", "b4d54d66e7797ce037cdd18f2587fc9932187355340e222cafe125cd333d7a0a", [:rebar3], [], "hexpm", "ca25de25ac5a762ba6c979718ae6afef8402cfc9155b87479d215fbe676801e1"},
|
||||
"gun": {:hex, :gun, "2.0.0-rc.2", "7c489a32dedccb77b6e82d1f3c5a7dadfbfa004ec14e322cdb5e579c438632d2", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}], "hexpm", "6b9d1eae146410d727140dbf8b404b9631302ecc2066d1d12f22097ad7d254fc"},
|
||||
|
@ -133,7 +133,7 @@
|
|||
"tesla": {:hex, :tesla, "1.4.4", "bb89aa0c9745190930366f6a2ac612cdf2d0e4d7fff449861baa7875afd797b2", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.3", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, "~> 1.3", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.0", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "d5503a49f9dec1b287567ea8712d085947e247cb11b06bc54adb05bfde466457"},
|
||||
"timex": {:hex, :timex, "3.7.5", "3eca56e23bfa4e0848f0b0a29a92fa20af251a975116c6d504966e8a90516dfd", [:mix], [{:combine, "~> 0.10", [hex: :combine, repo: "hexpm", optional: false]}, {:gettext, "~> 0.10", [hex: :gettext, repo: "hexpm", optional: false]}, {:tzdata, "~> 1.0", [hex: :tzdata, repo: "hexpm", optional: false]}], "hexpm", "a15608dca680f2ef663d71c95842c67f0af08a0f3b1d00e17bbd22872e2874e4"},
|
||||
"trailing_format_plug": {:hex, :trailing_format_plug, "0.0.7", "64b877f912cf7273bed03379936df39894149e35137ac9509117e59866e10e45", [:mix], [{:plug, "> 0.12.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "bd4fde4c15f3e993a999e019d64347489b91b7a9096af68b2bdadd192afa693f"},
|
||||
"tz_world": {:hex, :tz_world, "1.1.0", "af078ccbc63b618912d05a18402abf450252535a086e5a5e5189b54b710e5653", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:geo, "~> 1.0 or ~> 2.0 or ~> 3.3", [hex: :geo, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "8e0a89a8e00968e0260f3176cab03c8960393cc10990ad10622d9eceb7ccfbe6"},
|
||||
"tz_world": {:hex, :tz_world, "1.2.0", "74ae7ef660a70ab35a25af4dfba46b1354fc904eb5da9b2464151cf885fc1a2c", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:geo, "~> 1.0 or ~> 2.0 or ~> 3.3", [hex: :geo, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "3cdd255f0a96942496a9edf61c86976a07fa6c0552ad287604c282b9bc1d9cf8"},
|
||||
"tzdata": {:hex, :tzdata, "1.0.5", "69f1ee029a49afa04ad77801febaf69385f3d3e3d1e4b56b9469025677b89a28", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "55519aa2a99e5d2095c1e61cc74c9be69688f8ab75c27da724eb8279ff402a5a"},
|
||||
"ueberauth": {:hex, :ueberauth, "0.6.3", "d42ace28b870e8072cf30e32e385579c57b9cc96ec74fa1f30f30da9c14f3cc0", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "afc293d8a1140d6591b53e3eaf415ca92842cb1d32fad3c450c6f045f7f91b60"},
|
||||
"ueberauth_facebook": {:hex, :ueberauth_facebook, "0.8.0", "9ec8571f804dd5c06f4e305d70606b39fc0ac8a8f43ed56ebb76012a97d14729", [:mix], [{:oauth2, "~> 0.9", [hex: :oauth2, repo: "hexpm", optional: false]}, {:ueberauth, "~> 0.4", [hex: :ueberauth, repo: "hexpm", optional: false]}], "hexpm", "6d0c88d6ea4cc40cf99b3abcf8aaa435a31f836dc8921e8b4015d760e183f7ba"},
|
||||
|
|
Loading…
Reference in a new issue