elodie
elodie copied to clipboard
Unable to get city information for any photos
I've recently tried using elodie on the current month's photos and it seems that nothing I do can get the "city" attribute to appear in the path. Using another exiftool front end I've set "City", they've all got valid GPS coordinates, but any attempt to use "%city" in the path results in either "Unknown Location" if I use it by itself, or just the state (and possibly country) if I use it in conjunction with them.
eg: EXIF data: PSLatitude : 37 deg 53' 58.21" S GPSLatitudeRef : South GPSLongitude : 145 deg 4' 52.17" E GPSLongitudeRef : East GPSPosition : 37 deg 53' 58.21" S, 145 deg 4' 52.17" E City : Hughesdale Sub-location : Hughesdale Province-State : Victoria Country-PrimaryLocationCode : AUS Country-PrimaryLocationName : Australia
config.ini [Directory] year=%Y date=%Y-%m-%d location=%city, %state, %country full_path=%year/%date/%location|"Unknown Location"
Results in filesystem: "Photos/2018/2018-03-19/Victoria, Australia"
Further investigation, it looks as though MapQuest never send City information on any coords within Australia. Any chance of supporting api.geonames.org as a lookup source?
I'm not familiar with api.geonames.org. It would not be too difficult to support another API.
geolocation.lookup and geolocation.place_name are the two functions which would need to be overloaded.