summaryrefslogtreecommitdiff
path: root/src/route.js
Commit message (Collapse)AuthorAgeFilesLines
* route: Use icons for keep left/right instructionswip/mlundblad/keep-left-right-iconsMarcus Lundblad2022-06-211-0/+2
|
* Migrate to ES6 modulesMarcus Lundblad2022-06-081-56/+58
| | | | | | | | | | | | Switch to using ES6 modules for internal modules and GI modules instead of using the legacy imports object. The unit tests are still using imports.jsunit as this is not available as an ES6 module (the preferred solution now is to use jasmine-gjs). imports.bytearray, imports.format, and imports.mainloop are covered in follow-up commits.
* route: Fix u-turn displayMarina Billes2021-12-011-9/+9
| | | | | | | Fixed an issue where the function _isLefthandTraffic() wasn't called correctly, leading to all routes with a u-turn to fail Also removed duplicate entry 'GB' from LHT_COUNTRIES
* route, graphHopper: Use generic turn instruction codeswip/mlundblad/additional-turn-iconsMarcus Lundblad2021-10-161-17/+21
| | | | | | | | | Makes the generic query points use codes independent from the GraphHopper API codes. This avoids mixing GraphHopper-related codes with extra codes for instructions such as elevators used by OpenTripPlanner. Also properly handle U-turn instructions from GraphHopper so that they get appropriate icon.
* Stop using Champlain.BoundingBoxMarcus Lundblad2021-04-041-2/+2
| | | | | | | | Replace Champlain.BoundingBox in other parts. These have interdependencies, and have to been done together. Keep using Champlain in when rendering the print minimaps, as this will have to be rewritten for Shumate anyways.
* route: Use direction icons for additional typeswip/mlundblad/additional-routing-iconsMarcus Lundblad2020-08-161-0/+3
| | | | | Use the additional icons for instruction types found in OpenTripPlanner.
* route: Add types for elevators and u-turnsMarcus Lundblad2019-09-261-1/+4
| | | | | Add turn point types for taking elevators and making u-turns.
* route: Fix formattingMarcus Lundblad2019-06-151-8/+9
|
* route: Add UK Crown dependencies and Overseas Terretories as LHTMarcus Lundblad2019-06-141-8/+8
| | | | | Add UK Crown dependencies and Overseas Terroretories to list of left-hand traffic terretories.
* route: Use mirrored roundabout icons for LHTwip/mlundblad/lht-roundaboutsMarcus Lundblad2019-06-111-1/+24
| | | | | Use the mirrored roundabout icons for left-hand traffic countries/territories.
* route: Add error handlerMarcus Lundblad2018-06-181-1/+6
| | | | | | | Add an error signal and error function to trigger an error signal with a message. Closes #107
* Use ES6 classesMarcus Lundblad2018-02-051-22/+25
| | | | | | | | | | Replace the usage of legacy Lang.Class. Register classes that needs GObject functionallity using GObject.registerClass(), use straight ES6 classes when GObject is not nessesary. https://bugzilla.gnome.org/show_bug.cgi?id=722758
* Use var instead of const/let for exported symbolsMarcus Lundblad2017-09-201-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=785569
* Add Print Route FeatureAmisha Singla2016-02-161-2/+2
| | | | | | | | | | Print Operation class is added to draw the cairo surfaces given to it. Print Layout acts as a tool-box which sub-classes like short Route layout , long route layout use to layout the surfaces as per the respective requirements of rendering various surfaces. GUI is added to give users an ability to access print Route feature. https://bugzilla.gnome.org/show_bug.cgi?id=746790
* routes: Add roundabout supportPrashant Tyagi2016-01-111-3/+30
| | | | | | Add roundabout support to route service https://bugzilla.gnome.org/show_bug.cgi?id=745242
* Delete references to FSF postal addressTxus Ordorika2015-04-131-2/+1
| | | | | | Replace it with gnu.org licenses page https://bugzilla.gnome.org/show_bug.cgi?id=742316
* Sort all module importsMattias Bengtsson2014-10-161-1/+1
| | | | | | | Sort all module imports and divide them by local and external modules (like in gnome-shell). https://bugzilla.gnome.org/show_bug.cgi?id=738603
* Route: fix wrong icon nameMattias Bengtsson2014-10-131-1/+1
| | | | | | Accidentally slipped in a reference to a non existant icon in the patches pushed this morning. This made Maps crash when searching for a route with more than two destinations. Fixed.
* Routing: use symbolic direction iconsMattias Bengtsson2014-10-131-9/+12
| | | | | | | | | Symbolic icons is needed for: - correctly displaying icons on Hi-DPI screens - color inversion (ie. selection in a ListBox or when using the dark theme) https://bugzilla.gnome.org/show_bug.cgi?id=727688
* routing: New markers for turnpointDario Di Nucci2014-09-021-4/+6
| | | | | | | | These markers are shown if a turnpoint is a stop. The markers are draggable and after drag is finished a new route is calculated and shown. https://bugzilla.gnome.org/show_bug.cgi?id=731068
* Add a sidebar for route interactionMattias Bengtsson2014-06-201-0/+16
| | | | | | | This is a total re-implementation of the sidebar for searching and interacting with routes. https://bugzilla.gnome.org/show_bug.cgi?id=728695
* Add Route result modelMattias Bengtsson2014-06-201-0/+95
The Route result model encapsulates all data that makes a route in our application. https://bugzilla.gnome.org/show_bug.cgi?id=728695