cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
9kMan
Resolver I
Resolver I

Bing Maps GetLocationByAddress error

I'm having trouble with BingMaps.GetLocationByAddress. I tried copying an example found online :

BingMaps.GetLocationByAddress({addressLine:"One Microsoft Way"; locality:"Redmond, WA"; countryRegion:"USA"})

, but I get the error "Expected text value" (translated from Norwegian).

 

How do I get the lat/lon for the address "Sykehusvegen 38, 9019 Tromsø, Norway"?

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @9kMan 

The format of the formula to return the latitude and longitude look like this:

BingMaps.GetLocationByAddress({addressLine:"One Microsoft Way"; locality:"Redmond, WA"; countryRegion:"USA"}).point.coordinates.latitude

 

BingMaps.GetLocationByAddress({addressLine:"One Microsoft Way"; locality:"Redmond, WA"; countryRegion:"USA"}).point.coordinates.longitude

 

View solution in original post

3 REPLIES 3
timl
Super User
Super User

Hi @9kMan 

The format of the formula to return the latitude and longitude look like this:

BingMaps.GetLocationByAddress({addressLine:"One Microsoft Way"; locality:"Redmond, WA"; countryRegion:"USA"}).point.coordinates.latitude

 

BingMaps.GetLocationByAddress({addressLine:"One Microsoft Way"; locality:"Redmond, WA"; countryRegion:"USA"}).point.coordinates.longitude

 

View solution in original post

Thank you!

Hi

 

Does this use the Bing Maps Connector ?

 

Which I think is in Preview still.

 

Regards

 

Nigel

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,305)