So there is this basic example of a google map with a searchbox: https://developers.google.com/maps/documentation/javascript/examples/places-searchbox
I want to accomplish something very simple.
I'd like to just hardcode some locations (may be some simple array/object with their latitudes and longitudes) and then when you search for place, for example, Washington, then those locations are displayed (with marker) if some of them are indeed inside Washington. If I search for Africa and some of my locations are inside africa, I want them to be displayed. And if I search for a place which has none of my locations, then they should simply be not displayed.
I also found this — https://developers.google.com/places/documentation/actions#adding_a_place.
But I am not sure if that is what I should use for my purpose (or should I?). And if it is, I'm not sure how to use it — where do I send the suggested JSON data?
Thanks in advance!