https://github.com/nthmedia/entry-gps-coordinates
Entry GPS Coordinates plugin for Craft CMS 3 & 4
https://github.com/nthmedia/entry-gps-coordinates
craft-plugin craft3 craft4 craftcms craftcms-plugin
Last synced: 6 months ago
JSON representation
Entry GPS Coordinates plugin for Craft CMS 3 & 4
- Host: GitHub
- URL: https://github.com/nthmedia/entry-gps-coordinates
- Owner: nthmedia
- License: other
- Created: 2019-08-31T14:22:56.000Z (almost 7 years ago)
- Default Branch: v2
- Last Pushed: 2024-05-23T06:25:59.000Z (about 2 years ago)
- Last Synced: 2025-10-23T18:39:38.120Z (8 months ago)
- Topics: craft-plugin, craft3, craft4, craftcms, craftcms-plugin
- Language: PHP
- Homepage:
- Size: 132 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Entry GPS Coordinates plugin for Craft CMS 3.x
Pick a GPS location for an entry

## Installation
To install the plugin, follow these instructions.
1. Open your terminal and go to your Craft project and tell composer to install the plugin
```composer require nthmedia/entry-gps-coordinates```
2. Activate the plugin in Craft through the command line or through the Control Panel under Settings → Plugins
```./craft install/plugin entry-gps-coordinates```
3. Add a Coordinates field under Settings → Fields and add this field to a Section under Settings → Sections
## Usage in Twig
```
{{ entry.fieldName | searchQuery }} => Van Gogh Museum
{{ entry.fieldName | coordinates }} => 52.3584159,4.8810756
{{ entry.fieldName | latitude }} => 52.3584159
{{ entry.fieldName | longitude }} => 4.8810756
{{ entry.fieldName | zoomLevel }} => 13
{{ entry.fieldName | address }} => Paulus Potterstraat 7, 1071 CX Amsterdam, Netherlands
```