The map is a great way to locate hosts. Unfortunately, in some areas (cities often) you need to search a bit to find appropriate or active hosts. A filtered map or faceted search would help a lot. In fact, this would be my number one feature request for WS.
So, I played around with the Warmshowers API and came up with a map where the markers are colorized based on the number of positive feedback for a host.
Live demo: http://geertdedeckere.be/warmshowers/
- It may not be a good idea to only use feedback score as a way to differentiate hosts on the map. This may result in hosting requests being focused solely on those members. Not fair towards new members? Also, other factors, like responsiveness on messages or last login date, could be used to calculate some kind of host activity score.
- Ultimately, it would be cool to add more and customizable filters. Ideas: only show hosts that can hosts at least X persons, or hosts that may offer a bed, etc.
- There is a lot of room for code optimization. I just wanted to get the idea to “work”, a quick and dirty prototype.
- It is very slow, I know. One reason for this is that in order to calculate the feedback score for a host a separate request needs to be sent to the API for each host. Note that I cache the result, so reloads on locations that were loaded before are faster.
- Hosts on exactly the same latitude/longitude are simply printed on top of each other. The host with the highest feedback is shown on top, though. This happens from time to time, mostly in cities. On the original WS map a number is shown linked to a small popup with a list of the hosts. — Update: fixed now.