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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.