Choose a JPEG original
Open a local JPEG. Some image apps and sharing services remove location tags when they make a new copy.
Read GPS coordinates from local JPEG Exif, plot the position in Three.js and optionally open the coordinate in OpenStreetMap.
The guide
Photo Location Viewer reads the recorded position from Exif data in a local JPEG. It shows signed decimal latitude and longitude, along with available camera and date information. The Three.js view pairs a preview with the coordinates on a world grid. Copy the pair or open the position in OpenStreetMap.
A concrete input and expected output from the current implementation.
Input
Select Use GPS sample. Its fictional EXIF record gives latitude 40°26′46″ north and longitude 79°58′56″ west.
Expected output
The displayed pair is 40.446111, -79.982222. A red point appears to the left and above the center of the coordinate grid.
The browser converts each degree, minute and second component to decimal degrees. The west reference makes the longitude negative.
Open a local JPEG. Some image apps and sharing services remove location tags when they make a new copy.
Check the signs and compare the printed values with the coordinate grid. A JPEG without a complete GPS pair cannot supply a map point.
Copy the signed pair for your records. If you select OpenStreetMap, that website receives the coordinates included in the link.
The result comes from the embedded latitude and longitude. A picture without those tags has no recorded point to display.
The coordinate grid is drawn locally. OpenStreetMap opens only if you select its link.
The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.
Sent. Thank you.