Fleet Telematics Custom Locations Developer's Guide

Upload a layer with Custom Geometries

User Story

The user wants to upload a layer with his own store locations, in order to search and display them.

Request

The code below shows an actual request matching the user story.

curl --request -i -X POST
-H "Content-Type: multipart/form-data"
-F "zipfile=@my_folder/my_layer_content.zip"
"https://fleet.ls.hereapi.com/2/layers/upload.json
?layer_id=MYLAYER
&apiKey={YOUR_API_KEY}"
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. For examples of how to use the other authentication options with the Fleet Telematics Custom Locations, see Authentication Examples

Example WKT file

ADMIN_PLACE_ID  CARTO_ID  WKT
20300625  751498000  POLYGON ((1.73514 42.5498, 1.73619 42.55064, 1.73663 42.55115, 1.73682 42.55179, 1.73514 42.5498))
20128886  751882887  MULTIPOLYGON (((4.23844 51.37467, 4.22362 51.37412, 4.21795 51.3739, 4.22218 51.3673, 4.88942 51.42354, 4.89138 51.42328)))