This week we are public testing version 3 of Unlock – a fairly deep rewrite including a new simpler API and some more geometrical query functions (searching inside shapes, searching using a buffer). New data – providing a search across Natural Earth Data, returning shapes for countries, regions, etc worldwide. So at last we can use Natural Earth for search, and link it up to geonames point data for countries. We also have an upgraded version of the Edinburgh Geoparser so have date and event information as well as place-name text mining, in Unlock Text.
The new search work is now on our replicated server at Appleton Tower and in a week or two we’ll switch the main unlock.edina.ac.uk over to the new version (keeping the old API supported indefinitely too). Here are notes/links from Joe Vernon. If you do any testing or experimentation with this we’d be very interested to hear how you got on. Note you can add ‘
format=txt‘ to get a csv, etc.
NATURAL EARTH GAZETTEER
DISTANCE BETWEEN TWO FEATURES
Distance between Edinburgh and Glasgow (by feature ID):
SEARCHING WITHIN A FEATURE – ‘SPATIAL MASK’
United Kingdom’s feature ID is: 14127855
Searching for ‘Washington’s within the United Kingdom…
Also, note the difference between searching for within the bounding box of the UK, or adding the ‘
realSpatial‘ parameter, which uses the polygon of the feature concerned.
In this case, it picks up entries in Ireland if using the bounding box rather than the UK’s footprint.
SPATIAL SEARCHING WITH A BUFFER
8 hotels around the Royal Mile
FOOTPRINTS & POSTCODES
IMPLICIT COUNTRY SEARCHING
http://geoxwalk-at.edina.ac.uk/ws/search?format=txt&gazetteer=geonames&featureType=populated place&name=louth, uk
TIME BOUNDED SEARCH (still in development)
Very happy with all this, bringing the Unlock service up to offering something usefully distinctive again, trying to restrain myself from saying (“if X was so easy why don’t we do Y?”)