Delhi's longest bus route, Himachal Pradesh, counting POIs, and whom does OSM help?
Posted by contrapunctus on 18 August 2018 in English. Last updated on 20 August 2018.I havenāt written a diary entry in a while, so this oneās like a mash-up of multiple entries š Bear with me.
A week or two ago, I set out to survey a bus route that has long intrigued me - the āOuter Mudrika Serviceā aka āą¤¬ą¤¾ą¤¹ą¤°ą„ ą¤®ą„ą¤¦ą„ą¤°ą¤æą¤ą¤¾ ą¤øą„ą¤µą¤¾ā, or āOMSā for short. Like all āMudrikaā buses, it takes a circular route - but in this case, a big circle of Delhi. As of the 6th of August, I had mapped it as serving 84 stops - the average bus route serves at most 40, and this was not even itās final formā¦I mean, Iād only mapped around half of it š
The survey turned out to be more grueling than I had anticipated. OMS starts and ends at Uttam Nagar, so I headed there (also by OMS, adding stops along the way I had missed in the night the last time). At Uttam Nagar Terminal, though, hardly anyone seemed to know exactly where to board it. I stood around an hour, not daring to sit lest I miss it when it comes (the fact that itās a somewhat low-frequency route didnāt help). Figured Iād eat my packed lunch, but the place had an abundance of flies. Twice I walked between the terminal and the first bus stop where I suspected Iād actually find it, almost a kilometer away.
On the second time, at around 16:00 hours, I actually succeeded in boarding one. Wasnāt ideal - it would terminate halfway through, at Anand Vihar. Better than nothing, I figured.
Turns out, it was a blessing in disguise. Not only was even half of its route fairly long (particularly when youāre hungry and tired from standing so long! [1]), some manner of procession near Burari brought it to a halt at the apex of a flyover for some fifteen minutes. Atleast I got to eat š By the end of it, my phone was running low on juice and I myself was thirsty and out of water. Called it a day at Anand Vihar and took a Metro back home.
Fortunately, the rest of the route was already mapped, albeit based on sightings and deduction. The result was 63 new bus stops, and Delhiās longest mapped bus route, serving over 160 stops - relation/8062453
Some time ago I went on a trip to Himachal Pradesh. Seeing the state of the map there - particularly the roads - has given me a lot more work to do. I recorded GPS traces for unmapped roads, but I resolved to improve the accuracy of (the very roughly mapped) existing roads first - not realizing how much work that is. Enough to carry on for months š
(ThorstenE in #osm mentioned spline support for OSM. That would be amazing, and would elegantly reduce all this work by multiple orders of magnitude š)
Iāve counted how many bus stops Iāve added, and now I happened to wonder how many POIs Iāve added in general, soā¦
type:node and https://wiki.openstreetmap.org/wiki/Key:(shop or https://wiki.openstreetmap.org/wiki/Key:amenity or https://wiki.openstreetmap.org/wiki/Key:leisure or https://wiki.openstreetmap.org/wiki/Key:public_transport) and user:contrapunctus in India (hope I havenāt missed anything major) tells me Iāve added a total of 2301 POIs in India
Of these 5 are in Ahmedabad, 8 are between Delhi and Chandigarh, 271 are between Chandigarh and Himachal Pradesh, and 2,017 are in Delhi.
These include -
- 920 bus stops
- 168 fuel stations
- 134 public toilets
- 111 ATMs
- 102 banks
- 65 restaurants
- 60 places of worship
- 51 fast food joints
- 34 cafes
- 32 convenience stores (or departmental stores, as we call them here)
- 28 schools
- 26 clothing shops
- 24 chemists
- 21 dustbins
- 20 dairy stores
- 16 salons
- 14 car dealerships
- 11 dentistās clinics
- 10 car repair shops
- 9 each of benches, gyms, and taxi stands
- 7 each of alcohol shops and ice cream parlors
- 5 each of bakeries, clinics, kindergartens, and police stations
- 4 each of bookshops, drinking water, and embassies
- 2 bus stations
Hard to believe - have I really added so much already? Of course, I admit that these are really just the tip of the icebergā¦
Iāve often been asked by people who are close to me and know of my OSM work - who uses OSM? Does your mapping help anyone? Itās hard to ingrain the infinite value of open data in their minds, but a more interesting answer has slowly been emerging - me! It helps me.
On our road trip to Himachal, I had tried to map as many fuel stations on the way to Janjehali. On the way back, when our car was running low on fuel [2], I was able to know exactly how far away we were from the nearest fuel station. The patchy data coverage there didnāt deter the sole user of OsmAnd offline maps in the group, either.
When I need to know what Metro exit I need to take, taking a look in OsmAnd is easier than consulting the signs. (Google Maps doesnāt have this, AFAIK.)
When I went to a bank which I thought was on street A but happened to check OsmAnd and realized in time that it was on street B.
Google Maps itself has failed me many times - telling me thereās a swimming pool for what turned out to actually be a pond in a park, telling me thereās a chemist 3 kilometers away from where it actually was, and other such comical moments.
And while OSM doesnāt yet have the POI-completeness to match, itās already exceeding my own memoryās record of local knowledge - storing and reminding me of things Iāve long mapped and forgotten. All it needs - as far as Iām concerned - is
- multi-modal PT routing, real time traffic information, snappier performance, and better search in OsmAnd,
- (not so importantly) the ability to modify tags of ways and areas in OsmAnd, and
- support for Bezier curves/splines in the database. [3]
Lastly, I now seem to have hit the 700 changesets mark. Yay me. š
[1] I tend to not sit when surveying a bus route - the seats in the main, low-floor cabin are all reserved for women or the elderly or persons with disabilities, and if I sit in the high-floor rear section, I often miss the names at bus stop signs.
[2] the only way to get fuel in Janjehali is through the āblack marketā, which is neither cheap nor assured of purity
[3] Of course, bigger adoption in India would be nice, tooā¦
Discussion
Comment from SK53 on 19 August 2018 at 19:53
Great post. This bit is oh so true āme! It helps me.ā
Comment from contrapunctus on 20 August 2018 at 09:12
Thanks, SK53!
Also, I realized since the time of writing that using
... user:contrapunctus in India(atleast in JOSM) downloads not only objects I created, but also those I merely modified. So the numbers are probably inflated a bit. Welp.Comment from SK53 on 20 August 2018 at 09:21
Now you are entering the murky realms of wrangling OSM History files. I started a month ago and am still finding irritating bugs & unwarranted assumptions in how I process the data.
Comment from Polyglot on 20 August 2018 at 15:20
Wow, that is an amazing job! I downloaded the relation, with the plan to see if anything could be improved using the PT_Assistant plugin, but the ways are fully continuous, the stops are all in the order the ways are traversed. No oneway roads traversed against the flow. Wonderful!
Comment from Polyglot on 20 August 2018 at 17:40
Hi Contrapunctus,
I used new functionality in PT_Assistant to conveniently add the ways that seemed to be missing for the other direction of travel of that bus.
I didnāt upload it, as I canāt be sure that the bus does the full itinerary in the opposite direction as well, but feel free to try it out for yourself!
https://www.youtube.com/watch?v=P_7D7Gffccw
Jo
Comment from contrapunctus on 22 August 2018 at 19:11
Thanks, Polyglot! Honored to hear such praise from a veteran mapper like you. ^_^
That routing helper function looks like great fun! I gave it a shot myself - takes out a lot of the āCtrl-click -> add to relationā stage of the work, speeds it up quite a lot. Has a few rough edges, I suppose itās in early days yet.
This gave me the idea - itād be really cool to be able to just give it a GPS trace, and let it add ways and stops based on that. Thatād really make the job a breeze! š All thatād be needed after that would be a review. Or, when a GPS trace isnāt available, to just specify the first stop+way and last stop+way, and it can add ways and stops itself, maybe even offering to split ways where required.
Comment from Polyglot on 22 August 2018 at 23:17
Itās a bit tricky (otherwise it would have been done long ago already), for the itinerary, it just might work. For the stops, not so sure. Iām afraid it would be for a next Summer of Code project, though. What I would like to see now, is that it gets expanded to foot and bicycle route relations.
Splitting the destination way (the coloured ones), is already implemented. Splitting the from way (the white one) isnāt yet. maybe it would be feasible to put it on 8. 9 backtracks, 7 skips that gap. 8 could review the white way for suitable side ways for the mode of transport and propose those in colours, then if one is chosen, split at the appropriate position.
Iāll have to discuss the feasibility with Biswesh over the weekend.
Please tell more about the rough edges. I also encounter some, but maybe you encounter different ones.
Jo