ExifTool Forum

General => Other Discussion => Topic started by: Alan Clifford on July 27, 2019, 04:07:56 PM

Title: Google maps. A bit of a rant.
Post by: Alan Clifford on July 27, 2019, 04:07:56 PM
Google maps seem to have broken my location links again.  Go to http://f16.eu/potpourri/tn/w300_1320_wb.jpg.index.html (http://f16.eu/potpourri/tn/w300_1320_wb.jpg.index.html) and click on "location map" and ... it's broken.  Again.

Looking at my code I have

@webtags = ( 'aperture', 'shutterspeed', 'iso', 'exrmode', 'flash',
   'focallength35efl', 'model', 'lensid', 'location', 'title', 'gpsposition#',
   'nikon:flashmode#', 'fujifilm:fujiflashmode#', 'flash#', 'uwdepth'  );

$gpsposition = $$webinfo{$webtags[10]} ;


that filters down to where I create the location link.


Looking at the url in google maps, putting ", " between the latitude and longtitude causes it to actually work again.

So how to fix this that would be more robust for tbe next google change?   Create a googlegpsposition# tag in my config file?  Or just create new code, again,  ( sub creategpsurl3 ), to insert the comma in the link?

Title: Re: Google maps. A bit of a rant.
Post by: StarGeek on July 27, 2019, 04:14:40 PM
Someone else mentioned (https://exiftool.org/forum/index.php/topic,10329.msg54336.html#msg54336) that putting a + in front of positive numbers seemed to work.

But as to being future proof, who knows.  Google is always changing things.
Title: Re: Google maps. A bit of a rant.
Post by: Alan Clifford on July 28, 2019, 11:42:07 AM
I like Perl but keep forgetting it as I don't use it very much.

I found that I could just insert a line:

$gpsposition =~ s/ /, / ;


But I have to regenerate all the indexes on my photo website.


Edit

But not all of them.  Only those in the western hemisphere.