[Xapian-discuss] Geolocation
Andreas Marienborg
andreas at startsiden.no
Fri Oct 17 10:23:49 BST 2008
Hello :)
Has anyone ever done geo-searching with xapian?
My thought for now are like this:
Add the following values to a document
# - (lat + 90) * 1_000_000 (to aleviate float problems)
# - (lon + 180) * 1_000_000 (to aleviate float problems)
Then when a user picks a range we do the same transforms and search as
two ranges with prefix.
Does that sound reasonable? has anyone else done something similar?
should I perhaps in stead write a custom value range class to do this?
- andreas
More information about the Xapian-discuss
mailing list