百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-native-maps-directions

> 前端框架
开源

`React-native-maps` 的指示方向组件

1.3K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

`React-native-maps` 的指示方向组件

React-native-maps-directions React-native-maps 的路线组件 – 绘制两个坐标之间的路线,由 Google Maps Directions API 提供支持

  • origin: 起始路由的起始位置
  • destination: 起始路由的目的地位置
  • apikey: 你的 Google Maps Directions API 密钥 (请在此处申请一个 密钥; 如果你使用现有的 Google Maps API 密钥,请确保已通过 Google API Console 为该密钥启用 Google Maps Directions API).
javascript
import MapViewDirections from 'react-native-maps-directions';

const origin = {latitude: 37.3318456, longitude: -122.0296002};
const destination = {latitude: 37.771707, longitude: -122.4053769};
const GOOGLE_MAPS_APIKEY = '…';

  
Prop 类型 默认值 说明
origin LatLng 或 String 起始位置,用于开始路线规划。

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptgoogle-mapsgoogle-maps-apimapkitreact-native

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架