Start by forking this repo and solving the problem with completed instructions for building/running.
Open a PR against the original hammerheadnav/interview repo when you're finished.
Write a simple program in a language of your choice that has implementations for three "services" (Strava, RWGPS, and Komoot).
Results should be printed to standard output after following the build instructions.
Each service has the ability to get routes. Services can retreive all routes or retrieve routes for a specific user.
- Has fixed routes
["SRT", "CVT", "Perkiomen"]
- For user routes, Strave prepends the user id onto the route.
- Has fixed routes
["CVT", "Perkiomen", "Welsh Mountain"]
- For user routes, RWGPS appends the user id onto the route.
- Has fixed routes
["SRT", "Welsh Mountain", "Oaks to Philly"]
- For user routes, Komoot prepends and appends the user id onto the route.
The code should have the following functionality:
Return the list of the routes across all services.
Return a unique list of the routes across all services.
Given a user id and return a list of all the routes the user has across all services.
Given a user id and a subset of the list of services (e.g. ["Strava", "Komoot"]
)
return the user's routes for only the services listed.
TODO: please provide instructions to build and run your program(s) along with any require tools an dependencies.