URL | http://baoapi.esri.com/rest/report/DriveTime |
---|
Create drive time or drive distance-based trade/service areas, get mappable representations of these areas, and summarize their underlying demographics and market characteristics with a library of reports.
The Drive Time service creates driving distance or driving time-based analysis areas around point features such as businesses, hospitals, schools, etc. The result of this service is a TaskResultOutput object, which is compatible with ArcGIS Server's mapping APIs. Optional analysis, which can be requested simultaneously, includes the creation of Summary Reports based on the resulting Drive Time analysis areas.
The Drive Time service can be leveraged to create Summary Reports in PDF, XML, or S.XML (Simplified XML) report formats. These options enable creation of presentation-ready reports or analysis output that can be easily integrated into other systems, applications, workflows, or report generation tools.
S.XML (Simplified XML) Report Output:
ReportOptions
parameter.Drive time analysis areas use street networks and approximate driving times based on attributes associated with the traversed streets around the Drive Time origins or point features. These origins may be point features such as a businesses, store fronts, organizations, agencies, hospitals, or service centers that may serve the area or region, and may have competitors or affiliates nearby. The output of the Drive Time service differs significantly from Simple Rings-generated areas, which define these areas based on straight-line ("as the crow flies") distances from the origin points.
Some applications of Drive Time include the following:
STOREID
(case insensitive), specification of the StoreIDField parameter is required so the analyses can be properly executed.null
refer to the absence of any value (empty value). Do not use the null keyword as a parameter value as it will be interpreted as a (non-empty) string value.You can provide arguments to the Drive Time analysis service as defined in the parameters table below.
Parameter | Details |
---|---|
DistanceUnits (Required) |
Description:
The time or distance units of the Radii parameter which is used to calculate the Drive Time trade/service areas.
Syntax: |
Radii (Required) |
Description:
A list of Drive Time times or distances in the units specified in the DistanceUnits parameter. This parameter expects one or more non-negative numerical values. If there is more than one value specified, the values should be unique, ascending, and separated by semicolons with no spaces in between.
Syntax: Notes: The maximum allowed drive time radius value is 300. |
Stores (Required) |
Description: A list of point features such as businesses, hospitals, schools, etc. which represent the locations from which the Drive Time trade/service areas will originate. The Stores parameter consists of a PointLayer constructed with a FeatureSet or an ArrayOfPointRecords. Default: null
Syntax:
{ "RecordSet" : { "geometryType": "esriGeometryPoint", "spatialReference": <SpatialReference>, "features": [ { "geometry": <Point>, "attributes": <Attributes> }, { "geometry": <Point>, "attributes": <Attributes> }, ... { "geometry": <Point>, "attributes": <Attributes> } ] }, "SpatialReference": <SpatialReference> } Example (1) (PointLayer as FeatureSet): { "RecordSet": { "geometryType": "esriGeometryPoint", "spatialReference": {"wkid": 4326}, "features": [ { "geometry": { "x": -117.194152, "y": 34.057165, "spatialReference": {"wkid": 4326} }, "attributes": { "STORE_ID": "1" } }, { "geometry": { "x": -117.232605, "y": 32.870896, "spatialReference": {"wkid": 4326} }, "attributes": { "STORE_ID": "2" } } ] }, "SpatialReference": {"wkid": 4326} } Notes: Known Dependencies: The features must be of type Syntax (1) (PointLayer as FeatureSet) should be used when specifying input features of an alternate SpatialReference. See Example 3 to view a request example specifying input features of an alternate reference system. Syntax (2) (PointLayer as ArrayOfPointRecords): { "Points" : <ArrayOfPointRecords> } Example (2) (PointLayer as ArrayOfPointRecords): { "Points": [ { "longitude": -122.434616, "latitude": 37.784298, "name": "store1", "description": "First store", "storeID": "1" }, { "longitude": -122.432871, "latitude": 37.733342, "name": "store2", "description": "Second store", "storeID": "2" } ], "spatialReference": {"wkid": 4326} } Notes: White space in the attribute values may be substituted with the Known Dependencies: At a minimum, attributes and corresponding values for Syntax (1) (PointLayer as FeatureSet) should be used when specifying input features of an alternate SpatialReference. See Example 3 to view a request example specifying input features of an alternate reference system. |
TaskOutputType (Required) |
Description:
The operations that will execute in the single Web services request. If more than one operation is specified, they should be unique and separated by semicolons with no spaces in between. GetFeatureClass returns the serialized geometry and attributes of the output Drive Time trade/service area in the response. GetReport specifies creation of Summary Reports based on the output Drive Time trade/service areas and returns links to the reports in the response. GetMapImage specifies the creation of a map image in the output.
Default: GetReport Syntax: TaskOutputType=<TaskOutputTypeArray> Example: TaskOutputType=GetFeatureClass;GetReport
Notes: Known Dependencies: Generation of output summary reports requires specification of the |
Token (Required) |
Description:
A valid REST services token string.
Syntax: Notes: The value associated with the Token parameter is for example purposes only. See Get Token for more information on obtaining a token. |
ActiveDatasetID |
Description:
Specify a dataset to perform Online API tasks or operations.
Default: USA Notes: See the Get Datasets task to dynamically query the available dataset IDs. |
Callback |
Description: Wrap the JSON or PJSON response in a named function that can be executed by client-side JavaScript upon receipt.
Default: Notes:
|
Donut |
Description:
Boolean parameter specifying creation of non-overlapping donut-style Drive Time trade/service area bands instead of overlapping areas that all originate from the store/point origins.
Default: false
Syntax: Notes: Drive Time rings using the Donut parameter option create output ring-based trade/service areas that are in bands instead of concentric overlapping rings. For example, if three radii are entered with values of one, two, and three minutes, three output bands would be created with 0-1, 1-3, and 3-5 minute Drive Time trade area bands instead of 0-1, 0-3, and 0-5 minute Drive Time trade areas. This will result in a significant difference in the output of subsequent analysis operations such as Summary Reports. |
f |
Description:
The response format.
Default: HTML
Syntax: |
OutputSpatialReference |
Description:
Specify a spatial reference (coordinate) system for the output geometry (coordinate-based representations of features).
Default: {"WKID":4326}
Notes: The Well-known IDs (WKIDs) of several geographic and projected coordinate systems are available here. |
ReportOptions |
Description: Summary Reports options including output report template names, formats, and custom fields/headings. See Get Report Templates to retrieve a list of available report templates and the supported custom fields/headers for each template. Default: null
Syntax:
[ { "TemplateName": "market_profile", "ReportFormat": "PDF", "ReportHeader": [ { "Key": "address", "Value": "[address+field]" }, { "Key": "locationname", "Value": "[locationname+field]" }, { "Key": "subtitle", "Value": "[subtitle+field]" } ] }, { "TemplateName": "market_profile", "ReportFormat":"S.XML" } ] Notes: To generate Summary Reports, White space in the attribute values may be substituted with the + character (e.g. "My+Report+Subtitle"). URL encoding also allows the use of %20 in place of spaces. Most Online API report templates include customizable fields and logo graphics. One or more supported customizable fields and their associated custom field values can be specified in the ReportHeader property of this parameter. To determine what customizable header fields and logo graphics are supported and are available for each report template, please see Get Report Templates. "ReportFormats"can include "Excel", "PDF", "S.XML" and "XML" based on their availability as described in Get Report Templates. "TemplateNames" are the names of the report templates as described by Get Report Templates. See Get Report Templates to retrieve a list of available report templates and the supported custom fields/headers for each template. |
StoreIDField |
Description:
The attribute field name in the input Stores parameter which is associated with unique store/business IDs (typically store numbers for retail establishments with multiple locations).
Default: STOREID
Syntax: Notes: Known Dependencies: When the associated value of the Stores parameter is composed of a FeatureSet, a value for the StoreIDField parameter is required. |
Example 1: Create 1, 3, and 5-minute Drive Time trade/service area rings around a store/origin point described by a PointLayer as FeatureSet and return the serialized feature class geometry in PJSON format.
Request Example (1)
Notes: The Request Example is hyperlinked with the URL-encoded request URI without a valid token parameter value. Include a valid token value to submit. See Get Token for more information on obtaining a token.
Example 2: Create 2-minute Drive Time trade/service area rings around two different store/origin points described by a PointLayer as ArrayOfPointRecords and return the serialized feature class geometry in PJSON format along with two Summary Reports.
Request Example (2)
Notes: White space in the attribute values may be substituted with the +
character (e.g. "First+store"). URL encoding also allows the use of %20
in place of spaces.
Notes: The Request Example is hyperlinked with the URL-encoded request URI without a valid token parameter value. Include a valid token value to submit. See Get Token for more information on obtaining a token.
Example 3: Create multiple drive distance-based trade/service area rings around two different store/origin points described by an input PointLayer as FeatureSet in the Web Mercator projected SpatialReference system and return the serialized feature class geometry in PJSON format in Web Mercator along with a report from the Census 2010 dataset describing/summarizing several data points for the the area.
Request Example (3)
Notes: White space in the attribute values may be substituted with the +
character (e.g. "First+store"). URL encoding also allows the use of %20
in place of spaces.
Syntax (1) (PointLayer as FeatureSet) should be used when specifying input features of an alternate SpatialReference.
The Request Example is hyperlinked with the URL-encoded request URI without a valid token parameter value. Include a valid token value to submit. See Get Token for more information on obtaining a token.
JSON Response Syntax
JSON Response Example (1)
{ "RecordSet": { "geometryType": "esriGeometryPolygon", "spatialReference": {"wkid": 4326}, "features": [ { "attributes": { "AREA_ID": "1_3", "STORE_ID": "1", "RING": 3, "RING_DEFN": "5 minutes", "AREA_DESC": "0 - 5 minutes", "AREA_DESC2": "Drive Time: 5 minutes", "AREA_DESC3": "Drive Time: 1, 3, 5 minutes", "STORE_LAT": 34.057165000000055, "STORE_LONG": -117.19415199999997 }, "geometry": { "rings": [ [ [-117.191141, 34.085942], [-117.19101, 34.085564], ... [-117.191141, 34.085942] ] ], "spatialReference": {"wkid": 4326} } }, { "attributes": { "AREA_ID": "1_2", "STORE_ID": "1", "RING": 2, "RING_DEFN": "3 minutes", "AREA_DESC": "0 - 3 minutes", "AREA_DESC2": "Drive Time: 3 minutes", "AREA_DESC3": "Drive Time: 1, 3, 5 minutes", "STORE_LAT": 34.057165000000055, "STORE_LONG": -117.19415199999997 }, "geometry": { "rings": [ [ [-117.191887, 34.070081], [-117.191246, 34.071291], ... [-117.191887, 34.070081] ] ], "spatialReference": {"wkid": 4326} } }, { "attributes": { "AREA_ID": "1_1", "STORE_ID": "1", "RING": 1, "RING_DEFN": "1 minutes", "AREA_DESC": "0 - 1 minutes", "AREA_DESC2": "Drive Time: 1 minute", "AREA_DESC3": "Drive Time: 1, 3, 5 minutes", "STORE_LAT": 34.057165000000055, "STORE_LONG": -117.19415199999997 }, "geometry": { "rings": [ [ [-117.193096, 34.058611], [-117.193024, 34.058574], ... [-117.193096, 34.058611] ] ], "spatialReference": {"wkid": 4326} } } ] } }
Notes: The response has been abbreviated in the example where "..." is noted.
JSON Response Example (1) Rendered with the ArcGIS API for JavaScript
Notes: The Drive Time trade/service areas associated with "STORE_ID": "1"
is displayed.
The thematic shading of the features is for illustrative purposes only and is not representative of their corresponding attribute values.
JSON Response Example (2)
{ "RecordSet": { "geometryType": "esriGeometryPolygon", "spatialReference": {"wkid": 4326}, "features": [ { "attributes": { "AREA_ID": "1_1", "STORE_ID": "1", "RING": 1, "RING_DEFN": "2 Minutes", "AREA_DESC": "0 - 2 Minutes", "AREA_DESC2": "Drive Time: 2 Minutes", "STORE_LAT": 34.042737, "STORE_LONG": -117.183838, "Latitude": 34.042737, "Longitude": -117.183838, "NAME": "store1", "DESCR": "potential loc 1", "STORE_ADDR": " " }, "geometry": { "rings": [ [ [-117.183338, 34.052737], [-117.183239, 34.052703], ... [-117.183338, 34.052737] ] ], "spatialReference": {"wkid": 4326} } }, { "attributes": { "AREA_ID": "2_1", "STORE_ID": "2", "RING": 1, "RING_DEFN": "2 Minutes", "AREA_DESC": "0 - 2 Minutes", "AREA_DESC2": "Drive Time: 2 Minutes", "STORE_LAT": 34.063541, "STORE_LONG": -117.182004, "Latitude": 34.063541, "Longitude": -117.182004, "NAME": "store2", "DESCR": "potential loc 2", "STORE_ADDR": " " }, "geometry": { "rings": [ [ [-117.182386, 34.080416], [-117.182213, 34.080014], ... [-117.182386, 34.080416] ] ], "spatialReference": {"wkid": 4326} } } ] }, "Reports": [ { "TemplateName": "dandi", "ReportDescription": "2010 Demographic and Income Profile", "ReportFormat": "PDF", "ReportURL": "http://baoapi.esri.com/BAO93out/output/reports/dandi_1273852713678C483E731-5062-5B60-F078-410D5F9F6B99.pdf" }, { "TemplateName": "dandi", "ReportDescription": "2010 Demographic and Income Profile", "ReportFormat": "S.XML", "ReportURL": "http://baoapi.esri.com/BAO93out/output/reports/dandi_12738527137091DBC2DFF-C8A1-EF9D-1F34-417CDB42F230.s.xml" } ] }
Notes: The response has been abbreviated in the example where "..." is noted.
URL links to reports expire after a short period of time.
JSON Response Example (2) Rendered with the ArcGIS API for JavaScript
Notes: The thematic shading of the features is for illustrative purposes only and is not representative of their corresponding attribute values.
Example (2) PDF Report Example
Example (2) S.XML (Simplified XML) Report Example
JSON Response Example (3)
{ "RecordSet": { "geometryType": "esriGeometryPolygon", "spatialReference": {"wkid": 102100}, "features": [ { "attributes": { "AREA_ID": "1_3", "STORE_ID": "1", "RING": 3, "RING_DEFN": "5 miles", "AREA_DESC": "0 - 5 miles", "AREA_DESC2": "Drive Time: 5 miles", "AREA_DESC3": "Drive Time: 1, 3, 5 miles", "STORE_LAT": 4034542.0057, "STORE_LONG": -1.30448451754E7 }, "geometry": { "rings": [ [ [ -1.3044699313505E7, 4043665.468774 ], [ -1.3044682620841E7, 4043649.105591 ], ... [ -1.3044699313505E7, 4043665.468774 ] ] ], "spatialReference": {"wkid": 102100} } }, ... { "attributes": { "AREA_ID": "1_1", "STORE_ID": "1", "RING": 1, "RING_DEFN": "1 miles", "AREA_DESC": "0 - 1 miles", "AREA_DESC2": "Drive Time: 1 mile", "AREA_DESC3": "Drive Time: 1, 3, 5 miles", "STORE_LAT": 4034542.0057, "STORE_LONG": -1.30448451754E7 }, "geometry": { "rings": [ [ [ -1.3044708035689E7, 4035976.457314 ], [ -1.3044705959307E7, 4035973.271724 ], ... [ -1.3044708035689E7, 4035976.457314 ] ] ], "spatialReference": {"wkid": 102100} } } ] }, "Reports": [ { "TemplateName": "census2010_profile", "ReportDescription": "Census 2010 Profile", "ReportFormat": "PDF", "ReportURL": "http://baoapi.esri.com/BAO93out/output/reports/census2010_profile__13055072646286CBCA64F-FB6D-B9F3-2FDE-D63EC3696A52.pdf" } ] }
Notes: The response has been abbreviated in the example where "..." is noted.
URL links to reports expire after a short period of time.
Example (3) PDF Report Example