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

Evaluate changing the neighborhood field for a Google Map Pin #88

Open
camposcristian opened this issue Mar 21, 2020 · 4 comments
Open

Comments

@camposcristian
Copy link
Contributor

camposcristian commented Mar 21, 2020

Neighbourhoods in Paraguay are quite confusing and not very well known by everyone. If users can just leave a pin on the map with a radio it could be easier to track the area and future cases. Here's an example of confusing neighbourhoods:

image

@pA1nD
Copy link
Member

pA1nD commented Mar 21, 2020

ohh.. that's indeed a problem. @Deeliapatricia @camposcristianeze would it be better to search by the street?

I put it like this for people to not use their exact address

@camposcristian
Copy link
Contributor Author

camposcristian commented Mar 21, 2020

Yep, def the idea won't be to use their exact address 👍 Streets are also repeating a bit across neighbourhoods and districts so I'd avoid that one as well

One thing I found is https://apps.senatics.gov.py/dinacopa/#/zona/zonaspostales
Debugging this I got a JSON of all districts (which is maybe a more common thing to use here) and then neighbourhoods... Thinking to make a component which detects closer districts by location and then filters the list of neighbourhoods?

BTW How are you geo-filtering Paraguay using the PlacesAutoComplete component? Is it through an env var? Couldn't find it

@jmayalag
Copy link
Contributor

jmayalag commented Mar 21, 2020

How accurate is the location provided by the browser? Could we add a CovPy wants to know your location?

@pA1nD
Copy link
Member

pA1nD commented Mar 24, 2020

@jmayalag I think that would be something that could scare a numbers of users away.

@camposcristianeze SelectPlace component, line 22.

.getPlacePredictions(
      {
        input: input,
        types: ['(regions)'],
        componentRestrictions: { country: 'py' }
      },

I'm directly using the Google getPlacesPredictions API where I can pass an object for configuration.

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

3 participants