Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
PolylineEncoding
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
POLYLINE_ENCODING_UNSPECIFIED |
未指定多段线类型偏好设置。默认为 ENCODED_POLYLINE 。 |
ENCODED_POLYLINE |
用于指定使用多段线编码算法编码的多段线。 |
GEO_JSON_LINESTRING |
使用 GeoJSON LineString 格式指定多段线。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThis option specifies the preferred format for the returned polyline, which represents a series of connected points.\u003c/p\u003e\n"],["\u003cp\u003eYou can choose between an encoded polyline using a specific algorithm, a GeoJSON LineString format, or leave it unspecified which defaults to the encoded polyline.\u003c/p\u003e\n"],["\u003cp\u003eIf no preference is specified, the polyline will be encoded using the polyline encoding algorithm.\u003c/p\u003e\n"]]],["The document outlines three types of polyline specifications. `POLYLINE_ENCODING_UNSPECIFIED` implies no preference, defaulting to `ENCODED_POLYLINE`. `ENCODED_POLYLINE` uses the polyline encoding algorithm. `GEO_JSON_LINESTRING` employs the GeoJSON LineString format. These specifications determine the format in which polyline data is returned, offering choices for encoded or GeoJSON representations, with a default if no type is chosen.\n"],null,["# PolylineEncoding\n\nSpecifies the preferred type of polyline to be returned.\n\n| Enums ||\n|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `POLYLINE_ENCODING_UNSPECIFIED` | No polyline type preference specified. Defaults to `ENCODED_POLYLINE`. |\n| `ENCODED_POLYLINE` | Specifies a polyline encoded using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm). |\n| `GEO_JSON_LINESTRING` | Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4). |"]]