简体   繁体   English

Android 模拟器位置 mocking 带地理修复

[英]Android Emulator Location mocking with geo fix

I am trying to set the Android virtual device's location我正在尝试设置 Android 虚拟设备的位置

telnet localhost 5554
auth auth_token
geo fix lat long

But when I copy the lat/long value from Google maps and paste it, the location is not accepted as the values are between 90 to -90.但是当我从谷歌地图复制纬度/经度值并粘贴时,该位置不被接受,因为值在 90 到 -90 之间。

For example, Seattle: 47.62582525856776, -122.3468384496781 from google maps.例如,西雅图:47.62582525856776,-122.3468384496781 来自谷歌地图。

When I try to run: geo fix 47.62 -122.34 I get an error: KO: invalid latitude value.当我尝试运行:geo fix 47.62 -122.34 时出现错误:KO:无效的纬度值。 Should be in [-90,+90] range应该在 [-90,+90] 范围内

Question:问题:

  1. How do I get accepted values of latitude and longitude for geo fix如何获得geo fix的可接受的纬度和经度值

The values that google maps provides is in Latitude and Longitude.谷歌地图提供的值是纬度和经度。

So the values need to be reversed.所以值需要颠倒。

adb emu geo fix -122.34 47.62 will place you in Seattle. adb emu geo fix -122.34 47.62会将您置于西雅图。

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

相关问题 地理修复未在Android仿真器中设置浏览器位置 - Geo Fix Not Setting Browser Location in Android Emulator 位置未在Android模拟器中的新地理位置修复程序上更新 - Location not being updated on new geo fix in android emulator android模拟器geo fix无法设置gps位置 - android emulator geo fix is unable to set gps location Android功能测试; 将地理位置发送到模拟器 - Android functional test; send geo location to emulator 无头 Android 模拟器:GPS 即使设置 Geo Fix,位置也不起作用 - Headless Android Emulator: GPS Location does not work even with setting Geo Fix 模拟器上的GPS无法获得地理定位 - Android - GPS on emulator doesn't get the geo fix - Android 有没有办法使用Android模拟器和“地理定位”来传递当前速度数据以及纬度和经度? - Is there a way to pass current speed data along with latitude and longitude using the Android emulator and 'geo fix'? Android工具(DDMS和仿真器“ geo fix”)为什么在纬度之前需要经度,是否有技术上的原因? - Is there a technical reason why Android tools (DDMS, and emulator “geo fix”) expect longitude before latitude? 在Android设备上模拟位置 - Mocking location on android device 如何修复 Android Studio 模拟器中的错误点击位置? - How to fix wrong click location in Android Studio emulator?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM