Directorist - Nearby Amenities

A powerful extension for Directorist that displays nearby amenities on single listing pages using Google Places API only.

$0.00
Buy Now

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.

Features

Core Features

  • 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

Requirements

  • 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

Installation

  1. Upload the plugin files to /wp-content/plugins/directorist-nearby-amenities/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Ensure Directorist plugin is installed and activated
  4. Configure your Google Maps API Key in Directorist settings
  5. Add the “Nearby Amenities” widget to your single listing page layout

Configuration

Setting Up Google Maps API

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the following APIs:
    • Places API
    • Distance Matrix API
  4. Create credentials (API Key)
  5. Add the API Key in Directorist Settings → General → Map Settings

Adding the Widget

  1. Go to Directorist → Settings → Single Listing → Content Builder
  2. Add the “Nearby Amenities” widget to your desired section
  3. 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

Usage

Basic Usage

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.

Available Amenity Types

The plugin supports the following amenity types (use the key in configuration):

Essentialshospitaldoctorpharmacydentistveterinary_care

Transportbus_stationsubway_stationtrain_stationtransit_stationairporttaxi_standparking

Educationschooluniversitylibrary

Shoppingshopping_mallstoresupermarketconvenience_storeclothing_storeelectronics_storefurniture_storehardware_storehome_goods_storejewelry_storepet_storebook_store

Food & Drinksrestaurantcafebakerybarmeal_takeawaymeal_delivery

Lifestyle & Leisuregymspastadiummovie_theatermuseumart_gallerynight_clubzooaquariumcasinobowling_alley

Outdoor & Natureparkcampgroundtourist_attraction

Servicesatmbankpost_officepolicefire_stationcity_hallembassylawyerreal_estate_agency

Lodginglodgingrv_park

Auto Servicescar_rentalcar_dealercar_repairgas_station

Religionchurchhindu_templemosquesynagogue

Related Products

Directorist - Custom Badges

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

Directorist - Custom Map Styles

A Directorist extension enabling custom Google Maps styling, letting users override default map designs with personalized configurations.

More Reading

Post navigation