Difference between revisions of "Hitchwiki:Maps"

From Hitchwiki
Jump to navigation Jump to search
(Further Defects)
(34 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== 2022 ==
+
== Hitchmap.com ==
  
It has been impossible to edit or add points for a long time. Let's fix 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.
  
''' In detail: '''
+
Source code is at https://github.com/bopjesvla/hitch
The current maps implementation uses the deprecated PHP Mysql extension and needs to be replaced. Login and adding locations are therefor not working anymore.
 
  
 +
Active discussion on the {{matrixchat}} in November 2022.
  
-------------
 
  
Below is old stuff, can probably be salvaged in some ways.
 
  
 +
== Useful pointers ==
  
===[http://hitchwiki.org/maps/ Go ahead, try it!]===
+
* https://hitchwiki.org/dumps
* [https://github.com/Hitchwiki/maps.hitchwiki.org Sources @ GitHub] (deprecated)
 
* [http://hitchwiki.org/translate/projects/maps Translating @ GlotPress] (not accessible)
 
  
==Further Defects==
+
* Store hitch spots on OpenStreetMap? https://wiki.openstreetmap.org/wiki/Proposed_features/Hitchhiking
  
<nowiki>*</nowiki> might still be present - deprecated description -> cannot reproduce
 
  
<nowiki>**</nowiki> might still be present - cannot reproduce now
+
== To do ==
  
<nowiki>***</nowiki> might still be present - too undescriptive
 
  
<nowiki>****</nowiki> could be removed - seems to be solved
+
=== embedded maps on hitchwiki ===
  
===Urgent===
+
Would be nice to get this working again:
* Search bar in the top right - "searches" but does not yield results.
 
  
* <nowiki>*</nowiki> Two description edit links, how come? http://hitchwiki.org/maps/?place=8581
+
<map lat='47' lng='1.5' zoom='5' view='0' height='320' country='France'/>
  
* <nowiki>**</nowiki> JavaScript fails loading with some IE versions.
 
  
* <nowiki>*</nowiki> Problems with some city names in DB (eg. [http://hitchwiki.org/maps/?place=6524 6524] Buda�rs)
+
=== offline usage ===
  
* <nowiki>**</nowiki> Searching places: Test with "Malmo, Sweden" and "Malmö, Sweden" how it works - latter is right but ends up to Germany. First one finds right place.
+
App that downloads the spots so you can use it offline.
 
+
Ideally also the whole of hitchwiki, of course.
* <nowiki>**</nowiki> Fixing a waiting time fields in "add a place" -panel. Almost done, needs little fixing. -[[User:Mikael|Mikael]] 21:39, 28 November 2010 (CET)
 
 
 
* <nowiki>***</nowiki> ''What is your place?'' Your place: "› YAHOO-HIRES-20080313 › Lithuania" (in Vilnius)  -woot?? Also "Undefined" as a city sometimes (happened in some smaller places in Thailand).
 
 
 
===Normal priority===
 
 
 
* <nowiki>**</nowiki> 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
 
 
 
* <nowiki>**</nowiki> Dragging'n'dropping orange "add place" -cursor gets disabled randomly (when adding new places)
 
 
 
* <nowiki>**</nowiki> ''Are events still relevant?'' When adding place as an event, popup calendar of date-inputs can go too much to the right and cut out from the screen
 
**Events are hidden currently from public use.
 
 
 
* <nowiki>**</nowiki> ''Not present on Ubuntu Firefox'' When opening a place with lots of comments, the page might be too high and scrolls down a bit. At least with opera mac.
 
 
 
* <nowiki>****</nowiki> Links: Link for Hitchwiki always contains View=0, should be standard View=3 :)
 
** Hmm what do you mean? Where exactly? -[[User:Mikael|Mikael]] 11:21, 22 November 2010 (CET)
 
 
 
* <nowiki>****</nowiki> Browser's Geolocation causes map to not load with Firefox+Opera on Ubuntu:
 
:[23:20] gl0bi: somehow it works only with chrome on ubuntu
 
:[23:20] gl0bi: firefox and opera don't load the map :(
 
:[23:22] gl0bi: it work with firefox on windows but not with ubuntu, any idea what it could be?
 
:[23:24] gl0bi: Error: document.getElementById("fb-root") is null
 
:[23:24] gl0bi: Source file: http://hitchwiki.org/maps/?q=#
 
:[23:24] gl0bi: Line: 113
 
:[23:25] gl0bi: Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMGeoGeolocation.getCurrentPosition]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://hitchwiki.org/maps/static/js/main.js :: fetchlocation :: line 931"  data: no]
 
:* How to solve from clientside: go to you settings with browser that works and opt out from location aware Maps
 
:* Happens when User has disabled geolocation from the browser. Should be easy to solve with one if() ?
 
 
 
* <nowiki>**</nowiki> my long nickname shows incorrect as a two strings, and second string covered by map a bit [[User:Siberian explorer|Siberian explorer]] 04:45, 3 December 2010 (CET):
 
 
 
* <nowiki>****</nowiki> all logotipes in left lower corner laying one on each other - "powered by Google" pic, measure tool and license bla-bla-bla below
 
 
 
===Low priority===
 
 
 
* <nowiki>***</nowiki> ''What is public transport page?'' Fallback english countrynames in public transport -page, if no translated (for a current language) version found.
 
 
 
=ToDos=
 
 
 
===Urgent===
 
* -
 
 
 
===Normal priority===
 
* API & DB: Add to countries and cities 'osm_id' and 'gn_id' for cross referencing to aid with integrating with other sites
 
 
 
* Loading your current place to the sidebar stops loading orange country bubbles.
 
 
 
* Add indexes to rows used in "WHERE" clauses in MySQL-DB. Currently only primary keys are indexed.
 
 
 
* Internationalizing: enable right-to-left languages in CSS/headers.
 
 
 
* Show a "rating color dot" in comments
 
 
 
* Download
 
** Download in KML-format (published already, but needs some more work)
 
** Download in GPX-format
 
** Zipped KML downloads (GZM)
 
** Printable
 
*** Build just a basic printable HTML page and allow downloading it as pdf using [http://code.google.com/p/wkhtmltopdf/ wkhtmltopdf]
 
** Count+download of markers in the visible map area
 
 
 
* Better event log
 
** RSS-feed with comments? Or "follow the place"-link for logged in users => a combined RSS feed from these places?
 
 
 
* Clickable usernames around the site
 
 
 
* Pagination for comments, users etc.
 
 
 
* just for reasons of patting one's own arse: would be cool if one could show the markers they added themselves - and no others.
 
 
 
* Minify JS/CSS
 
** Started doing this, still buggy, not published
 
 
 
* Allow SYSOPs and higher to somehow merge multiple dots for the same location (e.g. Raststätte Michendorf, to name one of many) [[User:Prino|Prino]] 20:50, 30 November 2010 (CET)
 
 
 
=== Low priority===
 
* Spam protection
 
** We're already saving IP's and timestamps
 
 
 
* <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)
 
 
 
* Fixing yahoo/bing -map layers.
 
 
 
==Ideas==
 
 
 
=== Maybe? ===
 
 
 
* 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?
 
 
 
* Pull data from Maps to the Wiki: public transportation, images, statistics...
 
 
 
* Save your trips to Maps: automaticly grab data from various sources (eg. Google Latitude)
 
 
 
* Show statistical data over maps with color layers (hitchability, amount of places, amount of hitchability-rates for the country...)
 
 
 
* Make it possible to connect waiting times with a direction ... since some spots have waaay different waiting times for different directions
 
 
 
=== Hmm, maybe not? ===
 
* 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)
 
 
 
* 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)
 
 
 
= TODO History =
 
 
 
* "Hitchability: Unknown • (1 vote)" - and what is this one vote in here then?
 
 
 
* "Anonymous" is a link to user's own profile on "waiting times" -list. (todo: Remove link if no user-ID)
 
 
 
* 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)
 
 
 
* 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 waiting times
 
 
 
*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 themselves 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)
 
