4th
10 Danish secrets
Denmark.net have a list of 10 places in Denmark your tour guide will not know about. You can now find them on to.uri.st:
Denmark.net have a list of 10 places in Denmark your tour guide will not know about. You can now find them on to.uri.st:
All the location data for attractions is now in, so when you view an attraction you now get the “region” and the country it is in listed along with it. This info was reverse geocoded via Google, where the region is made up from whatever town level data is available.
Next is to allow this info to be changed if it is wrong without making the edit form too complicated.
I’ve updated the embeddable map so that it doesn’t try to use the standard GMaps popup bubble since the map is often too small to fit the bubble in. It now has a little bar at the bottom that shows the attraction title when you click on one, like the gadget does.
I’ve also added it to the blog sidebar, over there.
It’s been a bank holiday weekend of visiting family and friends, and of Facebook integration. Now I’m not a big Facebook user, but I appreciate that a lot of people are and that it’s a great way to virally spread the news, whatever that news might be.
So I’ve been adding Javascript integration into the site so that you can select to publish your attraction amends to your Facebook feed. I’m still working out some kinks so it’s not live yet.
It’s taken quite a while, the Facebook documentation is notoriously bad, missing a number of key points that’d saved me hours. For example, no where does it say that you can’t run your code from a site with “localhost” as a hostname, as soon as I switched the code to run from another hostname, it started working. I’m not sure why the documentation doesn’t mention this, or why this limitation is in place, surely most developers start out writing code on a “localhost” server.
I’ve hopefully improved performance by loading more data up front with the attraction markers so that you don’t need to request more data just to show the GMap popup bubble. This should make the map feel snappier.
I’ve also removed the expanding bubble, aka, the info window. The info window seemed like a neat idea at the time, a standard GMaps UI element that made sense as a place to show the full information about an attraction. However I still needed the content popup to show other pages, meaning I had two bunches of code for the two different types of information. So I’ve dropped info window so now we just have a single way to show information, via the content popup, making the code smaller and things hopefully simpler from the UI point of view too. Plus, the bubble transitions played havoc with the back button functionality so without it I’ve managed to shop out a whole bunch of nasty complex stuff.
AOTD appears to be kinda working, although it’s odd that Gallery 46 has shown up in FF and Reader but not in the Twitter stream
So I had this idea. The stats pages are great but they show you the stats for a lat/lng bounding box, meaning that my stats for an area will be different from your stats for it since we will have different view sizes, different origins and different bounding boxes. So the idea was that for the stats page, rather than use a bounding box, I’d reverse geocode the origin, get the location as a text string of the country and administrative area (posh term for town) and use that to find all the attractions (and thus stats) within that area.
Sounded like a sound plan, until I tried to reverse geocode all 44,000 attractions in the database and hit on Google’s usage quota. Not that that in itself is a problem, but thinking of the future, I don’t want to build something that relies on using a service that might run out of quota, cos then no one gets their stats until the next day.
So that stats are staying as they are for now. I might make it so that the bounding boxes snap to a larger grid or something in the future, I’ll have to think about it some more.
I am however still going to reverse geocode all of the attractions, just over a number of days to keep Google happy. This data will be stored and used to display on each attractions page just so that you know where it is and so that you don’t confuse all the St Mary’s Churches that there are out there (and I’m sure it’ll have some other future uses).
I’ve just added and turned on an Attraction of the Day auto-tweeter to post a random place every day to this stream
With the Easter bank holiday coming up next weekend, the Telegraph have a top 50 list of attractions in the UK.
So, since we’re about putting attractions on the map, here’s a quick to.uri.st map of some of the listed attractions: