stadiamaps / ferrostar

A FOSS navigation SDK built from the ground up for the future
https://stadiamaps.github.io/ferrostar/
Other
91 stars 10 forks source link

Sharing test data? #29

Open ianthetechie opened 6 months ago

ianthetechie commented 6 months ago

We need to figure out an easy way to share test data across the core, Apple, and Android. This data comes in several forms:

  1. Waypoint data from GPS traces, route polylines, etc.
  2. Predefined routes
    • Captured JSON responses
    • Methods for creating Routes and iOS/Android UI state from a predefined route

These will be useful for creating demonstration applications, SwiftUI/Compose previews, and unit testing.

Currently some of this info exists, but it is spread out and (in some cases) duplicated.

I don't think we necessarily need to dedupe all of this, but it probably would be useful to have an easy way to load up routes from Valhalla JSON and simulate location by replaying GPX files on both iOS and Android, and we'll need some helper code for that, and maybe a shared directory (+ symlinks? I think both Xcode and Gradle might not like looking too far afield for files.)

ianthetechie commented 4 months ago

I’ll probably take a look at this very soon as it will be useful to test #39