PolygonGeoSegment type
Segment based on location data for polygons.
Response format
Segment based on location data for polygons.
{
"id" : < int > ,
"name" : < string > ,
"status" : < segment_external_status > ,
"create_time" : < date > ,
"owner" : < string > ,
"geo_segment_type" : < geo_segment_type > ,
"times_quantity" : < integer > ,
"period_length" : < integer > ,
"polygons" : [ {
"points" : [ {
"latitude" : < big_decimal > ,
"longitude" : < big_decimal > ,
"description" : < string >
}, ... ]
}, ... ]
}
Parameters | Description |
---|---|
id | ID of the segment. Specify this parameter when updating a segment. |
name | Segment name. |
status | Status of processing the segment. Possible values:
|
create_time | The time of segment creation. |
owner | The username of the segment owner. |
geo_segment_type | Type of coordinates for creating the segment. Possible values:
|
times_quantity | Frequency of visits to the specified places. This parameter is required if you are creating the condition “The user visited the specified places X times during the period”. Note. Only one visit per day is counted. |
period_length | The period for visits to the specified places. This parameter is required if you are creating the condition “The user visited the specified places X times during the period”. Acceptable values for the time period (in days): from 1 to 90 (inclusive). |
polygons | List of polygons. You cannot add more than 10 polygons to a segment. |
Parameters | Description |
points | The coordinates of the points. |
Parameters | Description |
latitude | Latitude. |
longitude | Longitude. |
description | Any comment with the length not exceeding 200. |
Parameters | Description |
---|---|
id | ID of the segment. Specify this parameter when updating a segment. |
name | Segment name. |
status | Status of processing the segment. Possible values:
|
create_time | The time of segment creation. |
owner | The username of the segment owner. |
geo_segment_type | Type of coordinates for creating the segment. Possible values:
|
times_quantity | Frequency of visits to the specified places. This parameter is required if you are creating the condition “The user visited the specified places X times during the period”. Note. Only one visit per day is counted. |
period_length | The period for visits to the specified places. This parameter is required if you are creating the condition “The user visited the specified places X times during the period”. Acceptable values for the time period (in days): from 1 to 90 (inclusive). |
polygons | List of polygons. You cannot add more than 10 polygons to a segment. |
Parameters | Description |
points | The coordinates of the points. |
Parameters | Description |
latitude | Latitude. |
longitude | Longitude. |
description | Any comment with the length not exceeding 200. |