
GeoLocation2
MODX geodata — gl_* catalog, SxGeo, city picker modal, REST action.php


Country, region and city catalog in gl_* tables, IP lookup via SxGeo, front-end city picker (Bootstrap 5 modal) and REST endpoint action.php.
gl_countries, gl_regions, gl_cities, gl_data and a manager in the MODX admin.dat database, no external API on every request)$_SESSION['gl2']: selected city, confirmed flag, CSRF tokengl_data, modal flow| Requirement | Version |
|---|---|
| MODX Revolution | 3.0+ |
| PHP | 8.2+ |
assets/components/geolocation2/vendor/sypexgeo/data/SxGeoCity.dat.Package catalog: modstore.pro. Source: GitHub.
| Section | Description |
|---|---|
| Quick start | Minimal site setup |
| System settings | geolocation2_* keys |
| Integration | Manager, data model, CSV, PHP service, SxGeo |
| Web API | GET/POST action.php |
| Snippets | Parameters and chunks |
| FAQ | Common issues |