Difference between revisions of "Hitchwiki:Maps"

From Hitchwiki
Jump to navigation Jump to search
m
 
(123 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Image:Maps_Badge.png|right]]New Maps will be published soon. There still are some bugs and testing to be done, so:
+
== Hitchmap.com ==
  
===[http://yoshi.mega2000.de/~simison/maps.hitchwiki.org/?page=beta Go ahead, try it!]===
+
[[User:Bob-|Bob]] built [[:hitchmap:|hitchmap.com]]. Anyone can add new spots! Around 50 new spots have already been added. Data is open, download link's in the bottom right corner.
  
You can do what ever you want to - try to crash it! Database will be reset afterwards.
+
Source code is at https://github.com/bopjesvla/hitch
  
[http://github.com/MrTweek/maps.hitchwiki.org/ Sources @ GitHub]
+
Active discussion on the {{matrixchat}} in November 2022.
  
=Comments=
+
== Heatchmap ==
''So how did you like it?'' You can also comment [http://www.facebook.com/posted.php?id=133644853341506&share_id=167990209881312&comments=1#s167990209881312 on Facebook].
+
Using the data from the Hitchwiki-Map, there was one (the first) published for Europe [https://www.reddit.com/r/MapPorn/comments/bwf35p/hitchhiking_map_with_the_average_waiting_times_of/ on Reddit] in 2019 using the following method [https://abelblogja.wordpress.com/average-waiting-times-in-europe/ method].
  
  
 +
== Useful pointers ==
  
=Bugs=
+
* https://hitchwiki.org/dumps
'''Go and hunt 'em! And list them to here if you find any.'''
 
  
* Translations don't work in Hitchwiki server
+
* Store hitch spots on OpenStreetMap? https://wiki.openstreetmap.org/wiki/Proposed_features/Hitchhiking
  
* JS doesn't find where orange cursor is on 2nd attempt when adding new place
 
**1) Click add place
 
**2) JS finds coordinates and gives you an address for the place where cursor is
 
**3) Close adding place
 
**4) Click again add place
 
**5) Now it doesn't find
 
  
* "Hitchability: Unknown • (1 vote)" - and what is this one vote in here then?
+
== To do ==
  
* Dragging'n'dropping orange "add place" -cursor gets disabled randomly(?)
 
  
* When adding place as an event, popup calendar of date-inputs can go too much to the right and cut out from the screen
+
=== embedded maps on hitchwiki ===
  
* Country names in some languages needs some fixing
+
Would be nice to get this working again:
  
* Text area width can cut out with some browsers (Linking -popup)
+
<map lat='47' lng='1.5' zoom='5' view='0' height='320' country='France'/>
  
* You can open same card multiple times
 
  
* Cards don't close when opening new page
+
=== offline usage ===
  
