 Long-distance railways and local tram services were introduced during the colonial era.The first station was built in 1887 by a private railway company, which later became Jakarta Kota station.The trams were replaced with buses in the post-colonial era, while long-distance railways continued to connect the city to its neighbouring regions as well as cities throughout Java.