Locations can relate to your offices, cafes, bus stops, smart beacon placements, moving businesses, and so much more. The difference is the accuracy and additional parameters that are needed for each of these applications.
You won’t be able to select a specific location, yet it might be quicker for the authors to select an option from a list than to click on a particular place in maps or enter an address.
Specific locations
If you need to pinpoint a specific location, there are a couple of options:
If the place has an address, the most straightforward approach is to add a text element for the address and let the front end show up a map with a pin on that location.
If you need a precise location because sometimes places are between two addresses or just in the middle of nowhere, add two text elements for latitude and longitude.
Both ways can be made even easier by using a custom element with a map to let your content creators pick a place by clicking on a map. You can then set up the element to save either an address or latitude and longitude based on the click.
Moving objects, such as buses, usually require a completely different approach. This might be solved with the following:
A tracker with a unique identifier that will be placed inside that moving object
A 3rd-party tracking service that takes care of tracking such a device with an API available
A Kontent.ai’s custom element that lets your content creators pick a tracker from the tracking service’s listing
By combining these three things, Kontent.ai can be part of the tracking environment.
What's next?
Insert social media posts into articles
To embed content like social media posts into your articles, you define the structure of the embedded content and then insert components based on that structure into your articles.See how it all works on the example of social media posts like tweets inside articles.