hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium
Other
87 stars 26 forks source link

Support for the Directions API #75

Closed hansemannn closed 7 years ago

hansemannn commented 7 years ago

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'],
    }
});
hansemannn commented 7 years ago

Supported as part of #74