Professional Documents
Culture Documents
Technical Guide
Version 8.0.0.0
HERE Maps & Location Services Technical Guide
►
Important Information
Notices
Topics:
• Legal Notices
• Document Information
2
HERE Maps & Location Services Technical Guide
► Notices
Legal Notices
3
HERE Maps & Location Services Technical Guide
► Notices
Document Information
Product
Name: HERE Location Services Serverless Functions Technical Guide
Version: Version 8.0.0.0
Document
Name: HERE Location Services Serverless Functions Technical Guide
Status: FINAL
Date: 2019-Apr-09, 12:00 (GMT)
4
HERE Maps & Location Services Technical Guide
►
Contents
Notices ............................................................................................................................................................... 2
Legal Notices ..................................................................................................................................................... 3
Document Information ................................................................................................................................. 4
Contents ............................................................................................................................................................ 5
Overview ........................................................................................................................................................... 6
Introduction ........................................................................................................................................................7
Solution Template Overview .......................................................................................................................7
Technical Guide ..............................................................................................................................................9
Acquiring HERE API Key............................................................................................................................... 10
Technical Guide for using Solution Template on Azure Portal ............................................... 10
Examples: .......................................................................................................................................................... 13
5
HERE Maps & Location Services Technical Guide
► Overview
Chapter 1
Overview
This document introduces the technical steps for
Topics: HERE Maps & Location Services Serverless
Functions on Azure Marketplace. The HERE
• Introduction Location Services Serverless Functions is a
• Solution Template Overview Solution Template on Azure Marketplace which
deploys the HERE Maps & Location Services
Serverless Functions into your resources.
6
HERE Maps & Location Services Technical Guide
► Overview
Introduction
HERE Maps and Location Services Serverless Functions bring enterprise-grade, SLA backed
location services to Azure applications. HERE Maps and location services solve a range of
problems from map visualization, navigation and routing, geocoding, time zone look ups to
geofencing, custom locations and routing, route matching GPS traces, geospatial, sequencing
multiple waypoints, truck routing, positioning, etc.
The function app in this ARM Template consists of the following HERE Location Service APIs:
Geocoding and Search
• Geocoder: Forward and Reverse
• Batch Geocoder
• Geocoder Autocomplete
• Places
Maps
• Map Image
• Map Tile
Navigation and Routing
• Routing - Mode (car, truck, public transit, bicycle) and algorithm (matrix, isoline
routing)
• Public Transit
Fleet Telematics
• Considering toll costs along a route
• Working with geofences
• Working with custom locations
• Building custom routes
• Integrating advanced HERE data sets
• Route matching GPS traces
• Calculating an optimal sequence of waypoints
More APIs
• Positioning - Provides positioning estimates based on global Wi-Fi and Cell
coverage, which includes the latitude and longitude of the position with accuracy.
7
HERE Maps & Location Services Technical Guide
► Overview
8
HERE Maps & Location Services Technical Guide
► Technical Guide
Chapter 2
Technical Guide
Topics:
9
HERE Maps & Location Services Technical Guide
► Technical Guide
To obtain the credentials for the deployment of HERE Maps & Location Services Serverless
Functions, please visit https://developer.here.com to register for FREE with HERE.
Each HTTP function maps to a REST API out of listed 7 APIs, availability of these will end in
URL as below
1 Geocoder https://<UniqeAppName>.azurewebsites.net/api/geocoder/
3 Positioning https://<UniqeAppName>.azurewebsites.net/api/positioning/
https://<UniqeAppName>.azurewebsites.net/api/map_image/
4 Map Image
10
HERE Maps & Location Services Technical Guide
►
HERE REST API URL maps with Azure Function URL as below:
https://geocode.search.he https://<UniqeAppName>.azurewebsites.ne
reapi.com/ t/api/geocoder/v1/geocode
https://autosuggest.searc https://<UniqeAppName>.azurewebsites.ne
h.hereapi.com/ t/api/geocoder/v1/autosuggest
https://browse.search.her https://<UniqeAppName>.azurewebsites.ne
eapi.com/ t/api/geocoder/v1/browse
https://lookup.search.her https://<UniqeAppName>.azurewebsites.ne
eapi.com/ t/api/geocoder/v1/lookup
https://revgeocode.search https://<UniqeAppName>.azurewebsites.ne
.hereapi.com/ t/api/geocoder/v1/revgeocode
11
https://{1-
4}.base.maps.ls.hereapi.co
m/
https://{1-
4}.traffic.maps.ls.hereapi.c
om/
https://<UniqeAppName>.azurewebsites.ne
t/api/public_transit/stations
https://<UniqeAppName>.azurewebsites.ne
t/api/public_transit/routes
12
HERE Maps & Location Services Technical Guide
►
Azure serverless functions are protected at function level and need an extra parameter to
authenticate. Please refer below link for more details. https://docs.microsoft.com/en-
us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys
Examples:
Geocoder :
HERE URL : https://geocode.search.hereapi.com/v1/geocode?apikey={HERE_API_KEY}&q=5
Rue Daunou, 75000 Paris, France
13
HERE Maps & Location Services Technical Guide
► Technical Guide
https://geocode.search.here https://funcapp4hls.azurewebsites.net/api/g
api.com/v1/geocode?apikey= eocoder/v1/geocode?q=5 Rue Daunou, 75000
{HERE_API_KEY}&q=5 Rue Paris, France
Daunou, 75000 Paris, France &code=iAcAWqx78cA3b2heZnaFHjMHbYC0/I/J
Geocoder cO7zyDM3FyfA6fjHM2BeSw====
https://geocode.search.here https://funcapp4hls.azurewebsites.net/api/g
api.com/v1/geocode?apikey= eocoder/v1/geocode?searchtext=200%20S%2
{HERE_API_KEY}&searchtext=2 0Mathilda%20Sunnyvale%20CA&locationattri
00%20S%20Mathilda%20Sun butes=none&responseattributes=none&gen=
nyvale%20CA&locationattribu 9&code=iAcAWqx78cA3b2heZnaFHjMHbYC0/I
tes=none&responseattribute /JcO7zyDM3FyfA6fjHM2BeSw====
s=none&gen=9
https://reverse.geocoder.api. https://funcapp4hls.azurewebsites.net/api/g
Reverse - here.com/v1/revgeocode? eocoder/v1/revgeocode?at=48.2181679%2C16.
Geocoder apikey={HERE_API_KEY}&at=4 3899064&lang=en-
8.2181679%2C16.3899064&lan US&code=iAcAWqx78cA3b2heZnaFHjMHbYC0/
g=en-US I/JcO7zyDM3FyfA6fjHM2BeSw====
https://revgeocode.search.he https://funcapp4hls.azurewebsites.net/api/g
re.com/v1/revgeocode? eocoder/v1/revgeocode?mode=retrieveLand
apikey={HERE_API_KEY}&mod marks&prox=37.7442,-
e=retrieveLandmarks&prox=3 119.5931,1000&code=iAcAWqx78cA3b2heZnaF
7.7442,-119.5931,1000 HjMHbYC0/I/JcO7zyDM3FyfA6fjHM2BeSw====
https://router.hereapi.com/r https://funcapp4hls.azurewebsites.net/api/r
outing/v8/calculatematrix.js outing/7.2/calculateisoline.json?mode=fastes
on?apikey={HERE_API_KEY}& t%3Bpedestrian&start=52.5160%2C13.3778&ra
mode=fastest%3Bpedestrian ngetype=distance&range=2000&code=iAcAW
&start=52.5160%2C13.3778&ra qx78cA3b2heZnaFHjMHbYC0/I/JcO7zyDM3FyfA
ngetype=distance&range=200 6fjHM2BeSw====
0
https://router.hereapi.com/r https://funcapp4hls.azurewebsites.net/api/r
Routing
outing/v8/routes?apikey={HE outing/v8/routes/?transportMode=car&origi
RE_API_KEY}&transportMode n=52.5308,13.3847&destination=52.5323,13.378
=car&origin=52.5308,13.3847& 9&return=summary&code=<fncode>&code=i
destination=52.5323,13.3789&r AcAWqx78cA3b2heZnaFHjMHbYC0/I/JcO7zyD
eturn=summary M3FyfA6fjHM2BeSw====
14
https://matrix.route.ls.herea https://funcapp4hls.azurewebsites.net/api/r
pi.com/routing/7.2/calculate outing/7.2/calculatematrix.json?mode=fastes
matrix.json?apikey={HERE_AP t%3Btruck%3Btraffic%3Adisabled%3B&start0
I_KEY}calculatematrix.json?m =40.7790%2C-
ode=fastest%3Btruck%3Btraff 73.9622&destination0=40.7482%2C-
ic%3Adisabled%3B&start0=40 73.9860&destination1=40.7558%2C-
.7790%2C- 73.9870&destination2=40.7054%2C-
73.9622&destination0=40.748 73.9961&code=iAcAWqx78cA3b2heZnaFHjMHb
2%2C- YC0/I/JcO7zyDM3FyfA6fjHM2BeSw====
73.9860&destination1=40.7558
%2C-
73.9870&destination2=40.7054
%2C-73.9961
15