What is a GPS track? Do you mean generate fake GPS coordinates?
Basically track is just an array of coordinates. But it should be more or less "sane" track, with points not far from each other forming the track, not just random set. I'm working on fleet tracking system and need this for testing.
Do you mean a bounding box for longitude / latitude?
Something like this http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates ??
You might be able to google an existing solution.
Thanks!
It's not that I'm unable to find a solution, its just I though it would be a nice addition to the great faker lib.
Cool.
Feel free to open up a pull request with the functionality and I'll be glad to merge it.
Thanks!
It's not bounding box. In my app I have a bus following specific track, and I need to emulate this bus for testing - so I need to make a fake track, then to make a fake bus following this track.
Ok, sounds like a plan :)
@afanasy did you find a solution ? I need exactly what you requested on this issue.
"...an array of coordinates. But it should be more or less "sane" track, with points not far from each other forming the track, not just random set..."
Cheers
@diegolaciar not really, I haven't implemented this yet. It should be relatively easy to code geodesic path by incrementing latitude and longitude by some small delta.
@afanasy @diegolaciar
We have now added ability to generate GPS coordinates in master based on a few options with: addess.nearbyGPSCoordinate
Please let us know if this helps: https://github.com/Marak/faker.js/pull/378
Most helpful comment
@afanasy @diegolaciar
We have now added ability to generate GPS coordinates in
masterbased on a few options with:addess.nearbyGPSCoordinatePlease let us know if this helps: https://github.com/Marak/faker.js/pull/378