Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

In demo app, route tab, add a way to grab and drag any turning point along a displayed route

Aperta
#196 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@mraross ci sta già lavorando.

Dal 12/5/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement location services demo app rpng

Map apps such as google maps let you dynamically reroute a route at any turn. Such an app makes a temporary waypoint out of every intersection on the route where a turn is made. You can grab one of these waypoints and move it where you want it, then the app reroutes accordingly. Except for making and displaying temporary waypoints at every turn, our demo app works the same way, allowing you to drag any waypoints you have defined.

The directions resource of the router actually returns a starting point for every leg of directions. You just have to filter out any points associated with a leg that continues instead of turns then make and display the needed temporary waypoints for your users to drag. When a user grabs a turning point that isn't a user-defined waypoint, you add that point to the list of waypoints in the correct position in the sequence (e.g., after the appropriate user-defined waypoint), submit a route request, and display the resulting route. This may seem hard to do in real-time but keep in mind the user can only select and drag one turning point at time.

Here is an example directions request so you can see where to find the leg points:

https://router.api.gov.bc.ca/directions.json?apikey=11dd756f680c47b5aef5093d95543738&points=-123.4192894%2C48.4577939%2C-123.4171234%2C48.4257821%2C-123.3666577%2C48.4605116&criteria=fastest

This feature was requested by the Height Clearance Tool team at Ministry of Transportation and Infrastructure (Jean Bishop).

Lingua principale
Nessun dato sulla lingua
Stelle
7
Fork
6
Merge medio
12g 20h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bcgov/ols-devkit

Tutte le issue di bcgov/ols-devkit

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.