-
Notifications
You must be signed in to change notification settings - Fork 295
added google maps link #114
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
base: develop
Are you sure you want to change the base?
Conversation
|
Já tem um PR com essa funcionalidade: #103 |
Vi que tem na tela de detalhes do abrigo, adicionei o link da página inicial |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, verdade!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| [capacity, shelteredPeople] | ||
| ); | ||
| const address = encodeURIComponent(data.address); | ||
| const googleMapsUrl = `https://www.google.com/maps/search/?api=1&query=${address}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@La-Rocca ja que temos a latitude e a longitude, não seria mais preciso utilizar eles ao invés da busca pelo endereço?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No #103 me responderam que a UX nao fica tao boa com a latitude e longitude, ja que nao exibe o nome do lugar, contato, etc...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No arquivo de teste do banco, os dados de latitude e longitude estavam vindo nulos, por isso resolvi não usa-los.
Adicionado link para o google maps, assim fica mais fácil identificar o local do abrigo.