Query a point Rest service passing an X/Y position

656
1
Jump to solution
08-17-2022 04:15 PM
GustafsonTerry
New Contributor II

Greetings,

Seems like this should be a simple task but maybe its not possible.  I have a Mile Post service and I want to pass a single point geometry to it and have it return the nearest Miles Post.  This is the service I'm querying.  https://app.mdt.mt.gov/arcgis/rest/services/ALTIS/ALTIS_API/MapServer/1/query

I'm setting the where clause to the route id which is ROUTE_ID = 'C000021A'

 

I have attached an image of the other parameters being passed.  The problem is that the service just returns all of the Mile Posts for that route.  Is it possible to pass a point and get the nearest Mile Post for that route from this service?

Thanks,

Terry

0 Kudos
1 Solution

Accepted Solutions
GustafsonTerry
New Contributor II

So my input geometry was not formatted right.  It simply needed to be.

-111.9485843, 48.16618446

View solution in original post

0 Kudos
1 Reply
GustafsonTerry
New Contributor II

So my input geometry was not formatted right.  It simply needed to be.

-111.9485843, 48.16618446

0 Kudos