Skip to content
Advertisement

How to display the nearest station with the distance in a database

The train station dataframe is in this format:

JavaScript

The house dataframe is in this format

JavaScript

i manage to find the closest station to each flat in distance, but how can i include a column which indicates what the closest station is

JavaScript

Here is the code that i did to find the shortest distance, but i cant seems to find a way to include the nearest train station

Advertisement

Answer

How about

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