Skip to content

Commit

Permalink
Adds polyline support to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Vannoy committed Aug 16, 2016
1 parent fba1be6 commit e1d1d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Not yet included in this gem, but you can do it with nokogiri to parse the XML t
<pre>GoogleDirections.new(origin, destination).xml</pre>
And then nokogiri can cycle through each <step> and you can pick out what you need.

h3. Polylines support

If you need the polylines for the route, you can call `directions.polylines` (where `directions` is an instance of `GoogleDirections`. Further, if you'd rather have those polylines (aka, the route) as a series of points instead, call `directions.polylines_as_points`.

h2. License

Anyone can use this code in any way.
Expand Down

0 comments on commit e1d1d48

Please sign in to comment.