GeoEvent: Snap GPS Point to Road Segments

894
3
01-15-2020 12:22 PM
EricIronside
Esri Regular Contributor
1 3 894

One of the more interesting use cases I've seen over the past year is a request for a "Snap To" processor in GeoEvent.  Unfortunately, this requested operation is a relatively costly operation to perform (timewise) and doesn't lend itself to high event throughputs.  But if you are still interested in a Snap To processor and willing to accept some performance loss, the following methodology might be useful. The solution involves using a Feature Service's Query method using a spatial operator. As I said, the call to the featuer service does take some time (in my testing it averaged about 95 ms round trip) but this solution doesn't require a large amount of GeoFences to be loaded into memory so it isn't limited by the road network size.

Spatial Query Processor

First, you will need the Spatial Query Processor located here: 

http://www.arcgis.com/sharing/rest/content/items/c479d511a317431da4ceb9bb6d10e88d/data

Attached to this post is a document that describes the process of preparing the road network data and publshing it as a feature service, creating your GeoEvent Service, and using the Spatial Query Processor. 

As always, leave a comment if you have questions, issues, or enhancement requests. 

3 Comments
SzuNyiapTang
Esri Contributor

Hi @EricIronside ,

 

I am trying this processor in Geoevent 10.9.1

However, I am facing a couple of issues.

1. Using Default Datastore connection - It seems to use a wrong endpoint when trying to query,

using https://fqdn/portal/rest/services instead of https://fqdn/server/rest/services

2. Using Hosting Server connection - It seems not to pass in the credentials store. Got error 499 when running the query.

3. The geometry used in the query seems to be always geometry=-105.15265104599996%2C39.91072123300006

Wondering if there is any updated version of this tool or any workaround.

Do you have the link to the source code?

Cheers

Tang

EricIronside
Esri Regular Contributor

Hey @SzuNyiapTang 

Thank you for your comments. I'll take a look and see if I can reproduce your errors. If I find any fixes I'll post a new version.

Unfortunately, the source code is not publicly available.

Thanks again,

Eric

TannerSorgenfrey
New Contributor

Hi  @EricIronside ,

I am currently trying to test this workflow, as the data from motion calculator to line has a tendency to go awry. 

But, after my work making the nodes and publishing the service, I am unable to navigate to the service or even any server folders after I select my server connection.

TannerSorgenfrey_0-1705597538326.png

 

About the Author
Esri Professional Services Real-Time GIS Team GeoEvent Sr. Product Enginner