Introduction

Custom Code in Modules, Development Tools, Maps & Locations, Geotagging, Extensions Tools

Geolocation is a Joomla extension for developers made to get and record the user coordinates, latitude and longitude in decimal format, using his browser functions. The data is saved in the Joomla session as two variables, "iciLat" for the Latitude and "iciLon" for the Longitude.


These data can be retrieved by using standard Joomla function :
- JoomlaCMSFactory::getApplication()->getSession()->get('iciLat'); for Latitude
- JoomlaCMSFactory::getApplication()->getSession()->get('iciLon'); for Longitude

This extension contains two different modules :
- modgeolocsession.php : the main module that actually gets the coordinates from the user browser and sets them into the current user session data. The module actually asks the coordinates to the user's browser only at the first time it is activated. If the coordinates are already in the session data, it does nothing.
- modgeolocdisplay.php : this optionnal module displays the coordinates produced by modgeolocsession module, it can be used for testing purpose.

Geolocation

Version:
1.0.0
Developer:
Antoine Payen
Last updated:
Oct 15 2022
1 year ago
Date added:
Oct 14 2022
License:
GPLv2 or later
Type:
Free download
Includes:
m
Compatibility:
J3 J4
Download

Uses Joomla! Update System