如何获取wifi热点的位置?

how to get wifi hotspot#39;s location?(如何获取wifi热点的位置?)
本文介绍了如何获取wifi热点的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个应用程序,它可以记录我们正在访问的 wifi 热点的位置并在地图中显示它们.但问题是 - 我如何获得 wifi 热点的位置?我想我可以使用wifi信号来获取wifi热点的位置,但第一次可能不是很准确.如果没有其他解决方案,我可以在第一次访问wifi热点时记录GPS的位置.

I want to write an application that it can record the wifi hotspot's location we are accessing and display them in map. But the problem is - how do I get wifi hotspot's location? I think I can use the wifi signal to get the wifi hotspot's location, but it may not be very accuracy at first time. And if there is no other solution, I could record the location of GPS when access wifi hotspot at the first time.

推荐答案

您将无法找到热点位置,也无法确定从当前位置到实际热点的方向和距离.

You'll not be able to find the hotspots location and you'll not be able to determine the direction and distance from your current position to the actual hotspot.

热点不报告它们的坐标(我的 wifi 盒子甚至不知道它自己的地理坐标).谷歌在他们的街景任务中捕获了热点,并使用这些结果对 wifi 热点的位置进行三角测量,其他公司也这样做来建立数据库.

The hotspots don't report their coordinates (my wifi box doesn't even know it's own geographical coordinates). Google captured hotspots during their streetview missions and used the results to triangulate the positions of wifi hotspots and other companies did the same to build up databases.

因此,要获取信息,您需要访问知道热点坐标的数据库.

So to get the information, you'll need access to a database that knows the coordinates of hotspots.

这篇关于如何获取wifi热点的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)