Find an API

Search public APIs with auth details & Postman guides

← All APIs

HERE Maps API

router.hereapi.com · Location

Location API Key Free Tier Maps Routing Geocoding

Enterprise-grade mapping and location services — routing, geocoding, matrix routing, isoline calculations, and real-time traffic. Free tier: 250,000 requests/month.

Authentication

API Key Free API key at developer.here.com. Pass as ?apikey= query parameter.

Sample Requests

GET Get route

Get a driving route in Berlin.

https://router.hereapi.com/v8/routes?apikey=YOUR_KEY&origin=52.5308,13.3847&return=summary&destination=52.5116,13.4302&transportMode=car

Hover any highlighted part to learn what it does

curl -X GET "https://router.hereapi.com/v8/routes?apikey=YOUR_KEY&origin=52.5308%2C13.3847&return=summary&destination=52.5116%2C13.4302&transportMode=car"
import requests
params = {
    "apikey": "YOUR_KEY",
    "origin": "52.5308,13.3847",
    "return": "summary",
    "destination": "52.5116,13.4302",
    "transportMode": "car"
}
response = requests.get(
    "https://router.hereapi.com/v8/routes",
    params=params,
)
print(response.json())
const url = new URL('https://router.hereapi.com/v8/routes');
url.searchParams.set('apikey', 'YOUR_KEY');
url.searchParams.set('origin', '52.5308,13.3847');
url.searchParams.set('return', 'summary');
url.searchParams.set('destination', '52.5116,13.4302');
url.searchParams.set('transportMode', 'car');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://router.hereapi.com/v8/routes")
	q := baseURL.Query()
	q.Set("apikey", "YOUR_KEY")
	q.Set("origin", "52.5308,13.3847")
	q.Set("return", "summary")
	q.Set("destination", "52.5116,13.4302")
	q.Set("transportMode", "car")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://router.hereapi.com/v8/routes")
uri.query = URI.encode_www_form({
  "apikey" => "YOUR_KEY",
  "origin" => "52.5308,13.3847",
  "return" => "summary",
  "destination" => "52.5116,13.4302",
  "transportMode" => "car"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://router.hereapi.com/v8/routes?" . http_build_query([
    "apikey" => "YOUR_KEY",
    "origin" => "52.5308,13.3847",
    "return" => "summary",
    "destination" => "52.5116,13.4302",
    "transportMode" => "car"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. Create a free account at developer.here.com and get an API key
  2. Pass apikey=YOUR_KEY on every request
  3. Routing: GET /v8/routes?transportMode=car&origin=lat,lon&destination=lat,lon&return=summary&apikey=KEY
  4. Geocoding: GET https://geocode.search.hereapi.com/v1/geocode?q=address&apikey=KEY
  5. Reverse: GET https://revgeocode.search.hereapi.com/v1/revgeocode?at=lat,lon&apikey=KEY

Open documentation ↗