Mail me two or three original images, i can then see how the gps data is inside the file. Pls mail to opajaap at opajaap dot nl and refer to this topic.
I found a plugin that helps me: Google-Maps-GPX-Viewer and a pointer to the gps info in the EXIF data in the photo.
However i did not yest find a php routine that gives me the gps data to put in the Maps shortcode… Anyone who can help me????
To put photos on a map I use NextGEN-Gallery plugin with NextGEN-Gallery-Geo plugin add-on. Result is (a photo gallery and) a map with interactive pins placed at each photos location.
To show a GPS track captured on a cell phone I convert text file with co-ordinates (from the cell phone) into GPX format using (http://www.gpsvisualizer.com/convert_input?convert_format=gpx) then upload the GPX file to Google-Maps-GPX-Viewer.
Both options work fine.
Thank you very much, you helped me out!
@opajaap — Oops, I was jumping between several threads and when I got back to this one I thought it was about the GPX-Viewer… my bad.
The PHP EXIF library has “exif_read_data” function to extract metadata from Jpeg files (http://www.php.net/manual/en/function.exif-read-data.php). Is this what you are looking for?
I knew about the exif_read_data, but did not know yet that there are elements in the $exif result like:
$exif = exif_read_data($picture_path, 0 , false);
$exif['GPSLatitudeRef'],
$exif['GPSLatitude'][0..2] etc...
That wass exactly the missing link
Thread Starter
bertk
(@bertk)
@opajaap Yes this is what I am looking for. Great job!!! Nice to see you included a choice of (OSM) maps. Personally i prefer to see map standard more zoomed out, but maybe you included a setting for it? A great plus would be a map where you can see al the pictures on a map, like in the Nextgen plugin. See example http://bert.kroft.nl/benfietsen/?page_id=866&show=gallery . But most of all you did a great job already.. tnx
Personally i prefer to see map standard more zoomed out, but maybe you included a setting for it?
I use the plugin Google-Maps-GPX-Viewer, it is a prerequisite for this feature, you will have that plugins settings available ( whatever it may be ). WPPA+ creates a ( configurable ) shortcode for the GPX vieuwer, so this is max flexible.
A great plus would be a map where you can see al the pictures on a map, like in the Nextgen plugin
No, that is not my design idea: The location ( map ) is an attribute of the photo, not the other way round. Sorry.
Thread Starter
bertk
(@bertk)
@opajaap I tried to implement this in my site. On your site you write “This feature requires the plugin Google-Maps-GPX-Viewer and the text w#location in the Custom box.”
I installed the plugin, but where to i put the text w#location ? What is a Custom box and where can i find it.
I am not that experienced with WordPress. Hope you can make it clear to me.
Thanks
Go to the Photo Albums -> Settings admin page.
Open Table II ( Visibility ), by clicking on the banner, then subtable B ( slideshow related settings ) also by clicking on its banner.
Check the box on line 14: Show custom box.
Enter w#location in the text field at line 15.