API Documentation
The Public Mapping API is used to obtain the required mapping data. It returns a REST endpoint that can be used with the Esri JavaScript API to create a map service in your web application.Click here to return to the introduction.
API Calls
There are currently two map endpoints available, one for Jersey and one for Guernsey.- Jersey:https://publicmapping.digimap.je/API/JerseyPublic/Map?APIKey=[YourKey]
- Guernsey:https://publicmapping.digimap.je/API/GuernseyPublic/Map?APIKey=[YourKey]
- code:HTTP style response code, should be 200 for a successful request
- result:Plain text response, usually the name of the map or the error if code is not 200.
- mapService:The REST endpoint for the requested mapping data (only on a successful request).
- expires:How long the mapping data link is valid for in seconds (only on a successful request).
Demo Site
Please choose the Guernsey or Jersey Public Mapping demo.View the demo source to see sample code for obtaining the REST endpoint for a map and displaying it using the Esri JavaScript API.