What are Bearing and BearingTol fields?

The direction in which a vehicle is moving can serve as a clue to better locate it on a network. The graphics below illustrate this principle.

GPS location without bearing represented as a circleGPS location with bearing represented as a triangle

The ArcGIS Network Analyst extension makes it possible to use this principle to more accurately locate points on a network dataset.

GPS devices often calculate bearing in addition to current geographic location. Many network analysis classes have Bearing and BearingTol fields so you can use bearing information when loading moving points. Doing so results in more accurately placed network analysis objects. Also, this helps prevent driver confusion because the routes and directions that you generate from these moving points are likely to start from the correct location.

It is common, for instance, to send a truck's current location and bearing via a mobile phone equipped with a GPS receiver to ArcGIS for Server where the information is loaded as the first stop in a route analysis. Other stops the truck hasn't visited yet are loaded as well, the route is solved, and the results and directions are sent back to the driver's phone. Using the bearing information during this process helps prevent the truck from starting its route on the wrong street when the truck happens to be near an intersection or an overpass. It also helps the ArcGIS Network Analyst extension verify the direction in which the vehicle is traveling so that the start of the resulting route matches the direction the vehicle is currently traveling in.

To locate moving points with bearing data, simply load the points using the Add Locations geoprocessing tool, for instance, and map bearing and bearing tolerance values of your input points to the Bearing and BearingTol fields, respectively, of your target network analysis class. The Bearing and BearingTol fields are described below.

How Network Analyst evaluates the Bearing and BearingTol fields

The following steps provide an overview of how Network Analyst evaluates the bearing fields:

  1. Network Analyst snaps the point to the nearest edge.
  2. The bearing tolerance is calculated from the point on the nearest edge to set the minimum and maximum bearing values. This is done for both directions of travel.
  3. The bearing of the point you are adding is compared with the minimum and maximum allowable bearing values for each of the two travel directions.
    • If the bearing falls within the tolerance, the point is added there as a network location. The direction of travel on the road is also determined—it matches the direction of the bearing tolerance that the bearing falls within.
    • If the bearing falls outside the tolerance, the point isn't located, and the bearing tolerance of the next nearest eligible edge is evaluated. (Some edges may be ineligible for other reasons; for instance, you could have chosen not to locate on restricted elements or to exclude all highways. In this case, all edges that are prohibited or highways would be skipped.) This process repeats until the point is located on a suitable edge or the point is left unlocated after exceeding the snap tolerance of the network analysis layer.

Example

The series of graphics below and accompanying captions illustrate how Network Analyst processes the Bearing and BearingTol fields.

Vehicle traveling north
1. A vehicle with a GPS receiver on a mobile phone travels north through a four-way intersection and sends its current location and bearing to ArcGIS for Server running the Network extension.
GPS coordinate and bearing
2. The black lines represent network edges. The triangle and the dashed line represent the location and bearing of the vehicle as recorded by the GPS receiver. Note that the captured location is rather inaccurate, possibly due to inaccuracies of the GPS receiver, inaccuracies of the digitized streets, or both. The GPS receiver also indicates the bearing is about 345º, which is slightly incorrect too; it should be 0º since the vehicle is traveling north.
Bearing outside the bearing tolerance
3. The point is snapped to the nearest edge, and compared with the bearing tolerance, which is represented by the blue gradients in this example. The BearingTol value is 30, so the tolerance spans 15 degrees to either side of the edge in both the east and west directions. The red arrows are added to emphasize the bearing is more than 15 degrees from the edge in both directions. Since the bearing falls outside the tolerance, the point isn't located on this edge.
Bearing inside the bearing tolerance
4. The point is snapped to the next-nearest edge and loaded as a network location there since the bearing falls inside the bearing tolerance. Also, the Network extension knows the object is going north since the bearing falls within the north-facing bearing tolerance.

Here are some points to remember when working with Bearing and BearingTol fields:

Related Topics

3/25/2015