Skip to content

Commit 5e95148

Browse files
committed
updated meta.json
1 parent 9b47c42 commit 5e95148

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

indoor-map-with-pedestrian-route-from-a-to-b/demo.details renamed to indoor-map-with-route-from-a-to-b/demo.details

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: Displaying an Indoor Map
3-
description: Use Here Indoor Maps service to load and visualize an indoor map
2+
name: Indoor Map with Route from A to B
3+
description: Use Here Indoor Maps service to calculate route on a indoor map
44
resources:
55
- https://heremaps.github.io/maps-api-for-javascript-examples/test-credentials.js
66
normalize_css: no

indoor-map-with-pedestrian-route-from-a-to-b/demo.html renamed to indoor-map-with-route-from-a-to-b/demo.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
66
<meta name="description" content="Use the HERE Indoor Maps API to load and visualize an indoor map">
77
<title>Indoor Map with Driving Route from A to B</title>
8-
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
9-
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
10-
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
11-
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
12-
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
13-
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-venues.js"></script>
8+
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.2/mapsjs-ui.css" />
9+
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-core.js"></script>
10+
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-mapevents.js"></script>
11+
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-service.js"></script>
12+
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-ui.js"></script>
13+
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-venues.js"></script>
1414
<link rel="stylesheet" type="text/css" href="../template.css" />
1515
<link rel="stylesheet" type="text/css" href="demo.css" />
1616
<script type="text/javascript" src='../test-credentials.js'></script>
@@ -56,8 +56,8 @@ <h1>Show routes on Indoor Map</h1>
5656
<div id="map"></div>
5757
<h3>Code</h3>
5858
<p>
59-
The example shows loading the Indoor Map using <code>H.venues.Service2</code> and renders the indoor map using an instance of <code>H.venues.Provider</code>.<br>
60-
<p>Access to the routing service is obtained from the <code>H.venues.Service2</code> by calling
59+
The example shows loading the Indoor Map using <code>H.venues.Service</code> and renders the indoor map using an instance of <code>H.venues.Provider</code>.<br>
60+
<p>Access to the routing service is obtained from the <code>H.venues.Service</code> by calling
6161
<code>calculateRoute(routeParams)</code>. The <code>calculateRoute()</code> method is used to calculate the shortest
6262
pedestrian route by passing in the relevant parameters as defined in
6363
<a href="https://www.here.com/docs/bundle/indoor-routing-api-v1-api-reference/page/index.html#tag/Indoor-Routing/operation/getRoute" target="_blank">Indoor Routing API</a>.

indoor-map-with-pedestrian-route-from-a-to-b/demo.js renamed to indoor-map-with-route-from-a-to-b/demo.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
// Replace with your HERE platform app api key
6-
const yourApikey = 'ZKBUeAgkzH4JWhg93AA7cIE_kZotbMGhVI0_UYC0COY';
6+
const yourToken = 'ZKBUeAgkzH4JWhg93AA7cIE_kZotbMGhVI0_UYC0COY';
77

88
// Replace with your indoor map platform collection hrn
99
const indoorMapHrn = 'hrn:here:data::org651595200:indoormap-ed6d5667-cfe0-4748-bbf5-88b00e7e3b21-collection';
@@ -23,8 +23,8 @@ const showBaseMap = true;
2323

2424
// Optional, list of label text preferences to override.
2525
const labelTextPreferenceOverride = [
26-
H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE.OCCUPANT_NAMES,
27-
H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE.SPACE_NAME
26+
H.venues.Service.LABEL_TEXT_PREFERENCE_OVERRIDE.OCCUPANT_NAMES,
27+
H.venues.Service.LABEL_TEXT_PREFERENCE_OVERRIDE.SPACE_NAME
2828
]
2929

3030
/**
@@ -38,7 +38,7 @@ function addVenueToMap(map, platform) {
3838
venuesProvider = new H.venues.Provider();
3939

4040
// Get an instance of the Indoor Maps service using a valid apikey for Indoor Maps
41-
venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn }, 2);
41+
venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn });
4242

4343
// Use venuesService.getMapInfoList to retrieve the list of Indoor maps from the given HRN
4444
venuesService.getMapInfoList().then(mapInfoList => {
@@ -102,7 +102,7 @@ async function calculateIndoorRouteFromAtoB(map) {
102102
const res = await venuesService.calculateRoute(routingParameters);
103103
if (res?.routes && res.routes.length > 0) {
104104
// Create route objects using route response data
105-
const route = new H.venues.Route2(res.routes[0]);
105+
const route = new H.venues.Route(res.routes[0]);
106106
// Link route map objects with venue levels for automatic visibility updates:
107107
const indoorObjects = route.getIndoorObjects();
108108

meta.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,12 @@
454454
"title": "Indoor Map - Restrict map movement",
455455
"shortDescription": "Indoor Map - Restrict map movement",
456456
"published": true
457+
},
458+
{
459+
"uid": "indoor-map-with-route-from-a-to-b",
460+
"title": "Indoor Map with Route from A to B",
461+
"shortDescription": "Use Here Indoor Maps service to calculate route on a indoor map",
462+
"published": true
457463
}
458464
]
459465
}

0 commit comments

Comments
 (0)