Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
stevemccall1
Frequent Visitor

OSRM - Sending an API single request with values from multiple rows

Hi,

 

I'm working with a local OSRM instance to query a large amount of booking data to get travel time between the resouce location and destination.  This works fine with a small amount of data (around 1 week) but anything over a month takes a long time and usually ends in a timeout or failure.  I'm pretty sure the API is throttling / failing once it hits a certain number of requests.

 

I've been looking at the OSRM documentation and it appears there is a table service that allows you to send multiple pairs of coords in a single request.  I'm thinking this might be the way around it.  OSRM API Documentation (project-osrm.org)

It is possible to somehow make a call in this fashion from Power Query, that will be refreshable in the PowerBI service?  I don't really know where to start

1 REPLY 1
lolujubril
New Member

One method is using the python and R integration in power query to wrangling the data using R or Python code. 

 

There's a package in R called osrm that has functions that make it easier

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.