类 RoadsApi
java.lang.Object
ai.nextbillion.maps.RoadsApi
public class RoadsApi
extends java.lang.Object
The Google Maps Roads API identifies the roads a vehicle was traveling along and provides
additional metadata about those roads, such as speed limits.
See also: Roads API documentation.
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classRoadsApi.RoadsResponse -
方法概要
修饰符和类型 方法 说明 static PendingResult<SnappedPoint[]>snapToRoads(GeoApiContext context, LatLng... path)Takes up to 100 GPS points collected along a route, and returns a similar set of data with the points snapped to the most likely roads the vehicle was traveling along.
-
方法详细资料
-
snapToRoads
Takes up to 100 GPS points collected along a route, and returns a similar set of data with the points snapped to the most likely roads the vehicle was traveling along.- 参数:
context- TheGeoApiContextto make requests through.path- The collected GPS points as a path.- 返回:
- Returns the snapped points as a
PendingResult.
-