# ruian_fetch_gps

Name ruian_fetch_gps
Type callback
Version 1.0
Since 2020-01-01

# Prologue

Tries to address details by RUIAN code and adds address fields to defined variable.

If RUIAN code is missing in the input variable, callback is skipped. If GPS coordinates cannot be determined from given RUIAN code an exception is thrown.

# Configuration

events:

	# Event's name
	on_step_start:

		# Callback's name
		ruian_fetch_gps:
			config:

				# Required
				# LPL support
				# Variable containing API connection with user credentials as DSN string
				# For example: https://user:pass@ruian.ispalliance.cz/api/
				connection: "'https://username:password@host'"

				# Required
				# may be scalar or JSON variable, but must be JSON if config.variable is not set
				# if scalar variable, it should contain directly the RUIAN code
				# if JSON variable, it should contain the RUIAN code in "code" field
				code: ruian

				# Required
				# Must be JSON variable
				# "lat" and "lng" fields will be stored to this variable
				coords: position

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26