[gnome-maps/wip/routing: 3/3] WIP! MainWindow: test the routing
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/routing: 3/3] WIP! MainWindow: test the routing
- Date: Fri, 30 Aug 2013 01:22:33 +0000 (UTC)
commit e8b9a6ddb31df79452168cd97ef187142699cc6e
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Fri Aug 30 03:12:38 2013 +0200
WIP! MainWindow: test the routing
Will remove this later...
src/mainWindow.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index a205ee8..bf606b3 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -78,6 +78,15 @@ const MainWindow = new Lang.Class({
grid.add(this._mapOverlay);
grid.show_all();
+
+ //// TEST
+ let gh = new imports.routeService.GraphHopper();
+ gh.getRoute(
+ [ { latitude: 57.70, longitude: 11.96},
+ { latitude: 59.39, longitude: 18.04} ],
+ imports.routeService.Transportation.CAR,
+ this.mapView.showRoute.bind(this.mapView)
+ );
},
_initSearchWidgets: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]