Gathering detailed insights and metrics for expando-react-native-google-maps-directions
Gathering detailed insights and metrics for expando-react-native-google-maps-directions
Gathering detailed insights and metrics for expando-react-native-google-maps-directions
Gathering detailed insights and metrics for expando-react-native-google-maps-directions
🚕 Get direction using Google Maps in React Native 🚗
npm install expando-react-native-google-maps-directions
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
61 Commits
2 Branches
1 Contributors
Updated on Mar 16, 2021
Latest Version
2.1.4
Package Id
expando-react-native-google-maps-directions@2.1.4
Unpacked Size
7.20 kB
Size
3.10 kB
File Count
4
NPM Version
6.10.0
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
🚕 Get direction using Google Maps in React Native 🚗
A tiny module that uses the React Native Linking API to get directions using Google Maps by opening it in the default browser or app if installed.
1$ npm install --save expando-react-native-google-maps-directions
1$ yarn add expando-react-native-google-maps-directions
1import getDirections from 'expando-react-native-google-maps-directions' 2 3export default class gmapsDirections extends Component { 4 5 handleGetDirections = () => { 6 const data = { 7 source: { 8 latitude: -33.8356372, 9 longitude: 18.6947617 10 }, 11 destination: { 12 latitude: -33.8600024, 13 longitude: 18.697459 14 }, 15 params: [ 16 { 17 key: "travelmode", 18 value: "driving" // may be "walking", "bicycling" or "transit" as well 19 }, 20 { 21 key: "dir_action", 22 value: "navigate" // this instantly initializes navigation using the given travel mode 23 } 24 ], 25 waypoints: [ 26 { 27 latitude: -33.8600025, 28 longitude: 18.697452 29 }, 30 { 31 latitude: -33.8600026, 32 longitude: 18.697453 33 }, 34 { 35 latitude: -33.8600036, 36 longitude: 18.697493 37 } 38 ] 39 } 40 41 getDirections(data) 42 } 43 44 render() { 45 return ( 46 <View style={styles.container}> 47 <Button onPress={this.handleGetDirections} title="Get Directions" /> 48 </View> 49 ); 50 } 51}
The module exports a single getDirections
function that takes a object as its argument. The object may have destination
(Where you're going to) and source
(Where you're coming from) both of which have latitude
and longitude
number properties. If source
is undefined, it defaults to the user's current location. If destination
is undefined, it leaves it blank in Google Maps and the user will be able to enter a destination.
Additionaly parameters can be added as key-value pairs to the params array (optional). The supported parameters are listed here.
Waypoints should be passed as an array of objects:
1[ 2 { 3 latitude: -33.8600025, 4 longitude: 18.697452, 5 }, 6 { 7 latitude: -33.8600026, 8 longitude: 18.697453, 9 } 10]
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
Licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More