Skip to content

GET Coordinates

Ksenyia edited this page Nov 2, 2016 · 3 revisions

Resource URI

/coordinate/{type}/{id}

Resource Properties

Property Description
id A string that uniquely identifies.
type Collection type( for example, requests for getting coordinates are called at country page. have following type type="country"). Possible variants of the types: country, company, group.

Response Attribute

{
    proj_coordinates: [
        {
            lat: Number,
            lng: Number,
            message: String,
            timestamp: Date,
            type: String,
            id: String
        }
    ]
}    

HTTP GET

Default Request

curl -GET http://end-point-uri/coordinate/country/57100133bd08c40100abf6de

Response

HTTP Status Code 200

{
    proj_coordinates: [
        {
            lat: 79.22885591,
            lng: -44.84381911,
            message: "Agnes",
            timestamp: "2016-03-28T06:04:49.711Z",
            type: "site",
            id: "580df2a38c2de3b25f97fed9"
        },
        ...
    ]
}   
Clone this wiki locally