After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750588 - geocode_forward_search returns list entries with coordinates 0.0, 0.0
geocode_forward_search returns list entries with coordinates 0.0, 0.0
Status: RESOLVED DUPLICATE of bug 749963
Product: geocode-glib
Classification: Other
Component: general
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: geocode-glib maintainer(s)
geocode-glib maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-06-08 18:31 UTC by Chris Mayo
Modified: 2015-06-09 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Mayo 2015-06-08 18:31:38 UTC
Using Python with GObject Introspection, example forward_search:
from gi.repository import GeocodeGlib

forward = GeocodeGlib.Forward.new_for_string("Newcastle. UK")
for place in forward.search():
	location = place.get_location()
	print(location.get_description(), location.get_latitude(), location.get_longitude())


outputs:

./forward_search:6: Warning: g_ascii_strtod: assertion 'nptr != NULL' failed
  for place in forward.search():
Newcastle upon Tyne 54.9770924 -1.6142059
 0.0 0.0
 0.0 0.0
 0.0 0.0
 0.0 0.0
 0.0 0.0
 0.0 0.0
 0.0 0.0
 0.0 0.0
 0.0 0.0

geocode-glib-3.16.2
python-3.4.3
gobject-introspection-1.42.0
pygobject-3.14.0

Same with geocode-glib-3.14.0 but only after stopping segfault by applying patch from bug 747397
https://git.gnome.org/browse/geocode-glib/commit/?h=gnome-3-16&id=8877b11ad4cdb172323ca5c229a74d4284c1b7e7
Comment 1 Bastien Nocera 2015-06-09 12:22:20 UTC
Duplicate of bug 749963 ? Please test the patch there.
Comment 2 Chris Mayo 2015-06-09 18:21:47 UTC
Fixed by e11087f from bug 749963 on both geocode-glib-3.16.2 and geocode-glib-3.14.0. Many thanks.

*** This bug has been marked as a duplicate of bug 749963 ***