OpenStreetMap logo OpenStreetMap

eternaltyro's Diary

Recent diary entries

OSM supports really complex opening times, apparently.

This node, a roof-top bar in Stratford, London is opening on the 20th of April. The following are the opening times per their website:

  • April 20th to April 30th : Thursdays to Fridays 5pm- 11pm, Saturdays-Sundays 12-11pm
  • May 1st- May 14th: Wednesdays to Fridays 5pm- 11pm, Saturdays-Sundays 12-11pm, Bank Holidays 12-11pm
  • May 15th- end of September: Tuesdays to Fridays 5pm- 11pm, Saturdays-Sundays 12-11pm, Bank Holidays 12-11pm

The opening_time value I came up with is this:

Apr 20-30 Sa-Su 12:00-23:00; May-Sep Sa-Su 12:00-23:00; Apr 20-30 Th-Fr 17:00-23:00; May 01-14 We-Fr 17:00-23:00; May 15-31 Tu-Fr 17:00-23:00; Jun-Sep Tu-Fr 17:00-23:00; Oct-Dec off; Apr 20-30 PH 12:00-23:00; May-Sep PH 12:00-23:00

It also helped that there exists a handy tool that can visualise complex opening_time values.

I am looking forward to seeing how OSMAnd handles this when it eventually gets the updated node.

OverpassQL for downloading bus roads and bus stops data into JOSM

Posted by eternaltyro on 2 February 2022 in English. Last updated on 5 February 2022.

Background and context 🗺️

I’ve been using JOSM to map missing public transport routes in Chennai. It’s a project I’ve been doing for personal reasons which I intend to elaborate in another post and I began with iD only to find later that the order of the route segments matter and iD doesn’t make it easy to do reorder segments.

So I started using JOSM with a helper plugin I found. This has made my workflow much easier and faster. One small annoyance though is that I could only download a small section of a fairly large city to edit the map in JOSM. I discovered I could download larger areas if I carefully picked specific ways or nodes since the limitation (to downloading data) is the total size of data that OSM can return.

So I went and searched the web for examples of OverpassQL and their explanations, learned what I could about how the QL works in the time I had and strung together a quick and dirty query that downloads ONLY roads and bus stops within the bounding-box (that I get to easily draw in JOSM).

This probably could be improved for concision. This is the OverpassQL I use to download roads and existing relations in order for me to map bus routes using JOSM’s overpass-based data import dialogue window.


[out:xml][timeout:90][bbox:{{bbox}}];
(
  wr["highway"="primary"];
  wr["highway"="primary_link"];
  wr["highway"="secondary"];
  wr["highway"="secondary_link"];
  wr["highway"="tertiary"];
  wr["highway"="tertiary_link"];
  wr["highway"="trunk"];
  wr["highway"="trunk_link"];
  node["highway"="bus_stop"];
  node["bus"="yes"];
  node["public_transport"="platform"];
  node["public_transport"="stop_position"];
);
(._;>;);
out meta;

This has some nice conveniences for me:

See full entry

Location: Ward 60, Zone 5 Royapuram, Chennai, Tamil Nadu, 600009, India

New NH numbering scheme

Department of Road Transport and Highways (DORTH) published a new numbering system for national highways: Scanned PDF document - 3.3MiB (28th April 2010)

The document reads in English from page #21.

Old numbers: Wikipedia Link

New numbers: Wikipedia Link

References

  1. Ministry of Road Transport and Highways (MORTH) - http://morth.nic.in
  2. Department of Road Transport and Highways (DORTH) - http://dorth.gov.in