与世界公开分享我的当前位置? [英] Share my current location with the world publicly?

查看:73
本文介绍了与世界公开分享我的当前位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个网站,与世界分享我的当前位置,我一直在阅读整个早上,但我看不到一种方式嵌入到一个网站,所以它是公众可以查看的方式,是否有可能? ://www.google.com/maps/place/-31.8878269,115.8162218/@-31.8878269,115.8162218,17zrel =nofollow noreferrer> https://www.google.com/maps/place/-31.8878269, 1158162218 / @ - 31.8878269,115.8162218,17z



IOW在URL中指定Lon / Lat坐标作为参数。



如果您要寻求更广泛的解决方案,那么我建议您需要服务器智能来保存您(和您的朋友?)当前位置的数据库。可以从感兴趣的客户端调查更改,或者可以从服务器推送特定事件并订阅到客户端ServiceWorker中。



如果选择此路径,那么您将不可避免地面临的挑战是Web Apps无法跟踪地理位置,除非在前台和手机没有睡着。所以,如果你想让你的滑雪好友看看你正在使用哪个滑雪板,或者你的自行车/慢跑队友看到你的进步,那么W3C / IETF就会拒绝承认你的存在,更不用说你的要求/商业案例: - (

附表A



图表B a>


I'd like to create a website where I share MY current location with the world, I've been reading about this all morning but I can't see a way to embed this into a website so it's publicly view able, Is it possible?

解决方案

You could have your common URL redirect to your latest coordinates such as: - https://www.google.com/maps/place/-31.8878269,115.8162218/@-31.8878269,115.8162218,17z

IOW specify the Lon/Lat coords in the URL as parameters.

If you were to go for a more extensive solution then I suggest server intelligence would be required to keep a database of your (and your friends?) current location. A change could be polled from interested clients or a specific event could be pushed from the server and subscribed to in a client ServiceWorker.

If you choose this path then you will inevitably be confronted by the conumdrum that Web Apps can't track geolocation unless in the foreground and the phone is not asleep. So if you wanted your ski buddies to see which piste you're on or your cycling/jogging mates to see your progress then W3C/IETF flat-out refuse to acknowledge your very existence let alone your requirements/business case :-(

Exhibit A

Exhibit B

这篇关于与世界公开分享我的当前位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