Get

Description

Gets the list of all error messages related to a point of interest.

URL

/VERSION/pois/warnings.FORMAT

Available Format

JSON

HTTP Method

GET

Accepted Version

1

Requires

Authorization.

Headers

Parameters

  • access_token: (Required) access_token to user resources.
  • poi: (Optional)POI identifier list whose warnings we want to retrieve, separated by commas. If not specified will be obtained from all POI warnings.
  • type: (Optional) list of types of warning you want to retrieve. If specified, the warnings will be filtered consulted by these types of warning, if not specified, each POI warnings we get to display all warnings, whatever their type. The value can be one or more of the following, separated by commas:
    • CLOSED: Marked as closed or nonexistent.
    • DUPLICATED: Marked as a duplicate.
    • WRONG_INDICATOR: The placemark is incorrect or inaccurate.
    • WRONG_INFO: The landmark information is incorrect or incomplete.

Example

https://api.topoos.com/1/pois/warnings.json?access_token=b9955415-82d3-4481-a736-330d962df9ea&poi=6621

Reply
JSON example reply

[{
    current: {
        id: 6621,
        name: "Recoletas",
        description: "Monasterio",
        latitude: 40.953107,
        longitude: -4.123233,
        elevation: 0,
        accuracy: 0,
        vaccuracy: 0,
        registertime: "2012-12-12T08:55:45.877+00:00",
        categories: [{
            Id: 21,
            Description: "carreras",
            is_system_category: false
        }],
        address: "Paseo Del Obispo 18,40001 Segovia",
        cross_street: "Paseo Del Obispo 18",
        city: "Segovia",
        country: null,
        postal_code: null,
        phone: null,
        twitter: "#Recoletas",
        last_update: "2012-12-12T08:55:45.877+00:00",
        warnings: {
            closed: 0,
            duplicated: 1,
            wrong_indicator: 1,
            wrong_info: 0
        }
    },
    warnings: [{
        id: 1,
        poi_id: 6621,
        type: "DUPLICATED",
        user_id: "c0429846-8a7f-46cb-b354-526e0ac83dee",
        timestamp: "2012-12-12T08:56:36.497+00:00",
        data: null
    }, {
        id: 2,
        poi_id: 6621,
        type: "WRONG_INDICATOR",
        user_id: "c0429846-8a7f-46cb-b354-526e0ac83dee",
        timestamp: "2012-12-12T08:56:49.753+00:00",
        data: {
            id: 1,
            latitude: 40.953107,
            longitude: -4.123233,
            accuracy: 2,
            vaccuracy: 2,
            elevation: 2,
            name: null,
            address: null,
            cross_street: null,
            city: null,
            country: null,
            postal_code: null,
            phone: null,
            twitter: null,
            description: null,
            categories: []
        }
    }]
}]