google 地图距离矩阵服务的 Cordova 插件

Cordova plugin for google map distance matrix service

我正在尝试在 cordova 中开发一个 android 应用程序。它必须实现一些 google 地图功能,例如 distance matrix servicedirection service。但是我还没有找到这些功能的插件。我正在使用 cordova-plugin-googlemaps 初始化 google 地图。

我尝试在 javascript 中执行此操作,但它有 ReferenceError: google is not defined and I have pushed the specific file to github

Is there any other plugins have these supports ??

Or is it possible to write native android code to do this functionality that works in cordova application (like bridging kind of things) ??

p.s:我以前没有移动应用程序开发和Java相关的经验

作为来自 these multiple issues state, this plugin does not have support for the Directions and Distance Matrix services at this time, but you can implement them through the JavaScript API or through HTTP Web Services 的人。

希望这可以帮助您指明正确的方向!