sarahsporck / Migration-Test-Repository

This repository is used to test the ticket migration from jira to github
0 stars 1 forks source link

IGAPP-38: Implement Nearest-City-Feature (on-hold) #1697

Closed jira-to-github-migrator-test[bot] closed 11 months ago

jira-to-github-migrator-test[bot] commented 11 months ago

Max Ammann - 16.11.2018, 13:54:30

The 3 nearest cities should be featured in the city selection. This means they are listed first, before the alphabetical listing of all sites/regions. Nearest cities are based on the location of the device and its distance to all sites/regions

The longitude and latitude for sites/regions (and also for its aliases) is available in the sites endpoint of the APIv3: https://github.com/Integreat/cms/wiki/REST-APIv3-Documentation#response

The app has to calculate the distance to all cities and select the closest ones. A cut off distance of 50 km is useful. That means, if no site/region is closer than 50km, no region is shown.

It could make sense to implement this using an IP-based location lookup as this requires no GPS. The problem with this issue is that most devices (desktop) which use the webapp do no offer a location. Also scrolling down to your home city is not as much of a problem as on mobile. Therefore this issue is not important right now.

Environment: - Linked issues:

jira-to-github-migrator-test[bot] commented 11 months ago

Steffen Kleinle - 24.2.2021, 15:11:35

This does not really make sense on web and has not been requested.