hansemannn / titanium-googlemaps

🗺 Use the Google Maps with the Titanium SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for the Directions API

hansemannn opened this issue · comments

Expose the Directions REST API. Example:

maps.getDirections({
    origin: 'Mountain View, CA',
    destination: 'San Francisco, CA',
    success: function(e) {
        Ti.API.info(e.routes);   
    },
    error: function(e) {
        Ti.API.error('Error: ' + e.error);
    },
    // Optional
    waypoints: ['Cupertino, CA', 'via:Sunnyvale, CA'],
    }
});

Supported as part of #74