Location Services Settings
Currently, there are 3 types of location integration available for EasyBlog namely; Google Maps, Google Places and FourSquare. You may find the settings here
EasyBlog > Settings > Location.
- Enable Location Service - Pretty self explanatory. If this option is disabled, locations will no longer be available in blog posts.
- Service Provider - Select the service provider to render the map.
- Language Code - Enter the language code to load the correct locale of the map.
- Map Height - Specify the width of the map that will be displayed.
- Map Type - Specify the type of map that should be displayed in the blog post.
- Zoom Level - Specify the zoom level attributes for non-static maps to have.
Displaying Map On Blogpost
To make the map appear on your blogpost, you'll need to enable this option Show Post Map. Navigate to
EasyBlog > Settings > Views > Entry Layout and enable Show Post Map.
- Show Post Map - If this option is enabled, maps will be visible in the blog post.
Setting up API for Google Maps & Google Places
To get started you'll need a Google Account. If you currently do not have any, you can head over to Google and sign up for one.
For automatic location detection, Google requires the website to support HTTPS.
Lets start with the creation of Google Maps API key. Navigate to the APIs Console located at Google Console. Login to your Google Account. Once you've login, it will bring you to the Console Dashboard. You'll need to create a new project if you don't have any yet. Navigate to I am Admin and start building up your new project.
Once you have created your new project, navigate to the APIS Library and focus on the Google Maps APIs section. There, you will notice a list of the available API services. As for Google Map, you will need to enable these 5 APIs:
- Google Static Maps API
- Google Maps Geocoding API
- Google Maps Geolocation API
- Google Maps Embed API
Now, lets navigate to the Credentials section. By default, the your credential will be created automatically. However, if there is none, you can always create a new credential for yourself. Copy the generated key and place it in EasyBlog's Location Services.
Creating API for Google Places is quite simple and almost identical to Google Maps. Firstly, navigate to APIs Console located at Google Console. Login to your Google Account. Once you've login to your account, it will bring you to the Console Dashboard. There you'll need to create a new project if you don't have any yet. Navigate to I am Admin and start building up your new project.
Once you have created your new project, navigate to APIS Library and focus your attention on the Google Maps APIs section. There, you will notice a list of the available API services. As for Google Places, you'll need to enable this API: Google Places API Web Service.
Navigate to the Credentials section and copy the generated key for your credentials and place it in EasyBlog's Location Services.
Find great places on the go and discover what's nearby, search for what you're craving, and share location with friends.
To get started, you'll need to have a FourSquare Account. If you do not currently have a FourSquare account, you can head over to FourSquare's site and sign up for one.
Then, create a FourSquare app by navigating to FourSquare Developer. Click on the My Apps menu located at the top of the page. There, you'll see a list of created FourSquare apps. If you have not created any FourSquare app yet, click on Create a new app.
At the register new app page, enter the required information requested by FourSquare and once ready, click on the Save Changes button. After that, you'll be presented a summary of the newly created app. Focus on the Administrative Information section, there will be a Client ID and Client Secret key being displayed. Copy both keys and place it in EasyBlog's Location Services.