Page MenuHomePhabricator

Name is not always returned when coprop=name is set in coordinates api
Open, MediumPublic

Description

See for example https://pl.wikipedia.org/w/api.php?action=query&prop=coordinates&titles=Bamb%C3%BA_%28metro_w_Madrycie%29&coprop=type|name|dim|country|region|globe&format=json . The result is:

{

"query": {
    "normalized": [
        {
            "from": "Bambú_(metro_w_Madrycie)",
            "to": "Bambú (metro w Madrycie)"
        }
    ],
    "pages": {
        "2019164": {
            "pageid": 2019164,
            "ns": 0,
            "title": "Bambú (metro w Madrycie)",
            "coordinates": [
                {
                    "lat": 40.4768,
                    "lon": -3.67639,
                    "primary": "",
                    "type": "city",
                    "dim": "10000",
                    "globe": "earth"
                }
            ]
        }
    }
}

}

Name is missing. Should probably be returned as null.


Version: unspecified
Severity: normal

Details

Reference
bz62118

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:51 AM
bzimport added a project: GeoData.
bzimport set Reference to bz62118.
bzimport added a subscriber: Unknown Object (MLST).