-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add visualization #83
Conversation
✅ Deploy Preview for gbfs-validator ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
…ad1e 2b6ad1e FIX: replaces name field with localized string (MobilityData#82) abe71f2 Fix invalid json, no trailing commas (MobilityData#83) git-subtree-dir: gbfs-validator/versions/schemas git-subtree-split: 2b6ad1ec46824413bbf477c556744e99991f814c
5455c08
to
77963cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @davidgamez, on my last commit I added a new function that exposes the openapi schema of the api. |
Thanks! |
website/src/pages/Visualization.vue
Outdated
const MAPBOX_KEY = | ||
'pk.eyJ1IjoicGllcnJpY2twIiwiYSI6ImNsaWluZjl6bDF3emQzZW9iZHZ2NDd5MDMifQ.FCTTnlXknFjxmw9NLemYsQ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @PierrickP for this amazing contribution!
We set up an environment variable in Netlify to avoid exposing the Mapbox key in the code.
We created three tokens under MobilityData Mapbox account and added to Netlify VITE_MAPBOX_API_KEY
per context:
- PROD
- STAGING - branch the preview deployment
- LOCAL - local netlify cli
Please let us know if you agree with this approach. Thank you!
const MAPBOX_KEY = | |
'pk.eyJ1IjoicGllcnJpY2twIiwiYSI6ImNsaWluZjl6bDF3emQzZW9iZHZ2NDd5MDMifQ.FCTTnlXknFjxmw9NLemYsQ' | |
const MAPBOX_KEY = import.meta.env.VITE_MAPBOX_API_KEY |
cc @davidgamez
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an excellent improvement. Thanks for that. I've stored the Tokens in 1Password, in the Public transit vault.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 i made the changes
@@ -0,0 +1 @@ | |||
{"imports":{"netlify:edge":"https://edge.netlify.com/v1/index.ts"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it any reason why we need this file? I think we can delete the file and potentially add .netlify
folder to .gitignore
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Signed-off-by: Pierrick <mulotmail@gmail.com>
Signed-off-by: Pierrick <mulotmail@gmail.com>
Signed-off-by: Pierrick <mulotmail@gmail.com>
Signed-off-by: Pierrick <mulotmail@gmail.com>
Signed-off-by: Pierrick <mulotmail@gmail.com>
82a9aa2
to
632f22f
Compare
I rebased, if everybody is ok, can we merge ? |
Merging now! |
…058d 22b058d fix: incorrect spec for "languages" property in system_information.json (MobilityData#90) e9d891b Refer to later versions in gbfs_versions.json (MobilityData#87) fbd3ced Add v3.0 to v3.0-RC schemas (MobilityData#88) ef0d9a6 Fix schemas for v3.0-RC (MobilityData#85) 2b6ad1e FIX: replaces name field with localized string (MobilityData#82) abe71f2 Fix invalid json, no trailing commas (MobilityData#83) f43170e V3.0-RC Schemas (MobilityData#79) 680df70 Update pr-to-project.yml c2c30a2 Typo fix in geofencing_zones.json (MobilityData#78) c9be765 Create pr-to-project.yml 0a17875 Create issues-to-project.yml 30e5a3a Update README.md git-subtree-dir: gbfs-validator/versions/schemas git-subtree-split: 22b058dc4a358baf451e006cde74775075929b3d
* Git ignore for schemas subtree Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * Squashed 'gbfs-validator/versions/schemas/' changes from 5273f96..22b058d 22b058d fix: incorrect spec for "languages" property in system_information.json (#90) e9d891b Refer to later versions in gbfs_versions.json (#87) fbd3ced Add v3.0 to v3.0-RC schemas (#88) ef0d9a6 Fix schemas for v3.0-RC (#85) 2b6ad1e FIX: replaces name field with localized string (#82) abe71f2 Fix invalid json, no trailing commas (#83) f43170e V3.0-RC Schemas (#79) 680df70 Update pr-to-project.yml c2c30a2 Typo fix in geofencing_zones.json (#78) c9be765 Create pr-to-project.yml 0a17875 Create issues-to-project.yml 30e5a3a Update README.md git-subtree-dir: gbfs-validator/versions/schemas git-subtree-split: 22b058dc4a358baf451e006cde74775075929b3d * remove dot files in schemas Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * v3-RC validation Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * Remove unused file Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * Add `serverOpts` required in Windows Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * Fix typo `recommended` Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * update test for 3.0-RC , 3.0 and upcoming minor versions Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * fix after rebase Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * Recommended. Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com> * Squashed 'gbfs-validator/versions/schemas/' changes from 22b058d..5f12243 5f12243 Patch manifest.json (#91) git-subtree-dir: gbfs-validator/versions/schemas git-subtree-split: 5f12243d5735a608eef697212a627b9090eea31a --------- Signed-off-by: Tom <1955774+tdelmas@users.noreply.github.com>
Add a visualization tool to get an overview of the GBFS feed
I changed the homepage to have 2 different pages, validation
/validator
and visualization/visualization
.Features
vehicule_type_id
/plan_id
are expended)station_informations
andstation_logs
)Missing
I created a new function to only return content's feed (faster than also validate).
I tested with multiple feeds / versions (not 3.0) but some issues can be still there.
Invalid feed can show nothing or break the page.
MobilityData can create an account a use their own key (Should be totally free for the number of visitors, but a credit card may be required).
We can switch to another tiles' server.