Hi
Meet the new Swiss Public Transport Map: http://map.xiala.net This is currently just a proof of concept, more features should land in the coming weeks. I'd really like to get some feedback.
Map Tiles are from openstreetmap.org Stations/Stops are from Cloudmade Geocoding API. Timetable Information via SBB API [1] from sbb.ch
Does anybody know of a service to get all nodes of a relation, just like [2] without abusing the OSM API?
[1] http://sbb.xiala.net [2] http://api.openstreetmap.org/api/0.6/relation/88640/full
Beni
On 28. 05. 11 18:55, Beni Buess wrote:
Hi
Meet the new Swiss Public Transport Map: http://map.xiala.net This is currently just a proof of concept, more features should land in the coming weeks. I'd really like to get some feedback.
Map Tiles are from openstreetmap.org Stations/Stops are from Cloudmade Geocoding API. Timetable Information via SBB API [1] from sbb.ch
Does anybody know of a service to get all nodes of a relation, just like [2] without abusing the OSM API?
[1] http://sbb.xiala.net [2] http://api.openstreetmap.org/api/0.6/relation/88640/full
Beni _______________________________________________ talk-ch mailing list talk-ch@openstreetmap.ch http://lists.openstreetmap.ch/mailman/listinfo/talk-ch
Hi Beni, Nice app ! The best and sure way I found to get all ways and their nodes and nodes (and relations too) from a relation is osmfilter [1]. The various instance of Xapi around does not provide enough recursivity for that, nor Osmosis dataset handling. There is another solution with Osmosis on osm xml files directly, using the --used-ways of the 0.39 version [2]. However, it seems to be long compared to osmfilter.
In any case, you'll need to have your own dataset locally. Maybe the easiest way for you is to download the Switzerland extract from geofabrik from time to time [3].
You will find my data update process at [4] for http://www.pistes-nordiques.org. Look at the directory planet_update. I takes ~8hours for extracting all XC trails from a complete planet, so it would be really fast for Swiss data only.
Yves
[1]http://wiki.openstreetmap.org/wiki/Osmfilter [2]http://lists.openstreetmap.org/pipermail/dev/2011-April/022360.html [3]http://download.geofabrik.de/osm/europe/ [4]http://dev-yves.dyndns.org/repository/www.pistes-nordiques.org/www.pistes-no...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi
Yves and Thomas, thank you for the input.
Am Sun, 29 May 2011 08:35:50 +0200 schrieb yvecai yvecai@gmail.com:
The best and sure way I found to get all ways and their nodes and nodes (and relations too) from a relation is osmfilter [1]. The various instance of Xapi around does not provide enough recursivity for that, nor Osmosis dataset handling.
I've used o5mfilter[1] to filter the osm file. It is capable of keeping relations and their members and took just around a minute to filter the switzerland extract for everything related to public transport. Currently I'm filtering planet.osm, seems to take some more time :-)
I've then imported the filtered dataset to a Postgres DB with PostGIS extension using osm2pgsql to be able to select based on a given bbox. Now I'm working on a API to this DB which would make it possible to get Public Transport Nodes/Ways/Relations recursively and based on the new Public Transport Feature with its public_transport relations.
Am Sat, 28 May 2011 20:38:40 +0200 schrieb Thorsten Kurz tkurz@gmx.net:
One more thing: I just saw that in Lausanne the departure time lists for busses and metro the same times show up twice quite often.
I'll look into that.
Oh, and auto-update would be nice. An update every minute for an open popup, otherwise poll fresh data just in the moment when the popup is opened. Or poll more data in the background and synchronise the shown data with the actual time.
this is now done. the data is just polled when mouseover the station circle. then it gets updated every minute.
And while we are at it, browsing into the future would be great too.
I'm at it :-)
And of course a feature to search for a connection to a specific place at a specific time like in http://map.search.ch/
Sure this is on the todo list to. Basic functionality is online.
The problem comes from different rhythms, the local transport runs about every 5-10min, the trains only every 30-60min. Would there be a way to split the local from the regional/national level? Even if they pop up in the same window, but maybe as two columns side by side?
there is a way. i thought about just getting the data for the type of station you click: you get only trains if you click on train station circle (red), only buses for yellow... but having them displayed side by side would also help.
[1]http://wiki.openstreetmap.org/wiki/O5mfilter [2]http://wiki.openstreetmap.org/wiki/Proposed_features/Public_Transport
I tried last week to use your app to get a bus on my Android phone (real life use, I mean). I did not get the overlay. Wonder if leaflet is well supported ?
Yves
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am Sat, 04 Jun 2011 18:17:17 +0200 schrieb yvecai yvecai@gmail.com:
I tried last week to use your app to get a bus on my Android phone (real life use, I mean). I did not get the overlay. Wonder if leaflet is well supported ?
It should be. "Leaflet is a modern, lightweight BSD-licensed JavaScript library for making tile-based interactive maps for both desktop and mobile web browsers" [1]
But I have no Android phone to test it. On a N900 with firefox it works. have you tried recently? I have upgraded Leaflet.
Beni
[1] http://leaflet.cloudmade.com/
On 04. 06. 11 19:06, Beni Buess wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am Sat, 04 Jun 2011 18:17:17 +0200 schrieb yvecaiyvecai@gmail.com:
I tried last week to use your app to get a bus on my Android phone (real life use, I mean). I did not get the overlay. Wonder if leaflet is well supported ?
It should be. "Leaflet is a modern, lightweight BSD-licensed JavaScript library for making tile-based interactive maps for both desktop and mobile web browsers" [1]
But I have no Android phone to test it. On a N900 with firefox it works. have you tried recently? I have upgraded Leaflet.
With dolphin, I don't see the POI overlay, and I'm not able to zoom out. It works on Opera mini, but it is far from optimized for a small screen :)
Yves