Giter Site home page Giter Site logo

osoc17 / rideaway-frontend Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 1.0 3.26 MB

Routeplanner designed to use the Brussels cycling network πŸ™ 🚴

Home Page: https://rideaway.netlify.com

License: MIT License

HTML 7.34% JavaScript 72.91% CSS 16.59% Shell 1.90% FreeMarker 1.26%
brussels-cycle-network navigation route-planning biking mapbox-gl-js brussels

rideaway-frontend's Introduction

Build Status Dependencies License: MIT

Rideaway Frontend

Installation

Prerequisites

Create a .env file in the root directory, you can use the .env.default to help you create it.

Edit the webpack config and fill in the domain name.

new OfflinePlugin({
    publicPath: 'https://DOMAIN_NAME_HERE',

Install dependencies

$ npm install

Install and run the dev version, server available at localhost:3000:

$ npm run dev

Compile a production version in the ./build folder:

$ npm run prod

Extra information

The deploy.sh script is used by travisci (see .travis.yml) to automatically push changes to the gh-pages branch of the repository. What it does is detect changes to master and push a production version of the webapp to the gh-pages branch and add a CNAME record. Check out the script for more documentation.

Project information

This project is an excellent demonstration of the power of OSM to support an advanced mobile app that assists in the navigation of cyclists through the Brussel’s regional cycling network.

  • Give the cycle network more visibility
  • Get the cycle routes more incorporated in the daily life

Why

Why are people not using the Brussels Cycle Network? Because they don’t know it exists.

We want to make the Brussels Cycling Network more practical and accessible.

What

We are creating a tool to explore, plan and navigate the Brussels Cycling Network.

rideaway-frontend's People

Contributors

arnaudweyts avatar jbelien avatar renovate[bot] avatar thduvivier avatar theodedeken avatar xivk avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

thduvivier

rideaway-frontend's Issues

Dependency deprecation warning: babel-preset-es2015 (npm)

On registry https://registry.npmjs.org/, the "latest" version (v6.24.1) of dependency babel-preset-es2015 has the following deprecation notice:

πŸ™Œ Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about babel-preset-es2015's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

Lock top controls when calculating a route

Because the loading screen is on the map (feels more intuitive), we should lock the geocoder inputs because else we get weird behaviour, aka 2 routes being calculated at the same time.

Map is partially hidden under geocoders (and navigation box)

Because we're setting a max bounds on the map, the map is hidden behind other components partially. This is a problem because our max bounds are shared with the geocoder's bounding box.

So a user can actually choose an origin or destination with the geocoder that will not be seen on the map.

Better mobile menu

The menu on mobile sometimes hides routes A-B-C because of the max height, people will not scroll down to get to the routes. (I added a crappy arrow now but it's not good).

Dependency deprecation warning: turf (npm)

On registry https://registry.npmjs.org/, the "latest" version (v3.0.14) of dependency turf has the following deprecation notice:

This package has moved: use @turf/turf instead

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about turf's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

Limit geocoding to Brussels

If possible, could be nice to limit the geocoding result to Brussels.
It doesn't make any sense to go from Antwerpen to Arlon using this app.

Overlapping routes not showing any color

When routes overlap, the color property returned in the GeoJSON is apparently a string with comma's. (etc colour: 'red, green, blue', instead of colour: 'red')

Mapbox can't interpret this.

I use this to color the lines:

paint: { 'line-color': type: 'identity', property: 'colour' } }

One solution would be to manually go through the GeoJSON and change the color but that would be really bad for performance.

For example green and orange overlap here, sometimes the routes overlap for a longer distance and then the color is just black 😭

example

Display length/duration

Display duration and length for the 2 routes calculated (following the network and shortest).

Improve styling

  • Add hamburger menu on mobile
  • Fix route sorting
  • Style the geocoder controls

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.