简体   繁体   中英

Emulating Geo Location in Chrome with moving

My Question is based on Chrome's GeoLocation spoofer which allows me to swap my locations in order to test my nodejs app. The problem is it is designed to leave a 'trace' following the history of the movements. It's really annoying to type new coords in the Chrome console every time I have to move.

Could you point me a place/addon/piece of code where I can set up 10-20 coordinates in a circle(using loop) and force the emulation to follow those coordinates every few seconds. So I can finally simulate moving and continue developing the tracing function from the front-end point of view ?

My point is I need a real-like spoofer and Chrome gives us perfect one, but I gotta make the little guy moving.

If you have a Mac available to you, there is a moving GPS simulator in Xcode. Download Xcode (free on the Mac App Store) and run the iOS Simulator. Open Safari in the Simulator. Then in the Simulator's Debug menu choose Location and then pick from one of three moving simulations. Alas they are all in the San Francisco Bay area. The Custom Location option only allows you to put in a single coordinate and not a series of them.

You could even ask a friend with a Mac to just open your web app in their iOS Simulator and leave it running while they do other stuff.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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