Packages

This package is used for learning purposes on how to use 'mix' and 'hex' for sharing elixir code. Do NOT waste your time here. The License is MIT, but the project uses a private api.

Current section

Files

Jump to
cape lib how_to es_feature_info.ex
Raw

lib/how_to/es_feature_info.ex

defmodule HowTo.EsFeatureInfo do
alias Arpas.REST.Esri.Query, as: Equery
alias Arpas.REST.Esri.Api, as: Eapi
def server_url do
servizio = "a"
specifico = "b"
nome_feature = "c"
_url =
"https://services#{servizio}.arcgis.com/#{specifico}/ArcGIS/rest/services/#{nome_feature}/FeatureServer/"
Equery.url_test()
end
def info_features(url \\ server_url()) do
Equery.dammi(%Arpas.REST.Esri.Query{url: url, tipo: :feature_info})
end
def features(url \\ server_url()) do
Equery.dammi(%Arpas.REST.Esri.Query{url: url, tipo: :feature_table, feature: "0"})
end
def all_services do
Eapi.layers()
end
end