Add

Description

Create a new notice of misinformation at the point of interest.

URL

/VERSION/pois/warnings/add.FORMAT

Available Format

JSON

HTTP Method

GET

Accepted Version

1

Requires

Authorization.

Headers

Parameters

  • access_token: (Required) access_token to user resources.
  • poi: (Required)POI ID that we assign this warning.
  • type: (Optional) type of warning
    • 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.

Additional parameters if the type is WRONG_INDICATOR

  • lat: (Required) latitude of the new position
  • lng: (Required) length of the new position
  • accuracy: (Optional) accuracy of the position (latitude, longitude)
  • vaccuracy: (Optional) accuracy of the elevation
  • elevation: (Optional) elevation relative to sea level

Additional parameters if the type is WRONG_INFO

  • categories: (Required) IDs of the categories to which the POI belongs, separated by commas
  • name: (Required)landmark name.
  • desc: (Optional) landmark description.
  • address: (Optional) landmark address.
  • cross_street: (Optional) cross street
  • city: (Optional) landmark city.
  • country: (Optional) estate.
  • postal_code: (Optional) postal code.
  • phone: (Optional) contact phone.
  • twitter: (Optional) user ID or twitter hastag.

Example

https://api.topoos.com/1/pois/warnings/add.json?access_token=b9955415-82d3-4481-a736-330d962df9ea&poi=6595&type=WRONG_INFO&categories=21&name=Remedios+Monasterio&desc=Remedios

Reply
JSON example reply

{
    id: 4,
    poi_id: 6595,
    type: "WRONG_INFO",
    user_id: "E233DC82-D397-4F1C-B716-B31BFBD6EA63",
    timestamp: "2012-12-11T08:15:25.175+00:00",
    data: {
        id: 2,
        latitude: null,
        longitude: null,
        accuracy: null,
        vaccuracy: null,
        elevation: null,
        name: "Remedios Monasterio",
        address: null,
        cross_street: null,
        city: null,
        country: null,
        postal_code: null,
        phone: null,
        twitter: null,
        description: "Remedios",
        categories: [{
            Id: 21,
            Description: "carreras",
            is_system_category: false
        }]
    }
}