From 077abbd766a51f2489d81b7c1306c0c59f9eb2cc Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Mon, 12 Oct 2020 13:11:04 -0400 Subject: [PATCH] docs(api): document encoded polylines on Android --- apidoc/Polyline.yml | 4 ++-- apidoc/Route.yml | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apidoc/Polyline.yml b/apidoc/Polyline.yml index 1a3ce87a..141bff55 100644 --- a/apidoc/Polyline.yml +++ b/apidoc/Polyline.yml @@ -22,9 +22,9 @@ properties: since: "5.1.0" - name: points - summary: Array of map points making up the polyline. Can also be an array of longitude (index 0), latitude (index 1) touples. + summary: Array of map points making up the polyline. Can also be an array of longitude (index 0), latitude (index 1) touples. On Android platform you can use an encoded polyline as string. availability: creation - type: Array + type: [Array, String] optional: false - name: strokeColor diff --git a/apidoc/Route.yml b/apidoc/Route.yml index 9426da16..66ef436e 100644 --- a/apidoc/Route.yml +++ b/apidoc/Route.yml @@ -10,6 +10,11 @@ description: | ### iOS Platform Notes The `addRoute` method no longer accepts a dictionary as a parameter. Pass a object instead. + + ### Android Platform Notes + The parameter `points` accepts additional the route in format `encoded polyline`. + https://developers.google.com/maps/documentation/utilities/polylinealgorithm + extends: Titanium.Proxy since: { android: "3.1.0", iphone: "3.2.0", ipad: "3.2.0", macos: "9.2.0" } platforms: [android, iphone, ipad, macos] @@ -17,7 +22,7 @@ properties: - name: points summary: Array of map points making up the route. availability: creation - type: Array + type: [String, Array] optional: false - name: color