Skip to content
Back to formatted view

Raw Message

Message-ID: <57DC18C299094D4299F837570C5DF1C54E8A751CA8@EXWA-MBX01.nexus.csiro.au>
Date: 2011-08-06T02:43:37Z
From: Adrian Baddeley
Subject: Highway Distance matrix

Raphael Saldanha saldanha.plangeo at gmail.com<mailto:saldanha.plangeo at gmail.com> writes:

   > How can I compute a distance matrix of points (citys) based on a highway
   > base map?



The 'spatstat' package has functionality for analysing point patterns on a network of lines.

The function 'pairdist.lpp' will do exactly what you want.



        library(spatstat)

        help(pairdist.lpp)



[NB The current implementation of network analysis in spatstat is temporary and is not suited for very large databases. In a forthcoming version, the network code will be based on the 'igraph' package. ]



Adrian Baddeley