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

address data is all over the place #62

Open
evanrich opened this issue Sep 11, 2024 · 1 comment
Open

address data is all over the place #62

evanrich opened this issue Sep 11, 2024 · 1 comment

Comments

@evanrich
Copy link

Got the demo running, but it seems kind of haphazard.

If I type in a place, say, 636 A Street in Antioch CA, and I print the terms, I get:

I/flutter (19599): 636 A Street
I/flutter (19599): Antioch
I/flutter (19599): CA
I/flutter (19599): USA

great, so I can assume term[0] is the street number and name, term[1] is the city, term[2] is the state, etc. However, if i pick somewhere internationally, lets say the Eiffel tower, i get this:

I/flutter (19599): Eiffel Tower
I/flutter (19599): Avenue Gustave Eiffel
I/flutter (19599): Paris
I/flutter (19599): France

so now [0] is the place (fine), [1] is the street (vs city before), [2] is the city, and [3] is the country. one more example, mission college in santa clara, ca:

I/flutter (19599): 3000
I/flutter (19599): Mission College Blvd
I/flutter (19599): Santa Clara
I/flutter (19599): CA
I/flutter (19599): USA

now [0] is the bldg, [1] is the street, [2] is the city, [3] is the state, [4] is the country.

So depending on what you enter, country could be [3], [4]. etc. isn't there a way to definitively say City = X, State = Y, Country = Z, etc?

@Joao-VictorF
Copy link

I'm facing the same issue. +1

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

2 participants