[英]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:问题:
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.