简体   繁体   English

Android手机位置API

[英]Android Phone Location API

I'm trying to do some home/life automation scripting and I'd like to be able to get the location of my Android phone through some API. 我正在尝试做一些家庭/生活自动化脚本,我希望能够通过一些API获取我的Android手机的位置。 This would be useful to do things such as turn on my home security camera, or to route my home calls to my phone if I'm away. 这对执行诸如打开家庭安全摄像头之类的操作或在我不在时将家庭呼叫路由到电话的操作很有用。

This would preferably a RESTful one, or an API with good Python interop. 最好使用RESTful或具有良好Python互操作性的API。 However, I'm not averse to using any tool to get the job done. 但是,我并不反对使用任何工具来完成这项工作。

I considered checking my router to see if my phone was connected, which will work for some things, but it would hinder me in implementing other things. 我考虑过检查路由器,看看我的手机是否已连接,这在某些情况下可以使用,但会妨碍我进行其他操作。

I know I could probably write an Android app that would phone home to do this, but I wanted to see if there were any alternatives first. 我知道我可能会写一个可以打电话回家的Android应用程序,但我想先看看是否有其他选择。 My Google-Fu came up short on this one (if it exists). 我的Google-Fu就此问题(如果存在)提出了建议。

Thanks in advance! 提前致谢!

secrets of mobile hackers..what does google chrome use? 移动黑客的秘密..谷歌浏览器使用什么?

Google uses three approaches..the third approach is your option find a site that does or allows triangulation involving using cell tower maps.. Google使用三种方法。第三种方法是您选择查找一个进行或允许进行三角测量的网站,其中涉及使用手机信号塔图。

Or lets see mobile web page to get location via google services and than hook that into your python script on the server side 或者让我们查看移动网页以通过Google服务获取位置,然后将其挂接到服务器端的python脚本中

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM