-
Notifications
You must be signed in to change notification settings - Fork 64
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
Added /road endpoint for vegagerdin #483
base: master
Are you sure you want to change the base?
Added /road endpoint for vegagerdin #483
Conversation
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.
Thanks for the PR!
Do you know if we can get any info about the segments? Location or something? |
@MiniGod Added all the regions :) |
@MiniGod any update on when / if this will be merged? :D |
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.
Sorry for the late reply. Got some comments about coding style mostly to make this easier to maintain in the future
@@ -0,0 +1,123 @@ | |||
/* eslint-disable */ |
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.
Please remove this and follow the eslint rules
resolve(segments) | ||
}) | ||
}) | ||
const parseFeed = function (callback, data, regionUrl) { |
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.
This function is almost the same in the index.js
file. Please try to re-use functions between the files.
/* eslint-disable no-plusplus */ | ||
/* eslint-disable no-prototype-builtins */ | ||
/* eslint-disable prefer-destructuring */ | ||
/* eslint-disable no-unneeded-ternary */ |
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.
Please remove these and follow the eslint rules
Added a new endpoint for road conditions in Iceland.
Source: Vegagerdin
Vegagerdin xml
Also has endpoints separating each region in Iceland.
South, North, West, East and more.
Checklist