Trying to adapt a google maps example where we can search for places that are relevant to an area.
https://developers.google.com/maps/documentation/javascript/examples/places-searchbox
In the above example they are able to get results for the search, by inputing some relevant text like : "pharmacy, supermarket.."
I'm trying to limit the results to the viewports lat and lng.
So instead of giving the results (not the searbox results, but the actual places on the map result) for the entire area (and zooming out) we set a limit to only show the results that are within the viewport dimensions.