简体   繁体   English

将手机位置从移动应用程序发送到服务器的最佳方式是什么?

[英]what is the best way to send phone(s) location from a mobile app to the server?

I have web app that should receive phones location in real time from mobile app and display them on google Map.我有 web 应用程序,它应该从移动应用程序实时接收手机位置并将它们显示在谷歌 Map 上。 Obviously, if the phone moves, I want to show that the phone is moving in real time on the map显然,如果手机移动了,我想在map上实时显示手机正在移动

web app: front end: reactjs, backend: Nodejs, database:MYSQL, web 应用程序:前端:reactjs,后端:Nodejs,数据库:MYSQL,

Mobile app: flutter移动应用程序:flutter

I will have around 70-80 mobile users who will send their locations in real time to my web app我将有大约 70-80 个移动用户将他们的位置实时发送到我的 web 应用程序

  1. How to send the location of the phone to the server?如何将手机的位置发送到服务器?

  2. What is the best way to handle all these locations on my web application?在我的 web 应用程序上处理所有这些位置的最佳方法是什么?

Please take into your consideration my application performance and scalability请考虑我的应用程序性能和可扩展性

Use Firebase, it's will provide you Realtime Database and other cool features which are very good for performance, also you can use it's feature of hosting your website, it's both compatible to mobile app development and web development, in your Flutter, React and Node.js, https://firebase.google.com/ The Mobile app will send the location Co-ordinates of your Location to Firebase ReadlTime Database, Use Firebase, it's will provide you Realtime Database and other cool features which are very good for performance, also you can use it's feature of hosting your website, it's both compatible to mobile app development and web development, in your Flutter, React and Node.js, https://firebase.google.com/移动应用程序会将您的位置坐标发送到 Firebase ReadlTime 数据库,

         https://pub.dev/packages/location

then you can access the location from your React web app simply by calling firebase API function for JS然后您可以通过调用 firebase API ZC1C425268E68385D114Z 为 7417A7CE1D083A14FZ ZC1C425268E68385D114Z 应用程序从您的 React web 应用程序访问该位置

        https://firebase.google.com/docs/database/admin/retrieve-data#node.js

It depends on what sampling you need and what you plan to use it for.这取决于您需要什么采样以及您计划将其用于什么。 WS is the way to go. WS 是通往 go 的方式。

If you plan to store the data then for scalability I suggest a nonSQL approach (Firebase is a good suggestion).如果您打算存储数据,那么为了可扩展性,我建议使用非 SQL 方法(Firebase 是一个很好的建议)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从移动应用中的服务器持续获取更新的最佳方法是什么? - What the best way to consistently get updates from Server in mobile app? 在基于Cordova的移动应用程序和Web服务器之间进行通信时,确保隐私的最佳方法是什么? - What's the best way to ensure privacy during communication between Cordova based mobile app and web server? 将移动应用程序用户绑定到其在线个人资料的最佳方法是什么? - What's the best way to tie a mobile app user to their online profile? 从服务器向移动应用发送大数据的最佳实践 - Best Practice to Send large data from server to mobile app 从HTML5移动应用向服务器发送请求的方式是什么? - What's the ways to send requests to server from HTML5 mobile app? 从移动设备(iOS或Android)将图像上传到服务器的最佳方法是什么 - What is best way to upload images from mobile (iOS or Android) to server 从移动应用中检测成功的Facebook的最佳方法是什么? - what is the best way to detect a successful facebook like from a mobile app? 有一种方法可以按位置从服务器端向设备发送推送? - There's a way of send pushes from server side to devices by location? 从服务器发送.zip到Android应用的最佳方法 - Best way to send .zips to an Android app from a server 为智能手机应用程序实现应用程序服务器的最佳方法是什么? - What's the best way to implement an application server for smartphone app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM