Giter VIP home page Giter VIP logo

fluctuo / multicycles Goto Github PK

View Code? Open in Web Editor NEW
85.0 5.0 26.0 40.45 MB

Multicycles.org aggregates on one map, more than 300 share vehicles like bikes, scooters, mopeds and cars. Demo APP for the Data Flow API, see https://flow.fluctuo.com

Home Page: https://multicycles.org/

License: MIT License

JavaScript 18.21% HTML 0.51% Vue 78.08% Dockerfile 0.73% Shell 1.01% SCSS 1.46%
velib freefloating bike bikesharing bikeshare mobike bike-rental-services lime bird voi

multicycles's People

Contributors

cellendhyll86 avatar dependabot[bot] avatar haroenv avatar ohadcn avatar pierrickp avatar renovate[bot] avatar risseraka avatar tdelmas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

multicycles's Issues

Option : show only bikes with gear

Hello ! I wish there was an option on multicycles.org that shows only the bikes with gears (Mobike 3.0, ofo, Indigo wheels ; others ?)

GeoJSON rather than proprietary JSON layout

The returned JSON seems to be in a specific format rather than GeoJSON, which would enable easier use on Leaflet.js and other mapping providers, which provide native support.

Looking at the output for the live map view, I can't see anything which wouldn't be possible in GeoJSON.

Could GeoJSON be considered as well / instead?

Translation

Priority languages:

  • French 🇫🇷
  • Chinese 🇨🇳

Error: Attempted to load an infinite number of tiles

https://sentry.io/multicycles/multicyclesorg/issues/709197356/

Error: Attempted to load an infinite number of tiles
  at _update (./node_modules/leaflet/dist/leaflet-src.js:11068:38)
  at apply (./node_modules/leaflet/dist/leaflet-src.js:11034:1)
  at call (./node_modules/leaflet/dist/leaflet-src.js:103:1)
  at fire (./node_modules/leaflet/dist/leaflet-src.js:593:1)
  at call (./node_modules/leaflet/dist/leaflet-src.js:4485:1)
...
(15 additional frame(s) were not displayed)

(required) OpenStreetMap attribution missing on the map

Happy to see you're using OpenStreetMap basemap, but less happy to see you're doing so without crediting OSM as required (see http://osm.org/copyright).

Leaflet allows to add credits in the bottom-right corner of the map. As you're using vue.js, I don't know how to fix that and propose a PR.

At https://github.com/PierrickP/multicycles/blob/master/front/src/components/Home.vue#L7 you may have to add something like
:attribution="&copy; <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors"

Thanks in advance !

Country capacities

Add an endpoint with optionnal lat/lng and return client's capacities depending of the country:

  • Providers
  • Default languages

ReferenceError: regeneratorRuntime is not defined

So I tried installing multicycles on a linux VM since it didn't work on my Windows machine (#44) and I made a lot of progress with that. I still had to install some packages explicitly.

Anyway, now I'm running into an issue where I hope you can help me. When I try to start api (npm run dev:api), node complains about graphql accessing a not-defined reference:

osboxes@osboxes:~/Sources/nodejs/multicycles$ npm run dev:api

> [email protected] dev:api /home/osboxes/Sources/nodejs/multicycles
> cd api && npm start


> @multicycles/[email protected] prestart /home/osboxes/Sources/nodejs/multicycles/api
> knex migrate:latest

Already up to date

> @multicycles/[email protected] start /home/osboxes/Sources/nodejs/multicycles/api
> node -r esm -r dotenv/config index.js

/home/osboxes/Sources/nodejs/multicycles/api/node_modules/graphql/subscription/subscribe.js:1
ReferenceError: regeneratorRuntime is not defined
    at /home/osboxes/Sources/nodejs/multicycles/api/node_modules/graphql/subscription/subscribe.js:27:32
    at Object.<anonymous> (/home/osboxes/Sources/nodejs/multicycles/api/node_modules/graphql/subscription/subscribe.js:95:2)
    at Object.Module._extensions..js (module.js:663:10)

npm ERR! Linux 4.15.0-29-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! @multicycles/[email protected] start: `node -r esm -r dotenv/config index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @multicycles/[email protected] start script 'node -r esm -r dotenv/config index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @multicycles/api package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node -r esm -r dotenv/config index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs @multicycles/api
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls @multicycles/api
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/osboxes/Sources/nodejs/multicycles/api/npm-debug.log

npm ERR! Linux 4.15.0-29-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev:api"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev:api: `cd api && npm start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] dev:api script 'cd api && npm start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the multicycles package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cd api && npm start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs multicycles
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls multicycles
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/osboxes/Sources/nodejs/multicycles/npm-debug.log

