In Salesforce Field Service, In order to geo code Service Appointment to particular Service Territory, we are using the API provided as part of FSL/SFS managed package,
FSL.PolygonUtils.getTerritoryIdByPolygons (This method returns a single service territory).
In case of Parent/Child Service Territories having overlapping polygons, it resolves based on the classification settings (Highest = Parent, Lower = Child).
But, In case of Service Territories overlapping due to other reasons (For example, multiple business units). How could we get multiple Service Territories associated with the specified Lat/Long?
Is there any the API from the FSL/SFS package, and Apex Utils specifically, provided a lat/long, to return a list of matching service territories (that the lat/long falls under) as opposed to just a single service territory?
Thanks.
Provide u my screenshot. Check with ur requirements: