diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index c94c612f9..0c7a5e171 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-12-07 Zsolt Foldvari + * src/DataViews/_PlaceView.py (google): Use city, country of main + location in google query. + 2006-12-06 Alex Roitman * src/Makefile.am (gdir_PYTHON): Ship new file. diff --git a/gramps2/src/DataViews/_PlaceView.py b/gramps2/src/DataViews/_PlaceView.py index 76b07fa80..1f54d6215 100644 --- a/gramps2/src/DataViews/_PlaceView.py +++ b/gramps2/src/DataViews/_PlaceView.py @@ -147,9 +147,13 @@ class PlaceView(PageView.ListView): longitude = place.get_longitude() latitude = place.get_latitude() latitude,longitude = conv_lat_lon(latitude,longitude,"D.D8") + city = place.get_main_location().get_city() + country = place.get_main_location().get_country() if longitude and latitude: path = "http://maps.google.com/?sll=%s,%s&z=15" % (latitude,longitude) + elif city and country: + path = "http://maps.google.com/maps?q=%s,%s" % (city,country) else: path = "http://maps.google.com/maps?q=%s" % '+'.join(descr.split()) GrampsDisplay.url(path)