NattapongSiri / covid_cb

MIT License
2 stars 1 forks source link

Use Google Map to display nearby hospital #18

Open NattapongSiri opened 4 years ago

NattapongSiri commented 4 years ago

Google Map has pretty nice data on location of hospital. It doesn't require GPS to show approximately nearby hospital as we are not going to pinpoint nearest hospital.

Let's implement some basic map showing in here.

NattapongSiri commented 4 years ago

It turn out that Google Embeded search have some cost as describe here

NattapongSiri commented 4 years ago

Bing search by "hospital" keyword is also not working. An example of search result can be found here

NattapongSiri commented 4 years ago

The only option left is to use OpenStreetMap with Nominatim API and manually mark all hospitals. This will also need user location in order to center map around user location. However, all of this shall be executed on client side to prevent overwhelm workload to their server or having some cache and batched query which make server side code complex. It's well documented in here. There's also easy to use React component for OpenStreetMap here