Geofencing Extension API Developer's Guide

Uploading a New Layer

User Story

The user has created or modified the geofence polygons of a layer, and stored them either in a Shapefile or WKT text file. To deploy them, the user submits the ZIP archive of the file (or several files in case of the Shapefile format) to the Geofencing Extension API.

Request

curl
--request
-i
-X POST
-H "Content-Type: multipart/form-data"
-F "zipfile=@C:\temp\layer_4711_shapes.zip"
"https://gfe.cit.api.here.com
/2/layers/upload.json
?layer_id=4711
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}"

If the curl version doesn't support https then use http instead.

Response

The response contains the number of objects stored (called storedTilesCount), and the response code.

{"storedTilesCount":1,"response_code":"201 Created"}