I spent a while today trying to figure out why the app's Nearby didn't seem
to be very accurately determining the angle between the device and the
article's geo coords.

Angles seemed to be off by strange amounts depending on how close I was to
an article's supposed location.

I believe I found the problem. Run the query below and you'll see the
result for Wikimedia Foundation:

https://en.m.wikipedia.org/w/api.php?action=query&colimit=1&format=jsonfm&generator=geosearch&ggscoord=37.786816%7C-122.399254&ggslimit=1&ggsradius=10000&pilimit=1&pithumbsize=144&prop=coordinates%7Cpageimages%7Cpageterms&wbptterms=description

The API result says the foundation's coordinates are:
      37.787, -122.4

But if you look at the article on desktop it says the Foundation's
coordinate are:
      37.78*697*, -122.*399677*

You can see what's happening.

Can we make the API not degrade the coordinates? Super quick fix? (Or is
there some extra parameter I should be using?)
_______________________________________________
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l

Reply via email to