[gnome-maps/wip/routing2: 13/18] fixup routeService
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/routing2: 13/18] fixup routeService
- Date: Fri, 2 May 2014 22:50:32 +0000 (UTC)
commit 7e93cef3b707527597afbaa4ab7cecd1e3214bb4
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Sat May 3 00:41:40 2014 +0200
fixup routeService
src/routeService.js | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/routeService.js b/src/routeService.js
index 4f1596d..089f1fa 100644
--- a/src/routeService.js
+++ b/src/routeService.js
@@ -28,6 +28,7 @@ const Utils = imports.utils;
const _ = imports.gettext.gettext;
const Route = imports.route;
+const RouteQuery = imports.routeQuery;
const EPAF = imports.epaf;
const HTTP = imports.http;
@@ -49,7 +50,7 @@ const GraphHopper = new Lang.Class({
this._locale = 'en_US'; // TODO: get this from env
this._route = new Route.Route();
- this._query = new Route.Query();
+ this._query = new RouteQuery.RouteQuery();
this._query.connect('change', (function() {
if(this._query.from && this._query.to)
@@ -77,9 +78,9 @@ const GraphHopper = new Lang.Class({
_vehicle: function(transportationType) {
switch(transportationType) {
- case Route.Transportation.CAR: return 'car';
- case Route.Transportation.BIKE: return 'bike';
- case Route.Transportation.PEDESTRIAN: return 'foot';
+ case RouteQuery.Transportation.CAR: return 'car';
+ case RouteQuery.Transportation.BIKE: return 'bike';
+ case RouteQuery.Transportation.PEDESTRIAN: return 'foot';
default: return null;
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]