类 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 class  RoadsApi.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.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • snapToRoads

      public 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.
      参数:
      context - The GeoApiContext to make requests through.
      path - The collected GPS points as a path.
      返回:
      Returns the snapped points as a PendingResult.