Skip to content

feat(geo): implement OGC API Routes support - #1909

Draft
pelord wants to merge 2 commits into
nextfrom
ogc-api/route
Draft

feat(geo): implement OGC API Routes support#1909
pelord wants to merge 2 commits into
nextfrom
ogc-api/route

Conversation

@pelord

@pelord pelord commented Jun 9, 2026

Copy link
Copy Markdown
Member

Voir l'enjeu #1908

Ici, on ajoute une intégration standard basé sur le draft OGC-API routes.

Notre service privé sera arrimé a cette méthode d'appel afin de fournir des itinéraire.

@pelord
pelord requested a review from LAMM26 June 9, 2026 18:31
@alecarn
alecarn self-requested a review June 9, 2026 19:15
@alecarn
alecarn requested a review from a team June 11, 2026 11:59
],
providers: [
provideDirection(withOsrmSource()),
provideDirection(withOsrmSource(), withOgcApiRoutesSource()),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Je ne suis pas certain de comprendre comment ça fonctionne. On ajoute ici un deuxième provider OGC API et on a une source définie dans les environment.ts. Cela fait en sorte que dans la démo on a le mat-select qui apparait avec la source OGC API et la 2e source, mais les deux font les mêmes appels quand on switch d'un à l'autre?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

L'idée ici se présente en 3 temps:

1- modifier la facon de fournir un provider d'itinéraire
2- ajouter le multi provider dans l'interface.
3- accessoirement, ajouter le standard (draft) ogc-api-routes

return this.activeSourceName;
}

setSelectedSource(id?: string): void {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Le param peut être l'id ou le nom?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Est-ce qu'il y a une doc quelconque pour comprendre la structure de comment ça fonctionne. Je suis tombé là-dessus https://ogcapi.ogc.org/routes/overview.html et là-dessus https://docs.ogc.org/DRAFTS/21-001.html, mais c'est assez sommaire et pas très friendly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Cest pas mal ca!

Comment on lines +113 to +116
getSourceId(): string {
return this.sourceId;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pas besoin de ce getter, on l'a déjà plus haut directement de la valeur private.

@pelord
pelord changed the base branch from next to feat/directions_enhance June 30, 2026 16:23
…urce options

chore(env): add OSRM Québec source ID to production environment configuration
@pelord
pelord marked this pull request as draft June 30, 2026 16:38
@pelord pelord changed the title feat(geo): implement OGC API Routes support and enhance directions source options feat(geo): implement OGC API Routes support Jun 30, 2026
@pelord
pelord force-pushed the feat/directions_enhance branch from 14d8aad to 89c7bf9 Compare July 3, 2026 14:03
Base automatically changed from feat/directions_enhance to next July 3, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants