Skip to content
Entry GPS Coordinates plugin for Craft CMS 3.x
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.craftplugin
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json

README.md

Entry GPS Coordinates plugin for Craft CMS 3.x

Pick a GPS location for an entry

PluginImpression

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

  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 | coordinates }} => 47.11736635136284,12.82762888348384
{{ entry.fieldName | latitude }} => 47.11736635136284
{{ entry.fieldName | longitude }} => 12.82762888348384
You can’t perform that action at this time.