Geolocation block

Blocks ::: block_gps
Maintained by Robert Schrenk, Zentrum für Lernmanagement, Andreas Riepl
This block works together with the availability condition "gps" and allows a user to determine the current gps location. The location is stored in the current session and is used by the availability condition. Furthermore the block can show the locations in a course by list or on an interactive map.
Latest release:
127 sites
30 downloads
14 fans
Current versions available: 1

This block works together with the availability condition "gps" and allows a user to determine the current gps location. The location is stored in the current session and is used by the availability condition. Furthermore the block can show the locations in a course by list or on an interactive map.

No location data is stored persistently! A condition, however, can be configured that Moodle remembers persistently if it had been unlocked once.

Attention: your site needs to be run under https to use geolocation!

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Robert Schrenk (Lead maintainer)
Zentrum für Lernmanagement
Please login to view contributors details and/or to contact them

Comments RSS

顯示評論
  • Plugins bot
    2018年07月30日(週一) 23:20
    Approval issue created: CONTRIB-7408
  • Joel Salazar Ramirez
    2021年12月2日(週四) 23:31
    Hi There, the block geolocation is great but haves an issue: Redirects to login page, even whit force login disabled.

    It happened with moodle 3.10 and 3.11, so I make this comment for general knowledge.
  • Michael Smith
    2021年12月8日(週三) 02:57
    Is there a way to expand the "accuracy" setting to more than 20 Kilometers. I am wanting to allow anyone in a particular City Metro area - or a larger region. something like 200-300 Kilometers
  • Robert Schrenk
    2021年12月9日(週四) 15:33
    Hello, I added your wish to the list of feature requests. Perhaps it is the best if it is just a numeric text field, where you enter the meters yourself....
  • Richard de Keyzer
    2022年01月8日(週六) 19:23
    Dear Robert, In the geolocation blok the map is empty. So your third screenshot (the opentreetmap) my me is white. I see no map. I can't see the map, not in my browser on my pc, not in de moodle app on my smartphone, not in the browser on my smartphone. , noDo you have any idee what's the problem? My position (gps) is recognized en changes every time I walk. Thank you. Richard
  • Robert Schrenk
    2022年01月8日(週六) 19:39
    Hello Richard, the map is embedded from open street map, so maybe your browser blocks this. Do you have content security enabled in the page header?
  • Richard de Keyzer
    2022年01月10日(週一) 03:36
    Hello Robert, thank you for your quick reply. On the client side (in the browser) I put all security off. But maybe it is on the server side. When I see the blank box (no map is visible) and I push
    the blue location tab there comes a warning: Invalid record. Cant't find the data record (in Dutch: gegevensrecord) in the databasetable of the course. Moodle 3.11.4+ . php 7.4.27
    Geolocationblock 2.5 (2021121600)
    I hope this information can help to find a solution. Thank you. Richard.
  • Robert Schrenk
    2022年01月10日(週一) 17:36
    Such message may indicate a bug. Please open an issue at https://github.com/center-for-learning-management/moodle-block_gps/issues, but please provide more information on the error. You can enable debugging and grab the error, or check the error logs of your webserver respectively. Kind regards
  • Andriy Semenets
    2022年01月22日(週六) 01:10
    Faced the same issue as Richard wrote. Have submitted an issue https://github.com/center-for-learning-management/moodle-block_gps/issues/5
  • Rafael Calixto Avelar Marcelino
    2023年09月27日(週三) 21:17
    Hello, I'd like to ask you a question. When I add this block to a room, how will I be able to place a location restriction, so that only students who are in a certain location can access it? Or see the location of students and give attendance only to those who are in a certain location.
    I tried to add it to my Moodle, but when I click on "Update", the message "invalidrecord" appears.
  • Robert Schrenk
    2023年09月27日(週三) 23:01
    Please read the first sentence of the description: „This block works together with the availability condition "gps"“.
  • Rafael Calixto Avelar Marcelino
    2023年09月28日(週四) 00:31
    Got it, but mine doesn't show the logs as in screenshot 2
  • Robert Schrenk
    2023年09月28日(週四) 00:32
    You need to configure the location as condition in a resource or activity.
Please login to post comments