**** Why not produce a histogram like with the ratings? [[User:Prino|Prino]] 20:47, 30 November 2010 (CET)
 
 
 
* Show links to infopages about public transportation in city
 
 
 
* Enable search with funny languages.
 
 
 
* More map layers (In demo: OSM + Google)
 
** OSM
 
** Google
 
** MS Virtual Earth (they've got more roads for some countries compared to Google/OSM)
 
** Yahoo
 
 
 
* Translation of strings in JS-files
 
 
 
* Opt-in yahoo/bing -map layers & selecting default layer.
 
 
 
* 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
 
 
 
* Connect userlogin to the mediawiki login
 
 
 
* 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 registrations 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)
 
 
 
* Translations don't work in Hitchwiki server
 
 
 
* "Added by Mikael —" -date missing.
 
 
 
* Country names in some languages needs some fixing
 
 
 
* Serbia and some other orange countrybubbles go under Ghana, Africa. Some problems with coordinates in DB I guess.
 
**[23:50] MrTweek: in the db, the coordinates are 0,0
 
 
 
* Alphabetical listing of countries (in different lists) by (translated-)name, not country iso-code.
 
 
 
* Something wrong with top countries -listings
 
** ksort broke it :P
 
 
 
* Allow users to edit descriptions
 
 
 
* Allow users to write translations for descriptions
 
 
 
* Widget [http://hitchwiki.org/maps/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)
 
** Mediawiki plugin (replace old one)
 
 
 
[[Category:Tech]]
 
[[Category:Project:Hitchwiki Design]]
 

Revision as of 15:55, 20 November 2022

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.


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.