一种基于ReactNative实现LBS的方法技术

技术编号:16558814 阅读:103 留言:0更新日期:2017-11-14 17:50
本发明专利技术涉及一种基于React Native实现LBS的方法,属于移动App开发技术领域;为了解决跨手机平台的位置服务的技术问题;具体步骤包括:开发者在React Native页面中引入兼容Android和IOS的封装后的网页组件,在React Native网页组件中编写脚本程序,脚本程序调用第三方平台API,第三方平台API访问终端设备的GPS,获取终端设备所在地的经纬度,实现终端设备定位,第三方平台API渲染以定位点为中心的区域地图,建立React Native与网页组件双向通讯,实现LBS定位功能;本方法在React Native框架兼容Android和iOS平台的良好特性下,使用其提供的网页组件<WebView>实现LBS功能,体现出其在项目实践中开发成本小、开发周期短、跨平台、便于维护等优点。

A method of implementing LBS based on ReactNative

The invention relates to a method for React Native implementation based on LBS, which belongs to the field of mobile App technology in order to solve technical problems; cross platform mobile phone location services; the specific steps include: introduction of web page developers compatible components Android and IOS encapsulated in React Native page, the script procedure in React Native \the component and script program calls the third party platform API, the third party platform API access terminal equipment GPS access terminal equipment where the latitude and longitude, realize the terminal equipment location, regional map as the center of the third party API rendering platform to locate, build React Native and web components of two-way communication, LBS positioning function this method is compatible with React; good Native framework and Android characteristics of iOS platform, the use of the\ component < WebView> LBS function, It embodies the advantages of small development cost, short development cycle, cross platform and easy maintenance in project practice.

【技术实现步骤摘要】
一种基于ReactNative实现LBS的方法
本专利技术涉及一种基于ReactNative实现LBS的方法,属于移动App开发

技术介绍
目前,很多社交、生活服务类的移动端App(应用程序)都使用了LBS(Location-BasedService,地理位置服务)。通过借助第三方平台,例如百度地图、高德地图、腾讯地图等,开发者可以有效调用其丰富的API(应用程序编程接口),例如JavaScriptAPI、URIAPI等,实现个性化服务。通常情况下,开发一款移动应用要面向Android和iOS系统,也就是主流的安卓手机和苹果手机。软件公司需要配置专门的针对不同平台的开发人员,因为两者的开发环境、开发语言、开发工具等差异迥然。具体而言,Android系统一般在Windows操作系统下,使用AndroidStudio(或Eclipse)开发工具,用Java语言编程;iOS系统一般在MacOS(X)操作系统,使用Xcode开发工具,用Objective-C(或Swift)语言编程。所以,平台的差异意味着开发人员需要具备不同的开发技能,软件公司一般也要配置Android和iOS开发本文档来自技高网...
一种基于ReactNative实现LBS的方法

【技术保护点】
一种基于React Native实现LBS的方法,其特征在于,具体步骤包括:步骤a、开发者在React Native页面中引入兼容Android和IOS的封装后的网页组件;步骤b、在React Native网页组件中编写脚本程序,脚本程序调用第三方平台API,第三方平台API访问终端设备的GPS,获取终端设备所在地的经纬度,实现终端设备定位,第三方平台API渲染以定位点为中心的区域地图;步骤c、建立React Native与网页组件双向通讯,实现LBS定位功能;(1)React Native调用后台数据库获取信息数据,并将信息数据传递至网页组件;(2)网页组件通过脚本程序调用第三方平台API,...

【技术特征摘要】
2017.03.28 CN 20171018995981.一种基于ReactNative实现LBS的方法,其特征在于,具体步骤包括:步骤a、开发者在ReactNative页面中引入兼容Android和IOS的封装后的网页组件;步骤b、在ReactNative网页组件中编写脚本程序,脚本程序调用第三方平台API,第三方平台API访问终端设备的GPS,获取终端设备所在地的经纬度,实现终端...

【专利技术属性】
技术研发人员:王洪涛王月缤范鑫
申请(专利权)人:吉林市东杰科技开发有限公司
类型:发明
国别省市:吉林,22

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1