jd7h / clothing-swap-route

Generate a route (ordering) of clothing loop participants
0 stars 1 forks source link

Measure the walking distance between two addresses #2

Closed jd7h closed 1 year ago

jd7h commented 1 year ago

Given two addresses in the Netherlands, we can output the walking distance (in meters, kilometers or minutes) between them.

Possible source: geodata from openstreetmap.org.

jd7h commented 1 year ago

We're using the geodesic distance from geopy since 4a88475da1f0c98b6aa553a2c5ea216857880486. This computes the distance 'as the crow flies' (in a straight line from A to B) using the latitude and longitude. This is fine for now, but for real-world walking distances we might want to switch to OSRM routing at some point.