Skip to content
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

Reseau transport quebec #176

Merged
merged 12 commits into from
Sep 19, 2018
Merged

Reseau transport quebec #176

merged 12 commits into from
Sep 19, 2018

Conversation

pelord
Copy link
Member

@pelord pelord commented Aug 23, 2018

Please check if the PR fulfills these requirements

What is the current behavior? (You can also link to an open issue here)

What is the new behavior?
Adding new search sources for the Quebec Provincial road network (municipal network excluded).

  • a-5 will return the complete linestring for highway # 5
  • 20 will return the complete linestring for highway # 20
  • 138+700 will return a point on road 138, a the specific KM (km 700) This is note interpolation, the position represent physical signs on the road.
  • -71.292469,46.748107 will propose you some roads around this coordinate.

For expert user:

  • 2006 or 0002006 will return the complete linestring for highway # 20, segment 06
  • 2006051 or 0002006051 will return the complete linestring for highway # 20, segment 06, section # 051
  • 20060513BA0 or 00020060513BA0 will return the complete linestring for highway # 20, segment 06, section # 051, sub-route 3BA0
  • 20060513BA0+500 or 00020060513BA0+500 will return a point on highway # 20, segment 06, section # 051, sub-route 3BA0 at the 500th meter of this linear referencing system.

Every of these words/characters will not be used into the query & case insensitive. Based on this regex
(/auto|routes|route|km| |high|ways|way|roads|road|#|a-|-/gi, '')

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[X] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:

Other information:

@pelord pelord changed the title WIP: Reseau transport quebec Reseau transport quebec Aug 23, 2018
@@ -33,7 +33,7 @@ export class LoggingInterceptor implements HttpInterceptor {
const msg = `${req.method} "${req.urlWithParams}"
${ok} in ${elapsed} ms.`;

console.log(msg);
// console.log(msg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "console.log" should not be commented. If you do not want the http call logs, you must remove the module import here: https://github.com/infra-geo-ouverte/igo2-lib/blob/master/demo/src/app/core/request/request.module.ts

providers: [
provideIChercheSearchSource(),
provideDataSourceSearchSource(),
provideReseauTransportsQuebecSearchSource()]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that "ReseauTransportQuebec" should not be provide by default.

@mbarbeau
Copy link
Member

mbarbeau commented Sep 6, 2018

ReseauTransportQuebec is a specific need. Does it have a place in this depot? Should we separate him ? Put it in the assembly of the lib ? In @igo2/qc ? In another completely independent depot ?

@gignacnic
Copy link
Contributor

gignacnic commented Sep 6, 2018

Yes, I have discussed it with @pelord couple of days ago. What do you suggest? Does igo2-lib and its customized Quebec modules (such as ) can be integrated easily? If so, how?

@mbarbeau
Copy link
Member

mbarbeau commented Sep 7, 2018

There will be no difficulty to integrate a Quebec module, just one more import.

@mbarbeau mbarbeau merged commit 21086e1 into master Sep 19, 2018
@mbarbeau mbarbeau deleted the reseauTransportQuebec branch September 19, 2018 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants