From e1d1d48ebc460368811713a6a646d80e935c764d Mon Sep 17 00:00:00 2001 From: Chris Vannoy Date: Tue, 16 Aug 2016 11:43:49 -0400 Subject: [PATCH] Adds polyline support to README --- README.textile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.textile b/README.textile index 68483a1..0f54977 100644 --- a/README.textile +++ b/README.textile @@ -54,6 +54,10 @@ Not yet included in this gem, but you can do it with nokogiri to parse the XML t
GoogleDirections.new(origin, destination).xml
And then nokogiri can cycle through each 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.