In 0.118 my notification automation got broken by the native template introduction.
When disabling native templating in the configuration, it works again flawless.
The script produces a notification to my IOS device with a Title, Message and Map.
With native template active, the title and message come through, the map shows (on the ios device) no map but an error: “Latitude wasn’t found or couldn’t be casted to string”.
How to reconfigure it to work with native templating?
The result’s appearance is what determines its type. This looks like a floating-point number, 50.710413, so that is the type it is assigned.
The problem may be due to the latitude option expecting a string but it gets a float.
As far as I know, there is no way to force a numeric string to be treated as a string and not as a number.
The only way to prevent it from being interpreted as a number is to alter it so it isn’t a pure number (z50.710413). Of course, this isn’t a useful solution in this case because it ceases to be a valid longitude value.
I suggest you open a new Issue in the GitHub repository and provide this as an example to the development team of a situation where automatic type conversion poses a problem.