July 27, 2005

GeoTagging Flickr via Google Earth - New GreaseMonkey Script

I've written some code that lets you GeoTag your Flickr images via Google Earth, heres the instructions on how to do it.


* Google Earth (An amazingly cool free program that displays the whole world via satellite imagery and lets you zoom right in and fly all round the world, seeing some wonderful sights)

* Firefox Web Browser (you need to enable cookies and you also need to set Firefox as the default web browser in Firefox Tools/options/general menu)

* GreaseMonkey Firefox Extension

* You also need an account on Flickr.com with some uploaded photos in it (the photos need to be publically viewable, the process wont work with photos marked as Private.)

* You also need the following script: GeoTagging Flickr via Google Earth GreaseMonkey Script

Setup Instructions:

1) In order for this script to work properly, you first need to install Google Earth. Once installed you need to go into the Tools/Options/General menu and make sure the box that says "Show web results in external browser" is ticked.

2) If you are running any of my other GeoTagging GM scripts ( i.e "geotag.flickr", "geotag.flickr.streetmapuk", "geotag.flickr.multimap" ) and wish to try this script out, you should disable them in the Tools/Manage User Scripts window. If you wish to go back to using one of the other GM scripts at some point, you need to disable this one, then re-enable the previously disabled script.

3) Open Google Earth, then goto the Places window on the left, right click "My Places" and then select "New Network Link" For the name enter "Flick'rin GeoTagger" and For the location enter the following URL:
http://steeev.site50.net/flickr/gearth.php?user=[Put Your Flickr Username Here]

eg if you were me you would use the following URL: http://steeev.site50.net/flickr/gearth.php?user=steeev

4) Set "View Based Refresh" to "On Request" and leave all the other options in their default settings then click OK.

5) Now Install this GreaseMonkey script ( Either "Right Click" on the link and select "Install User Script" or click the link and then goto the firefox menu "Tools/Install User Script" ) and you will now have a new link on your Flickr photo pages and batch edit pages called "Add GeoTags"

Usage Instructions

1) Click the "Add GeoTags" link and an input box will be displayed. Enter the address of where the photo/s were taken, then click submit.

2) You will then be sent a KML file (KML=Google Earth XML file format) to your browser.

3) You need to open the KML file with Google Earth, FireFox should automatically popup a window asking what to do with the KML file, and the default option will be to open it in Google Earth. (Tip: If you click the checkbox to always open KML files with Google Earth, you wont need to worry about this step again)

4) Once you have opened the KML file, if Google Earth has found the address you entered, it will display a marker showing the approximate location of the area you wish to GeoTag. If Google Earth did not find the address you entered, you can try a new address search using Google Earth's search search box, until you find the place, or alternatively you can just find the location by rotating and zooming the globe.

5) You now need to move to the exact spot you wish to GeoTag, once you have identified the right location, you should zoom right in on it, so its right at the center of the screeen. You should also ensure that your view point is not tilted, you can do this by clicking the "reset tilt" button.

6) Now right click on the "Flick'rin GeoTagger" network link in the Places window and select "Refresh". A new placemarker will now be displayed at the point you just specified, click the placemarkers icon, and it will pop up a HTML window, now simply click the "Add GeoTags" link in that window and the geotags will be added to your image/s.

7) You then need to either add the "GeoTagged" link to the description or if its not your image, to the comments. So just click the appropriate button. You can also add a link to "Fly to that location in Google Earth" See RobRoyAus's post on the subject for more info.

Adding The GeoTagged link is useful for 2 reasons; Clicking it the first time adds your images location to the geobloggers.com database, and subsequent clicks on it will display the location of the image overlaid on a map. Once its in the geobloggers database, you will be able to view it in Google Earth and other people will be able to find it by searching by location etc on the geobloggers site.

While it might seem like a lot of steps, you should only need to do the steps in the Setup section the first time you use the script, after that you would just use the steps listed under the "Usage Instructions" heading :)

If you have any ideas or suggestions on how to improve the process, please let me know.



Tags: | | | | | | | | | |

Posted by steeev to Cool Software | Firefox | Flickr | GeoLocation | Google Maps Hacking | GreaseMonkey | Ocular Sweetitudes | Programming | Tutorials | Web Development

at July 27, 2005 01:56 AM

It´s greatĦĦĦ you are a genius.

Posted by: Carlos at August 5, 2005 07:31 PM