May 08, 2005

Geotagging Flickr with Google Maps and Greasemonkey Part 2

UPDATE: Please note, this method no longer works

Ive come up with a method, that makes adding GeoTags to your Flickr images, and then submitting the images to the geobloggers.com site a slightly more automated process.

if anyone wants to try it out heres what you need to do:

Automated(ish) GeoTagging Flickr Images Process

1) Firstly if you havent already, you need to install the Firefox web browser.

2) Secondly you need the Firefox Greasemonkey extension installed.
(N.B The scripts have now (27/5/05) been updated to be compatible with GM 0.3.3 thanks to Matthew Weymar! :) )

3) Install this greasemonkey script, which is for the maps.google.com site. (Installing GreaseMonkey scripts is as simple as clicking the link then going to Firefox's tools menu and selecting "Install User Script". Then accept the default options and click ok.)

4) Install this greasemonkey script, which is for flickr.com

5) Go to the image on the flickr.com website that you want to add GeoTags to.

6) You should see a new link next to the "add tags" link on the right, called "add GeoTags", click that link, and an input box will be displayed.

7) Enter the placename, streetname or postcode or zipcode or a combination, where you took the image (or any other location identification info that Google Maps will recognise) then click submit. Remember though that Google Maps only covers USA, Canada,UK + Republic of Ireland in great detail at present. (for people in areas not covered by google maps at present, ive created a new script) that utilises multimap.com

8) You should now be redirected to a page with the Google Maps interface embedded in it.

9) Locate the position on the map you wish to get the geotag coordinates from, you can do this by any of the normal means, i.e searching with the search box, or dragging, zooming and scrolling the map. Also worth noting is "double clicking" anywhere on the map will recenter the map.

10) Once you have located the position you wish to GeoTag your image with, click the link on the right hand side that says "Add GeoTags to your flickr image"

11) You will then see a page with 2 buttons. below that should be a message saying "rsp: stat ok", if it says that, that means the geo tags have been added to your image successfully.

12) You can now choose whether to add the "GeoTagged" link to the images description, or as a comment. You can only add the link to the description if you are the images owner though, if you arent the owner, you can only add the link as a comment. Choose which method you want to use and click the appropriate button.

13) You should now be redirected back to your image page, and you can now check the tags etc have been added properly.

14) Finally click the "GeoTagged" link in the images description / comments, and then you are done, the geobloggers site should add your images location to its database.

Any Bug reports, suggestions and ideas on improving the process flow are most welcome.

Cheers :)

Steeev

UPDATE Christopher and Dave have discovered that this method will not work unless you set the browser to accept "third party cookies". Thanks Guys.

FURTHER UPDATE: A guy called Mark has created a lovely visual step by step walkthrough of the process of adding GeoTags via this method.


*Yet another update* You can geotag the rest of the world, even though Google doent have the detailed maps, they do have a satellite view of the whole world, just not high resolution for anywhere apart from USA+Canada. If you want to geotag somewhere not covered in detail by Google Maps, try zooming all the way out from the map, and changing to satellite view, you should now be able to see the whole world if you move the map about.

Further Update At present MultiMap.com have greater worldwide map coverage than google has, so I wrote some geotagging with MultiMap.com scripts for people in countries not currently covered by google maps. You can get the multimap.com geotagging scripts here.

Further Further Update 27-Jul-05 Ive written yet another new GeoTagging Flickr script, this one utilises the fabulous Google Earth. You can read about it here.

A GeoTagging Flickr Group has been started, for anyone wanting to discuss geotagging/geoblogging stuff.

Technorati Tags: | | | | | | | | | |

May 04, 2005

Geotagging Flickr photos, with GoogleMaps via a cool Greasemonkey script and bookmarklet

A guy called revdancatt created a cool new website called GeoBloggers that lets you "geotag" your flickr photos, geotagging means adding longitude and latitude coordinates to the tags for the image. Then his website pulls in the images and overlays them on google maps, its very cool! and will be even cooler for us in the UK when google maps adds the sattelite images for the UK.

I wrote a couple of scripts to help out, making the process a bit easier, one is a Greasemonkey script, that adds 2 links to the google maps page/s.

  • The first link, when clicked, redirects you to the geoblogging website for that location, where all the images tagged with the local coordinates will be listed on the map.
  • The second link, when clicked, displays the longitude and latitude coordinates on the map, which is useful for people who want find the coordinates of where they took their images so they can add the required tags to their flickr images.

Heres the GreaseMonkey Script: GeoTag.Gmaps.Flickr.User.js
UPDATE: Ive updated the greasemonkey script/s you can get the new ones here:

The second script is a javascript bookmarklet, which should work on both Firefox and Internet Explorer. The bookmarklet works the same way as the first link mentioned above, ie when you click the bookmarklet whilst on a google maps page you will be redirected to the associated page on the geoblogging site.

Here the bookmarklet: (*UPDATE* I dont think the bookmarklets below work any more.)

javascript:latlong = _m.map.getCenterLatLng(); latlong += ""; latlong = latlong.replace(/\)/g,""); latlong = latlong.replace(/\(/g,""); latlongarr = latlong.split(', '); location.href = 'http:\/\/geobloggers.com?lat=' + latlongarr[1] +'&lon=' + latlongarr[0];

To get the bookmarklet to work just create a new bookmark/favourite and copy and paste the above code in for the URL. then to use it just hit the bookmark when you are browsing google maps, and you should be redirected to the geoblogging site for that location.

I also wrote another bookmarklet that is based on one listed at http://libgmail.sourceforge.net This one when selected on a google maps page, will display the longitude and latitude coordinates of the current location on the page. Unlike the other version, this one doesnt autoupdate all the time, so its a bit quicker to run, though the downside is the center of the map isnt marked so its harder to get an accurate position for your geotags.

javascript:ll=_m.map.getCenterLatLng();ll +="";ll=ll.replace(/\)/g,"");ll=ll.replace(/\(/g,"");llarr=ll.split(', ');void(document.getElementsByClassName('title')[0].innerHTML='geo:lat='+ llarr[1] + ' ' + 'geo:lon=' + llarr[0]);


UPDATE Ive updated the GreaseMonkey scripts, see GeoTagging Flickr with GoogleMaps PART 2 for more details.

May 03, 2005

GenieTexter now supports sending SMS to landlines :D

I just discovered that its possible to send SMS to landlines via GenieTexter, i knew it was possible from mobile phones in the UK for a good while now, but only just found out its possible to do it via GenieTexter. At present the only scripts I know for sure that allowing txting landlines are Orange Free + Orange Pay. I have a feeling the T-Mobile UK and the O2 Pay scripts should support this feature too.

In order to send an SMS to a landline via GenieTexter you need to enter the number in international format eg if the number you wanted to send to was 0208 123 1234 you would need to enter +442081231234 (obviously that would be a UK number as thats got the UKs international code.

Posted by steeev to GenieTexter at 06:30 PM | Permanent Link | | Comments (0)

May 01, 2005

Flickr Time Machine - Go back in Time with Flickr

I wrote a Flickr Time Machine application, its pretty basic, just searches on a year, and returns the pictures on flickr that have been tagged with that year, you can only go back in time of course, it would be cool if you could go forwards but not possible hehe ;-)

Flickr Time Machine

Of course it could do with some refinements, such as search by date photo was taken or date range searching and date and tag searching, i might try and improve the code one day when i get some time.

Posted by steeev to Flickr at 11:30 AM | Permanent Link | | Comments (0)