Page MenuHomePhabricator

Implement coordinate converter in Wikinity to allow users to use more coordinate formats
Closed, ResolvedPublic

Description

When you're searching for (un)photographed objects near provided coordinate, you are enforced to use decimal degrees format (49.9922950N, 15.8848811E). Wikinity users will benefit if they can specify the coordinates they want to search around in other coordinate formats as well, such as (all coordinates listed below are another format of same coordinate):

  • degrees, minutes (N 49°59.5377', E 15°53.092866')
  • degrees, minutes, seconds (N 49°59'32", E 15°53'6")

However, Wikidata requires decimal degrees format. Wikinity must convert coordinates internally and pass decimal degrees to Wikidata.

Example coordinate converter is on https://www.directionsmag.com/site/latlong-converter/.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Urbanecm triaged this task as Medium priority.
Urbanecm removed a subscriber: Aklapper.
Urbanecm renamed this task from Implement coordinate convertion to Allow users to use more than one coordinate format.Sep 28 2018, 3:13 PM
Urbanecm updated the task description. (Show Details)
Urbanecm renamed this task from Allow users to use more than one coordinate format to Implement coordinate converter in Wikinity to allow users to use more coordinate formats.Sep 28 2018, 4:16 PM

I've added three fields. I've also switched the fields to a "number" type and added some basic error checking. I've restricted latitude(degrees) to the range [-90, 90], longitude(degrees) to [-180, 180] and all minutes and seconds to the range [0, 60]. Error checking is not very robust, but imo would do (you be the judge).

Change 469641 had a related patch set uploaded (by Shreyasminocha; owner: Shreyasminocha):
[labs/tools/wikinity@master] Allow users to enter coords in DMS format

https://gerrit.wikimedia.org/r/469641

Change 469641 merged by jenkins-bot:
[labs/tools/wikinity@master] Allow users to enter coords in DMS format

https://gerrit.wikimedia.org/r/469641