Kontent.ai
Copyright © 2023 Kontent.ai. All rights reserved.
  • Web
  • Privacy policy
  • Cookies policy
  • Consent settings
  • Security
  • GDPR
  • Documentation
  • API reference
  • Product updates
Kontent.ai Learn
  • Plan
  • Set up
  • Model
  • Develop
  • Create

Use and display locations

Is this page helpful?
Complete and continue
  • Sign in
  • Boris Pocatko, Tomas Nosek
    3 minutes
    Content model / Custom elements
    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.

    Areas

    If you need to select just an area, use taxonomy or a content type with content items as options. A typical setup can look like this:
    • Region (taxonomy group or content type)
      • Australia (taxonomy term or content item)
      • Netherlands
      • United Kingdom
      • United States
    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.
      • See the integrations topic on GitHub and the custom elements overview to find custom elements you can use or customize for your scenario.

    Moving locations

    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.
    • Overview
    • Intro to content modeling
    • Creator’s role in content modeling
    • Before you model content
    • Create your first content model
    • Master content modeling
    • Master modular content
    • Master taxonomies
    • Master metadata
    • Get inspiration from others
    • Maintain your model
    • Content modeling checklist
    How a Google Maps selector can look
    • “Missing” CMS features
    • Content formatting
    • Curated content
    • Link authors to articles
    • Forms
    • Streamline information
    • Displaying locations
    • Social media posts in articles
    • Code samples in articles
    • Bulk publishing with taxonomies
    • App configuration
  • Areas
  • Specific locations
  • Moving locations