Select to view content in your preferred language

Could not create a trigger

3820
0
03-24-2015 01:03 PM
AnLe2
by
Deactivated User

According with 

https://developers.arcgis.com/geotrigger-service/api-reference/trigger-create/

we implemented some code for creating triggers.

Technical details:

POST https://geotrigger.arcgis.com/trigger/create

"triggerId":"40176",

"condition":{ 

"direction":"enter",

"geo":{ 

"latitude":56.1838154,

         "longitude":-39.6109743,

"distance":1000

      },

"fromTimestamp":"2015-01-22T18:25:43",

"toTimestamp":"2015-06-22T18:25:43"

   },

"action":{ 

"callbackUrl":"http://yyyyy.xxxxx.com/arcgiscallback"

   },

"times":0,

"rateLimit":0,

"setTags":[ 

"GROUP:40207",

"GROUP:40208"

   ]

}

RESPONSE:

"triggerId":"40176",

"condition":{ 

"geo":{ 

"latitude":56.1838154,

"longitude":-39.6109743,

"distance":1000,

"geojson":{ 

"type":"Polygon",

"coordinates":[ 

-39.5948647155862,

56.1838939492512

],

-39.5951471340248,

56.1821397309175

],

-39.596037703838,

56.1804499427013

],

-39.5975021305006,

56.1788895098401

],

-39.5994840890552,

                     56.1775183799746

],

-39.601907395924,

56.1763892222745

],

-39.6046789393346,

56.175545406829

],

-39.6076922553316,

56.1750193414285

],

-39.6108316122919,

56.1748312291264

                  ],

-39.6139764480163,

56.1749882938773

],

-39.6170059904663,

56.1754845036985

],

-39.6198038864572,

56.1763008018793

],

-39.6222626623309,

56.1774058374405

                  ],

-39.6242878468149,

56.1787571670601

],

-39.6258015987386,

56.1803028827124

],

                  [

-39.6267457006187,

56.1819836029922

],

-39.6270838027398,

56.183734752128

],

-39.6268028304599,

56.1854890395558

],

-39.625913499075,

56.1871790450766

],

                     -39.6244499145709,

56.1887398103701

],

-39.6224682736939,

56.1901113371861

],

-39.6200447116582,

56.1912408959226

],

-39.6172723790832,

56.1920850554361

],

-39.6142578600672,

56.1926113555553

],

-39.6111170693821,

56.1927995574926

],

-39.6079707874988,

                     56.1926424236476

],

-39.6049400066205,

56.1921459965218

],

-39.6021412684712,

56.1913293659085

],

-39.59968217492,

56.1902239333969

],

-39.5976572456031,

56.188872202741

                  ],

-39.5961442828439,

56.1873261430206

],

-39.5952013839828,

56.1856451880222

],

-39.5948647155862,

56.1838939492512

]

               ]

            ]

         }

      },

"direction":"enter",

"fromTimestamp":"2015-01-22 18:25:43 UTC",

      "toTimestamp":"2015-06-22 18:25:43 UTC"

   },

"action":{ 

"callbackUrl":"http://yyyyy.xxxxx.com/arcgiscallback"

   },

   "tags":[ 

   ],

"rateLimit":0,

"times":0,

"properties":null

}

For verification we trying send this request:

POST https://geotrigger.arcgis.com/trigger/list

DATA:

{"triggerIds":["40176"]}

RESPONSE:

{"triggers":[]}

Can anyone say that we do incorrectly. Or this is Geotrigger Service issue?

Tags (2)
0 Kudos
0 Replies