Geocoding search for POIs near the user’s location
Geocoding control search results filter by type (
poi) and given higher priority for the results near the user’s location. Use the
proximity options in the control constructor to search for points of interest (POIs) near the user’s location. Geographical point given as an latitude and longitude [lat, lng]. See all geocoding control options in the geocoding control reference documentation. In the example below, we to prioritize results near Time Square in New York (Ex. “hotel”, “bar”). Check out the place types list.