Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Extracting data from google maps

Featured Replies

Hello

I have calculation to show a google route map in a web viewer container. From this I extract the distance using GetLayoutObjectAttribute. A couple of issues:

1. Is there any way I can freeze the result, as each time I go to record the web page refreshes. 

2. The distance only calculates if the object is visible making it unusable in another calculation or a different layout.

 

In both instances I probably doing something wrong with storage but if I store the result, the calculation stays empty. Any thoughts?

thanks

A stored calculation will recalculate only when one of the referenced fields is modified. You didn't post your calculation, and I am guessing it does not reference any fields. Perhaps you would be better served by a Number field, populated by a script?

  • Author

Hi Comment

As usual I think you are right. - the calculation is referring to the URL 

anyway here is the calculation I am using.

 

GPOcode is the object with the "address of the web viewer" 

 

Let([A=GetLayoutObjectAttribute ( "GPOcode" ; "content");

 
A=Substitute(A;
[Char(13);""];
[Char(10);""]);
 
A=Substitute(A;
["<div class="altroute-rcol altroute-info"> <span>";"¶"];
["</span>,<span>";"¶"]);
A=GetValue(A;2);
A=Substitute(A;"<";"¶")];
GetValue(A;1)
)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.