moom0o / PhotoSphereStudio

Upload 360° photos to Google Maps without using Google's app
GNU General Public License v3.0
51 stars 10 forks source link

Seems to be working to parse GPS out of EXIF data within image. #7

Closed j-calvert closed 1 year ago

j-calvert commented 1 year ago

The relevant changes are lines 21-32 of drag-and-drop.js

The GPS coordinates seem correct, but after about 5 minutes, the 360 photo is still not showing up on Google Maps. Will check back in a bit.

image

Re: lot's of whitespace/formatting changes, open to recommendations. I'm using Visual Studio Code. Is there a formatting template I should be using.

moom0o commented 1 year ago

You'll probably have to wait closer to 30 minutes and then refresh, still doesn't work? Then try incognito mode or another browser.

j-calvert commented 1 year ago

Now the 360 is good, but the location is not. Will keep checking back.

j-calvert commented 1 year ago

So weird, I was pretty sure the location was working as I had it, but it seems I needed a negative sign for longitude.

j-calvert commented 1 year ago

Yup, it's working now (gets GPS coords from EXIF metadata).

My most recent pix with "Unknown Location" added using the tool.

moom0o commented 1 year ago

For the negative long coordinate, what happens if its in the east where its positive? (Same for lat)

j-calvert commented 1 year ago

For the negative long coordinate, what happens if its in the east where its positive? (Same for lat)

You're right! My laziness/sloppiness was showing 😄

Lifted (now) from https://medium.com/spatial-data-science/how-to-extract-gps-coordinates-from-images-in-python-e66e542af354

moom0o commented 1 year ago

Hi @j-calvert, could you possibly add a way to write exif data? It would be very useful for images that don't have the required metadata by Google, such as drone panoramas.

You can find the required metadata here: https://developers.google.com/streetview/spherical-metadata

Thanks

j-calvert commented 1 year ago

Hi @j-calvert, could you possibly add a way to write exif data? It would be very useful for images that don't have the required metadata by Google, such as drone panoramas.

Not sure what the ask is, here. What would be writing to exif?

Update: Nevermind, now I see https://github.com/moom0o/PhotoSphereStudio/issues/9