Open NattapongSiri opened 4 years ago
It turn out that Google Embeded search have some cost as describe here
Bing search by "hospital" keyword is also not working. An example of search result can be found here
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
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.