Socket
Socket
Sign inDemoInstall

cordova-plugin-directions

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-directions

Cordova Directions Plugin to utilise native maps for satnav style direction purposes (using latitude and longitude or address).


Version published
Weekly downloads
5
decreased by-79.17%
Maintainers
1
Install size
9.24 kB
Created
Weekly downloads
 

Readme

Source

Directions Plugin for Apache Cordova npm version

Cordova Directions Plugin to utilise native maps for satnav style direction purposes (using latitude and longitude or address).

Install

Latest published version on npm (with Cordova CLI >= 5.0.0)
cordova plugin add cordova-plugin-directions
Latest version from GitHub
cordova plugin add https://github.com/leecrossley/cordova-plugin-directions.git
PhoneGap build

Add the following to your config.xml to use version 0.4.0 (you can also omit the version attribute to always use the latest version). You should now use the npm source:

<gap:plugin name="cordova-plugin-directions" version="0.4.0" source="npm" />

For more information, see the PhoneGap build docs.

Usage

You do not need to reference any JavaScript, the Cordova plugin architecture will add a directions object to your root automatically when you build.

Ensure you use the plugin after your deviceready event has been fired.

Navigate to a latitude and longitude

directions.navigateTo("51.50722", "-0.12750"); // latitude, longitude

Navigate to an address (not available for WP8)

directions.navigateToAddress("123 Main St. Orlando, Florida"); // address

Platforms

Support for iOS, Android and Windows Phone 8. Address navigation is not available for Windows Phone 8.

License

MIT License

Keywords

FAQs

Last updated on 03 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc