-
-
Platform Overview Platform Overview
High-precision data and advanced tooling in one place
-
Maps & Data Maps & Data
Build high-quality maps using fresh location data
Maps & Data-
Map Data Map Data
Create fresh, accurate maps and layer global information
-
Dynamic Map Content Dynamic Map Content
Explore industry-leading map content
-
Maps for ADAS & HAD Maps for ADAS & HAD
Help vehicles see beyond sensors with location data sources
-
-
Services Services
Browse our extensive range of services and APIs
Services-
Routing Routing
Make journey planning easier with our routing portfolio
-
Geocoding & Search Geocoding & Search
Translate addresses into accurate geocoordinates
-
Map Rendering Map Rendering
Highly customizable graphics and real-time map data
-
Positioning Positioning
Pinpoint devices and assets locations with precision
-
-
Tools Tools
Build solutions with our flexible developer tools and applications
Tools-
HERE Studio HERE Studio
Visualize, style and edit location data
-
HERE Workspace HERE Workspace
Create location-centric products and services in one space
-
HERE Marketplace HERE Marketplace
Source, buy, sell and trade location assets
-
HERE SDK HERE SDK
Build advanced location-enabled applications
-
HERE Live Sense SDK HERE Live Sense SDK
Enhance driver awareness by using AI
-
HERE Anonymizer HERE Anonymizer
Maximize location data while supporting regulatory compliance
-
-
Capabilities Capabilities
Everything you need for your location-related use case
Capabilities-
Visualize Data Visualize Data
Identify complex trends and patterns
-
Generate Insights Generate Insights
Transform location data into compelling stories
-
Build Applications Build Applications
Create feature-rich products designed for business
-
Develop Services Develop Services
Produce tailored service experiences
-
Make Maps Make Maps
Create and use custom digital maps
-
-
-
-
By Market By MarketBy Market
-
Automated Driving Automated Driving
-
Connected Driving Connected Driving
-
Fleet Management Fleet Management
-
Supply Chain Supply Chain
-
Urban Mobility Urban Mobility
-
Infrastructure Planning Infrastructure Planning
-
Public Safety Public Safety
-
-
By Applications By ApplicationsBy Applications
-
HERE Last Mile HERE Last Mile
Optimize your last mile deliveries
-
HERE Asset Tracking HERE Asset Tracking
Track assets in real-time with our end-to-end solution
-
HERE Navigation HERE Navigation
Use our off-the shelf navigation system
-
HERE WeGo HERE WeGo
Enjoy your journey with our new navigation app
-
-
-
-
Partner with HERE Partner with HERE
-
Partner Network Partner Network
-
-
Pricing Pricing
-
-
Documentation Documentation
-
Tutorials Tutorials
-
Code Examples Code Examples
-
Knowledge Base Knowledge Base
-
Developer Blog Developer Blog
-
-
-
About us About us
-
Events Events
-
News News
-
Press Releases Press Releases
-
Careers Careers
-
Sustainability Sustainability
-
Leadership Leadership
-
Investors Investors
-
HERE360 Blog HERE360 Blog
-
What Is a WKT File and how to Create One?

Well-known text (WKT) is a human readable representation for spatial objects like points, lines, or enclosed areas on a map. I came across WKT files as I was getting started with a Geofencing project. With WKT, you can specify an area that’s interesting to you and then see if some geolocation information like a lat/long pair from a mobile device falls into that area.
Understanding WKT point formatting
WKT formats points in (long, lat) order.
This was surprising to me as I had previously seen geographical points in the (lat, long) order, so I looked into why WKT formats points the other way around. The reason WKT has such order is that latitude represents north/south-ness of a point and longitude represents east/west-ness of a point. So really, WKT is trying to refer to a point by its (x,y) coordinate, and that translates to (long, lat). GeoJSON follows the same order as WKT in this case, so if you are familiar with GeoJSON, this might not be news for you.
Take this following point:
{ lat: 37, lng: -121 }
Latitudes represent the “y” value of the point, and longitudes represent the “x” value. Therefore, when we translate this point to WKT representation, it’ll look like the following:
POINT (-121 37)
How to create a WKT file
There are many applications like QGIS that let you create WKT files. But I will assume you only have access to your laptop right now and you want to create a WKT file from scratch - which is absolutely possible!
All you need to do is create a new file, and add the wkt extension to it. For example I will call mine bermuda.wkt. If you want to do this from the command line you could say:
touch bermuda.wkt
Bermuda Triangle is a mythical region where a number of aircrafts and ships are said to have disappeared under mysterious circumstances. The exact coordinates of it are loosely defined, but for this example I will make a guess for where this mythical triangle might be. In order to add the Bermuda Triangle to your WKT file, you can open your file in a text editor like TextEdit or Atom. You can see below that I have listed four points to describe my triangle. The reason for having four points actually has nothing to do with this triangle’s mysterious history. The last point is a duplicate of the first point in order to tell WKT that our polygon is an enclosed area. When creating a polygon, you want to have your longitudes and latitudes separated by a space and you want different points comma separated. Finally, you want to wrap your points in a pair of parentheses because WKT likes things that way. If you are looking for a visual tool that helps you create your geometric shapes, Wicket might come in useful.
POLYGON ((-80 25, -65 18, -64 32, -80 25))
If you get started with HERE APIs and decide to add more attributes to your geocoordinates, you can specify them like the following. Just make sure that they are tab delimited, or your layer won’t work. So here, I’m giving my triangle a name before I upload it as a layer.
NAME WKT
BERMUDA POLYGON ((-80 25, -65 18, -64 32, -80 25))
You can create multiple polygons too:
NAME WKT
TwoTriangles MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),
((15 5, 10 20, 5 10, 15 5)))
Polygons and Points aren’t the only things you can specify with WKT, if you are interested in learning more, please refer to Wikipedia. Have fun mapping and if you think I have incorrectly specified the Bermuda Triangle’s coordinates, feel free to reach out.
Have your say
Sign up for our newsletter
Why sign up:
- Latest offers and discounts
- Tailored content delivered weekly
- Exclusive events
- One click to unsubscribe