Skip to content

Commit

Permalink
docs(api): document encoded polylines on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Oct 12, 2020
1 parent d655255 commit 077abbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apidoc/Polyline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<MapPointType>
type: [Array<MapPointType>, String]
optional: false

- name: strokeColor
Expand Down
7 changes: 6 additions & 1 deletion apidoc/Route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ description: |
### iOS Platform Notes
The `addRoute` method no longer accepts a dictionary as a parameter. Pass a <Modules.Map.Route> 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]
properties:
- name: points
summary: Array of map points making up the route.
availability: creation
type: Array<MapPointType>
type: [String, Array<MapPointType>]
optional: false

- name: color
Expand Down

0 comments on commit 077abbd

Please sign in to comment.