Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Improve discovery selector #17

Open
jornane opened this issue Jun 12, 2020 · 1 comment
Open

Improve discovery selector #17

jornane opened this issue Jun 12, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jornane
Copy link
Member

jornane commented Jun 12, 2020

Continuing on #14, we need to look into improving the user experience for selecting their institution from the list, since the list has become really long.

We want to keep the search bar, but we don't want to show the whole institution list right from the start, since it probably won't show useful information from the start.

Our initial idea is that the user should still be presented with a search bar, but instead of the full list of institutions, we can use an IP geolocation API to get the location of the user (country and coordinates, although they will be very imprecise); the app can then show the ~10 nearest institutions within the same country.

The user then gets the choice to do a more precise geolocation through their device, or use the search bar and search for their institution. No geolocation by the OS must be attempted unless the user explicitly presses the button.

When using the search bar, the search code should firstly prioritise prefix matches over more generic string matches (searching for "eva" currently returns "Center RS za poklicno izobrazevanje" over "eduroam Visitor Access (eVA)", and secondly prioritise same-country results, and lastly prioritise institutions closer to the current location.

A quick mockup of what we're looking for:

geteduroam2 001 geteduroam2 006

@jornane jornane added the enhancement New feature or request label Jun 12, 2020
@jornane
Copy link
Member Author

jornane commented Jun 16, 2020

We have made an API available on https://geo.eduroam.app/geoip

It will return JSON in the form of

{
	"city" : "Trondheim",
	"postal" : "7030",
	"country" : "NO",
	"geo" : {
		"lon" : 10.3961,
		"lat" : 63.424
	}
}

The country should match certain institutions in the discovery, and the geo location should be compared to geo for institutions. For institutions with multiple coordinates, the closest should be used.

dima-ko pushed a commit to dima-ko/ionic-app that referenced this issue Mar 14, 2023
GETEDUROAM-19: Use new EAP data model to configure, split up EAP to s…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant