10.2.5: AGSDirectionSet Class Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
AGSDirectionSet Class Reference

Description

Object containing an array of AGSDirectionGraphic objects that represent the directions of an AGSRoute.

Since
1.8
Inheritance diagram for AGSDirectionSet:
<AGSCoding>

Instance Methods

(void) - decodeWithJSON:
 
(NSDictionary *) - encodeToJSON
 
(id) - initWithJSON:
 

Properties

AGSEnvelopeextent
 
NSArray * graphics
 
AGSPolylinemergedGeometry
 
NSString * routeId
 
NSString * routeName
 
double totalDriveTime
 
double totalLength
 
double totalTime
 

Method Documentation

- (void) decodeWithJSON: (NSDictionary *)  json
optionalinherited

Decode object from JSON representation.

Parameters
jsonThe JSON representation of the object to be decoded.
Since
1.0
- (NSDictionary *) encodeToJSON
optionalinherited

Encode and return JSON representation for object.

Returns
JSON representation of object.
Since
1.0
- (id) initWithJSON: (NSDictionary *)  json
optionalinherited

Initialize and return object from JSON representation.

Parameters
jsonThe JSON representation of the object to be created.
Returns
Object decoded from JSON representation.
Since
1.0

Reimplemented in AGSWebMapFeatureCollection.

Property Documentation

- (AGSEnvelope*) extent
readnonatomicstrong

The extent of the resulting route.

Since
1.8
- (NSArray*) graphics
readnonatomiccopy

Array of AGSDirectionGraphic objects representing directions for a route.

Since
1.8
- (AGSPolyline*) mergedGeometry
readnonatomicstrong

A single polyline representing the route.

Since
1.8
- (NSString*) routeId
readnonatomiccopy

The Id of the route returned from the server.

Since
1.8
Deprecated:
Deprecated at 10.2. No replacement.
- (NSString*) routeName
readnonatomiccopy

The name specified in AGSRouteTaskParameters stops property. This property is not supported by local route task and error is returned if this is set.

Since
1.8
- (double) totalDriveTime
readnonatomicassign

The actual drive time calculated for the route.

Since
1.8
- (double) totalLength
readnonatomicassign

The length of the route as specified in AGSRouteTaskParameters directionsLengthUnits property.

Since
1.8
- (double) totalTime
readnonatomicassign

The total time calculated for the route as specified in AGSRouteTaskParameters directionsTimeAttributeName property.

Since
1.8