Class ServiceAreaParameters

    • Method Detail

      • getAccumulateAttributeNames

        public List<String> getAccumulateAttributeNames()
        Gets a list of network attributes to be accumulated and returned as part of the service area.

        For example, accumulateAttributeNames = {"Miles", "Kilometers"} indicates that the total cost of the service area should also be calculated in miles and kilometers. All supported attributes can be obtained from ServiceAreaTaskInfo.getCostAttributes().

        Returns:
        a modifiable list of accumulate attribute names
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getAccumulateAttributeNames()
      • getTravelMode

        public TravelMode getTravelMode()
        Gets the travel mode that was set.
        Returns:
        the travel mode or a default if not set
        Since:
        100.1.0
      • setTravelMode

        public void setTravelMode​(TravelMode travelMode)
        Sets the travel mode.
        Parameters:
        travelMode - the travel mode
        Throws:
        IllegalArgumentException - if travelMode is null
        Since:
        100.1.0
      • getStartTime

        public Calendar getStartTime()
        Gets the start time that was set. If not specified the default value will be null and the start time used will be the time at which the task executes.
        Returns:
        the start time. Returns null if it was not set
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getStartTime()
      • setStartTime

        public void setStartTime​(Calendar startTime)
        Sets the start time. If not specified, defaults to the time the task is executed.
        Parameters:
        startTime - start time, can be null
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getStartTime()
      • getPolygonBufferDistance

        public double getPolygonBufferDistance()
        Gets the service area polygon buffer distance in meters.

        The polygon buffer refers to the distance from the road the service area polygon should extend when no other reachable roads are nearby, similar to a line buffer size. This is useful if the network is very sparse and you don't want the service area to cover large areas where there are no features.

        Returns:
        the polygon buffer distance in meters
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getPolygonBufferDistance()
      • setPolygonBufferDistance

        public void setPolygonBufferDistance​(double polygonBufferDistance)
        Sets the service area polygon buffer distance in meters.

        The polygon buffer refers to the distance from the road the service area polygon should extend when no other reachable roads are nearby, similar to a line buffer size. This is useful if the network is very sparse and you don't want the service area to cover large areas where there are no features.

        Parameters:
        polygonBufferDistance - the polygon buffer distance in meters
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getPolygonBufferDistance()
      • getPolygonDetail

        public ServiceAreaPolygonDetail getPolygonDetail()
        Gets the level of detail of the output polygons.

        If your analysis covers an urban area with a grid-like street network, the difference between generalized and standard polygons will be minimal. However, for mountain and rural roads, the standard and detailed polygons may present significantly more accurate results than generalized polygons.

        Returns:
        the level of detail of the output polygons
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getPolygonDetail()
      • setPolygonDetail

        public void setPolygonDetail​(ServiceAreaPolygonDetail polygonDetail)
        Sets the level of detail of the output polygons.

        If your analysis covers an urban area with a grid-like street network, the difference between generalized and standard polygons will be minimal. However, for mountain and rural roads, the standard and detailed polygons may present significantly more accurate results than generalized polygons.

        Parameters:
        polygonDetail - the level of detail of the output polygons
        Throws:
        IllegalArgumentException - if polygonDetail is null
        Since:
        100.1.0
        See Also:
        ServiceAreaTaskInfo.getPolygonDetail()
      • getGeometryAtCutoff

        public ServiceAreaPolygonCutoffGeometry getGeometryAtCutoff()
        Gets the behavior for the geometry at cutoff.

        Specifies the behavior of service area output for a single facility when multiple cutoff values are specified. This parameter does not apply to line output.

        Returns:
        the behavior for geometry at cutoff
        Since:
        100.1.0
      • setGeometryAtCutoff

        public void setGeometryAtCutoff​(ServiceAreaPolygonCutoffGeometry geometryAtCutoff)
        Sets the behavior for the geometry at cutoff.

        Specifies the behavior of service area output for a single facility when multiple cutoff values are specified. This parameter does not apply to line output.

        Parameters:
        geometryAtCutoff - the behavior for geometry at cutoff
        Throws:
        IllegalArgumentException - if geometryAtCutoff is null
        Since:
        100.1.0
      • isReturnPointBarriers

        public boolean isReturnPointBarriers()
        Indicates if point barriers will be returned in the result ServiceAreaResult.getPointBarriers().
        Returns:
        true if returning point barriers in the result is enabled, false otherwise
        Since:
        100.1.0
      • setReturnPointBarriers

        public void setReturnPointBarriers​(boolean returnPointBarriers)
        Sets whether to return point barriers used while computing service areas, in the result ServiceAreaResult.getPointBarriers().
        Parameters:
        returnPointBarriers - true to return point barriers, otherwise false
        Since:
        100.1.0
      • isReturnPolylineBarriers

        public boolean isReturnPolylineBarriers()
        Indicates if polyline barriers will be returned in the result ServiceAreaResult.getPolylineBarriers().
        Returns:
        true if returning polyline barriers in the result is enabled, false otherwise
        Since:
        100.1.0
      • setReturnPolylineBarriers

        public void setReturnPolylineBarriers​(boolean returnPolylineBarriers)
        Sets whether to return polyline barriers used while computing service areas, in the result ServiceAreaResult.getPolylineBarriers().
        Parameters:
        returnPolylineBarriers - true to return polyline barriers, otherwise false
        Since:
        100.1.0
      • isReturnPolygonBarriers

        public boolean isReturnPolygonBarriers()
        Indicates if polygon barriers will be returned in the result ServiceAreaResult.getPolygonBarriers().
        Returns:
        true if returning polygon barriers in the result is enabled, false otherwise
        Since:
        100.1.0
      • setReturnPolygonBarriers

        public void setReturnPolygonBarriers​(boolean returnPolygonBarriers)
        Sets whether to return polygon barriers used while computing service areas, in the result ServiceAreaResult.getPolygonBarriers().
        Parameters:
        returnPolygonBarriers - true to return polygon barriers, otherwise false
        Since:
        100.1.0
      • isReturnPolylines

        public boolean isReturnPolylines()
        Indicates if polylines will be returned in the result ServiceAreaResult.getResultPolylines(int).
        Returns:
        true if returning polylines in the result is enabled, false otherwise
        Since:
        100.1.0
      • setReturnPolylines

        public void setReturnPolylines​(boolean returnPolylines)
        Sets whether to return polylines used while computing service areas, in the result ServiceAreaResult.getResultPolylines(int).
        Parameters:
        returnPolylines - true to return polylines, otherwise false
        Since:
        100.1.0
      • isReturnPolygons

        public boolean isReturnPolygons()
        Indicates if polygons will be returned in the result ServiceAreaResult.getResultPolygons(int).
        Returns:
        true if returning polygons in the result is enabled, false otherwise
        Since:
        100.1.0
      • setReturnPolygons

        public void setReturnPolygons​(boolean returnPolygons)
        Sets whether to return polygons used while computing service areas, in the result ServiceAreaResult.getResultPolygons(int).
        Parameters:
        returnPolygons - true to return polygons, otherwise false
        Since:
        100.1.0
      • setFacilities

        public void setFacilities​(ArcGISFeatureTable featureTable,
                                  QueryParameters queryParameters)
        Sets the facilities around which service areas are generated, using features in a given feature table.

        The feature table can be either local or online and must be of geometry type point. Attributes from the feature table are mapped to the properties on the service area facilities objects generated from the feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until ServiceAreaTask.solveServiceAreaAsync(ServiceAreaParameters) is called.

        Note: calling this method causes any facilities set by a previous call or calling setFacilities(Iterable) to be cleared.

        Parameters:
        featureTable - the feature table
        queryParameters - the query parameters
        Throws:
        IllegalArgumentException - if featureTable or queryParameters is null
        Since:
        100.1.0
      • setPointBarriers

        public void setPointBarriers​(ArcGISFeatureTable featureTable,
                                     QueryParameters queryParameters)
        Sets the point barriers to avoid in the result service areas, using features in a given feature table.

        The feature table can be either local or online and must be of geometry type point. Attributes from the feature table are mapped to the properties on the barrier objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until ServiceAreaTask.solveServiceAreaAsync(ServiceAreaParameters) is called.

        Note: calling this method causes any point barriers set by a previous call or calling setPointBarriers(Iterable) to be cleared.

        Parameters:
        featureTable - the feature table
        queryParameters - the query parameters
        Throws:
        IllegalArgumentException - if featureTable or queryParameters is null
        Since:
        100.1.0
      • setPolylineBarriers

        public void setPolylineBarriers​(ArcGISFeatureTable featureTable,
                                        QueryParameters queryParameters)
        Sets the polyline barriers to avoid in the result service areas, using features in a given feature table.

        The feature table can be either local or online and must be of geometry type polyline. Attributes from the feature table are mapped to the properties on the barrier objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until ServiceAreaTask.solveServiceAreaAsync(ServiceAreaParameters) is called.

        Note: calling this method causes any polyline barriers set by a previous call or calling setPolylineBarriers(Iterable) to be cleared.

        Parameters:
        featureTable - the feature table
        queryParameters - the query parameters
        Throws:
        IllegalArgumentException - if featureTable or queryParameters is null
        Since:
        100.1.0
      • setPolygonBarriers

        public void setPolygonBarriers​(ArcGISFeatureTable featureTable,
                                       QueryParameters queryParameters)
        Sets the polygon barriers to avoid in the result service areas, using features in a given feature table.

        The feature table can be either local or online and must be of geometry type polygon. Attributes from the feature table are mapped to the properties on the barrier objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until ServiceAreaTask.solveServiceAreaAsync(ServiceAreaParameters) is called.

        Note: calling this method causes any polygon barriers set by a previous call or calling setPolygonBarriers(Iterable) to be cleared.

        Parameters:
        featureTable - the feature table
        queryParameters - the query parameters
        Throws:
        IllegalArgumentException - if featureTable or queryParameters is null
        Since:
        100.1.0