closestFacility
closestFacility
FunctionclosestFacility(requestOptions: IClosestFacilityOptions): Promise<IClosestFacilityResponse>
Used to find a route to the nearest of several possible destinations. See the REST Documentation for more information.
Parameters
Parameter | Type | Notes |
---|---|---|
request | IClosestFacilityOptions | Options to pass through to the routing service. |
Returns
Promise<IClosestFacilityResponse>
A Promise that will resolve with routes and directions for the request.