Resumen
Represents an edge adjacent to a junction.
Debate
Use directions_query.adjacentEdges(junction) to get the adjacent edges.
Propiedades
Propiedad | Explicación | Tipo de datos |
element (Sólo lectura) | The network edge element of the adjacent edge. | Edge |
fromPosition (Sólo lectura) | The position on a network element where the adjacent edge starts. The value is in the range of 0.0 to 1.0. | Float |
immediateAzimuths (Sólo lectura) | The azimuth calculated at close proximity to the start and end of the edge. The tuple contains float values separated by a comma. | tuple |
names (Sólo lectura) | An iterable of element names referring to the adjacent edge. | DirectionsName |
sourceID (Sólo lectura) | The source ID of the adjacent edge's network element. | Integer |
sourceObjectID (Sólo lectura) | The source object ID of the adjacent edge's network element. | Integer |
toPosition (Sólo lectura) | The position on a network element where the adjacent edge ends. The value is in the range of 0.0 to 1.0. | Float |
type (Sólo lectura) | The type of adjacent edge. | TraversedElementType |
Descripción general del método
Método | Explicación |
getName (index, mapping, fallback) | Gets the name of the adjacent edge. The full name or a portion of the name can be returned depending on the mapping parameter value. |
getNames (mapping, fallback) | Gets the names of the adjacent edge. |
Métodos
getName (index, mapping, fallback)
Parámetro | Explicación | Tipo de datos |
index | The type of name that will be retrieved (for example, PrimaryName = 0, AlternateName1 = 1, AlternateName2 = 2, and so on depending on the network dataset's direction configuration). (El valor predeterminado es 0) | Integer |
mapping | The portion of the name that will be returned. (El valor predeterminado es DirectionsFieldMapping.FullName) | DirectionsFieldMapping |
fallback | The value if the edge does not contain the requested mapped property. (El valor predeterminado es "") | String |
Tipo de datos | Explicación |
String | The name from the edge. None is also a valid return value. |
getNames (mapping, fallback)
Parámetro | Explicación | Tipo de datos |
mapping | The portion of the name that will be returned. (El valor predeterminado es DirectionsFieldMapping.FullName) | DirectionsFieldMapping |
fallback | The value if the edge does not contain the requested mapped property. (El valor predeterminado es "") | String |
Tipo de datos | Explicación |
Iterable | An iterable of string consisting of the names (primary and alternatives) from the edge. |