Spatial analysis
Overview
The project in the repository folder Samples\Basic\Spatial analysis
shows how to use the spatial tools to perform territory assignment based on location.
Territory assignment
Given a set of prospect addresses, and the set of polygons defining the territory boundaries, the sample project assign territories will first geocode the addresses to get the latitude and longitude of the location, and then determine which polygon the location falls within.
In order to run this project, you need to install the geocoding database and have a Geocoder license.