HERE iOS SDK Developer's Guide

NMARoadElement

Class Summary

class NMARoadElement

Derived from: NSObject

Represents a section of a road.

Include: NMAKit.framework/headers/NMARoadElement.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMARoadElement

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, weak] NSString *  abbreviatedName

The abbreviated name of the road element

[readable, assign] NSUInteger  attributes

The attributes of the NMARoadElement

[readable, assign] NSUInteger  averageSpeed

The average speed of traffic on the NMARoadElement in m/s, or 0 if the information is not available

[readable, assign] NSUInteger  numberOfLanes

The number of lanes of the road element, or 0 if the data is unavailable

[readable, assign] NSInteger  permanentDirectedLinkId

The Permanent Link ID (stable across different map versions) of the NMARoadElement with travel direction: positive sign (+) means driving in the 'canonical' direction of the road and negative sign (-) means driving against the 'canonical' direction of the road

[readable, assign] NSUInteger  permanentLinkId

The Permanent Link ID (stable across different map versions) of the NMARoadElement

[readable, assign] NMARoadElementPluralType   pluralType

The plural type of the road element

[readable, weak] NSString *  roadName

The name of the road element, or an empty string if the data is not available

[readable, assign] float  speedLimit

The speed limit of the NMARoadElement in m/s, or 0 if the information is not available

[readable, assign] NMARoadElementType   type

The type of the road element

[readable, weak] NSString *  uniqueId

The unique identifier of the NMARoadElement

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull) init

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull) new

Class Details

Represents a section of a road.

To determine whether an object is the same as this NMARoadElement, use isEqual:. isEqual returns YES if all properties of the objects contain the same values. Please note that road elements from different sources may contain different attributes for the same road element, e.g. road elements from NMATrafficEvent v.s. road elements from NMAManeuver. Compare uniqueIds of two road elements if you only want to know whether they are the same road elements with the same geometries.

Public Property Details

[readable, weak] NSString * abbreviatedName

The abbreviated name of the road element. For example, I5 for the Interstate 5 in the US. This property will contain an empty string if the abbreviated name is unavailable.

[readable, assign] NSUInteger attributes

The attributes of the NMARoadElement. Can be a combination of any values from NMARoadElementAttribute.

[readable, assign] NSUInteger averageSpeed

The average speed of traffic on the NMARoadElement in m/s, or 0 if the information is not available.

[readable, assign] NSUInteger numberOfLanes

The number of lanes of the road element, or 0 if the data is unavailable.

[readable, assign] NSInteger permanentDirectedLinkId

The Permanent Link ID (stable across different map versions) of the NMARoadElement with travel direction: positive sign (+) means driving in the 'canonical' direction of the road and negative sign (-) means driving against the 'canonical' direction of the road. Every road element has two endpoints. Starting from which end point the link is being traversed? Each link has a geometry associated with it. The geometry gives the link a 'canonical' direction: if you traverse the link in the direction the geometry is stored, you are traveling in the positive direction. Otherwise, you are traveling in the negative direction. The assigned 'canonical' direction is completely arbitrary and no assumption should be made about it. This property is unavailable when the public transport mode (NMATransportModePublicTransport) is used. For all the other transport modes, it is available only in routes calculated with the online connectivity mode (NMACoreRouterConnectivityOnline). When not available, 0 is returned.

[readable, assign] NSUInteger permanentLinkId

The Permanent Link ID (stable across different map versions) of the NMARoadElement. This property is unavailable when the public transport mode (NMATransportModePublicTransport) is used. For all the other transport modes, it is available only in routes calculated with the online connectivity mode (NMACoreRouterConnectivityOnline). When not available, 0 is returned.

[readable, assign] NMARoadElementPluralType  pluralType

See also:

NMARoadElementPluralType

[readable, weak] NSString * roadName

The name of the road element, or an empty string if the data is not available.

[readable, assign] float speedLimit

The speed limit of the NMARoadElement in m/s, or 0 if the information is not available.

[readable, assign] NMARoadElementType  type

See also:

NMARoadElementType

[readable, weak] NSString * uniqueId

The unique identifier of the NMARoadElement.

Instance Method Details

-(nonnull) init

Instances of this class should not be initialized directly

Class Method Details

+(nonnull) new

Instances of this class should not be initialized directly

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.