Update API.md
This commit is contained in:
16
doc/API.md
16
doc/API.md
@@ -3,15 +3,27 @@
|
|||||||
### Overview
|
### Overview
|
||||||
### Quickstart
|
### Quickstart
|
||||||
### General concepts
|
### General concepts
|
||||||
#### Auth?
|
|
||||||
#### Errors
|
#### Errors
|
||||||
|
Errors will be described in the response of the geocoder request. An example is as follows:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
error: [
|
||||||
|
"function geocode_countries(text) does not exist"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Due to the fact that the Geocoder API is used on top of the CartoDB SQL API you can check the [Making calls to the SQL API](http://docs.cartodb.com/cartodb-platform/sql-api/making-calls/) section to help you debug your SQL errors.
|
||||||
|
|
||||||
|
### Pre/post conditions
|
||||||
|
|
||||||
#### Possible side-effects
|
#### Possible side-effects
|
||||||
|
|
||||||
For each function:
|
For each function:
|
||||||
function names
|
function names
|
||||||
function parameters and types
|
function parameters and types
|
||||||
return type for the functions (Geometry or NULL if not found, with SRID 4326)
|
return type for the functions (Geometry or NULL if not found, with SRID 4326)
|
||||||
pre- and post-conditions or invariants
|
|
||||||
|
|
||||||
### Reference
|
### Reference
|
||||||
#### Geocoding functions
|
#### Geocoding functions
|
||||||
|
|||||||
Reference in New Issue
Block a user