Search code examples
androidangulargoogle-maps-api-3ionic-native

Is there any way to implement direction using google-maps plugin of 'Ionic Native'


I usually implements google maps by calling google-maps api. Recently I decided to use google-maps plugin of 'Ionic Native' to make thing smoother. I have successfully implemented markers in maps and everything was working fine. But when I decided to implement routes between two points, I found that ionic native didn't have a function to implement this direction service.

So my question is

  1. Is there any method to implement direction using google-maps plugin?
  2. If there is no such method, Is it possible to implement this two kind of maps in one application and show direction in one map and other services in another map? Is that really a good practise?

Solution

  • You can use Google Maps JavaScript API v3 for direction, then parse the result, and draw it using polyline and marker. Some people use the Google Directions API.

    Or just launch the Google Maps application using https://github.com/dpa99c/phonegap-launch-navigator