How to retrieve the geographical coordinates of a photo ?

Created on 1 June 2022, almost 3 years ago
Updated 18 August 2024, 8 months ago

I have the Geolacation and Media module.

I publish nodes with photos that contain geographic coordinates in the EXIF.

How to retrieve the geographical coordinates of a photo ?

I want to display under each photo of my node, a "Go there" button to go to the exact place where the photo was taken. When the user clicks on the button, the device must offer to open the coordinates in a google maps for example if it is on mobile.

The button link should therefore look like :

<a href="geo:124.028582,-29.201930" target="_blank">Click here for map</a>

Here is an example of a node on my website :

https://www.cocorinet.fr/le-chant-des-cailloux


Update for a feature request

Geolocation has its own geocoding module. It would be nice if this module were able to geocode images (EXIF) as it already does with addresses.

Modules like https://www.drupal.org/project/geocoder offer this, but it would be useless to weigh down Drupal with an additional module.

https://en.wikipedia.org/wiki/Geotagging#JPEG_photos

Feature request
Status

Fixed

Version

4.0

Component

Geolocation Field / Backend

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024