readme
This commit is contained in:
parent
cf609dbac9
commit
a55632d779
12
geocoder/available-services/README.md
Normal file
12
geocoder/available-services/README.md
Normal file
@ -0,0 +1,12 @@
|
||||
Available Services
|
||||
===============
|
||||
|
||||
### Function
|
||||
|
||||
Can be used to lookup available services by country name. Example,
|
||||
|
||||
```sql
|
||||
SELECT (admin0_available_services(Array['United States', 'ESP'])).*
|
||||
```
|
||||
|
||||
The functions in sql/build_services_table.sql should be run after any postalcode update.
|
@ -1,6 +1,9 @@
|
||||
--CREATE TYPE available_services_v1 AS (q TEXT, adm0_a3 TEXT, postal_code_points BOOLEAN, postal_code_polygons BOOLEAN);
|
||||
|
||||
CREATE OR REPLACE FUNCTION admin0_available_services(countries text[])
|
||||
--EXAMPLE
|
||||
-- SELECT (admin0_available_services(Array['United States', 'ESP'])).*
|
||||
|
||||
CREATE OR REPLACE FUNCTION admin0_available_services(name text[])
|
||||
RETURNS SETOF available_services_v1 AS $$
|
||||
DECLARE
|
||||
ret available_services_v1%rowtype;
|
||||
|
Loading…
Reference in New Issue
Block a user