[Wikidata-bugs] [Maniphest] [Commented On] T175578: Wikidata Query Service function geof:distance is not working outside Earth

2017-09-18 Thread Smalyshev
Smalyshev added a comment.
the actual calculation is just “Earth distance × (globe radius / Earth radius)”, right?

Yes, that appears to be the case, but we'd have to store the radius data for all globes. OTOH, we already have them in the database, so we could probably just look them up via properties... With some caching it might work.TASK DETAILhttps://phabricator.wikimedia.org/T175578EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: SmalyshevCc: Smalyshev, thiemowmde, Lucas_Werkmeister_WMDE, Jonas, VIGNERON, Aklapper, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T175578: Wikidata Query Service function geof:distance is not working outside Earth

2017-09-18 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.
If we assume spherical globes (which is already slightly inaccurate for Earth, but probably okay), the actual calculation is just “Earth distance × (globe radius / Earth radius)”, right? And I think a predefined set of globes is acceptable.TASK DETAILhttps://phabricator.wikimedia.org/T175578EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: Smalyshev, thiemowmde, Lucas_Werkmeister_WMDE, Jonas, VIGNERON, Aklapper, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T175578: Wikidata Query Service function geof:distance is not working outside Earth

2017-09-17 Thread VIGNERON
VIGNERON added a comment.
So... The other way round now:


if it's only for Earth, should it *not* give results on other places ?


Meanwhile, I've updated the User Manuel : https://www.mediawiki.org/w/index.php?diff=2566505TASK DETAILhttps://phabricator.wikimedia.org/T175578EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: VIGNERONCc: Smalyshev, thiemowmde, Lucas_Werkmeister_WMDE, Jonas, VIGNERON, Aklapper, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs