Custom Location Extension API 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://cle.cit.api.here.com/2/layers/upload.json
?layer_id=MYLAYER
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}"

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)))