public interface IGRAInstance
GetTravelBoundaryResponse getTravelBoundary(GetTravelBoundaryRequest request) throws RoutingException
GetTravelBoundaryResponse object corresponding to a GetTravelBoundaryRequest object.
In GetTravelBoundaryRequest class you can specify various options for Travel Boundary.
Request can either be IsoChrone or IsoDistance. If request is intended to be IsoChrone,
TimeUnit should be set to appropriate value and LinearUnit
should be set null.
If Request is intended to be IsoDistance, LinearUnit should be set to appropriate value
and TimeUnit should be null.
It is illegal to set both to non-null values.
request - GetTravelBoundaryRequest object for which travel boundary will be generated.GetTravelBoundaryResponse object which contains List of
TravelBoundary for the request.RoutingException - If something goes wrong while processing the request.GetRouteResponse getRoute(GetRouteRequest request) throws RoutingException
GetRouteResponse object corresponding to a GetRouteRequest object.
In GetRouteRequest class you can specify various options for route calculation.
GetRouteRequest takes a starting location and an ending location with optional intermediate points as input,
and returns the route that is either the fastest or the shortest.
Specify distance unit (LinearUnit)
and TimeUnit to get the route response in desired units.
request - GetRouteRequest object for which route will be generated.GetRouteResponse object which contains the following:
ArrayList of RouteInstruction.IGeometry of the route.RoutingException - If something goes wrong while processing the request.GetRouteCostMatrixResponse getRouteCostMatrix(GetRouteCostMatrixRequest request) throws RoutingException
GetRouteCostMatrixResponse object corresponding to a GetRouteCostMatrixRequest object.
In GetRouteCostMatrixRequest class you can specify various options for route calculation.
GetRouteCostMatrixRequest takes list of start locations and end locations as input, and returns the route cost matrix
that is either the fastest or the shortest.
Specify distance unit (LinearUnit)
and TimeUnit to get the route cost matrix response in desired units.
request - GetRouteCostMatrixRequest object for which route cost matrix will be generated.GetRouteCostMatrixResponse object which contains route cost matrix generated.
It also contains the time and distance to travel through for each route.RoutingException - If something goes wrong while processing the request.GetSegmentDataResponse getSegmentData(GetSegmentDataRequest request) throws RoutingException
GetSegmentDataResponse object corresponding to a GetSegmentDataRequest object.
In GetSegmentDataRequest class you can specify various options for fetching segment information.
GetSegmentDataRequest takes either point or segment id for which segment information is to be fetched from network.
request - GetRouteCostMatrixRequest object for which segment data will be fetched.GetRouteCostMatrixResponse object which contains segment information for the specified segment.RoutingException - If something goes wrong while processing the request.PersistentUpdateResponse createPersistentUpdates(PersistentUpdateRequest request) throws RoutingException
In PersistentUpdateRequest class you can specify List of Update to be applied on the network.
request - PersistentUpdateRequest object containing List of Update to be
applied on the network.PersistentUpdateResponse object which contains the success message for PersistentUpdateRequest.RoutingException - If something goes wrong while processing the request.PersistentResetResponse resetPersitentUpdates(PersistentResetRequest request) throws RoutingException
Update
applied on the network. To revert all the updates applied reset all option can be used.
In PersistentResetRequest class you can specify List of Reset to be applied on the network.
request - PersistentResetRequest object containing List of Reset to be
applied on the network or reset all option is set to true to revert all the Update applied
on the network.PersistentResetResponse object which contains the success message for PersistentResetRequest.RoutingException - If something goes wrong while processing the request.void destroy()