https://github.com/tschoffelen/react-native-ios-directions
🧠Exposing the native MKDirections API on iOS.
https://github.com/tschoffelen/react-native-ios-directions
directions ios react-native
Last synced: about 1 month ago
JSON representation
🧠Exposing the native MKDirections API on iOS.
- Host: GitHub
- URL: https://github.com/tschoffelen/react-native-ios-directions
- Owner: tschoffelen
- License: mit
- Created: 2022-06-27T16:38:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T11:22:39.000Z (3 months ago)
- Last Synced: 2025-04-11T17:44:11.863Z (about 1 month ago)
- Topics: directions, ios, react-native
- Language: Java
- Homepage:
- Size: 1.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-ios-directions
Exposing the native [MKDirections](https://developer.apple.com/documentation/mapkit/mkdirections) API on iOS.
## Installation
```sh
yarn add react-native-ios-directions
```## Usage
```js
import { getDirections } from "react-native-ios-directions";const route = await getDirections([51.526023, -0.083454], [51.5336, -0.05711]);
if (route) {
// route = { eta: 0, distance: 0, points: [[0,0],[1,1]] }
}
```