Documente Academic
Documente Profesional
Documente Cultură
Analytics
Table of Contents
ArcGIS for Transportation Analytics Contents and Configuration Overview . . . . . . . . . . . . . . . . . . . . . . . 3
Configure the street data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Optional turn-by-turn driving directions and voice guidance for drivers via on-board electronic devices, including smartphones
An overview of the routing plan through the Dashboard app, which also provides other optional, high-level views, including the
following:
Status of planned orders (Planned, Finished, Could not service)
Basic setup
After performing these steps you'll have VRP, route, and locator services hosted on your own ArcGIS server and, optionally, the
Route Planner sample application configured to use these services in optimal route calculation for your fleet.
1. Install ArcGIS for Desktop and ArcGIS for Server. See the installation instructions included with the setups you downloaded.
2.
Set up network and locator data for publishing VRP and route services. See Configure street data for details.
3.
Publish VRP, route, and geocode services. See the service-publishing topics for details.
4.
Configure the Route Planner sample app. See Route Planner: install and configure for details.
Install a relational database management system (RDBMS). Examples within this documentation demonstrate Microsoft SQL
Server 2008 R2.
2.
Set up an enterprise database. See Set up the enterprise geodatabase for details.
3.
Publish a feature service for the Route Planner to send your route schedules. See Publish the Workforce Management
feature service.
4.
Deploy and configure the Dashboard sample app. See Dashboard sample app: install and configure.
Navigation add-on
If you've purchased the Navigation add-on, you'll be able to push your work schedules to drivers in the field with Windows devices.
They'll receive voice-guided, turn-by-turn directions and will be able to update the status of each work order as they service it. The
status dashboard user will be able to view these order status updates as well as view the current location of drivers in the field. Note
that the iOS Navigator sample can be used for the same purpose.
1.
Install and configure the Windows Navigator on a tablet PC or laptop with a GPS chip. See the navigator installation and
configuration help included with the product.
2.
Obtain, build, and deploy the iOS Navigator. See the iOS Navigator help for details. Note that you will need to compile and
deploy this from your own Apple Enterprise developer account.
Traffic add-on
If you've purchased the traffic add-on, you'll be able to visualize and use real-time traffic in your routing.
1.
If you haven't already done so, set up your enterprise database; see Set up the live traffic feed.
2.
3.
Configure your sample applications to use traffic services. See the installation and configuration application topics.
Copy the geodatabase you received and paste it into a folder on your ArcGIS machine. If ArcGIS for Desktop and ArcGIS for
Server are installed on separate machines, paste the data into both. Furthermore, if your site is made up of many ArcGIS for
Server machines, paste the data into a local folder on each machine and use the same folder path. Regardless of how many
machines you are using, make sure that the folder you paste the data into is local (for example,
D:\Services\SharedData) for each machine; don't use universal naming convention (UNC) paths, such as
\\computer\folderName, so that the services you eventually create can access the data as quickly as possible.
The data you need to copy to locate addresses with the geocode service is stored in locators found in the StreetMap Premium
for ArcGIS media; however, the locators are fragmented for delivery purposes. You need to assemble them by following the
instructions included with StreetMap Premium for ArcGIS.
2.
Read the Quick-Start Guide and assemble the locators. You can find the guide in the StreetMap Premium for ArcGIS media
at DVD1 > QuickStartGuide.htm.
3.
Once you have set up your locators, copy them into a Locators folder.
4.
Paste the Locators folder into each of the ArcGIS machines as you did with the geodatabase in step 1. The geodatabase
and the Locators folder should be siblings in the same directory; for example, if you have
D:\Services\SharedData\NorthAmerica.gdb, the Locators folder should be found at
D:\Services\SharedData\Locators. Again, if multiple machines are used in a cluster, copy the data to each machine.
Now that your data is stored locally on all machines, you will register the folder as a data store to take advantage of the
benefits described at the top of this document.
5.
Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.1.
6.
From the Catalog window, create a new administrator or publisher connection to your GIS server. You start this process by
expanding the GIS Servers node and double-clicking Add ArcGIS Server.
7.
After you make the server connection, and it appears on the bottom of the list under GIS Servers, right-click it and choose
Server Properties.
8.
9.
10.
Specify a name in the Name text box. Any descriptive name that helps you remember that the folder contains data for your
Transportation Analytics services will work.
11.
In the Publisher folder path text box, specify the folder containing the geodatabase, for example,
D:\Services\SharedData.
12.
Under Server folder path, check Same as publisher folder path if it's not already checked. This option means the path is
exactly the same for the ArcGIS for Desktop and ArcGIS for Server machines.
13.
Click OK.
The Register Folder dialog box closes.
14.
Click OK.
The ArcGIS Server Properties dialog box closes.
Now that the data you need for the route, vehicle routing problem, and geocode services are in place, and ArcGIS knows where the data
is, you can create those services.
2.
Follow the substeps below to make a connection to the file geodatabase you received with the ArcGIS for Transportation
Analytics bundle.
a. Click the Catalog Window button on the Standard toolbar to open the Catalog window.
b.
In the Catalog window, right-click Folder Connections and choose Connect to Folder.
The Connect To Folder dialog box appears.
c.
Browse to or type the folder path of the location where the file geodatabase is stored.
The folder path should point to the same location as the one you specified in the Register Folder dialog box
while working through the steps in Configuring the street data. In those steps, the example path given was
D:\Services\SharedData.
d.
Click OK.
The Connect To Folder dialog box closes and a connection is added to the Folder Connections node in the
Catalog window.
3.
In the Catalog window, navigate to the new folder connection, expand the contents of the file geodatabase, then expand
the Routing feature dataset.
In the Routing feature dataset, you should see several feature classes and a network dataset named Routing_ND. The
feature classes are referenced by the network dataset.
4.
Add the network dataset to ArcMap by dragging it from the Catalog window and dropping it into ArcMap's map view or
table of contents.
The Adding Network Layer dialog box appears.
5.
Click No.
The network dataset begins to draw; however, this process may take a while and visualizing the network dataset isn't
necessary, so you will cancel the drawing.
6.
7.
Uncheck Routing_ND in the Table of Contents window so the layer won't draw when the map is refreshed.
8.
9.
10.
11.
Click OK.
You need only a network dataset to create a routing service, but if you are going to use the iOS Navigator app and take
advantage of special locating capabilities that avoid reroutes while driving in a parking lot, for example, you also need to
add the Streets feature class to the map and create a feature service. Aside from checking a Query check box when
publishing, creating the feature service is automatic when creating this route service.
12.
If you are going to use the ArcGIS for Transportation Analytics iOS Navigator app, add the Streets feature class to
ArcMap. (The Streets feature class is a sibling to the Routing_ND network dataset that you just added.)
a.
Optionally, press ESC to stop the layer from drawing. Depending on which region of data you are working with
and your map's extent, there may be millions of lines to draw, which can take several minutes to complete.
Viewing the streets isn't necessary.
b.
Uncheck Streets in the Table of Contents window to prevent it from drawing again.
Although you've added two layers to ArcMap, the map viewer is blank. The layers don't need to be visible for the publishing
process.
2.
From the Network Analyst Toolbar, click Network Analyst > New Route.
A network analysis layer and its sublayers are added to the table of contents.
3.
Some metadata is required to publish any service successfully. Follow the substeps below to add metadata to the map
document.
a. From the menu bar, click File > Map Document Properties.
The Map Document Properties dialog box appears.
b.
4.
Add text to the Title, Summary, Description, Author, Credits, and Tags sections.
5.
From the menu bar, click File > Share As > Service.
The Share as Service wizard appears.
6.
7.
Under Choose a connection, choose the GIS server connection that you set up while following the steps in Configuring
the street data.
8.
9.
Click Next.
10.
Choose whether to publish the route service to an existing folder on your server, which includes the root level, or to a new
folder. Publishing to the root level is common.
11.
Click Continue.
The Service Editor dialog box appears.
12.
Click Capabilities in the left pane. Uncheck KML and check Network Analysis.
13.
Click Network Analysis in the left pane, click the General tab on the right pane, then follow the substeps below.
a. Specify 10 Meters for Default Output Geometry Precision.
14.
b.
Make sure that Allow saving result layer on the server is checked.
c.
Click Pooling, which is on the left pane of the dialog box, and specify the minimum and maximum number of instances per
machine. For optimal throughput, the recommended minimum and maximum values should be equal to the number of
cores on the server machine.
15.
16.
Examine the messages in the Prepare window and take appropriate action. Note that error messages require corrective
action, while warning and information messages do not, but fixing them may improve service performance. You can rightclick a message for recommended and automated fixes and links to help documents.
a. One warning message you should fix is The output shape type has measures enabled. Right-click the
message and choose Disable measure output.
17.
2.
3.
Click Yes if you are asked if you want to save changes to Route.mxd.
To use the new service with the Find Route tool, you need a user connection to the GIS server that hosts your route
service. You should already have a connection from when you were registering your data in the Data Store dialog box;
however, that connection was set up with administrator or publisher privileges, not user-level privileges.
4.
Set up a user-level connection to your GIS server. You can start this process in the Catalog window by expanding GIS
Servers and double-clicking Add ArcGIS Server.
Now that you have a user connection, you will add a basemap for reference so that when you interactively add stops for a
route, you can confirm they are placed within the region your data covers.
5.
On the Standard toolbar, click the drop-down arrow next to the Add Data button
The Add Basemap dialog box appears.
6.
Double-click a basemap that works well for referencing the road network in your region, such as Streets, National
Geographic, Topographic, or OpenStreetMap.
7.
Zoom in to the region the data in your file geodatabase covers. Zoom to a scale of 1:500,000 or so to ensure your route
takes only a moment to calculate.
8.
9.
10.
Click the browse button that is to the right of the Routing Service drop-down list.
The Choose Routing Service dialog box appears.
11.
12.
Expand the user connection to your server that houses the route service you published. Make sure that the connection
name ends with (user).
13.
Click the route service. If you stored the service in the root level of the server, you won't need to expand any folders;
otherwise, you'll need to navigate down to the location you specified earlier.
14.
Click Open.
The service is listed and chosen in the Routing Service drop-down list of the Find Route dialog box.
15.
16.
Click the add stops interactively button, which has a white arrow cursor and a red dot on it.
10
17.
Click on the map to add a stop. You may need to reposition the Find Route dialog box to see the map view.
18.
19.
Click the Find Route button on the Find Route dialog box.
A route should appear, confirming your route service is functioning. If the route is infeasible, you can try adding more stops
or moving them and re-solving.
In this topic, you added a network dataset to the map, created a route analysis layer, and published the map to create a routing service.
You will add two more GIS services to support your instance of ArcGIS for Transportation Analytics: a vehicle routing problem service and
a geocode service.
11
Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.1.
If it's already started, open a new, blank document.
2.
Add to ArcMap the Routing_ND network dataset from the file geodatabase you received with the Transportation Analytics
bundle. If you need extra guidance with this step, see the substep below.
a. In the first set of steps from Publishing the route service, you made a folder connection to the geodatabase
containing the Transportation Analytics network dataset. Browse to that folder connection in the Catalog window,
expand the file geodatabase inside the folder, then expand the Routing feature dataset. Add the Routing_ND
network dataset to the map by dragging it from the Catalog window and dropping it into ArcMap's map view or
table of contents.
The Adding Network Layer dialog box appears.
3.
Click No.
The network dataset begins to draw; however, this process may take a while and visualizing the network dataset isn't
necessary, so you will cancel the drawing.
4.
5.
Uncheck Routing_ND in the Table of Contents window so that the layer won't draw when the map is refreshed.
6.
7.
8.
9.
Click OK.
The VRP services you are publishing are more generically referred to as geoprocessing services. You need to successfully
run a geoprocessing tool at least once before you can publish it as a geoprocessing service. In the next steps, you will add
a basemap and zoom in to a large scale to make it easier to set up a simple problem and solve it.
10.
On the Standard toolbar, click the drop-down arrow next to the Add Data button
The Add Basemap dialog box appears.
11.
Double-click a basemap that works well for referencing the road network in your region, such as Streets, National
Geographic, Topographic, or OpenStreetMap.
12
12.
Zoom in to the region that the data in your file geodatabase covers. Zoom to a scale of around 1:100,000.
13.
c.
Click Close.
14.
15.
Optionally, reposition or dock the Results window so you can see the map.
16.
From the Catalog window, expand Toolboxes > System Toolboxes > Network Analyst Tools > Server.
17.
Double-click the Solve Vehicle Routing Problem tool to open its tool dialog box.
18.
Enter inputs to the Solve Vehicle Routing Problem as specified in the substeps.
a. Click the point symbol that is labeled orders, then click on the map to add an order.
b.
Click the point symbol that is labeled depots, then click on the map to add a depot.
c.
Locate the SolveVehicleRoutingProblem::depots layer in the Table of Contents window, right-click the layer
name, and choose Open Attribute Table.
The Table window opens.
d.
Type d1 in the Name field of the lone depot record. The depot now has an identifying name so the route you
create next can be associated with the depot.
e.
f.
In the Solve Vehicle Routing Problem tool dialog box, click the Add button under the Routes parameter.
A route is created, as indicated by the 1 in the table under the Routes parameter.
g.
Type d1 in the StartDepotName field. The start depot name must match the name of a depot feature.
h.
Click the drop-down list in the Network Dataset parameter and choose Routing_ND. This indicates the VRP
analysis will be performed on the network dataset you added to the map in a prior step.
i.
j.
The inputs and, eventually, the results of the analysis are summarized in the Results window.
19.
20.
Make sure that the solve was successful before proceeding. If it was unsuccessful, look at the Messages section under
SolveVehicleRoutingProblem to determine what caused the failure. Try to reopen the tool, add new inputs, and solve
again. The tool needs to execute successfully before you can publish it as a service.
21.
22.
23.
Choose the publisher or administrator connection to your server from the Choose a connection drop-down list.
24.
25.
Click Next.
26.
Choose whether to publish the route service to an existing folder on your server, which includes the root level, or to a new
folder. It is common to publish to the root level.
27.
Click Continue.
The Service Editor dialog box appears.
28.
c.
Type 100000 (100,000) in the Maximum number of records returned by the server text box.
13
29.
Click Pooling, which is on the left pane of the dialog box, and specify the minimum and maximum number of instances per
machine. For optimal throughput, the recommended minimum and maximum values should be equal to the number of
cores on the server machine.
30.
On the left pane of the dialog box, under Solve Vehicle Routing Problem, click the Network Dataset parameter, which is
also in the left pane, then choose Constant Value from the Input mode drop-down list.
31.
Time Attribute
Distance Attribute
32.
33.
34.
35.
Examine the messages in the Prepare window and take appropriate action. Note that error messages require corrective
action, warning and information messages do not, but fixing them may improve service performance. You can right-click a
message for recommended fixes and links to help documents.
36.
Once the process is complete, the asynchronous VRP service is available on your server. This is the service used to solve
vehicle routing problems for the first time.
Keep ArcMap open; you will continue to use it in subsequent sections.
2.
3.
4.
Choose the publisher or administrator connection to your server from the Choose a connection drop-down list.
5.
6.
Click Next.
7.
Choose whether to publish the route service to an existing folder on your server, which includes the root level, or to a new
folder. It is common to publish to the root level.
8.
Click Continue.
The Service Editor dialog box appears.
14
9.
c.
Type 100000 (100,000) in the Maximum number of records returned by the server text box.
10.
Click Pooling, which is on the left pane of the dialog box, and specify the minimum and maximum number of instances per
machine. For optimal throughput, the recommended minimum and maximum values should be equal to the number of
cores on the server machine.
11.
On the left pane of the dialog box, under Solve Vehicle Routing Problem, click the Network Dataset parameter, then
choose Constant Value from the Input mode drop-down list.
12.
As you did in the previous step, set Input Mode to Constant value but for the following parameters:
Output Unassigned Stops Name
Time Attribute
Distance Attribute
13.
14.
15.
16.
Examine the messages in the Prepare window and take appropriate action. Note that error messages require corrective
action, while warning and information messages do not, but fixing them may improve service performance. Right-click a
message for recommended fixes and links to help documents.
17.
Once the process is complete, the synchronous VRP service will be available on your server. This is the service used to resolve vehicle routing problems that have been edited.
Keep ArcMap open if you plan to continue on to the next section and test your service; otherwise, close the map document
without saving it.
2.
3.
4.
On the Standard toolbar, click the drop-down arrow next to the Add Data button
The Add Basemap dialog box appears.
15
5.
Double-click a basemap that works well for referencing the road network in your region, such as Streets, National
Geographic, Topographic, or OpenStreetMap.
6.
Zoom in to the region that the data in your file geodatabase covers. Zoom to a scale of around 1:100,000.
7.
In the Catalog window, expand GIS Servers > [the name of your GIS server] > VehicleRoutingProblem.
8.
9.
Click the point symbol that is labeled depots, then click on the map to add a depot.
c.
Locate the SolveVehicleRoutingProblem::depots layer in the Table of Contents window, right-click the layer
name, and choose Open Attribute Table.
The Table window opens.
d.
e.
f.
In the Solve Vehicle Routing Problem task dialog box, click the Add button under the Routes parameter.
A route is created, as indicated by the 1 in the table under the Routes parameter.
g.
Type d1 in the StartDepotName field. The start depot name must match the name of a depot feature.
h.
i.
By following the steps in this topic, you should have set up synchronous and asynchronous VRP services for creating and editing fleet
routing plans. Later, you will configure the Route Planner application to reference these services. In the meantime, however, you will need
to set up a geocode service, which will allow you to pass text addresses into the service and receive geographic coordinates that
represent those addresses. The addresses and their geographic locations can be passed into these VRP services, which allows your fleet
of vehicles to be routed to the addresses of your work orders.
16
Start ArcMap.
In Configure the street data, you copied a file geodatabase and locators from the StreetMap Premium for ArcGIS media and
pasted them into a folder on your ArcGIS for Desktop and ArcGIS for Server machines, then you registered the folder with
ArcGIS.
2.
In the Catalog window, browse to the Locators folder you previously copied. For example, if you copied the locators to
D:\Services\SharedData\Locators and made a folder connection to it, browse to Folder Connections >
D:\Services\SharedData > Locators.
A list of locators appears.
The locators you see are unique to the region or regions you chose when you purchased ArcGIS for Transportation
Analytics. You will need to choose a locator to publish as a geocode service.
Of the different locator types, those based on address points tend to provide the best results for routing vehicles; however,
address points may not be available in your region. Locators created with street addresses, that is, by interpolating the
location of an address from a high and low address range along a street, is another reliable option. The most commonly
used locators are the composite locators for individual countries. These composite locators try to locate addresses at the
most accurate level (for example, the address-point or street-address level), then fall back down through less accurate
locators, one at a time, until the address is found.
Larger organizations often choose regional composite locators, which consist of multiple, country-level composite locators.
For example, a good choice for an organization that is routing strictly within the United States is USA_[release
version]_CompositeAdvanced. NA_[release version]_CompositeAdvanced tends to be a good choice if you are routing in
the U.S. and Canada or Mexico. (NA in the locator name is an abbreviation for North America.)
If you are routing domestically in Finland, a good locator choice is FIN_Geocoding_Service. Yet, if your routes span most of
Europe, Europe_Geocoding_Service locator is recommended.
Tip: You can find descriptions for the different kinds of locators in the StreetMap Premium for ArcGIS
help.
To open the help, browse within the StreetMap Premium for ArcGIS media to DVD1 >
Documentation and double-click help.htm.
Once the help system is opened, click Geocoding addresses > About the address locators.
A table lists and describes the various locators.
3.
In the Catalog window of ArcMap, right-click the locator you want to publish and click Share As > Geocode Service.
The Share as Service dialog box opens.
4.
5.
Choose the publisher or administrator connection to your server from the Choose a connection drop-down list.
6.
Type GeocodeService in the Service name text box. Type a more descriptive name if you want or if you plan to publish
more geocode services.
7.
Click Next.
8.
Choose whether to publish the geocode service to an existing folder on your server, which includes the root level, or to a
new folder. It is common to publish to the root level.
9.
Click Continue.
The Service Editor dialog box appears.
10.
17
a.
11.
12.
Examine the messages in the Prepare window and take appropriate action. Note that error messages require corrective
action; warning and information messages do not, but fixing them may improve service performance. Right-click a
message for recommended fixes and links to help documents.
13.
14.
2.
Click the Select Address Locator drop-down list and choose <Manage Address Locators>.
The Address Locator Manager appears.
3.
Click Add.
The Add Address Locator dialog box appears.
4.
5.
Double-click your GIS server, navigate to your geocode service, and click Add.
6.
7.
In the Geocoding toolbar, click the Select Address Locator drop-down list and choose GeocodeService, or the name
you assigned to your service.
8.
Type a valid address in the Find Address text box on the Geocoding toolbar and press ENTER. The address should be
within the country or region of the locator you published.
9.
Once ArcGIS finds the address, right-click the Find Address text box and choose Zoom To.
The map extent centers on the address, and a point flashes where the address was located.
You have just published the third and final service Route Planner requires to work properly. If you have purchased the traffic option for
ArcGIS for Transportation Analytics you can set that up next; otherwise, you can configure Route Planner.
18
Open Windows Explorer and navigate to RoutePlannerSetup.exe, which is within the ArcGIS for Transportation Analytics
media under the Sample apps > RoutePlanner folders.
2.
3.
4.
Once Route Planner is installed, you can start the application by clicking Start > RoutePlanner > Route Planner.
Open services.xml
Steps:
1.
Open the text or XML editor of your choice. Common editors include Notepad, Notepad++, XMLSpy, and VisualStudio.
2.
Open services.xml in your editor. The default location of the file is C:\ProgramData\RoutePlanner. If you are
using Windows XP, however, the default location of the file is C:\Documents and Settings\All
Users\Application Data\RoutePlanner.
Tip: The directory in Windows XP may be hidden if you try to browse to it by clicking folders. To
avoid this potential problem, copy the path from this topic and paste it into the text box of the
browsing dialog box and press ENTER. The folder contents are normally displayed even if the
folder is marked as hidden.
Now that you are prepared to edit services.xml, continue through the subsequent sections of this help topic to configure
Route Planner to reference your services. When you are done, you will need to save your edits.
Edit <servers>
The <servers> element specifies the servers that host the web services Route Planner needs to function to its full capability. This
includes the primary routing and geocode services, as well as any auxiliary services such as map services hosted by ArcGIS.com.
The <servers> element is near the end of the document and is made up of a few <server> elements, which you will edit and
possibly add to. If you published all your Transportation Analytics services to a single server, you will need to have only one or two
<server> elements; however, if you published to multiple servers, you will need to add more.
Steps:
1.
19
2.
Find the XML comment that says <!-- Reference server where VRP, Route, & traffic services are
hosted here -->.
3.
4.
Assuming you have your VRP and route services running on the same machine, type an identifying name for the server
in the name attribute of the <server> tag.
In the example below these steps, the identifying name is transport.
Tip: The servers you enter as <server> elements are referenced throughout the services.xml
file. The way the servers are identified in this file is through the name attribute on the
<server> element. Keep this in mind as you work through the rest of the help topic.
5.
If you've enabled security on your service, you'll need to set the authentication attribute to "yes"
(authentication="yes").
The <server> element needs to contain a <url> element that points to the URL of the GIS server.
6.
Edit the <url> element to reference the server hosting your route service.
For example, if your route service was published to a server named "transport", the updated <server> element would
look like the following:
<server name="transport" title="TA routing" description="The server is for routing operations." help="" authentication="no">
<url>http://transport:6080/arcgis/services</url>
</server>
7.
Although most deployments require only one server to be defined for Transportation Analytics services, you will need to
define more if any of your VRP, geocode, feature, or traffic services are being hosted on a different server than the
routing server you just defined. To define another server, duplicate the <server> element that you just edited, and
modify the duplicate element to point to another server. Repeat this process as necessary until all relevant servers are
defined.
Note: You may discover later that you need to add another server for Route Planner to reference. If
you do, you can come back to this section as a reference.
Now that you've indicated the servers where your Transportation Analytics services are located, you can edit the XML properties of
the services themselves.
Edit <vrp>
Steps:
1.
2.
3.
Make sure that the server attribute value matches the name of the VRP server you defined in the <server> tag while
reading the "Edit <servers>" section of this help document.
4.
Type the REST and SOAP URLs of the VRP service into their respective <resturl> and <soapurl> elements.
When you are done, the <vrp> element should look like the one shown below, but your server name and the URLs could be
different, depending on your server name and whether you published the VRP service to the root level on your server or within a
folder. The example below was published to the root level.
<solve>
<vrp>
<service server="transport">
<title>VRP Service</title>
<resturl>https://transport:6080/arcgis/rest/service/VehicleRoutingProblem/GPServer</resturl>
<soapurl>https://transport:6080/arcgis/services/VehicleRoutingProblem/GPServer</soapurl>
<toolname>SolveVehicleRoutingProblem</toolname>
</service>
</vrp>
[...]
</solve>
Edit <syncvrp>
Steps:
20
1.
Follow the steps in the last section again, except for the final step, type the URLs of the synchronous VRP service,
rather than the asynchronous VRP service, into the <resturl> and <soapurl> elements.
When you are done, the <syncvrp> element should look like the one shown below, but your server name attribute value and the
URLs could be different, depending on the name of your server and whether you published the synchronous VRP service to the
root level on your server or within a folder. The example below was published to the root level.
<solve>
[...]
<syncvrp>
<service server="transport">
<title>Synchronous VRP Service</title>
<resturl>https://transport:6080/arcgis/rest/services/VehicleRoutingProblemSync/GPServer</resturl>
<soapurl>https://transport:6080/arcgis/services/VehicleRoutingProblemSync/GPServer</soapurl>
<toolname>EditVehicleRoutingProblem</toolname>
</service>
</syncvrp>
[...]
Edit <routing>
Steps:
1.
2.
Make sure the server attribute value matches the name of the routing server you defined in the <server> tag while
reading the "Edit <servers>" section of this help document.
3.
Edit the <resturl> and <soapurl> elements to specify the respective REST and SOAP URLs of the routing service.
4.
Edit the <layername> element so that it matches the name of your route layer. Typically, the value is Route.
When you are done, the <routing> element should look like the one shown below, but your server name attribute value and the
URLs could be different, depending on the name of your server and whether you published the routing service to the root level on
your server or within a folder. The example below was published to the root level.
<solve>
[...]
<routing>
<service server="transport">
<title>Route Service</title>
<resturl>https://transport:6080/arcgis/rest/services/Route/NAServer</resturl>
<soapurl>https://transport:6080/arcgis/services/Route/MapServer/NAServer</soapurl>
<layername>Route</layername>
</service>
</routing>
[...]
Edit <tracking>
The tracking service stores information about routes, devices, and order status and serves as the hub which the Route Planner,
navigation, and dashboard applications use to send information to each other. If you've followed the documentation on publishing the
tracking service and named the tracking service accordingly, you can copy and paste the example below, then edit the server name to
match yours.
<tracking>
<trackingservice server="transport">
<resturl>http://transport:6080/arcgis/rest/services/WorkflowManagement</resturl>
</trackingservice>
<trackingsettings>
<BreakTolerance>30</BreakTolerance>
</trackingsettings>
</tracking>
If you won't be using feature services and WorkforceManagement, it's best to remove the entire <tracking></tracking> tag along with
all of its contents. This will prevent Route Planner from searching for a service that doesn't exist and throwing an error. If you choose
to do this, it is recommended that you make a backup of services.xml so that you can always add the tracking feature back in if you
choose to.
Edit <solversettings>
The <solversettings> element lets you specify the default values for properties that appear in the Preferences > Routing page
of Route Planner. It also lets you specify which routing and VRP restrictions are visible in the application.
21
Note: Restrictions allow you to prohibit, avoid, or prefer travel on roads. Examples include prohibiting travel
along the wrong way of a one-way road, preferring truck routes when driving a truck, and avoiding toll
roads if the alternative route isn't too far.
There may be many restrictions in the network dataset, and reading through them can take time. If you
know some restrictions are irrelevant to your operation, you can hide them from your Route Planner
users by setting the editable XML attribute of the restrictions listed in the services.xml file to false.
Steps:
1.
2.
Optionally, edit the XML elements relating to the default routing-preference settings.
3.
4.
Choose whether to use individual restrictions by default and whether to make them visible in the Route Planner user
interface, then edit their corresponding <restriction> XML elements.
To use a restriction by default, set the turnedon attribute to true (turndedon="true").
To hide a restriction so it can't be viewed or edited in Route Planner, set editable equal to false
(editable="false").
The NAVTEQ network dataset included with Transportation Analytics has various restrictions. By default, the Route
Planner services.xml file enables and makes visible only the more commonly used restrictions.
The following example enforces the Oneway restriction, which means that one-way roads are obeyed by default. It also
hides the restriction from the Route Planner user interface so that one-way roads are always respected by the routes
generated in Route Planner.
<restriction name="Oneway" turnedon="true" editable="false" description="One way road enforcement, leave on!"/>
Edit <map>
The default configuration of the XML file is to use ArcGIS Online map services for the basemaps on which your fleet routing problems
and solutions are displayed. These maps provide context, for instance, to let you see the cities, rivers, and streets around your routes.
If you would like to reference you own basemaps, you need to publish and host them as map services, then configure services.xml to
reference them.
In the example below, the National Geographic basemap, which is available on ArcGIS.com, is added. Once the file is saved and
Route Planner opened, the National Geographic basemap will be available for viewing in the maps.
<map>
[...]
<service type="ArcGISCached" server="server.arcgisonline.com" basemap="true" visible="true">
<name>National Geographic</name>
<title>National Geographic</title>
<soapurl>https://server.arcgisonline.com/arcgis/services/NatGeo_World_Map/MapServer</soapurl>
<opacity>1</opacity>
</service>
</map>
Edit <geocoding>
You may have published your own geocode service in a prior help topic. Now, you will configure services.xml to reference the service.
Steps:
1.
2.
Make sure that the type attribute of the <service> tag is set to "ArcGIS.Streets".
3.
Make sure that the server attribute value matches the name of the geocode server you defined in the <server> tag
while reading the "Edit <servers>" section of this help document.
4.
If the opening and closing <resturl> tags are present, comment them out by typing <!-- before the opening tag and
--> after the closing tag as shown in the example below.
<!-- <resturl> [...] </resturl> -->
22
REST endpoints are used with ArcGIS.com geocode services only. You will use SOAP endpoints.
5.
Add <soapurl> </soapurl> to a new line below the one you just commented out.
6.
Type the SOAP endpoint of your geocode service between the <soapurl> tags.
7.
8.
Also make sure that the locatorfield attribute for the Single Line Address field mapping is correct. This should usually be
named SingleLine, but it's best to double-check.
For example, if your geocode service was published to a server named "transport", the updated <server> element would look like
the following:
<geocoding>
<service type="ArcGIS.Streets" server="sample.arcgisonline.com" current="true">
<title>Address Geocoding</title>
<soapurl>http://transport:6080/ArcGIS/services/USA_2012R1_NT_Composite/GeocodeServer</soapurl>
<inputfieldmapping>
<fieldmap visible="true" description="The address for the order." locatorfield="Address" addressfield="AddressLine"/>
<fieldmap visible="true" description="The city for the order or location for the stop." locatorfield="City" addressfield="Locality3"/>
<fieldmap visible="true" description="The state for the order or location for the stop." locatorfield="State" addressfield="StateProvince
<fieldmap visible="true" description="The 5-digit ZIP Code for the order or location for the stop." locatorfield="Zip" addressfield="Post
<fieldmap visible="true" description="Single Line Address" locatorfield="SingleLine" addressfield="FullAddress"/>
</inputfieldmapping>
<usesinglelineinput>true</usesinglelineinput>
<minimumcandidatescore>40</minimumcandidatescore>
<minimummatchscore>80</minimummatchscore>
</service>
</geocoding>
Developer tools
Route Planner includes source code and a documented Plug-In SDK if you'd like to extend or further customize its functionality. Most
tasks, such as enterprise database input/output, can be accomplished using the Plug-In SDK.
See the RoutePlanner_DeveloperTools folder in the Transportation Analytics bundle for tools and documentation.
23
Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.1.
2.
3.
In the Catalog window, expand Toolboxes > System Toolboxes > Data Management Tools > Geodatabase
Administration.
4.
5.
Fill out the parameters of the tool. Use the substeps below as a guide.
Tip: You may need to choose values for parameters other than the ones shown below. To help you
decide, click Show Help to see help for the parameters you click in the tool dialog box.
a.
From the Database Platform drop-down list, choose SQL_Server. (Remember that you can use Oracle or
PostgreSQL instead.)
b.
For the Instance parameter, type the name of the SQL Server instance.
c.
d.
e.
f.
Type the password of the database administrator user you specified in the previous substep.
g.
h.
i.
For Authorization File, type the path to the keycodes file on the GIS server. This file is stored by default to
C:\Program Files\ESRI\License10.1\sysgen\keycodes.
24
6.
Click OK.
The tool executes and an enterprise geodatabase is created on the GIS server.
In the Catalog window, expand Toolboxes > System Toolboxes > Data Management Tools > Workspace.
2.
3.
Fill out the parameters of the tool. Use the substeps below as a guide.
Tip: You may need to choose values for parameters other than the ones shown below. To help you
decide, click Show Help to see help for the parameters you click in the tool dialog box.
a.
In the Connection File Location parameter, type a folder path indicating where the output connection file will be
stored. Optionally, browse to the folder using the browse button. The folder must already exist or an error will be
reported.
b.
Specify a name for the connection file in the Connection File Name parameter. To easily identify the important
properties of the connection file, you should include the user, database, and instance names in the file name, for
example, sa_geodata_indore, where sa is the user name, geodata is the database, and indore is the instance.
c.
For Database Platform, choose SQL_Server. (Remember that you can use Oracle or PostgreSQL instead.)
d.
e.
f.
If you checked Database Authentication, fill out the Username and Password parameters.
g.
h.
For the Database parameter, select the enterprise geodatabase you created in the last section of this topic.
25
4.
Click OK.
The tool executes and the connection file is created in the location you specified.
In the Catalog window, expand Toolboxes > System Toolboxes > Data Management Tools > Geodatabase
Administration.
2.
3.
Fill out the parameters of the tool. Use the substeps below as a guide.
Tip: You may need to choose values for parameters other than the ones shown below. To help you
decide, click Show Help to see help for the parameters you click in the tool dialog box.
4.
a.
For Input Database Connection, specify the database connection file you created in the previous section of this
topic.
b.
c.
Type a user name in Database User. The example below uses ata, which is short for ArcGIS for Transportation
Analytics.
d.
Click OK.
26
In the Catalog window, expand Toolboxes > System Toolboxes > Data Management Tools > Workspace.
2.
3.
Fill out the parameters of the tool. Use the substeps below as a guide.
Tip: You may need to choose values for parameters other than the ones shown below. To help you
decide, click Show Help to see help for the parameters you click in the tool dialog box.
4.
a.
In the Connection File Location parameter, enter a folder path where the output connection file will be saved.
b.
Type a name for the file in the Connection File Name parameter. To easily identify the important properties of
the connection file, you should include the user, database, and instance names in the file name, for example,
sa_geodata_indore, where sa is the user name, geodata is the database, and indore is the instance.
c.
For Database Platform, choose SQL_Server. (Remember that you can use Oracle or PostgreSQL instead.)
d.
e.
f.
If you checked Database Authentication, fill out the Username and Password parameters.
g.
h.
For the Database parameter, select the enterprise geodatabase you created earlier in this topic.
Click OK.
The tool executes and the database connection file is created in the location you specified.
27
1.
From the Catalog window, create a new administrator connection to your GIS server if you don't already have an
administrator connection. You start this process by expanding the GIS Servers node and double-clicking Add ArcGIS
Server.
2.
After you make the server connection, it appears on the bottom of the list under GIS Servers. There may be more than
one connection to the server at this point. Right-click on the connection to your server that ends in (admin) and choose
Server Properties.
3.
4.
5.
Specify a name in the Name text box. Any descriptive name that helps you remember that the geodatabase contains data
for your Transportation Analytics services will work.
6.
7.
Choose the database connection file you created in the previous section of this topic and click Select. Make sure you
choose the connection file that allows access to the enterprise geodatabase using the credentials of the database user,
not the administrator.
The Browse for a Database Connection dialog box closes.
8.
Under Server folder path in the Register Database dialog box, check Same as publisher database connection if it's
not already checked. This option means the path is exactly the same for the ArcGIS for Desktop and ArcGIS for Server
machines.
9.
Click OK.
The Register Folder dialog box closes.
You should now have the database registered with the server as well as the folder you created earlier while setting up the
street data.
10.
Click OK.
28
29
2.
Start ArcMap.
3.
4.
Click the Toggle Contents Panel button until both the catalog tree and the content panel are visible as shown below. The
content panel lists all the feature classes and tables from WorkforceManagementSystemData.gdb
5.
In the content panel, select all the feature classes (Devices, LineBarriers, PointBarriers, PolygonBarriers, Routes, and
Stops).
6.
Right-click the selected feature classes, then click Export > To Geodatabase (multiple).
The Feature Class to Feature Class (multiple) tool dialog box appears.
7.
Click the browse button on the Output Geodatabase parameter and select the connection file that makes a user
connection to the enterprise geodatabase. Make sure you choose the connection file that connects as a database user,
not as an administrator. You created this file in the Create a database user section of the Create the enterprise
geodatabase topic.
8.
Click OK.
30
The tool exports the feature classes to the enterprise geodatabase. Next, you will export the tables.
9.
10.
Right-click the selected tables and choose Export > To Geodatabase (multiple) from the context menu.
TheTable to Geodatabase (multiple) tool dialog box opens.
11.
Click the browse button on the Output Geodatabase parameter and select the same user connection file that you chose
when exporting the feature classes.
12.
Click OK.
The tables are exported to the enterprise geodatabase.
2.
Browse to the same database connection file that you used to export the tables and feature classes. Again, make sure you
choose the connection file that connects as a database user, not as an administrator.
The contents of the enterprise geodatabase are shown in the Add Data dialog box. This should consist of the tables and
feature classes you exported.
3.
Select the contents by pressing SHIFT and clicking the top and bottom entry, then click Add.
The tables and feature classes are added to the Table of Contents window.
If the layer and table names may be prefixed with database-identifying information (database.user.layername), you will
need to edit the names so that they once again are just dDevices, Stops, Routes, and so on. Failure to do so may result in
problems when the sample applications try to write to the feature service.
4.
For each layer and table in the table of contents, remove the database and user information from the name.
a. Double-click the name to open the Layer Properties dialog box.
b.
c.
d.
5.
From the main menu, click File > Map Document Properties to open the Map Document Properties dialog box.
6.
Fill in the Title, Summary, Description, Author, Credits, and Tags boxes. This is required to successfully publish the
map document as a feature service. Click OK.
7.
8.
9.
Make sure Publish a Service is selected in the first panel and click Next.
10.
From the Choose a connection drop-down list, choose the publisher or administrator server connection to which you are
publishing the feature service. Alternatively, click the button to the right of the drop-down list to create a connection.
31
11.
12.
Click Next.
13.
Choose whether to publish the feature service to an existing folder on your server, which includes the root level, or to a
new folder. It is common to publish to the root level.
14.
Click Continue.
The Service Editor dialog box opens.
15.
Check Feature Access. This indicates you want to publish a feature service.
16.
Click Pooling, which is on the left pane, and specify the minimum and maximum number of instances per machine. For
optimal throughput, the recommended minimum and maximum values should be equal to the number of cores on the
server machine.
17.
18.
Examine the messages in the Prepare window and take appropriate action. Make sure that there are no messages
indicating that any layers or tables from the map document will be copied to the server. (If you have a message like this,
you will need to register the enterprise geodatabase with the server.
Note that error messages require corrective action, while warning and information messages do not, but fixing them may
improve service performance. You can right-click a message for recommended and automated fixes and links to help
documents.
19.
20.
32
Please see the individual data setup and service publishing guides as well as sample app configuration documents to deploy all the
components you'll need. These include:
Route Planner: Consuming VRP, Route, and Geocode services and sending orders to feature service
Navigation applications: Consuming Route services and sending location and order status updates to feature services
Once you've configured all the components and built routes in Route Planner, follow the steps below.
1. In Route Planner, browse to the Setup tab, create a mobile device for each of your drivers on the Mobile Devices panel, then
give them a Sync Type of WMServer. If you have a large number of mobile devices, you can import them from a spreadsheet,
text file, or database.
2.
In Route Planner, assign mobile devices to either drivers or vehicles. Typically, mobile devices such as cell phones stay with the
driver while other devices may be permanently mounted in vehicles. Below, browse to the Setup tab and Drivers panel and
assign mobile devices to each driver. Again, if you have a large number of drivers, you can import them from a spreadsheet, text
file, or database.
3.
Now, when you build routes on the Schedule tab in Route Planner, you can send these routes to the feature service where mobile
devices will poll for new work.
33
4.
In your Navigation application, log in with your mobile device ID and also specify credentials if necessary. In the Windows
Navigator, go to Menu > Settings > Get Route. In the iOS Navigator, tap on the gear icon for Settings, then click Login.
5.
For the Status Dashboard, see its installation and configuration document for details on how to configure which vehicles to track.
34
Install
Steps:
1.
Download the ArcGIS for Transportation Analytics sample applications and browse to SampleApps >
Dashboard_Sample.
2.
Unzip and copy the contents to your web server root directory. For IIS, this would be C:\inetpub\wwwroot.
This will place the following folder in your web server root:
tasa: the dashboard application
3.
4.
b.
Click Advanced.
c.
d.
Click OK to close the dialog boxes and confirm all attribute changes to the folder, subfolder, and files.
Configure
Steps:
1.
Configure the proxy page for use according to your web server environment.
a. For IIS, open proxy.config in a text editor.
b.
2.
Add a serverURL XML node that references your instance of ArcGIS for Server which is hosting your workforce
management services: <serverUrl url="http://localhost/arcgis/rest/services"
matchAll="true" />.
Change the references to the layers so each layer points to the correct REST endpoint of your ArcGIS Server
hosting the Workforce Management feature services. If Orders are layer 2 on your REST services page, ensure
they are in this file as well.
c.
Locate the deviceIDs key and enter in the mobile device IDs you want to track. Multiple IDs can be specified by
separating them with commas, for example, [1234, 5678].
d.
3.
Open tasa/app.js, locate the line of code that references the proxy.ashx page, then verify that it is pointing to your local
proxy page.
Example: esri.config.defaults.proxyUrl = ../../proxy.ashx
4.
Notes
The tasa/index.html page is included as a quick way to load multiple routes and simulate their movement using an In-App simulator.
This is an optional step that eases the loading of specific routes by reading directly from the Workforce Management services to retrieve
work for mobile devices.
35
Samples: http://sitepen.github.com/dgrid/dgrid/test/
After deploying your web dashboard, you should be able to use it with the other sample apps to track your vehicles and order statuses
throughout the workday.
36
Set up a task in Windows Task Scheduler to run the Python script at scheduled intervals.
Copy the TrafficTools.tbx and DownloadTraffic.py files from ArcGIS.com or the Transportation Analytics FTP site to a
folder on your machine. In the example shown in this topic, the files are copied to
F:\ArcGISForTAServices\Traffic.
2.
Start ArcMap.
3.
In the Catalog window, browse to and click TrafficTools.tbx, which you copied in the previous step.
You may need to make a folder connection to access the folder into which you copied the files.
4.
Expand TrafficTools.tbx, right-click the Download Traffic Data model tool, and select Edit.
The Download Traffic Data ModelBuilder window opens.
5.
6.
7.
Fill out the tool dialog box. Use the substeps below and the side-panel help as a reference.
a. For Provider, select a provider for your area.
b.
For User Name, specify the user name provided with your traffic add-on.
c.
For Password, specify the password provided with your traffic add-on.
d.
For Regions, select the regions for which you want to download traffic data. This should overlap the region of
your Transportation Analytics network dataset.
e.
For Traffic Data Output Folder, specify an existing folder on your machine, such as
F:\ArcGISForTAServices\Traffic\TrafficData. The network dataset will read the traffic files from this
folder, so the folder should allow at least read permissions to everyone.
f.
For Expected Update Interval in Minutes, specify the interval after which a new traffic file will be downloaded.
In other words, how often do you want traffic speeds to be updated? Common values for this property are 5, 10,
or 15 minutes. You need to balance getting the most up-to-date traffic-speed information with how much data can
be feasibly downloaded within the interval.
Tip: Make a note of the Expected Update Interval in Minutes value; it will be required when
you create a task in the task scheduler.
g.
For Maximum File Age in Minutes, specify the time interval after which the traffic files are automatically deleted.
The default is to keep traffic files for 12 hours (720 minutes).
37
You may want to keep a record of what live traffic speeds were like at a given time. You can store the files for as
long as you like, but they occupy disk space, which can add up over time, and quickly for large regions.
h.
8.
Click OK.
Save the model and close the Download Traffic Data ModelBuilder window.
In the Catalog window under TrafficTools.tbx, right-click the Download Traffic Incidents model tool, and select Edit.
The Download Traffic Incidents ModelBuilder window opens.
2.
3.
Fill out the tool dialog box. Use the substeps below and the side-panel help as a reference.
a. For Provider, select a provider for your area.
b.
For User Name, specify the user name provided with your traffic add-on.
c.
For Password, specify the password provided with your traffic add-on.
d.
For Regions, select the regions for which you want to download traffic incident data.
e.
For Incidents Feature Class Location, specify the database connection file that connects to the enterprise
geodatabase as the database user (not as the administrator). You created this file in the Create a database user
section of the Create the enterprise geodatabase.
f.
g.
For Time Zone Boundaries, specify the time zone boundaries feature class, which is in the file geodatabase that
contains the Transportation Analytics network dataset.
In the graphic below, the feature class is at
D:\Services\SharedData\NorthAmerica.gdb\TimeZoneBoundaries.
h.
For Time Zone ID Field, select the field name that contains the time zone names. This may be MSTIMEZONE
for your data.
38
i.
4.
Click OK.
Save the model and close the Download Traffic Data ModelBuilder window.
2.
Execute the DownloadTraffic.py script, as demonstrated in the substeps and graphic below. Make sure that you use the
64-bit Python interpreter to execute the script for best performance. This can be achieved by using the full path to the
64-bit Python interpreter when executing the script.
a. Type the drive that you copied DownloadTraffic.py to, type a colon, then press ENTER. For example, if the file is
in a folder on the F drive, type F:.
b.
Type cd, followed by a space and the path to the folder that contains the DownloadTraffic.py file, then press
ENTER.
Example: cd ArcGISForTAServices\Traffic
c.
Type the path to, and the file name of, the 64-bit python.exe file. Press the SPACE bar. Type
DownloadTraffic.py. Press ENTER and verify the script ran successfully.
The python.exe file is located by default in C:\Python27\ArcGISx6410.1.
Example: C:\Python27\ArcGISx6410.1 DownloadTraffic.py
39
Open the Windows Task Scheduler by typing Task Scheduler in the Windows search box and pressing ENTER.
2.
3.
4.
Type a name and, optionally, a description for the task; for example, "DownloadTraffic" for the name, and "Downloads
traffic at regular intervals to support Transportation Analytics services" for the description.
5.
Click Next.
The Task Trigger page is displayed.
6.
Under When do you want the task to start?, click One time.
7.
Click Next.
The One Time page is displayed.
8.
Specify a date and time to begin downloading traffic data. The current time is appropriate in most cases.
9.
Click Next.
The Action page is displayed.
10.
Under What action do you want the task to perform?, click Start a program.
11.
Click Next.
The Start a Program page is displayed.
12.
Click Browse, which is next to the Program/script text box, and select the 64-bit Python interpreter executable
(python.exe). This file was referenced earlier in the command line and is often found in the following location:
C:\Python27\ArcGISx6410.1\python.exe.
13.
In the Add arguments text box, type the full folder path to the DownloadTraffic.py file and enclose the path in quotation
marks (").
Example: "F:\ArcGISForTAServices\Traffic\DownloadTraffic.py"
14.
Click Next.
The Summary page is displayed.
15.
Check Open the Properties dialog for this task when I click Finish.
40
16.
Click Finish.
The dialog box with the task's properties is displayed.
17.
18.
19.
In the Advanced Settings frame, check Repeat task every, then choose from the drop-down list the same value that you
set in the DownloadTrafficData model tool for the Expected Update Interval in Minutes parameter. Common values for
this property are 5, 10, or 15 minutes.
20.
21.
Click OK.
The Edit Trigger dialog box closes.
22.
Click OK.
The task properties dialog box closes.
23.
As a test to check if the traffic feed is set up correctly, wait a few intervals and make sure that the folder location specified
in the Output Traffic Data Folder parameter of the DownloadTrafficData tool has new traffic files, which have the suffix of
.dtf.
24.
A window will appear and stay open whenever the DownloadTraffic script is running. New traffic files will be created in the output
traffic data folder you specified. The traffic files will remain there until the script runs again and sees that a traffic file has been in the
output folder longer than the duration specified in the Update Traffic Data tool's Maximum File Age in Minutes parameter. If the
traffic file's lifetime is longer than the maximum, the file is deleted.
Start ArcMap.
2.
In the Catalog window, navigate to the file geodatabase you received with ArcGIS for Transportation Analytics, then
expand the Routing feature dataset.
3.
4.
5.
In Live Traffic: Streets-TMC Table section, click Traffic Feed location to select it.
An ellipsis button appears on the far right side.
41
If the ellipsis doesn't appear, the network dataset could be in read-only mode. This could happen for one of two likely
reasons: one, the Network Analyst extension isn't enabled; two, the extension is enabled, but the network dataset is being
used by something or someone else (this includes the route and VRP services Transportation Analytics requires). If you
have a route or VRP service that references the same network dataset, you will need to stop the services before you can
finish this help topic. You can do this by following the substeps below.
a.
Click Start > All Programs > ArcGIS > ArcGIS 10.1 for Server > Manager.
ArcGIS Server Manager opens in a browser.
b.
c.
d.
e.
Stop any services that are referencing the Transportation Analytics network dataset by clicking the stop button to
the right of the service overview.
f.
Use the navigation pane on the left side of the page to open folders on the server and stop any other services
that use the Transportation Analytics network dataset.
g.
Leave Manager open because you will need to start the services again shortly, but close ArcMap.
h.
Return to step 1 of this section of the help document and retry editing the Network Dataset Properties dialog
box.
6.
7.
Click Folder.
8.
Type or browse to the folder that contains the live traffic (.dtf) files. These files will be inside of a v1 folder; for example,
F:\ArcGISForTAServices\Traffic\TrafficData\v1.
9.
Click Validate to make sure that the traffic feed location is valid.
10.
11.
12.
c.
42
d.
Start any services you previously stopped. You can start them by clicking the start button to the right of the
service overview.
e.
Created a task in Windows to run a script so that live traffic files are downloaded at regular intervals and kept up-to-date
Linked the network dataset to the folder where the live traffic files are stored
43
In this help topic, you will add to ArcMap the network dataset that you configured with live traffic so you can visualize current travel
speeds. You will also add live traffic incidents as a layer and, finally, publish the map as a service. The resultant map service will include a
traffic layer and a traffic incidents layer.
Start ArcMap.
2.
If you don't already have a connection to the file geodatabase you received with the ArcGIS for Transportation Analytics
bundle, follow the substeps below.
a. Click the Catalog Window button on the Standard toolbar to open the Catalog window.
b.
In the Catalog window, right-click Folder Connections and choose Connect to Folder.
The Connect To Folder dialog box appears.
c.
Browse to or type the folder path of the location where the file geodatabase is stored.
The folder path should point to the same location as the one you specified in the Register Folder dialog box
while working through the steps in Configuring the street data. In those steps, the example path given was
D:\Services\SharedData.
d.
Click OK.
The Connect To Folder dialog box closes and a connection is added to the Folder Connections node in the
Catalog window.
3.
Browse to the Routing feature dataset, then add the Routing_ND network dataset to ArcMap.
4.
Add the network dataset to ArcMap by dragging it from the Catalog window and dropping it into ArcMap's map view or
table of contents.
The Adding Network Layer dialog box appears.
5.
Click No.
The network dataset begins to draw; however, this process may take a while and visualizing the network dataset isn't
necessary, so you will cancel the drawing.
6.
7.
8.
9.
Type a descriptive name for the layer into the Layer Name text box. You may want to combine the region name with
Traffic (for example, NorthAmericaTraffic).
44
10.
In the Scale Range frame, click Don't show layer when zoomed.
11.
Choose a suitable scale from the Out beyond drop-down list. This is the scale beyond which the traffic layer won't draw.
This value is useful to avoid drawing traffic at very small scales. In the example below, a value of 1:10,000,000 is used.
12.
Click OK.
2.
Browse to the database connection file that allows a user connection to the enterprise geodatabase you previously
created. Make sure you choose the connection file that connects as a database user, not as an administrator. You created
this file in the Create a database user section of the Create the enterprise geodatabase topic.
The contents of the enterprise geodatabase are shown in the Add Data dialog box.
3.
4.
Open the layer properties for the traffic incidents feature and follow the substeps below.
a. Click the General tab.
b.
Type a name for the layer in Layer Name, for example, NorthAmericaTrafficIncidents.
c.
In the Scale Range section, click Don't show layer when zoomed.
d.
Choose a suitable value from the Out beyond drop-down list. This is the scale beyond which the traffic incidents
layer will stop drawing. A common value to use is 1: 25,000,000.
e.
f.
g.
Select Severity or Incident Type in the Value Field drop-down list. Your choice for Value Field depends on
whether you want to see how severely an incident affects traffic or what type of incident it is (for example, a
stalled vehicle). The graphic below shows symbology based on Severity.
h.
i.
j.
Click OK.
45
k.
Click the Time tab and check Enable time on this layer.
5.
6.
Fill out the Title, Summary, Description, Author, Credits, and Tags sections. This information will be visible in the
published map service.
7.
2.
3.
Click Next.
4.
In the Choose a connection drop-down list, choose the publisher or administrator connection to your server.
5.
6.
Click Next.
7.
Choose whether to publish the route service to an existing folder on your server, which includes the root level, or to a new
folder. Publishing to the root level is common.
8.
Click Continue.
The Service Editor dialog box appears.
9.
10.
Uncheck KML.
11.
Click Pooling, which is on the left pane of the dialog box, and specify the minimum and maximum number of instances per
machine. For optimal throughput, the recommended minimum and maximum values should be equal to number of cores
on the server machine.
12.
13.
Examine the messages in the Prepare window and take appropriate action. Note that error messages require corrective
action, while warning and information messages do not, but fixing them may improve service performance. Right-click a
message for recommended and automated fixes and links to help documents.
14.
The traffic and traffic incident map service will be available momentarily on your server.
15.
46
2.
3.
On the Standard toolbar, click the drop-down arrow next to the Add Data button
The Add Basemap dialog box appears.
4.
Double-click a basemap that works well for referencing the road network in your region, such as Streets, National
Geographic, Topographic, or OpenStreetMap.
5.
Zoom into the region the data in your file geodatabase covers. Zoom to a scale of 1:500,000.
6.
7.
8.
47