类 SnappedPoint
java.lang.Object
ai.nextbillion.maps.model.SnappedPoint
- 所有已实现的接口:
java.io.Serializable
public class SnappedPoint
extends java.lang.Object
implements java.io.Serializable
A point that has been snapped to a road by the Roads API.
- 另请参阅:
- 序列化表格
-
字段概要
字段 修饰符和类型 字段 说明 LatLnglocationA latitude/longitude value representing the snapped location.intoriginalIndexThe index of the corresponding value in the original request. -
构造器概要
构造器 构造器 说明 SnappedPoint() -
方法概要
修饰符和类型 方法 说明 java.lang.StringtoString()
-
字段详细资料
-
location
A latitude/longitude value representing the snapped location. -
originalIndex
public int originalIndexThe index of the corresponding value in the original request. Each value in the request should map to a snapped value in the response. However, if you've set interpolate=true, then it's possible that the response will contain more coordinates than the request. Interpolated values will not have an originalIndex. These values are indexed from 0, so a point with an originalIndex of 4 will be the snapped value of the 5th lat/lng passed to the path parameter.A point that was not on the original path, or when interpolate=false, will have an originalIndex of -1.
-
-
构造器详细资料
-
SnappedPoint
public SnappedPoint()
-
-
方法详细资料
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-