1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! The Roads API **Snap To Roads** service 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. Optionally, you can
//! request that the points be interpolated, resulting in a path that smoothly
//! follows the geometry of the road.
//!
//! # [Required parameters](https://developers.google.com/maps/documentation/roads/snap#required-parameters)
//!
//! * `path` - The path to be snapped. The path parameter accepts a list of
//! latitude/longitude pairs. Latitude and longitude values should be
//! separated by commas. Coordinates should be separated by the pipe
//! character: "|". For example:
//! `path=60.170880,24.942795|60.170879,24.942796|60.170877,24.942796`.
//!
//! Note: The snapping algorithm works best for points that are not too far
//! apart. If you observe odd snapping behavior, try creating paths that have
//! points closer together. To ensure the best snap-to-road quality, you should
//! aim to provide paths on which consecutive pairs of points are within 300m of
//! each other. This will also help in handling any isolated, long jumps between
//! consecutive points caused by GPS signal loss, or noise.
//!
//! # [Optional parameters](https://developers.google.com/maps/documentation/roads/snap#optional-parameters)
//!
//! * `interpolate` - Whether to interpolate a path to include all points
//! forming the full road-geometry. When `true`, additional interpolated
//! points will also be returned, resulting in a path that smoothly follows
//! the geometry of the road, even around corners and through tunnels.
//! Interpolated paths will most likely contain more points than the original
//! path. Defaults to `false`.
// -----------------------------------------------------------------------------
pub use crate;
pub use crateRequest as SnapToRoadsRequest;
pub use crateResponse as SnapToRoadsResponse;