Google maps. A bit of a rant.

Started by Alan Clifford, July 27, 2019, 04:07:56 PM

Previous topic - Next topic

Alan Clifford

Google maps seem to have broken my location links again.  Go to 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?


StarGeek

Someone else mentioned that putting a + in front of positive numbers seemed to work.

But as to being future proof, who knows.  Google is always changing things.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Alan Clifford

#2
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.