BETA
Select within a geographic corridor. This is a hard filter. Results will be returned if they are located within the specified area.
A route is defined by a Flexible Polyline Encoding,
followed by an optional width, represented by a sub-parameter "w".
Format: {route};w={width}
In regular expression syntax, the values of route are formatted as follows:
[a-zA-Z0-9_-]+(;w=\d+)?
"[a-zA-Z0-9._-]+" is the encoded flexible polyline.
"w=\d+" is the optional width. The width is specified in meters from the center of the path. If no width is provided, the default is 1000 meters.
Type: {Flexible Polyline Encoding};w={integer}
The following constraints apply:
- A
route MUST contain at least two points (one segment).
- A
route MUST NOT contain more than 2,000 points.
- A
route MUST NOT have a width of more than 50,000 meters.
Examples:
BFoz5xJ67i1B1B7PzIhaxL7Y
BFoz5xJ67i1B1B7PzIhaxL7Y;w=5000
BlD05xgKuy2xCCx9B7vUCl0OhnRC54EqSCzpEl-HCxjD3pBCiGnyGCi2CvwFCsgD3nDC4vB6eC;w=2000
Note: The last example above can be decoded (using the Python class here as follows:
>>> import flexpolyline
>>> polyline = 'BlD05xgKuy2xCCx9B7vUCl0OhnRC54EqSCzpEl-HCxjD3pBCiGnyGCi2CvwFCsgD3nDC4vB6eC'
>>> flexpolyline.decode(polyline)
[(52.51994, 13.38663, 1.0), (52.51009, 13.28169, 2.0), (52.43518, 13.19352, 3.0), (52.41073, 13.19645, 4.0),
(52.38871, 13.15578, 5.0), (52.37278, 13.1491, 6.0), (52.37375, 13.11546, 7.0), (52.38752, 13.08722, 8.0),
(52.40294, 13.07062, 9.0), (52.41058, 13.07555, 10.0)]