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
Nimesh2kotadia
Regular Visitor

Geocoding using Bing Geocoder in Excel Power Query

I have built a dynamic excel sheet that geocodes adresses present in Input sheet, in A column, and gives results back in a new sheet. I have used power query to connect to bing geocoder api given below. Wierd thing is that when I try less addresses then it gives me results but when I try to give 50+ addresses at a time then it throws credential error (We couldnot authenticate the credentials provided). Is there something I am missing? Been try to solve this since last 2 days. 

 

More content - I am invoking below function on the addresses given in the input sheet. 

 

 

 

let
Location = (address as text) =>
let
url = "http://dev.virtualearth.net/REST/v1/Locations?" & address & "&o=xml&maxResults=1&key=API Key",
Source = Xml.Tables(Web.Contents(url))
in
Source
in
Location

1 REPLY 1
Anonymous
Not applicable

Hi @Nimesh2kotadia 

Based on your description, you may need to process your addresses in bulk, because the web.content has the timeout limit, it specify this value as a duration will change the timeout for an HTTP request. The default value is 100 seconds, or you can change the limeout value. you can refer to the following link. and please check that if it has the limitation of the API response, You can check it in the related Bing document,

https://learn.microsoft.com/en-us/powerquery-m/web-contents#about

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

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.