[gnome-maps/wip/routing2: 11/11] TEMP: Test the routing



commit b74521931c9a65ab9766b851604b43fb79a13e32
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Tue Apr 22 04:58:18 2014 +0200

    TEMP: Test the routing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728695

 src/mainWindow.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 2847d73..e3aad5d 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -102,6 +102,19 @@ const MainWindow = new Lang.Class({
 
         this._overlay.add_overlay(new ZoomControl.ZoomControl(this.mapView));
         this._overlay.show_all();
+
+        const Geocode = imports.gi.GeocodeGlib;
+        let berlin = new Geocode.Location({ latitude: 52.536273, longitude: 13.007813 });
+        let kiev = new Geocode.Location({ latitude:50.289339, longitude: 30.761719 });
+        let other = new Geocode.Location({ latitude:51.289339, longitude: 31.761719 });
+
+        routeQuery.setMany({ from: berlin, to: kiev });
+        Mainloop.timeout_add(5000, (function() {
+            routeQuery.setMany({ from: kiev, to: other });
+            Mainloop.timeout_add(5000, (function() {
+                routeQuery.reset();
+            }));
+        }));
     },
 
     _initSearchWidgets: function() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]