Permalink
Browse files

Merge pull request #22 from axeff/maneuvers

pass through all available options of route maneuvers
  • Loading branch information...
mmarcon committed Feb 28, 2014
2 parents 92d5b94 + d2bc6f2 commit 8b28ea676d75c1ff9a35d255f725d5700694b9a0
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/extensions/route.js
View
@@ -109,13 +109,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
leg = r.legs && r.legs.length && r.legs[0];
info.time = leg.travelTime;
info.length = leg.length;
- info.maneuvers = $.map(leg.maneuvers, function(m){
- return {
- street: m.streetName,
- length: m.length,
- route: m.routeName
- };
- });
+ info.maneuvers = leg.maneuvers;
/*Fire callback if present*/
if(typeof options.onroute === 'function') {
options.onroute.call(this.element, info);

0 comments on commit 8b28ea6

Please sign in to comment.