* When opening a place with lots of comments (eg. [http://yoshi.mega2000.de/~simison/maps.hitchwiki.org/?place=3266 place 3266] ), the page might be too high and scrolls down a bit. At least with opera mac.
+
App that downloads the spots so you can use it offline.
 
+
Ideally also the whole of hitchwiki, of course.
* Serbia and some other orange countrybubbles go under Ghana, Africa. Some problems with coordinates in DB I guess.
 
 
 
* Links: Link for Hitchwiki always contains View=0, should be standard View=3 :)
 
 
 
=TODO=
 
 
 
* Connect userlogin to the mediawiki login
 
** http://www.mediawiki.org/wiki/API:Login
 
** See lib/mediawiki_login.php - started something, but not connected to any functionality
 
** Combine with lib/login.php and /logout/ ?
 
 
 
* More map layers (openlayers supports them, but it's been a bit tricky to get them to work properly)
 
**Google Satellite
 
**Google Maps
 
**MS Virtual Earth (they've got more roads for some countries compared to Google/OSM)
 
**(Yahoo?)
 
 
 
* Widget [http://yoshi.mega2000.de/~simison/maps.hitchwiki.org/widget.php]
 
** /widget.php -> /widget/ - just nicer
 
** Show area by country
 
** Show link to the big map (permalink)
 
** Don't show empty description bubbles (show "write a description" instead)
 
 
 
* Download
 
** Downloading KML-format files from Download
 
** Zipped downloads (gzm)
 
** Count of markers in the world
 
** Count of markers in the visible map area
 
 
 
* FB-connect
 
** Usually makes a big difference on login amounts
 
*** Better: [http://www.mediawiki.org/wiki/Extension:FBConnect FBConnect on hitchwiki] and use hitchwiki creds
 
 
* Spam protection
 
** We're already saving IP's and timestamps
 
 
* Allowing users to write translated descriptions HTML/JS mostly done, just API backend TODO.
 
 
 
* Allow users to edit descriptions
 
 
 
* Clickable usernames around the site
 
 
 
* Pagination for comments, users etc.
 
 
 
* <del>Not neccessarily a bug,</del> but setting ''Show markers after zoom level'' to ''1 - Contintent'' level is not really helpfull except if you try to crash it
 
** Yea, true, that's useless functionality. Though it's kinda cool how openlayers can manage over 3000 markers on the map and still it runs surprisingly easily on my browser. Google Maps can't handle even 300 markers without serious struggle. This, anyway, isn't too high prio. change to do. -[[User:Mikael|Mikael]] 10:53, 15 October 2010 (CEST)
 
 
 
* Internationalizing: enable right-to-left languages in CSS/headers. Enable search with funny languages.
 
 
 
==Ideas==
 
 
 
* Using a Google Street view API (check license)
 
 
 
* Showing [http://www.panoramio.com/ Panoramio] images
 
 
 
* Showing photos added to Hitchwiki
 
 
 
* Adding photos to a place?
 
 
 
* Show links to infopages about public transportation in city
 
 
 
* If using FB-Connect, why not OpenID like on hitchwiki? :)
 
** I know only how to implement FB-connect. But sure OpenID also. ;-) Anyway we need to look how we'll do this, maybe allowing registerations trough MediaWiki would be the best solution and then just using user-db for extra settings in Maps. -[[User:Mikael|Mikael]]
 
*** Yeah, I think it's easier to stick to one user db. [[User:Guaka|guaka]] 19:37, 13 October 2010 (CEST)
 
**** Got any spare time to look into a MediaWiki login api? ;-) Should be easy to integrate. -[[User:Mikael|Mikael]] 20:29, 13 October 2010 (CEST)
 
 
 
* Pull data from Maps to the Wiki: public transportation, images, statistics...
 
 
 
* click on the number of places in the country = zoom in to this country
 
**I was gonna do this already before, but didn't figure out how to seperate events "select marker by click" and "select on hover". So it's gonna be either one. Now I prefer to show bubbles. -[[User:Mikael|Mikael]] 00:37, 16 October 2010 (CEST)
 
 
 
* may be a good idea not to calculate the average of waiting times for each spot, but to calculate the median to normalize extremes. don't know if this is possible and if you save all values on the database or just average and number of votes...
 
** It now simply returns an average from all saved waitingtimes, so that 15m + 5min + 4h returns 1h 27min. But there's a log you can check for details (click "x experiences"). If anybody can come up with better logic for this, lemme know. -[[User:Mikael|Mikael]] 12:50, 15 October 2010 (CEST)
 
 
 
* being able to add to / edit markers so we don't have to create a new marker for the same place if we wan't to add info - sure that's somewhere already, but couldn't find it.
 
 
 
* just for reasons of patting one's own arse: would be cool if one could show the markers they added themselves - and no others.
 
 
 
=TODO History =
 
 
 
* Move ajax-called .php's to their own directory from /lib/ - it's a bit messy now when everything is there. Maybe /lib/ajax/
 
** Maybe just /ajax/ - then /lib/.htaccess can have <tt>deny from all</tt>. [[User:Guaka|guaka]] 15:44, 15 October 2010 (CEST)
 
***Done.-[[User:Mikael|Mikael]] 20:09, 15 October 2010 (CEST)
 
[[Category:Project:Hitchwiki Design]]
 
 
 
* Russian bubble appears somewhere in the far middle-of-nowhere east of the country, whereas 99% of spots are located at the European part of Russia. Maybe possible to manually set this bubble to appear e.g. near Moscow?
 
** Moved it to near [http://en.wikipedia.org/wiki/Nizhny_Novgorod Nizhny] -[[User:Mikael|Mikael]] 13:26, 16 October 2010 (CEST)
 
 
 
* Loading animation when changing public transport catalog -country?
 
 
 
* Country mouse hover popups look funny (update local graphics for openlayers?)
 
 
 
* Clicking in Statistics on a city name (e.g. Victoriaville, most spots!) search doesn't find it. Same with other cities.
 
**Yeah, Geocoder is now broken, couldn't handle url-timeouts. Making it now much better... –[[User:Mikael|Mikael]] 18:27, 16 October 2010 (CEST)
 
***Fixed it. Now it's super cool and moves to next service if one is down or fails to give a result. =) -[[User:Mikael|Mikael]] 00:21, 17 October 2010 (CEST)
 
 
 
* Allow deleting your own waitingtimes
 
 
 
*Waiting time: Well, max 4 hours of waiting seems optimistic, but there is a spot where I waited (3 times) between 8 and 10 hours. How to add these? If I choose 4h, travelers might be disappointed ;) It might be more useful to find a better way to add time, maybe a box that clearly gives the hitchhiker the possibility to choose ''hour'' and ''minutes'', though that can be more difficult than just picking a number of out a box. --[[User:Platschi|Platschi]] 11:34, 16 October 2010 (CEST)
 
**Of course people can still express themselfs in comments / rating. I was thinking to add same kind of distribution image about timings than there's about votes. -[[User:Mikael|Mikael]] 15:55, 16 October 2010 (CEST)
 
***Came up with something: combining both easy select and free-inputs. :-) Now there's "other" option in dropmenu and it allows you to put in timing in hours+minutes. -01:05, 18 October 2010 (CEST)
 

Latest revision as of 13:37, 28 March 2023

Hitchmap.com

Bob built hitchmap.com. Anyone can add new spots! Around 50 new spots have already been added. Data is open, download link's in the bottom right corner.

Source code is at https://github.com/bopjesvla/hitch

Active discussion on the Matrix chat in November 2022.

Heatchmap

Using the data from the Hitchwiki-Map, there was one (the first) published for Europe on Reddit in 2019 using the following method method.


Useful pointers


To do

embedded maps on hitchwiki

Would be nice to get this working again:

<map lat='47' lng='1.5' zoom='5' view='0' height='320' country='France'/>


offline usage

App that downloads the spots so you can use it offline. Ideally also the whole of hitchwiki, of course.