|
|
Bandwidth: hi / med / low Visit the Surf Shop! |
| Home | Register | CouchSearch! | My Profile | Messages | Groups | Events | Chat67 | Community | Info | Login |
|
|
Big Picture | Participate | Mission | Statistics | Wiki | Contact Us | Ambassadors | Donate | Collectives |
CouchSearchThe statements and opinions on this page are solely those of its authors and do not necessarily represent the official position of CouchSurfing International.
THIS PAGE IS OUTDATED Please see my latest search thing at: www.couchsurfing.com/search.html It recognizes strings like "paris", "nelzon nz", "athens", "greece", "california", "san jose california", etc. This does make the location bug less painful for couchsearch. But if you type, say, "love us", it gives you a list of all US cities named "love" and you have to pick. Right now, the disambiguation list is by state: * Love, Illinois, United States * Love, Texas, United States * Love, Arizona, United States * Love, Kentucky, United States * Love, Mississippi, United States * Love, Virginia, United States Which doesn't work so well if the states are wrong. The search code is in "search.lib", function "search_for_place($string)" returns an array of place objects. Place objects are defined in "place.lib". Places can be cities, states, or countries, and they know how to search for users near or inside them, and how to display themselves, etc. We could use this stuff in other places where traditionally a Region>Country>State>City is entered: editprofile, etc. It works pretty well, and you can feel free to plug it in in other places. --Joe article history edit |
| Help / FAQ | Terms of Use | Privacy | Contact Us |
© 1999-2008 CouchSurfing International Inc. - a Non-Profit Organization 'CouchSurfing' and 'CouchSurfer' are registered and unregistered service marks of CouchSurfing International. - CS Release: Eagle*** *** *** |