POST api/poi/Import

Import a JArray of points of interest.

Request Information

URI Parameters

None.

Body Parameters

The JArray of points of interest to be imported.

Collection of PointOfInterest
NameDescriptionTypeAdditional information
ID

The Supatrak ID for the

integer

None.

Name

The name of the point of interest

string

Required

Latitude

The latitude position of the point of interest. If this is null then attempt to geocode the address information

decimal number

None.

Longitude

The longitude position of the point of interest. If this is null then attempt to geocode the address information

decimal number

None.

Region

Address information. Used in SupaTrak front end to describe the location of the point of interest. If the latitude or longitude is null then this information is geocoded to determine the location

string

None.

Street

Address information. Used in SupaTrak front end to describe the location of the point of interest. If the latitude or longitude is null then this information is geocoded to determine the location

string

None.

Town

Address information. Used in SupaTrak front end to describe the location of the point of interest. If the latitude or longitude is null then this information is geocoded to determine the location

string

None.

District

Address information. Used in SupaTrak front end to describe the location of the point of interest. If the latitude or longitude is null then this information is geocoded to determine the location

string

None.

County

Address information. Used in SupaTrak front end to describe the location of the point of interest. If the latitude or longitude is null then this information is geocoded to determine the location

string

None.

Postcode

Address information. Used in SupaTrak front end to describe the location of the point of interest. If the latitude or longitude is null then this information is geocoded to determine the location

string

None.

Telephone

The contact telephone number for the point of interest

string

None.

Category

The category of the point of interest. When creating a point the category is created if it does not already exist. If this isn't proviced then a default blank category is assigned

string

None.

Radius

The effective radius of the point of interest. Defaults to 50 metres if a point is created without a radius being specified

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Name": "sample string 1",
    "Latitude": 1.1,
    "Longitude": 1.1,
    "Region": "sample string 2",
    "Street": "sample string 3",
    "Town": "sample string 4",
    "District": "sample string 5",
    "County": "sample string 6",
    "Postcode": "sample string 7",
    "Telephone": "sample string 8",
    "Category": "sample string 9",
    "Radius": 1
  },
  {
    "ID": 1,
    "Name": "sample string 1",
    "Latitude": 1.1,
    "Longitude": 1.1,
    "Region": "sample string 2",
    "Street": "sample string 3",
    "Town": "sample string 4",
    "District": "sample string 5",
    "County": "sample string 6",
    "Postcode": "sample string 7",
    "Telephone": "sample string 8",
    "Category": "sample string 9",
    "Radius": 1
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.