[gnome-maps/wip/mlundblad/photon-geocode: 4/4] contextMenu: Use Photon geocoder for "What's here"



commit 01ca38bdaeef5e522ca82f9edbfd2333b87e1212
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]