Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in results #2

Open
ericklima-ca opened this issue Nov 18, 2021 · 0 comments
Open

Bug in results #2

ericklima-ca opened this issue Nov 18, 2021 · 0 comments

Comments

@ericklima-ca
Copy link
Owner

ericklima-ca commented Nov 18, 2021

Current

iex> GetGeocode.get "Avenida Coronel Cyrilo Neves"
{:ok,
 %GetGeocode.Geocode{
   city: "Santo Agostinho",
   coords: %GetGeocode.Coords{lat: "-3.0950075", lng: "-60.0611615"},
   full_details: "Avenida Coronel Cyrilo Neves, Comunidade Vila Marinho, Santo Agostinho, Manaus, Região Geográfica Imediata de Manaus, Região Geográfica Intermediária de Manaus, Amazonas, Região Norte, 69000-000, Brasil",
   neighborhood: "Comunidade Vila Marinho",
   postalcode: "Região Norte",
   state: "Região Geográfica Intermediária de Manaus",
   street: "Avenida Coronel Cyrilo Neves"
 }}

Expected

iex> GetGeocode.get "Avenida Coronel Cyrilo Neves"
{:ok,
 %GetGeocode.Geocode{
   city: "Manaus",
   coords: %GetGeocode.Coords{lat: "-3.0950075", lng: "-60.0611615"},
   full_details: "Avenida Coronel Cyrilo Neves, Comunidade Vila Marinho, Santo Agostinho, Manaus, Região Geográfica Imediata de Manaus, Região Geográfica Intermediária de Manaus, Amazonas, Região Norte, 69000-000, Brasil",
   neighborhood: "Santo Agostinho",
   postalcode: "69000-000",
   state: "AM",
   street: "Avenida Coronel Cyrilo Neves"
 }}

Details

Bug in result data. City, neighborhood, state are not correct.

Bug in:

[street, neighborhood, city, _, _, state, _, postalcode | _] =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant