[gnome-maps/wip/mlundblad/photon-geocode: 7/11] contextMenu: Use	Photon geocoder for "What's here"
- From: Marcus Lundblad <mlundblad src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-maps/wip/mlundblad/photon-geocode: 7/11] contextMenu: Use	Photon geocoder for "What's here"
 
- Date: Tue, 21 May 2019 21:21:50 +0000 (UTC)
 
commit 361d34fb606138c691fd135465f9dfc6fe9315d8
Author: Marcus Lundblad <ml update uu se>
Date:   Wed May 1 23:21:01 2019 +0200
    contextMenu: Use Photon geocoder for "What's here"
    
    Use the Photon geocoder for performing reverse geocoding.
 src/contextMenu.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/contextMenu.js b/src/contextMenu.js
index 4e802a7..7df2e88 100644
--- a/src/contextMenu.js
+++ b/src/contextMenu.js
@@ -120,11 +120,8 @@ var ContextMenu = GObject.registerClass({
     }
 
     _onWhatsHereActivated() {
-        let location = new Location.Location({ latitude: this._latitude,
-                                               longitude: this._longitude,
-                                               accuracy: 0 });
-
-        Application.geocodeService.reverse(location, null, (place) => {
+        Application.photonGeocode.reverse(this._latitude, this._longitude,
+                                          (place) => {
             if (place) {
                 this._mapView.showPlace(place, false);
             } else {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]