Determining the distance between two ZIP codes (alternatives to mapdist)

前端 未结 3 1524
遥遥无期
遥遥无期 2020-12-08 05:59

I want to calculate the distance between approx. 100,000 different ZIP codes. I know about the mapdist function in the ggmap package

3条回答
  •  盖世英雄少女心
    2020-12-08 06:30

    This might be trivial, but one completely free option is to use Census ZCTA geography data to get co-ordinates for each zip code, and then calculate Haversine distances (or some similar distance metric) between coordinates.

提交回复
热议问题