Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open source library to get geotags from images?

Is there an open source library to efficiently and reliably get geotags from an image?

I want something system agnostic, hence a library instead of a program. I would love something well documented and in Python but any language works.

I'm not looking for exif reader per se, not all geotags are stored in exif. I want something that can find geotags independent of how they are stored in the image's metadata.

like image 499
mand Avatar asked Nov 30 '25 16:11

mand


1 Answers

I maintain the MetadataExtractor library which supports GPS data along with many other kinds of metadata.

It has implementations in:

  • Java https://github.com/drewnoakes/metadata-extractor
  • .NET https://github.com/drewnoakes/metadata-extractor-dotnet

Here's a sample that produces a Google Map from a batch of images:

https://github.com/drewnoakes/metadata-extractor/blob/master/Samples/com/drew/metadata/GeoTagMapBuilder.java

like image 171
Drew Noakes Avatar answered Dec 02 '25 08:12

Drew Noakes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!