Direction query

New query direction.

2 mandatory arguments:

  • from
  • to

1 optionnal:

  • preferedType

Return the direction to the first vehicle, length traject and price

Ofo bikes are "sparkling"

Hello !

Ofo bike are "parking" on the map, i.e. there are not always displayed. Sometimes they are, sometimes there aren't.

Error: Attempted to load an infinite number of tiles

https://sentry.io/multicycles/multicyclesorg/issues/592686009/

Error: Attempted to load an infinite number of tiles
  at this (./node_modules/leaflet/dist/leaflet-src.js:11068:38)
  at fn (./node_modules/leaflet/dist/leaflet-src.js:11034:1)
  at l (./node_modules/leaflet/dist/leaflet-src.js:103:1)
  at this (./node_modules/leaflet/dist/leaflet-src.js:593:1)
  at l (./node_modules/leaflet/dist/leaflet-src.js:4485:1)
...
(16 additional frame(s) were not displayed)

Issue when running "npm i"

When I clone this repo and run npm i I get the following output:

D:\Sources\Node.js\multicycles>npm i

> [email protected] prepare D:\Sources\Node.js\multicycles
> npm run clean && npm run transpile


> [email protected] clean D:\Sources\Node.js\multicycles
> rm -rf providers/*/lib


> [email protected] transpile D:\Sources\Node.js\multicycles
> lerna exec --ignore '@multicycles/{api,front,developer}' -- babel src --optional runtime --out-dir lib --ignore "__tests__"

lerna info version 2.5.1
lerna info versioning independent
lerna info ignore '@multicycles/{api,front,developer}'
src doesn't exist
lerna ERR! exec Errored while executing 'babel src --optional runtime --out-dir lib --ignore __tests__' in '@multicycles/developer'
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: babel src --optional runtime --out-dir lib --ignore __tests__
lerna ERR!     at Promise.all.then.arr (D:\Sources\Node.js\multicycles\node_modules\execa\index.js:236:11)
lerna ERR!     at <anonymous>
ReferenceError: Unknown plugin "transform-runtime" specified in "D:\\Sources\\Node.js\\multicycles\\front\\.babelrc" at 1, attempted to resolve relative to "D:\\Sources\\Node.js\\multicycles\\front"
    at D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:180:17
    at Array.map (<anonymous>)
    at Function.normalisePlugins (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20)
    at OptionManager.mergeOptions (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36)
    at OptionManager.init (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transform (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\util.js:50:22)
    at Object.compile (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\util.js:59:12)
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
lerna ERR! exec Errored while executing 'babel src --optional runtime --out-dir lib --ignore __tests__' in '@multicycles/front'
Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
    at throwVersionError (D:\Sources\Node.js\multicycles\node_modules\@babel\helper-plugin-utils\lib\index.js:62:11)
    at Object.assertVersion (D:\Sources\Node.js\multicycles\node_modules\@babel\helper-plugin-utils\lib\index.js:11:11)
    at D:\Sources\Node.js\multicycles\node_modules\@babel\plugin-proposal-object-rest-spread\lib\index.js:15:7
    at D:\Sources\Node.js\multicycles\node_modules\@babel\helper-plugin-utils\lib\index.js:16:12
    at Function.memoisePluginContainer (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:113:13)
    at Function.normalisePlugin (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:146:32)
    at D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:184:30
    at Array.map (<anonymous>)
    at Function.normalisePlugins (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20)
    at OptionManager.mergeOptions (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36)
    at OptionManager.init (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transform (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\util.js:50:22)
    at Object.compile (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\util.js:59:12)
    at write (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:21:21)
    at handleFile (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:43:7)
    at D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:61:9
    at Array.forEach (<anonymous>)
    at handle (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:59:29)
    at Array.forEach (<anonymous>)
    at module.exports (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:69:15)
    at Object.<anonymous> (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\index.js:129:1)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
lerna ERR! exec Errored while executing 'babel src --optional runtime --out-dir lib --ignore __tests__' in '@multicycles/bird'
Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
    at throwVersionError (D:\Sources\Node.js\multicycles\node_modules\@babel\helper-plugin-utils\lib\index.js:62:11)
    at Object.assertVersion (D:\Sources\Node.js\multicycles\node_modules\@babel\helper-plugin-utils\lib\index.js:11:11)
    at D:\Sources\Node.js\multicycles\node_modules\@babel\plugin-proposal-object-rest-spread\lib\index.js:15:7
    at D:\Sources\Node.js\multicycles\node_modules\@babel\helper-plugin-utils\lib\index.js:16:12
    at Function.memoisePluginContainer (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:113:13)
    at Function.normalisePlugin (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:146:32)
    at D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:184:30
    at Array.map (<anonymous>)
    at Function.normalisePlugins (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20)
    at OptionManager.mergeOptions (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36)
    at OptionManager.init (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (D:\Sources\Node.js\multicycles\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transform (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\util.js:50:22)
    at Object.compile (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\util.js:59:12)
    at write (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:21:21)
    at handleFile (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:43:7)
    at D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:61:9
    at Array.forEach (<anonymous>)
    at handle (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:59:29)
    at Array.forEach (<anonymous>)
    at module.exports (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\dir.js:69:15)
    at Object.<anonymous> (D:\Sources\Node.js\multicycles\node_modules\babel-cli\lib\babel\index.js:129:1)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
lerna ERR! exec Errored while executing 'babel src --optional runtime --out-dir lib --ignore __tests__' in '@multicycles/byke'
(node:568) UnhandledPromiseRejectionWarning: Error: Command failed: babel src --optional runtime --out-dir lib --ignore __tests__
    at Promise.all.then.arr (D:\Sources\Node.js\multicycles\node_modules\execa\index.js:236:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
(node:568) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 12)
(node:568) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] transpile: `lerna exec --ignore '@multicycles/{api,front,developer}' -- babel src --optional runtime --out-dir lib --ignore "__tests__"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] transpile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     ...\npm-cache\_logs\2018-09-05T20_44_34_287Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepare: `npm run clean && npm run transpile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     ...\npm-cache\_logs\2018-09-05T20_44_34_329Z-debug.log`

No nextbikes in Augsburg, Bayern, Germany

Hi Pierrick,

when I jump to Augsburg on your Website (multicycles.org) I don't see any Nextbikes around (they are called SWA Rad there but Nextbike's app shows them).

Yours
Raul

It doesn't work on iOS 9.3.3

I'm using an old version of iOS (because of the jailbreak) and the app doesn't load on Safari.
When I check the debug console using my Mac, I got that error:

Error: fetch is not found globally and no fetcher passed, to fix pass a fetch for
      your environment like https://www.npmjs.com/package/unfetch.

      For example:
        import fetch from 'unfetch';
        import { createHttpLink } from 'apollo-link-http';

        const link = createHttpLink({ uri: '/graphql', fetch: fetch });

It comes from apollographql/apollo-linkin httpLink.js
The User-Agent from my device is:

User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G34 Safari/601.1

TypeError: Cannot read property 'bike_type' of undefined

https://sentry.io/multicycles/multicycles-api/issues/605040083/

TypeError: Cannot read property 'bike_type' of undefined
  File "/app/schema/nextbike.js", line 58, in city.places.map.o
    const bikeType = o.bike_list[0].bike_type
  File "/app/schema/nextbike.js", line 27, in mapVehicles
    return city.places.map(o => {
  File "/app/providersResolve.js", line 18, in resolve
    const formatedResult = mapVehicles(result)
...
(1 additional frame(s) were not displayed)

TypeError: Cannot read property 'bike_type' of undefined

Suggestion : le temps d'inactivité d'un vélo

Salut, je découvre ton super projet via le twitter de EmmanuelSPV ! 👍
Une suggestion : montrer les vélos qui sont restés inactifs pendant longtemps par rapport à la moyenne constatée dans le secteur, car ce sont ceux qui sont vandalisés ou privatisés !

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.