Closest point API


Since we collect information from eduroam.org about the available eduroam points, we developed the closest point service API, which handles locating the closest eduroam service location.

The API receives the current location coordinates in a GET request, calculates the closest point through server-side triangulation and returns a JSON reply with its’ coordinates and a detailed description.

Applications

Based on this API, we developed the closest point web page that allows users to find the closest eduroam location or a location they search for.

Potentials are limitless! You can build your own application either it is web or mobile or a widget for a wearable device.

API
url: https://eduroam.uran.ua/closest?lat=latitude&lng=longitude
method: GET

lat:Latitude coordinate, eg. 37.98101
lng:Longitude coordinate, eg. 23.728695
Example request:
Find the closest eduroam point to my position, eg. coords(37.98, 23.72):
https://eduroam.uran.ua/closest?lat=37.98&lng=23.72
Example response:
{
	"lat": "37.972883",
	"lng": "23.717463",
	"text": "\n <b>Name:</b> National Observatory, Athens, Greece<br><b>Address:</b> Athens, 118 51<br><b>SSID:</b> EDUROAM<br><b>Enc:</b> WPA2/AES<br><b>AP:</b> 1<br> \n ",
	"name": "\n <b>Name:</b> National Observatory, Athens, Greece<br><b>Address:</b> Athens, 118 51<br><b>SSID:</b> EDUROAM<br><b>Enc:</b> WPA2/AES<br><b>AP:</b> 1<br> \n "
	"plainname": "National Observatory of Athens ",
}