Geographic information system

Hey Tim

Tried the block out this evening. Seems to work.

constructive feedback ( i will try):

  • maybe the tooltip for the “distance between block” could state that the distance is in meters (if that is the case?)
  • I don’t know how to do it, but maybe the splitting of a location type into the two (or three if there is an altitude) parts could be a separate function block?
  • Could one maybe make a new position input that would be able to take a list with the two keys lat and long (or even better just two or more keys, in case there is also an altitude in the location)

For those who might also want to try it, I had one bear of a time getting the location type item that i started with into two numbers (one for latitude and one for longitude), but finally i found out that inserting an “inline script” with the code

coord_pair_string = String(location_item_state)

Converts the state to a string, and from there you can split the (now) text string either by selecting sub strings, or by finding the index of the comma and splitting the string by index.
Probably I could also with some trial and error have written an inline piece of code that did the splitting, and outputting to the needed variables, but that was one bridge too far for me at this point in time.

1 Like