Skip to content
Advertisement

How to add the name of the nearest point?

I have two data frames with coordinates of attractions and exists.

JavaScript

I use this to get the distance to the nearest exit:

JavaScript

I want to add a column with the name of this nearest exit. It has to look like:

JavaScript

I will be grateful for any help!

Advertisement

Answer

JavaScript

Write this line at the end of for loop

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement