We'll create fresh WordPress site with Nearby Places Search installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Nearby Places Search: This Plugin integrates with the Google Places and GMap.
Shows a list of places of a certain type and configurable from the back-end
settings within the specified radius for specified location.
Google Maps API Key.
Shortcode : [nearby_places_search_code]
In path (wp-admin/options-general.php?page=searchsettings) configure the search settings for
places.
You can change the type of place, the center point and the radius from the
center point in the configuration page.
Copy the shortcode [nearby_places_search_code],Paste the Shortcode into Your Page , Post or any custom post type.
Location Types – Location Type is restricted to select only one value.
See https://developers.google.com/places/documentation/supported_types
for supported types.
Default values set as: Atm|Bank|Hospital|Park|Restaurant|School
Google API Authentication Method – ‘API Key’ or ‘Google Maps API for Work’
As per method selection add ‘Google Maps API Key’.
Location – The latitude/longitude around which to retrieve the information
of place. This must be specified as latitude,longitude.
Default value set to 18.5204, 73.8567 (Pune, Maharashtra, India).
Radius – Defines the distance (in meters) within which to return place
results. The maximum allowed radius is 50000 meters. Default set to 1000 meter.
Note : Default configuration value define at ‘config/nearby_places_search_config.php’
https://developers.google.com/places/web-service/search#PlaceSearchRequests