纬度/经度生成用作示例数据 [英] Latitude/Longitude Generation to be used as sample data

查看:242
本文介绍了纬度/经度生成用作示例数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个演示Web应用程序,该应用程序通过我的公司平台跟踪多个设备.我正在运行该应用程序,但需要一个csv文件,该文件可以模拟在地图上移动的设备,就好像它们是连接到汽车的跟踪器一样.模拟器通过每秒读取1行数据(1纬度/经度点)来工作.这是一个文件的前几行的示例,如果这些点没有分散在美国各地(SclId是设备名称),那么这些行将起作用.

I am writing a demo web application that tracks multiple devices through my companies platform. I have the app working, but need a csv file that will simulate devices moving on a map as if they were a tracker attached to a car. The simulator works by reading 1 row of data every second (1 lat/lng point). Here is an example of the first few lines of a file that would work if the points weren't scattered across the US (the SclId is the device name).

SclId   Latitude    Longitude
HAT-0   44.968046   -94.420307
HAT-1   44.33328    -89.132008
HAT-2   33.755787   -116.359998
HAT-3   33.844843   -116.54911
HAT-4   44.92057    -93.44786
HAT-5   44.240309   -91.493619
HAT-0   44.968041   -94.419696
HAT-1   44.333304   -89.132027
HAT-2   33.755783   -116.360066
HAT-3   33.844847   -116.549069
HAT-4   44.920474   -93.447851
HAT-5   44.240304   -91.493768

如果我可以通过单击鼠标来创建模拟数据,则可以节省大量时间来创建另一个程序,该程序需要我随身携带设备并将数据记录为CSV.任何帮助/建议将不胜感激.如果您不明白该问题,请进行澄清!

If I had something that could create simulation data with mouse clicks it would save me a lot of time creating another program requiring me to drive around with a device and record the data to a CSV. Any help/recommendations would be greatly appreciated. If you don't understand the question please ask for clarification!

推荐答案

我有一个网站可以绘制航点并将其下载为任何格式,例如GPX,KML,JSON,CSV等.

There is a website that I use to draw waypoint and download it as any format e.g., GPX, KML, JSON, CSV, etc.

https://www.alltrails.com/explore/map/map-e727fa5--12

这篇关于纬度/经度生成用作示例数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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