Module com.esri.arcgisruntime
Class NetworkLocation
java.lang.Object
com.esri.arcgisruntime.tasks.networkanalysis.NetworkLocation
Represents a specific location/position along a transportation network source feature.
- Since:
- 100.0.0
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the name of the network source.Gets information about how the position of the Stop relates to the underlying source feature in the network dataset.booleanIndicates if the Stop is on the right side of the source feature.voidsetOnRightSideOfSource(boolean onRightSideOfSource) Sets if the Stop is on the right side of the source feature.voidsetSourceName(String sourceName) Sets the name of the network source.voidsetSourceObjectPosition(SourceObjectPosition sourceObjectPosition) Sets the position of network element on the network source.
- 
Constructor Details- 
NetworkLocationpublic NetworkLocation()Creates an instance of NetworkLocation.- Since:
- 100.0.0
 
 
- 
- 
Method Details- 
getSourceObjectPositionGets information about how the position of the Stop relates to the underlying source feature in the network dataset.- Returns:
- the source object position. Returns a non-null source object position if it was not set.
- Since:
- 100.0.0
 
- 
setSourceObjectPositionSets the position of network element on the network source.- Parameters:
- sourceObjectPosition- source object position
- Throws:
- IllegalArgumentException- if sourceObjectPosition is null
- Since:
- 100.0.0
 
- 
isOnRightSideOfSourcepublic boolean isOnRightSideOfSource()Indicates if the Stop is on the right side of the source feature.- Returns:
- true if the Stop is located on the right side of the source feature, false otherwise
- Since:
- 100.0.0
 
- 
setOnRightSideOfSourcepublic void setOnRightSideOfSource(boolean onRightSideOfSource) Sets if the Stop is on the right side of the source feature.- Parameters:
- onRightSideOfSource- true if the Stop is located on the right side of the source feature, false otherwise
- Since:
- 100.0.0
 
- 
getSourceNameGets the name of the network source.- Returns:
- the source name. Returns an empty string by default
- Since:
- 100.0.0
 
- 
setSourceNameSets the name of the network source.- Parameters:
- sourceName- source name. It can be empty. Null is treated as an empty string
- Since:
- 100.0.0
 
 
-