Adapt interface to yaml (WIP)

This commit is contained in:
Rafa de la Torre 2015-11-18 19:04:54 +01:00
parent 716b8dc43e
commit 81356ca92c
2 changed files with 30 additions and 11 deletions

View File

@ -1,10 +0,0 @@
function_name,result_data_type,argument_data_types
geocode_admin0_polygon,Geometry,"country_name text"
geocode_admin1_polygon,Geometry,"admin1_name text"
geocode_admin1_polygon,Geometry,"admin1_name text, country_name text"
geocode_namedplace_point,Geometry,"city_name text"
geocode_namedplace_point,Geometry,"city_name text, country_name text"
geocode_namedplace_point,Geometry,"city_name text, admin1_name text, country_name text"
geocode_postalcode_polygon,Geometry,"postal_code text, country_name text"
geocode_postalcode_point,Geometry,"postal_code text, country_name text"
geocode_ipaddress_point,Geometry,"ip_address text"
1 function_name result_data_type argument_data_types
2 geocode_admin0_polygon Geometry country_name text
3 geocode_admin1_polygon Geometry admin1_name text
4 geocode_admin1_polygon Geometry admin1_name text, country_name text
5 geocode_namedplace_point Geometry city_name text
6 geocode_namedplace_point Geometry city_name text, country_name text
7 geocode_namedplace_point Geometry city_name text, admin1_name text, country_name text
8 geocode_postalcode_polygon Geometry postal_code text, country_name text
9 geocode_postalcode_point Geometry postal_code text, country_name text
10 geocode_ipaddress_point Geometry ip_address text

View File

@ -13,4 +13,33 @@
return_type: Geometry
params:
- { name: admin1_name, type: text }
- { name: country_name, type: text }
- { name: country_name, type: text }
- name: geocode_namedplace_point
return_type: Geometry
params:
- { name: city_name, type: text}
- name: geocode_namedplace_point
return_type: Geometry
params:
- { name: city_name, type: text}
- { name: country_name, type: text}
- name: geocode_postalcode_polygon
return_type: Geometry
params:
- { name: postal_code, type: text}
- { name: country_name, type: text}
- name: geocode_postalcode_point
return_type: Geometry
params:
- { name: postal_code, type: text}
- { name: country_name, type: text}
- name: geocode_ipaddress_point
return_type: Geometry
params:
- { name: ip_address, type: text}