web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Substitute Decimal for...
Power Apps
Answered

Substitute Decimal for Latitude, Longitude

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, 

 

I want to use bing maps in my power app. By using GPS i get the Latitude and Longitude with a "," Seperator. 

Bing maps can not use this information. I have to delete the coma and substitute it with a dot. Only if i do this i get a map in power apps. 

 

Can someone tell me please how to change the settings to get coordinates with Decimalseparator "."

 

I use the following function to get the Latitude and Longitude:

 

If(tglGPSLocation.Value;Location.Latitude&","&Location.Longitude;" ")

 

Thanks

 

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Can you try

    If(tglGPSLocation.Value;Location.Latitude&"."&Location.Longitude;" ")

    I am assuming this didn't work for you. So can you try:

    Substitute(If(tglGPSLocation.Value;Location.Latitude&","&Location.Longitude;" "), ",",".")

    Let me know if this helps.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your suggestion. 

     

    In my function i get the coordinates, but with the wrong decimal separator.

     

    Your suggested function does not work in my case. With your function I do not get any coordinates.

     

    Thanks

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Did you try both the suggested solutions?

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, i try both. 

     

    The first one only change the comma between Latitude and Longitude in a dot.  But here I need the comma.

     

    The second function does not work. 

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Sorry may be I am confused by this:
    "Bing maps can not use this information. I have to delete the coma and substitute it with a dot. Only if i do this i get a map in power apps."

    And then this:
    "The first one only change the comma between Latitude and Longitude in a dot. But here I need the comma."

    I thought you wanted the comma to be replaced with a dot. Is that not true?

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    sorry for the confusion. 

     

    When i am using the function I get the coordinates e.g. (52,8888,12,34565). 

    The first part is the Latitude(52,8888) Bing maps can not show me this coordinates on the map because it needs a data without the coma, but with a dot (52.888). 

    The second part is the Longitude(12,34565). Here it is the same problem.

    But between this to coordinates it must be the comma. 

    In result the data must have the form: 52.8888,12.34565

     

     

     

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Got it, makes sense.

    Try this:

    If(tglGPSLocation.Value;
    Substitute(Location.Latitude,",",".") &
    ","
    &
    Substitute(Location.Longitude,",",".");" ")

    Let me know if this helps.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It does not work.  I do not get any values.

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    I believe I may have understood the issue. Can you please try one more thing?

    If(tglGPSLocation.Value;
    Substitute(Text(Location.Latitude,",","."))
    &
    ","
    &
    Substitute(Text(Location.Longitude,",","."))
    ;" ")

    Let me know if this works.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your help. 

     

    Sadly it still does not work

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard