OpenLitterMap / OpenLitterMap/openlittermap-web

A users GPS tags are being removed on Android

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
PHP
Stars
134
Forks
42
PR merge metrics
No merged PRs in 30d

Description

The user is able to see the location on their device for a photo

But when they upload, the GPS tags are set to null and 0

When these keys exist, the image should contain geotags

    'GPSLatitudeRef' => NULL,
    'GPSLatitude' => 
    array (
      0 => '0/0',
      1 => '0/0',
      2 => '0/0',
    ),
    'GPSLongitudeRef' => NULL,
    'GPSLongitude' => 
    array (
      0 => '0/0',
      1 => '0/0',
      2 => '0/0',
    ),
    'GPSAltitudeRef' => '' . "\0" . '',
    'GPSAltitude' => '0/0',
    'GPSTimeStamp' => 
    array (
      0 => '0/0',
      1 => '0/0',
      2 => '0/0',
    ),

https://stackoverflow.com/questions/64902882/android-gps-exif-data-returns-null-or-empty-but-device-shows-location

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Android upload described in the issue and compare the device's EXIF GPS values with the uploaded image's metadata. Use the linked Stack Overflow discussion as context; done means valid GPS tags are preserved instead of becoming null or zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, php
Domain
backend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.