Esc3300 created this task. Esc3300 added projects: Wikidata-Query-Service, Wikidata. Herald added subscribers: Zppix, Aklapper. Herald added a project: Discovery. |
Per https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#Search_within_box and https://phabricator.wikimedia.org/T139823
the following should be supported
wikibase:cornerSouthWest The south-west corner of the box.
wikibase:cornerNorthEast The north-east corner of the box.
wikibase:cornerSouthEast The south-east corner of the box.
wikibase:cornerNorthWest The north-west corner of the box.
This feature request suggests to add the following:
wikibase:cornerWest A west corner of the box.
wikibase:cornerEast An east corner of the box.
Depending on the https://en.wikipedia.org/wiki/Latitude value, the server would determine if it was S or N.
If latitude of W > latitude of E = W is NW, E is SE,
otherwise it's SW and NE.
Sample query, based on the current sample one, should give comparable results:
Schools between San Jose, CA and Sacramento, CA
#defaultView:Map
SELECT * WHERE {
wd:Q986857 wdt:P625 ?SJloc .
wd:Q2396418 wdt:P625 ?SCloc .
SERVICE wikibase:box {
?place wdt:P625 ?location . bd:serviceParam wikibase:cornerWest ?SJloc . bd:serviceParam wikibase:cornerEast ?SCloc . }
?place wdt:P31/wdt:P279* wd:Q3914 .
}
Cc: Aklapper, Esc3300, Zppix, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs