Skip to content
Browse files

Actually sort by distance!

  • Loading branch information...
1 parent 052774d commit 5837301574ccb6c02e7f0f9e06b03d4bca0f174e @palfrey committed Jul 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 vamrequest.py
View
2 vamrequest.py 100644 → 100755
@@ -20,7 +20,7 @@
else:
lat = float(form.getfirst("lat", "0"))
lon = float(form.getfirst("lon", "0"))
- url = "http://www.vam.ac.uk/api/json/museumobject/search?latitude=%.6f&longitude=%.6f&radius=50"%(lat, lon)
+ url = "http://www.vam.ac.uk/api/json/museumobject/search?latitude=%.6f&longitude=%.6f&radius=50&orderby=distance"%(lat, lon)
data = urlopen(url)
print data.read()

0 comments on commit 5837301

Please sign in to comment.
Something went wrong with that request. Please try again.