
The new command is close to mqtime, which is in principle also capable to retrieve travel distances and geographical coordinates from addresses. Other existing commands (such as geodist, Picard, 2010) are dedicated to calculate straight line distance between two geographical coordinates. As these definitions make clear, the purpose of the new command is to provide information relevant for socio-economic research. Travel time is how long it takes to drive the latter distance under normal traffic conditions. Travel distance is the number of miles (or kilometers) one should drive by car to join the first point to the second. The command georoute 1 we introduce in this paper allows to retrieve travel distance and travel time between two points defined by their addresses or their geographical coordinates. However, the domain of geocoding is moving fast, and most of these commands are now deprecated (see Huber and Rust, 2016, for a detailed account about which command is obsolete and why).
#Geodist install stata series#
This paper follows a series of publications on the topic of geocoding in the Stata Journal (Ozimek and Miles, 2011 Voorheis, 2015 Huber and Rust, 2016) and several user-written commands available via SSC (Anderson, 2013 Ansari, 2015 Hess, 2015 Picard, 2010 Zeigermann, 2016).

The development of large surveys containing addresses (e.g., of home and work places) has contributed to increasing the need for a systematic way of retrieving distances based on such information. Numerous applications in spatial econometrics also rely on such data. In particular, researchers in energy economics (such as the authors of this paper) might be interested in knowing the travel distance between two places.

1ģ 1 Introduction The demand for calculating routing distance between two geographical points is growing. University of Neuchâtel, Institute of Economic Research, Rue Abram-Louis BregNeuchâtel, Switzerland and University of Applied Sciences Western Switzerland (HES-SO Geneva), Rue de la TambourCarouge, Switzerland. University of Neuchâtel, Institute of Economic Research, Rue Abram-Louis BregNeuchâtel, Switzerland. Financial support from the Swiss National Science Foundation (SNSF) grant N o is gratefully acknowledged. Keywords: Stata, geocoding, travel distance, travel time. Compared to other existing commands, we argue it is simple to use, efficient in terms of computational speed, and versatile regarding the information that can be provided as input. In this paper, we introduce the new command georoute to retrieve travel distance and travel time between two points, defined either by their addresses or by their geographical coordinates. Recently, several Stata commands have been implemented for this purpose (traveltime, traveltime3, mqtime, osrmtime), but most of them went out of order only a few months after their introduction or appear as complicated to use.

This is unfortunately more complicated than it first seems. ** University of Neuchâtel, Institute of Economic Research, Rue Abram- Louis BregNeuchâtel, Switzerland and University of Applied Sciences Western Switzerland (HES-SO Geneva), Rue de la TambourCarouge, Switzerland.Ģ A simple command to calculate travel distance and travel time Sylvain Weber Martin Péclat NovemAbstract Obtaining the routing distance between two addresses should not be a hassle in the current state of technology. 1 University of Neuchatel Institute of Economic Research IRENE, Working paper A Simple Command to Calculate Travel Distance and Travel Time Sylvain Weber* Martin Péclat** * University of Neuchâtel, Institute of Economic Research, Rue Abram- Louis BregNeuchâtel, Switzerland.
