Convert nominatim data makes calls to Nominatim. In both calls the Json response is converted into a data structure. It may be helpfully to look code involved in those calls.

More than that, the terms of use prohibit the use of services for “[operation of] dangerous businesses such as emergency services or air traffic control, where the use or failure of the Services could lead to death, personal injury or significant property damage.”