Page MenuHomePhabricator

Geodata shouldn't fail if I request codistancefrompage
Closed, ResolvedPublic


The following query asks for distance from the page Huay Xai

... but since Huay Xai has no coordinates
I get the following response:

{"servedby":"mw1099","error":{"code":"co_no-coordinates","info":"Page ``Huay Xai'' has no primary coordinates","docref":"See for API usage"}}

(e.g. no page images and no coordinates... nothing)

Expected: This should throw a warning and simply omit the field coordinates.dist. Otherwise I have to query Huay Xai beforehand to see if it has coordinates.

Event Timeline

Change 743039 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/GeoData@master] Follow redirects for codistancefrompage

@ssastry, flagging you on this, as I remember your team owning geo now (instead of search)

Change 743039 merged by jenkins-bot:

[mediawiki/extensions/GeoData@master] Follow redirects for codistancefrompage