An open API service indexing awesome lists of open source software.

https://github.com/pelmers/streetwarp-web

The web-based frontend for streetwarp-cli, a tool that produces hyperlapses for GPX routes
https://github.com/pelmers/streetwarp-web

geospatial-visualization mapbox streetview webapp

Last synced: 4 months ago
JSON representation

The web-based frontend for streetwarp-cli, a tool that produces hyperlapses for GPX routes

Awesome Lists containing this project

README

          

[![Logo](static/logo.png)](https://streetwarp.com/)

## Website: [streetwarp.com](https://streetwarp.com)

## Example:

Click to view:
[![Watch the demo](res/demo_screen.png)](https://github.com/pelmers/streetwarp-web/blob/master/res/demo_result.mp4?raw=true)

### Description

Streetwarp Web is the web-based frontend for
[streetwarp-cli](https://github.com/pelmers/streetwarp-cli), a tool that
produces hyperlapses for GPX routes. This project is simply a web page and
associated server that invokes the command line tool. The live deployment uses
[streetwarp-lambda](https://github.com/pelmers/streetwarp-lambda) running on
[AWS Lambda](https://aws.amazon.com/lambda/) to invoke the tool without loading
the web server.

### Features

- Connect to Strava, RideWithGPS, or Google Maps, or upload GPX file directly
- Several output options to trade-off processing speed and result quality
- Animated route during video playback (using [mapbox](https://www.mapbox.com/))

### Development

```
git submodule update --init --recursive
yarn
yarn build
node_modules/.bin/ts-node src/server.ts --streetwarp-bin= [--debug]
```

The following environment variables should be set:

```
AWS_ACCESS_KEY
AWS_LAMBDA_REGION
GOOGLE_API_KEY (used for metadata requests, which don't incur cost)
STRAVA_CLIENT_ID
STRAVA_REDIRECT_URI
STRAVA_CLIENT_SECRET
MAPBOX_API_KEY
```

### Deployment

```
git submodule update --init --recursive
docker run --init -it --rm -p 4041:4041 -v $(pwd)/video:/app/video [env vars] streetwarp-web
```

Use `-e env_var=value` for all the required variables listed above.

### Recent Changes

- Added option to make video public and list on home page
- Integration with [GPX Replay](https://gpx.pelmers.com) for more interactive map display
- Display elevation profile on results for supported routes
- Renamed "quality" button to "smooth"