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 749961 - reverse: Fix nominatim attrs parsing for broken boundingbox
reverse: Fix nominatim attrs parsing for broken boundingbox
Status: RESOLVED DUPLICATE of bug 749963
Product: geocode-glib
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: geocode-glib maintainer(s)
geocode-glib maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-05-27 13:07 UTC by Bastien Nocera
Modified: 2015-05-27 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2015-05-27 13:07:14 UTC
This OpenStreeMap result has a bounding box that uses doubles to store
its borders, instead of strings, like all the others:

    {
        "place_id": "353472",
        "licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
        "osm_type": "node",
        "osm_id": "151337566",
        "boundingbox": [
            38.4917175,
            38.5317175,
            -91.1940394,
            -91.1540394
        ],
        "lat": "38.5117175",
        "lon": "-91.1740394",
        "display_name": "Lyon, Franklin County, Missouri, United States of America",
        "place_rank": "19",
        "category": "place",
        "type": "hamlet",

We fix this by checking the type of the node, and turning it into a
string, as all the other items in the hash table.
Comment 1 Bastien Nocera 2015-05-27 13:09:04 UTC

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