Plot multiple places on Google Maps – WordPress plugin

Plot events, photos, places, etc on Google Maps using a simple Wordpress shortcode which is built using Google Maps API. Everything below can be achieved easily with a simple plugin, XML file to provide the markers and a configurable shortcode Plot Multiple Locations on a Map Marker Clustering (markerclusterer) Ability to click each marker to get more details i.e. through a Marker popup Marker's info popup details is customizable through shortcode and CSS Ability to set initial zoom level Step 1: Get an API Key for Google Maps API First of all we need an API key for Google Maps. You can get an API key from Google Developer Console Here are the steps to create an API Key 1. Visit Google Developer console Projects page and create a project as per your requirement 2. Go to API Manager and select the project created in above step 3. Enable Google Maps JavaScript API and Google Maps Embed API 4. Click the Credentials link 5. Click New Credentials and select API Key....
Read More

Geocoding an address using Google Maps PHP API

Geocoding address means finding Latitude and Longitude for physical address. This uses Google Maps PHP API. E.g. Let’s assume we need to plot some events happening in various locations on Google Maps Geocoding all events to find their latitude and longitude using below function [crayon-59c7eb6e55788439260583/] If the address provided is in a way google can understand, the above function returns $data_arr in array format where latitude => $data_arr[0] longitude => $data_arr[1]...
Read More