Struct representing address data from BrasilAPI CEP v2.
This struct contains postal code information including address details and geographic coordinates when available.
Summary
Functions
Creates an Address struct from a map.
Types
Functions
Creates an Address struct from a map.
Examples
iex> map = %{
...> "cep" => "89010025",
...> "state" => "SC",
...> "city" => "Blumenau",
...> "neighborhood" => "Centro",
...> "street" => "Rua Doutor Luiz de Freitas Melro",
...> "service" => "viacep",
...> "location" => %{
...> "type" => "Point",
...> "coordinates" => %{}
...> }
...> }
iex> Brasilapi.Cep.Address.from_map(map)
%Brasilapi.Cep.Address{
cep: "89010025",
state: "SC",
city: "Blumenau",
neighborhood: "Centro",
street: "Rua Doutor Luiz de Freitas Melro",
service: "viacep",
location: %{type: "Point", coordinates: %{}}
}