Add Zone Example
Skill level:

This example demonstrates a tool that can be built with an intermediate-level knowledge of the MyGeotab system. It is suitable for those who have a good understanding of the Geotab ecosystem and are comfortable with the MyGeotab SDK and leveraging the MyGeotab APIs within their projects.

This JavaScript example guides you through the process of creating zones and geocoding addresses. Using an address such as "CN Tower", or "102 Main Street East, Toronto, ON" an API request is made to retrieve the latitude and longitude coordinates for that address. Then, a box is created around that point consisting of four corners. The distance apart is variable using the slider provided. To finish creating the zone, add a name and click Add zone and the points you see will be saved to your account.
In this example
API Methods:Add GetCoordinates
API Entities:Zone