Page MenuHomePhabricator

"Nearby" feature does not work when language is Georgian and some other languages
Open, NormalPublic

Description

Tested on the following platforms:

  • Android "Wikipedia Beta" App version 2.0.109-beta-2015-08-21
  • IPhone "Wikipedia" App version 4.1.3

Problem: When switching the Wiki language to Armenian or Georgian (or probably some others) i do not get any nearby results although geo-coded article exist in the surrounding.

Expected behaviour: "Nearby" feature should work for all languages.

Event Timeline

Aschroet raised the priority of this task from to Normal.
Aschroet updated the task description. (Show Details)
Aschroet added a project: Mobile-Apps.
Aschroet added a subscriber: Aschroet.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 17 2015, 10:47 AM
Aschroet updated the task description. (Show Details)Feb 17 2015, 1:19 PM
Aschroet set Security to None.
Aschroet updated the task description. (Show Details)Feb 21 2015, 11:55 AM
Aschroet updated the task description. (Show Details)Mar 2 2015, 1:50 PM
Aschroet updated the task description. (Show Details)Mar 6 2015, 5:14 PM
Aschroet updated the task description. (Show Details)Mar 25 2015, 11:50 AM
Deskana added subscribers: MaxSem, Deskana.

I'm guessing that this is the same problem that we had on other wikis, namely that the information is stored in a place where it is not accessible over the API. Perhaps @MaxSem, our maps and geo expert, can shed some light on this.

Aschroet updated the task description. (Show Details)Apr 4 2015, 1:10 PM
Aschroet updated the task description. (Show Details)Apr 12 2015, 11:04 AM
Aschroet updated the task description. (Show Details)Apr 26 2015, 5:45 PM
Aschroet updated the task description. (Show Details)May 15 2015, 6:09 PM
Aschroet updated the task description. (Show Details)May 16 2015, 7:12 PM
Arrbee added a subscriber: Arrbee.May 18 2015, 8:51 AM
Aschroet updated the task description. (Show Details)Jun 12 2015, 9:14 PM
Aschroet updated the task description. (Show Details)Jul 1 2015, 8:09 PM
Deskana removed a subscriber: Deskana.Jul 1 2015, 8:47 PM
Aschroet updated the task description. (Show Details)Jul 30 2015, 8:54 PM
Aschroet updated the task description. (Show Details)Aug 4 2015, 4:09 PM
Aschroet updated the task description. (Show Details)Aug 5 2015, 5:43 PM
Aschroet updated the task description. (Show Details)Aug 22 2015, 7:35 PM

First results of the source code analysis. The code uses a special query to the Wiki API to determine the nearby articles, such as the following (based on the coordinates of the capital Yerevan):

https://en.wikipedia.org/w/api.php?action=query&prop=coordinates&format=xml&colimit=10&generator=geosearch&ggscoord=40.1533904|44.4885671&ggsradius=10000&ggslimit=10

This call returns a list of article while it does not work for the Armenian Wikipedia:

https://hy.wikipedia.org/w/api.php?action=query&prop=coordinates&format=xml&colimit=10&generator=geosearch&ggscoord=40.1533904|44.4885671&ggsradius=10000&ggslimit=10

It seems that there is a problem of the Mediawikis of some languages which does not provide the coordinates of the articles. Does anyone know how the coordinates go from the article to the API?

Further analysis: Even the retrieval of the coordinates of a single article is not possible on Armenian Wikipedia: https://hy.wikipedia.org/w/api.php?action=query&prop=coordinates&format=xml&colimit=10&titles=%D4%B5%D6%80%D6%87%D5%A1%D5%B6

According to http://devhub.wmflabs.org/wiki/API:Showing_nearby_wiki_information the Coord template should call {{#coordinates:}}. Maybe this is what does not work.

I generated a ~200 items list of Wikipedias that do not return coordinates via its APIs. It is based on a geosearch around New York City.

The list contains beside many very special languages also many commons languages of the Caucasus, Balkan, Eastern Europe and Asia that are not supporting coordinates. I am wondering if there is another way to solve this issue than to contact each admin of the different Wikipedias separately.

MaxSem removed a subscriber: MaxSem.Aug 25 2015, 5:12 PM
MaxSem added a subscriber: MaxSem.

With the great help of hywiki user ԱշոտՏՆՂ the problem has been solved for Armenian Wikipedia. This required the adaption of several templates. The question is how this can be done for all the other Wikipedias? I see three possibilities with different pros and cons:

  1. Someone with more power than me pushes/motivates/supports local admins of the related Wikis to do the required changes in there templates
  2. Coordinates template is somehow standardized so that it must be used on every Wiki
  3. Wiki-Api returns available coordinates of the related Wikidata item if no coordinates on Wikipedia is available
  4. Wikipedia App uses Wikidata coordinates if no coordinates on Wikipedia is available
RHo renamed this task from "Nearby" feature does not work in Android Wikipedia Beta when language is Armenian and some other languages to "Nearby" feature does not work when language is Georgian and some other languages.Mar 29 2018, 6:16 PM
RHo updated the task description. (Show Details)
Tacsipacsi added a subscriber: Tacsipacsi.

With the great help of hywiki user ԱշոտՏՆՂ the problem has been solved for Armenian Wikipedia. This required the adaption of several templates. The question is how this can be done for all the other Wikipedias? I see three possibilities with different pros and cons:

  1. Someone with more power than me pushes/motivates/supports local admins of the related Wikis to do the required changes in there templates
  2. Coordinates template is somehow standardized so that it must be used on every Wiki
  3. Wiki-Api returns available coordinates of the related Wikidata item if no coordinates on Wikipedia is available
  4. Wikipedia App uses Wikidata coordinates if no coordinates on Wikipedia is available

I think #1 would be the best. Could you compile a new list? Hopefully it would be shorter. (Removing Android app tags as this is not an app bug but a site issue.)