
Directorist - Nearby Amenities
A powerful extension for Directorist that displays nearby amenities on single listing pages using Google Places API only.
Directorist – Nearby Amenities enhances your Directorist listings by automatically displaying nearby places and amenities based on the listing’s location. The plugin integrates with Google Places API to fetch real-time data about nearby establishments and calculates travel times using different transportation modes.
70+ Amenity Types: Support for a wide range of place types including:
- Essentials (Hospitals, Clinics, Pharmacies, Dentists, Veterinary Care)
- Transportation (Bus Stops, Train Stations, Airports, Parking)
- Education (Schools, Universities, Libraries)
- Shopping (Malls, Stores, Supermarkets, Convenience Stores)
- Food & Drinks (Restaurants, Cafes, Bars, Bakeries)
- Lifestyle & Leisure (Gyms, Spas, Movie Theaters, Museums)
- Services (ATMs, Banks, Post Offices, Police Stations)
- And many more…
Two Display Modes:
- Distance Mode: Shows amenities with travel time calculations (walking, driving, cycling, transit)
- Amenities Mode: Displays a simple list of nearby places without travel time
Travel Time Calculation: Automatically calculates and displays travel time using Google Distance Matrix API with support for:
- Walking
- Driving
- Cycling
- Transit
Ajax Loading: Amenities load asynchronously via Ajax to improve page load performance
Google Maps Integration: Click on any amenity to view its location on Google Maps in a new tab
Customizable Settings:
- Custom titles for distance and amenities sections
- Configurable search radius (in meters)
- Maximum number of amenities per type
- Enable/disable icon colors
- Select transportation mode for travel time
Responsive Design: Fully responsive layout that works on all devices
Translation Ready: Fully internationalized with POT file included
Icon Support: Each amenity type has a dedicated Font Awesome icon
Color Customization: Optional color-coded icons for better visual distinction
- WordPress 5.2 or higher
- Directorist plugin (active)
- Google Maps API Key with the following APIs enabled:
- Places API
- Distance Matrix API
- PHP 7.4 or higher
- Upload the plugin files to
/wp-content/plugins/directorist-nearby-amenities/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Ensure Directorist plugin is installed and activated
- Configure your Google Maps API Key in Directorist settings
- Add the “Nearby Amenities” widget to your single listing page layout
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the following APIs:
- Places API
- Distance Matrix API
- Create credentials (API Key)
- Add the API Key in Directorist Settings → General → Map Settings
- Go to Directorist → Settings → Single Listing → Content Builder
- Add the “Nearby Amenities” widget to your desired section
- Configure the widget options:
- Label: Custom label for the widget
- Icon: Choose an icon for the widget
- By Distance Title: Title for the distance section
- By Distance Amenities: Comma-separated list of amenity types to show with travel time (e.g.,
hospital, doctor, pharmacy) - Nearby Amenities Title: Title for the amenities section
- Nearby Amenities: Comma-separated list of amenity types to show (e.g.,
restaurant, cafe, supermarket) - Radius: Search radius in meters (default: 500)
- Mode: Transportation mode for travel time (walking, driving, cycling, transit)
- Max Amenities: Maximum number of amenities to show per type (default: 3)
- Enable Icon Colors: Toggle to enable color-coded icons
Once configured, the plugin automatically displays nearby amenities on single listing pages. The amenities are loaded via Ajax after the page loads, ensuring optimal performance.
The plugin supports the following amenity types (use the key in configuration):
Essentials: hospital, doctor, pharmacy, dentist, veterinary_care
Transport: bus_station, subway_station, train_station, transit_station, airport, taxi_stand, parking
Education: school, university, library
Shopping: shopping_mall, store, supermarket, convenience_store, clothing_store, electronics_store, furniture_store, hardware_store, home_goods_store, jewelry_store, pet_store, book_store
Food & Drinks: restaurant, cafe, bakery, bar, meal_takeaway, meal_delivery
Lifestyle & Leisure: gym, spa, stadium, movie_theater, museum, art_gallery, night_club, zoo, aquarium, casino, bowling_alley
Outdoor & Nature: park, campground, tourist_attraction
Services: atm, bank, post_office, police, fire_station, city_hall, embassy, lawyer, real_estate_agency
Lodging: lodging, rv_park
Auto Services: car_rental, car_dealer, car_repair, gas_station
Religion: church, hindu_temple, mosque, synagogue
Related Products
Directorist - Advanced Social Links
An extension for Directorist plugin that adds advanced social networking options to listing forms and single listing pages.
Directorist - Custom Badges
A Directorist extension that allows you to create and manage custom badges for your listings with advanced conditions.
Directorist - Custom Map Styles
A Directorist extension enabling custom Google Maps styling, letting users override default map designs with personalized configurations.



