如何在真实设备中模拟驾驶路线 [英] How to simulate driving a route in real device

查看:278
本文介绍了如何在真实设备中模拟驾驶路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于位置的应用,我想在不动的情况下对其进行测试.
我知道我可以提供点的kml文件,但我不想使用模拟器,而是真正的设备.

您能告诉我什么是在设备上模拟驾驶路线的最佳方法吗?
我强调,我需要模拟整个路线而不是单个点.

感谢您抽出宝贵的时间

I have a locations based app and I want to test it without real moving.
I know I can provide a kml file of points but I don't want to use emulator, but real device.

could you tell me what is the best way to simulate driving a route on the device?
I emphasize that I need to simulate an entire route rather than a single point.

thank you for giving your time

推荐答案

我正在开发应用程序时使用模拟位置.到目前为止,已证明以下两个应用程序在模拟位置(静态位置和路线)中是可靠的:

I'm using mock locations in the development of my app. The following two apps have proved reliable in mocking locations (static location & routes) thus far:

Lockito

  • 我使用Lockito来创建被捕捉到道路的路线.路线是在Lockito中创建的.创建路线后,Lockito可以将路线作为一系列模拟位置播放,从而影响其他读取GPS位置的应用.

  • I use Lockito to create routes that are snapped to roads. Routes are created within Lockito. After a route has been created, Lockito can then playback the route as a series of mock locations that affect other apps reading GPS location.

速度控制可用于播放路线.

Speed control is available for playing back routes.

可以保存并加载路线以供下次播放.

Routes can be saved and loaded to be played back another time.

https://play.google.com/store/apps/详细信息?id = fr.dvilleneuve.lockito

传送

  • 我使用Teleport从 .KML文件创建路由. Teleport接受"TrackMatch格式"的.KML文件.

  • I use Teleport to create routes from .KML files. Teleport accepts .KML files in "TrackMatch format".

https://play.google.com/store/apps/details?id = com.shankarlabs.teleport

我如何结合我的应用程序使用Lockito和Teleport

我将在运行应用程序时让Lockito或Teleport ^模拟设备的位置.也就是说,在模拟位置时,我的设备上至少有lesat 2个应用程序正在运行"-我的应用程序以及Lockito或Teleport.

I would have either Lockito or Teleport ^ mocking my device's location while my app is running. That is, I would have at lesat 2 apps "running" on my device when mocking locations - my app, and either Lockito or Teleport.

^由于害怕意外后果,我不会同时使用Lockito和Teleport.

^ I don't use both Lockito and Teleport at the same time for fear of unintended consequences.

离题:

我创建.KML文件的方式:

Ways I create .KML files:

1) http://www.mapmash.in/kmlpolyline.html

2)Google地球

2) Google Earth

这篇关于如何在真实设备中模拟驾驶路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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