Skip to content

Puffbox

Simon Dickson's gov-tech blog, active 2005-14. Because permalinks.

2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005

Code For The People company e-government news politics technology Uncategorised

api award barackobama barcampukgovweb bbc bis blogging blogs bonanza borisjohnson branding broaderbenefits buddypress budget cabinetoffice careandsupport chrischant civilservice coi commentariat commons conservatives consultation coveritlive crimemapping dailymail datasharing datastandards davidcameron defra democracy dfid directgov dius downingstreet drupal engagement facebook flickr foi foreignoffice francismaude freedata gds google gordonbrown governanceofbritain govuk guardian guidofawkes health hosting innovation internetexplorer labourparty libdems liveblog lynnefeatherstone maps marthalanefox mashup microsoft MPs mysociety nhs onepolitics opensource ordnancesurvey ournhs parliament petitions politics powerofinformation pressoffice puffbox rationalisation reshuffle rss simonwheatley skunkworks skynews statistics stephenhale stephgray telegraph toldyouso tomloosemore tomwatson transparency transport treasury twitter typepad video walesoffice wordcamp wordcampuk wordpress wordupwhitehall youtube

Privacy Policy

  • X
  • Link
  • LinkedIn
  • 12 Jan 2010
    technology

    Geolocation: getting worse?

    Credit: Roo Reynolds

    About a year ago, I ran a short experiment, with the assistance of the various misguided fools who choose to follow me on Twitter. I was intrigued by the possibilities offered by the geolocation element within Google’s javascript API. With one line of code, you could theoretically make a good guess as to where the user was physically located – and could tailor the page content accordingly. But did the theory hold up?

    The answer – sadly – was no, not really. When it worked, it was brilliant; but all too often, it didn’t work. Some ISPs reported curious results; sometimes it gave an error; some ISPs seemed to block it outright. So my conclusion then was that ‘it’s not really good enough to make meaningful use of’.

    One year later, and I’m working on a few websites for MPs/candidates ahead of the general election. One specific project involves a front-bencher with interests at both local and national level. It would be great if we could show local-level things to people in the constituency, and national-level things to people outside. Had the Google API improved at all?

    Sadly – no. In fact, if anything, it had got worse. Mobile seems to be a particular blackspot: nobody using a phone reported a success. And the various changes in the ISP market don’t seem to have helped. We had people in Leeds and Manchester being told they were in London, and people in Reading being told they were in Glasgow.

    So I’m reluctantly abandoning the work I’d done on automatic location detection. Instead, we’ll show you one view (either ‘local’ or ‘national’) by default, with an obvious method to switch to the other; and will drop a cookie each time you switch, so you’ll see the same view when you return next time.  Not a bad Plan B, really.

    There’s no doubt in my mind, ‘proper’ geolocation is going to be a very big deal – but for the foreseeable future it’ll be dependent on people running the most modern browsing technology. That’s fine for mobiles; but we live in a world where IE6 still refuses to go away. (Actually… according to this source, IE6 is the single most popular browser version out there?!)

    Picture: Roo Reynolds, Flickr

    Response

    1. PaulG
      12 Jan 2010

      What you need is for people who claim they are local to enter some piece of fairly innocuous information which can be checked, I know, their postcode!
      I still use geolocation when taking comments from people, if they dont have a local ‘token’ (cookie) and if they are outside of a fairly wide area, they get challenged to answer a Turing test question.
      Geolocation might still have a role to play because generally can detect users who are not in the UK – to my knowledge.

Proudly Powered by WordPress