Home  >>  Archives  >>  Volume 17 Number 4  >>  dm0092

The Stata Journal
Volume 17 Number 4: pp. 962-971



Subscribe to the Stata Journal
cover

A simple command to calculate travel distance and travel time

Sylvain Weber
University of Neuchâtel
Institute of Economic Research
Neuchâtel, Switzerland
sylvain.weber@unine.ch
Martin Péclat
University of Neuchâtel
Institute of Economic Research
Neuchâtel, Switzerland
martin.peclat@unine.ch
Abstract.  Obtaining the routing distance between two addresses should not be a hassle with current technology. Unfortunately, this is more complicated than it first seems. Recently, several commands have been implemented for this purpose (traveltime, traveltime3, mqtime, osrmtime), but most of them became obsolete only a few months after their introduction or appear complicated to use. In this article, we introduce the community-contributed command georoute, which retrieves travel distance and travel time between two points defined either by their addresses or by their geographical coordinates. Compared with other existing commands, it is simple to use, efficient in terms of computational speed, and versatile regarding the information that can be provided as input.
Buy

View all articles by these authors: Sylvain Weber, Martin Péclat

View all articles with these keywords: georoute, georoutei, geocoding, travel distance, travel time

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS