{"id":16535507,"url":"https://github.com/qiuxiang/react-native-amap-geolocation","last_synced_at":"2025-04-13T00:47:57.551Z","repository":{"id":49375887,"uuid":"130442005","full_name":"qiuxiang/react-native-amap-geolocation","owner":"qiuxiang","description":"React Native geolocation module for Android + iOS","archived":false,"fork":false,"pushed_at":"2023-04-21T01:56:41.000Z","size":818,"stargazers_count":395,"open_issues_count":64,"forks_count":106,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-13T00:47:44.595Z","etag":null,"topics":["amap","geolocation","location","react-native"],"latest_commit_sha":null,"homepage":"https://qiuxiang.github.io/react-native-amap-geolocation","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qiuxiang.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-21T05:11:39.000Z","updated_at":"2025-03-22T21:21:38.000Z","dependencies_parsed_at":"2024-06-18T18:22:08.498Z","dependency_job_id":"e84c9d7e-4147-4447-9148-042bb6c3666a","html_url":"https://github.com/qiuxiang/react-native-amap-geolocation","commit_stats":{"total_commits":111,"total_committers":7,"mean_commits":"15.857142857142858","dds":0.05405405405405406,"last_synced_commit":"d3bc83100e3c6243b445d87a8fd6476bfd68e61e"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiuxiang%2Freact-native-amap-geolocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiuxiang%2Freact-native-amap-geolocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiuxiang%2Freact-native-amap-geolocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiuxiang%2Freact-native-amap-geolocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qiuxiang","download_url":"https://codeload.github.com/qiuxiang/react-native-amap-geolocation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650435,"owners_count":21139672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amap","geolocation","location","react-native"],"created_at":"2024-10-11T18:27:43.478Z","updated_at":"2025-04-13T00:47:57.522Z","avatar_url":"https://github.com/qiuxiang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-amap-geolocation [![][version-badge]][npm] [![][build-badge]][build]\n\n**注意：该项目目前只维护，不加新功能。**\n\nReact Native 高德地图定位模块，支持 Android + iOS，提供尽可能完善的原生接口，\n同时提供符合 Web 标准的 Geolocation API。\n\n\u003cimg src=\"https://user-images.githubusercontent.com/1709072/57276743-12f67f00-70d5-11e9-9fe9-94e37abc1e0b.png\" width=360\u003e\n\n## 用法\n\n```javascript\nimport { PermissionsAndroid } from \"react-native\";\nimport { init, Geolocation } from \"react-native-amap-geolocation\";\n\nawait PermissionsAndroid.requestMultiple([\n  PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,\n  PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION,\n]);\n\nawait init({\n  ios: \"9bd6c82e77583020a73ef1af59d0c759\",\n  android: \"043b24fe18785f33c491705ffe5b6935\",\n});\n\nGeolocation.getCurrentPosition(({ coords }) =\u003e {\n  console.log(coords);\n});\n```\n\n## 文档\n\n- [使用指南](https://qiuxiang.github.io/react-native-amap-geolocation)\n- [接口文档](https://qiuxiang.github.io/react-native-amap-geolocation/api/)\n\n[npm]: https://www.npmjs.com/package/react-native-amap-geolocation\n[version-badge]: https://badge.fury.io/js/react-native-amap-geolocation.svg\n[build-badge]: https://github.com/qiuxiang/react-native-amap-geolocation/actions/workflows/build.yml/badge.svg\n[build]: https://github.com/qiuxiang/react-native-amap-geolocation/actions/workflows/build.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiuxiang%2Freact-native-amap-geolocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiuxiang%2Freact-native-amap-geolocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiuxiang%2Freact-native-amap-geolocation/lists"}