Does anyone know how to calculate miles between two points in n8n?

Does anyone know how to calculate miles between two points in n8n?

I will receive two addresses via webhook, and need to find some way to be able to measure the distance between these addresses.

Does anyone have any idea how I can solve this?

Hello,

Have a look at this:
http://project-osrm.org/docs/v5.5.1/api/#general-options

1 Like

not sure how the whole thing works and if OSRM handles addresses… however, you can get the coordinates from an address with something like this:

https://nominatim.openstreetmap.org/search?q=135+pilkington+avenue,+birmingham&format=json&polygon=1&addressdetails=1

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.