Bug 11181

Summary: Koha geolocalization of OPAC users for better sort results
Product: Koha Reporter: Pablo AB <pablo.bianchi>
Component: OPACAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: new feature    
Priority: P5 - low CC: marjorie.barry-vila, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Pablo AB 2013-10-31 22:16:40 UTC
As I suggest back on 2009 (http://koha.1045719.n5.nabble.com/Geolocalization-in-Koha-td3069181.html ) it would be very nice if Koha could offer geolocation[0] (maybe using openstreetmap.org or Google Maps API).

Having branches spread over a large territory make this feature very useful, making the records of the searched material more near first in the result list. Is possible to add some heuristics based on what people usually search for nearby (as Google does).
There are some freely available databases[1], but also is possible to create and improve one over time, based on location established on registered and logged users, associating it with their IP address.

Some extra fields for each Library should be added to database (aside
code for geolocation and sorting OPAC results) like longitude and
latitude on Decimal Degrees, "DD"[2], and a system preference to activate/deactivate this.

[0] http://en.wikipedia.org/wiki/Geolocation
[1] http://www.ipinfodb.com/ip_location_api.php
[2] http://en.wikipedia.org/wiki/Decimal_degrees
Comment 1 Pablo AB 2013-11-02 21:35:49 UTC
To make things easier it could use (also or instead) HTML5 Geolocation API, as "Library Finder" [0] (ResearchWorks from OCLC).

[0] http://www.oclc.org/research/activities/researchworks.html
Comment 2 Pablo AB 2017-12-04 22:00:55 UTC
Now that branches table have a geolocation column would be great to sort results depending on user location (based on HTML5 geolocation, IP or user address).