lib_lat_lon v0.2.0 LibLatLon.Info
Link to this section Summary
Functions
%{
bounds: ["41.3876663", "41.3917431", "2.196602", "2.2031084"],
details: %{
"city" => "Barcelona",
"city_district" => "Sant Martí",
"country" => "Spain",
"country_code" => "es",
"county" => "BCN",
"postcode" => "08020",
"road" => "Avinguda del Litoral",
"state" => "Catalonia",
"suburb" => "la Vila Olímpica del Poblenou"
},
display: "Avinguda del Litoral, la Vila Olímpica del Poblenou, Sant Martí, Barcelona, BCN, Catalonia, 08020, Spain",
lat: "41.3899932",
lon: "2.2000054",
meta: %{
"licence" => "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
"osm_id" => "47123759",
"osm_type" => "way",
"place_id" => "82181109"
}
}
Link to this section Types
Link to this type
t()
t() :: %LibLatLon.Info{address: binary(), bounds: LibLatLon.Bounds.t(), coords: LibLatLon.Coords.t(), details: map(), meta: map()}
Link to this section Functions
Link to this function
format(info, format)
Link to this function
from_map(map)
%{
bounds: ["41.3876663", "41.3917431", "2.196602", "2.2031084"],
details: %{
"city" => "Barcelona",
"city_district" => "Sant Martí",
"country" => "Spain",
"country_code" => "es",
"county" => "BCN",
"postcode" => "08020",
"road" => "Avinguda del Litoral",
"state" => "Catalonia",
"suburb" => "la Vila Olímpica del Poblenou"
},
display: "Avinguda del Litoral, la Vila Olímpica del Poblenou, Sant Martí, Barcelona, BCN, Catalonia, 08020, Spain",
lat: "41.3899932",
lon: "2.2000054",
meta: %{
"licence" => "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
"osm_id" => "47123759",
"osm_type" => "way",
"place_id" => "82181109"
}
}
Link to this function
from_map!(input)