codeforsanjose / disaster-response-sj

Exploration of adding civic tech component to San Jose disaster response
MIT License
7 stars 12 forks source link

Add Geocoder #72

Closed sunnymui closed 5 years ago

sunnymui commented 5 years ago

Adds a geocoder module to the create post form to grab the longitude and latitude automatically from the LocationIQ api based on the street address entered in the form.

Planning to also show a loading animation while ApiLoading = true in another update.

UPDATE Issues resolved, see latest post

sunnymui commented 5 years ago

Main question is how I can get that map display to update when the longitude/latitude is changed. I'm not exactly sure how to use useEffect with the mapDisplay component

sunnymui commented 5 years ago

I did some super serial refactoring and issue resolving based on the notes taken during the last Code for San Jose Meeting. These changes were implemented in the latest 7 commits added to this PR.