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"}

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.