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

Notifications

Announcements

Community site session details

Community site session details

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

Substitute Decimal for Latitude, Longitude

(0) ShareShare
ReportReport
Posted on by

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
    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
    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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard