• Cheat sheets
  • Documentation
  • API reference
  • Product updates
  • Sign in
Kontent.ai Learn
  • Try Kontent.ai
  • Plan
  • Set up
  • Model
  • Develop
  • Create
Copyright © 2024 Kontent.ai. All rights reserved.
  • Web
  • Privacy policy
  • Cookies policy
  • Consent settings
  • Security
  • GDPR
  • Overview
  • Intro to content modeling
  • Creator’s role in content modeling
  • Before you model content
  • Create your first content model
  • Content modeling accelerators 🚀
  • Master content modeling
  • Master modular content
  • Master taxonomies
  • Master metadata
  • Get inspiration from others
    • “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
  • Maintain your model
  • Content modeling checklist

Use and display locations

Boris Pocatko, Tomas Nosek
3 minutes
Content model / Custom elements
Download PDF
0% complete
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.
Sign in with your Kontent.ai credentials or sign up for free to unlock the full lesson, track your progress, and access exclusive expert insights and tips!
Sign in
  • Areas
  • Specific locations
  • Moving locations