Solution 1 :

The browse endpoint will give you places from the HERE server. If you want to call locations that you add on the go, you will need to use the Custom Location API. While you add the location as a marker, you will also have to add it to your custom layer. From there you will be able to call and parse the layer of your custom locations.

As an example, below is the layer of custom POIs that I have uploaded to my map layer.

POINT1  POINT(13.402449957770752 52.505308544760155)
POINT2  POINT(13.408663845393365 52.499911895880146)

This can be uploaded using the call below

curl --request -i -X POST
    -H "Content-Type: multipart/form-data"
    -F "[email protected]_folder/"

or this web tool.

Once uploaded, you can use this call to retrieve the points in the layer:{SameAPIKeyUsedToUpload}&layer_id=POIS

You can also perform a bunch of search functions with this layer.

Problem :

I have a tiny application with three files in the same dir:

  • main.js
  • index.html

In main.js:

var platform = new H.service.Platform({
   'apikey': {my API key}


var defaultLayers = platform.createDefaultLayers();

var map = new H.Map(
    zoom: 10,
    center: { lng: 17.0, lat: 51.0 }

window.addEventListener('resize', () => map.getViewPort().resize());
var behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));
var ui = H.ui.UI.createDefault(map, defaultLayers);

function addWroclove() { 
        var markerWroclaw = new{ lat: 51.0, lng: 17.0 }, { icon: icon });


import requests
URL_wro = "" 
wro = requests.get(URL_wro)


<!DOCTYPE html>
<html lang="pl">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"/>
    <meta name="description" content=""/>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript"  charset="utf-8" src=""></script>
    <script type="text/javascript" >window.ENV_VARIABLE = ''</script>
    <script src=''></script>
    <link rel="stylesheet" type="text/css" href=""/>
      <div class="map" id="mapContainer"></div>

My question is:
when I am trying to send GET query (in I am receiving data but from HERE server and not from map which is on my own remote server.
I mean – I want to have a GET’s response from map in which i have declared my own marker (markerWroclaw).
How to make it works in a proper way?


Comment posted by macpan

Thanks! This is really helpful. I created a WKT file and I uploaded it with curl call. Everything seems to work correctly. I just don’t know how to make the points/markers to appear on the map which is on my own hosted website. Can you help me with this last step?

Comment posted by Shruti Kuber

the function search/all also gives you geometries of all the points. you can call the layer in main.js and loop to add the marker on the map like you did in your code in the function addWroclove().

Comment posted by macpan

Thank you very much. It was quite complicated but I think I ‘ve solved all the problems I had.