JavaScript APIs

JavaScript APIs to integrate interactive maps and advanced HERE features into your applications.

The HERE Maps API for JavaScript is a set of programming interfaces that enable developers to build Web applications with feature rich, interactive HERE Maps at their center. The API consists of libraries of classes and methods with which to implement the functionality of an interactive application.

See below for a list of our JavaScript APIs or click on API explorer to experience the power of HERE JavaScript APIs

JavaScript API See documentation

HERE Maps API for JavaScript includes APIs to cover functionality in 4 core components

Maps

The Maps API offers a canvas on which to create an application with a map at its core. The Maps library, which is a part of the API dedicated to maps and mapping, is available both for browsers that support HTML5 and for older browsers. It takes advantage of the latest technologies to ensure fast map rendering and high responsiveness to the user in every capable environment.

Places

The Places library allows you, as a developer, to enrich Web sites by providing a sophisticated search facility for users and a customizable means to display the results that include such information as place name, address, contact details, location map, rating, reviews, as well as related premium content. The library includes:

  • UI library – a set of user interface widgets with methods that support place data search, retrieval and display
  • Data library – a set of programming interfaces that support searches for place data and data retrieval, but are not associated with a user interface

The resources available to developers using the Places library include style sheets (CSS) that can be easily attached to a Web page. As a developer, you are free to customize the existing templates or to use your own.

Directions

Route planning and navigation are the most commonly used applications of location-based services. With the Maps API, you can calculate optimal routes that match your own calculation criteria, are based on up-to-date map data, and take into account real-time traffic information.

The API offers global coverage of streets and highways, allowing you to create routes reflecting customizable modes such as fastest, shortest, avoiding toll roads or ferries, etc. There is also support for utilizing historical speed patterns as an optimization for routes depending on the time of day.

Traffic

Millions of sensors in major metropolitan areas around the world monitor traffic flows, providing smart flow data and graphs that are accessible via the Maps API. In addition, the API has the capability to produce routes that take into account real-time traffic data. Time-based routing can be optimized, using historical speed patterns, which allows users to save time and fuel.

Enterprise JavaScript API See documentation

The HERE Maps Enterprise API for JavaScript allows you to integrate enterprise specific features and functionalities into your applications fast, easy and at minimum cost. With the Maps Enterprise API for JavaScript you can now create highly innovative, differentiated and customized experiences with feature rich, global and interactive HERE Maps at their center.

Click here for a detailed look at features and technical specification.

The Maps Enterprise API for JavaScript exposes the functionality of a collection of RESTful Web Services in the following four core components. Read more ...

Maps

The Maps Enterprise API for JavaScript provides you with the world's highest quality and most up-to-date maps, as a canvas for your location applications. The Maps component fulfills all your query and data requests for raster map tiles or maps rendered as single images, including and map overlays. Furthermore, if you need to make certain data more prominent and easier to use in your applications, the Maps component gives you the flexibility to choose from several mapping options such as basic, mobile, fleet and grayscale. 

Geocoder

Geocoding is the process of obtaining geographic coordinates based on input consisting of a text address. In addition to the geographic coordinates, the Geocoder response contains complete and correctly spelled addresses. Note that it may return multiple sets of coordinates and addresses corresponding to them. Address input can be a qualified, structured address or a free-form single search text string with full or partial address information. Geocoder applies localized rules to analyze and identify the input and match it to map data index in order to provide results that make sense and offer value. Optionally, the user's current location or map view can be used to provide additional context. Geocoding results are ranked by relevance.

Reverse geocoding is the process of taking a set of geographic coordinates (latitude/longitude) obtained, for example, from the GPS on the user's device or via a click on the map, and providing a textual description of the position in return. Reverse geocoding answers the question, "Where am I?" It is used when tracking and managing mobile assets, for example vehicles, freight, or workforce.

The reverse geocoding results include the closest street addresses or area information, depending on the geographic coordinates, location and the underlying map data. The results are ranked by proximity to the input location or a single area.

Directions

The Directions component delivers best routes based on intelligent routing algorithms while taking into account rich sets of attributes embedded in the map. Through the Enterprise Router srvice you can get precise instructions on how to get to a destination, estimated time of arrival or optimized route tailored for different environments. This component leverages some of the highest quality navigable content available in the HERE Maps such as e.g. real-time traffic, historical traffic and truck data, to deliver the distinguished and well needed enterprise functionality. 

Traffic

Millions of sensors in major metropolitan areas around the world monitor traffic flows, providing smart flow data and graphs that are accessible via the HERE Maps Enterprise API for JavaScript. In addition, the service has the capability to produce routes that take into account real-time traffic data. Time-based routing can also be optimized using historical speed patterns. 

Get Inspired

Loading a simple Map using the Maps API for Javascript

Learn how to get started with the Maps API for Javascript by creating a basic static map in a web page.

More videos

Showing data visualizations on your map using the Javascript API

In this tutorial, Geoff shows you how to display KML based heatmaps on your map.

More videos