[ckan-dev] Spatial search via action api

Adrià Mercader adria.mercader at okfn.org
Mon Jul 29 15:04:25 UTC 2013


Hi David

On 15 July 2013 17:26, Fawcett, David (MNIT) <David.Fawcett at state.mn.us> wrote:
> payload = {"extras":{"ext_bbox":"-100,49,-99,50"}}
> r = requests.get("http://my.uri/api/3/action/package_search", data=payload, headers={'content-type': 'application/json'})

This syntax is intended for POST requests, so you should use
requests.post with this payload.

Starting from CKAN 2.0.1 you can use the parameter in a GET request as
well, in the following form:
http://my.uri/api/3/action/package_search?ext_bbox=-100,49,-99,50

Adrià




More information about the ckan-dev mailing list