Select to view content in your preferred language

Using pull data to looking up closest point

6906
14
Jump to solution
05-25-2017 07:47 AM
StuartMoore
Frequent Contributor

Has anyone tried using the pull data to identify the closest point of another dataset to the geopoint and retrieve a value something like the near toolbox function in arcmap.

It's a bit like using the pulldata function and a calculation in one go that takes the current location of the geopoint and calculates the distance to a list of points within a csv file and then returns their site name

thanks

Stu

14 Replies
ChaimSchwartzIroads
Regular Contributor

This looks really great, if I ever have the need again and implement it I promise to post. Thank you for sharing the example!!

utenalarosa
Occasional Contributor

 

@IsmaelChivite Can this be use in a public survey?

Thanks

oribecco_SMJV
New Contributor

Hello @IsmaelChivite , 

 

After using your script and mimicking the fields in your screenshot, the 'city_json' field returns the feature layer feature service link, and the 'closest_city' field respectively returns a blank. Any idea why this might be happening? 

 

Thanks 

0 Kudos
Tim-Woodfield
Regular Contributor

@IsmaelChivite Is this still the best way to accomplish the closest feature search? Are there any options for a public survey like the "?distance=" search? Not sure in what order those records are returned or if they could be sorted by distance.

0 Kudos
mikaël
Frequent Contributor

Is this still the best solution to get a nearest record?

Trying to get the nearest polyline from a geopoint question.

Thanks!