WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] GPS Info (12 posts)

  1. bertk
    Member
    Posted 1 year ago #

    Just started working with WP Album Plus. Did not yet figure out all the poss. but the first result are super.
    I would like to add a map to (each) picture to show where the picture was taken. Almost all my pics have GPS info in it.
    Can anyone tell me if this is possible in some way?
    Thanks

    Bert

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    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????

  4. Petr Veprek
    Member
    Posted 1 year ago #

    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.

  5. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you very much, you helped me out!

  6. Petr Veprek
    Member
    Posted 1 year ago #

    @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?

  7. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    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

  8. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    @bertk:

    Something like this: http://beta.opajaap.nl/currently-testing/ ?

  9. bertk
    Member
    Posted 1 year ago #

    @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

  10. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  11. bertk
    Member
    Posted 1 year ago #

    @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

  12. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic