e-mergency/site — Issue #15: API for mobile apps
Author: KushalP
Created: 2012-01-25 22:16:32+00:00
State: open

Here's how I'd like it to occur:

I would send a lat/lon position of the user and you would provide the top 30 by distance.

The format, ideally, would be to accept a json POST request in the following form:

```{
'lat': 0.123122,
'lon': 2.2323234
}```

and the response would be a json **array** of **objects** where each object (hospital) is of the following format:

```{
'odscode': 'RWF02',
'distance': 0230230, // This distance should be in metres.
'delay': 13123 // This is in seconds.
}```