Skip to content

VladimirKalachikhin/GooglePhoto-POI-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

GooglePhoto POI maker License: CC BY-SA 4.0

A PHP cli tool to create a common POI format csv for photos from YOUR OWN public GooglePhoto album.
Case:
You have a some photos with spatial info. You create GooglePhotos album with this photos. Now you want to have sharable POI file with links to GooglePhotos, such as StagerSaimaaPhotos.csv. This need for see photos on a GoogleMap, in the GaladrielMap, or to load photopoints to navigation device.

Features

  • Permanent url's to GooglePhotos
  • Spatial info from local files

Usage

Directly for shared GooglePhoto album:
Create a public url for GooglePhoto album, and run
$ ./gfpoi.php [parms] https://youGoogleGhotoGharedLink /dir/to/photos/with/spatial/info/ [/output/file.csv]
If you specify optional an optional output file , you will see some error messages in standard output: about files without spatial info, for example.
Another way - first create a csv file with file names and url's from GooglePhoto album by any tool ( GooglePhotosURLs ), for example). This file must have a two collumns:
"filename.ext","http://GooglePhotoPermanentUrl",
without title in first string. And run:
$ ./gfpoi.php [parms] /path/to/file/with/namesandurls.csv /dir/to/photos/with/spatial/info/ [/output/file.csv]
Parameters are:
-h --help - help
-e= ext --ext= ext - extension of the image files with spatial info, if it is not same as GooglePhoto file extension.

Requirements

PHP must be with EXIF extension. As a rule, this is so.

Dependencies

For get GooglePhoto album url's you need GooglePhotosURLs.php from GooglePhotosURLs

To create a public GooglePhotos url:

  • GoTo you GooglePhotos album or click to the GooglePhoto
  • Click the Share icon
  • Click Get link

Releases

No releases published

Packages

No packages published

Languages