/* A macro to convert an address string into a set of geo coordinates. It accepts five input parameters representing address components and returns the parsed JSON response from the E-UDF. Parameters: - address_line_one: VARCHAR or STRING - First line of address - address_line_two: VARCHAR or STRING - Second line of address - postcode: VARCHAR or STRING - Postcode number - district_name: VARCHAR or STRING - Name of district - state_name: VARCHAR or STRING - Name of state Returns: - VARIANT - A parsed JSON response from the E-UDF, representing metadata from geocoding the address. */ {%- macro address_to_coordinates(masking_pattern, address_line_one, address_line_two, postcode, district_name, state_name) -%} PARSE_JSON(global_function.eudf.echo_address_to_coordinates( '{{var('mask_data_pattern_for_udf')}}', address_line_one, address_line_two, postcode, district_name, state_name )) {%- endmacro -%}