For the program I have the user entering their current distance and bearing from specified point with the programme then returning the nearest station and bearing/distance to this station.
However I also want to include what line the station is situated so I know the code will be something along then lines of
if (closest.name.equal("Wesston-On-Shore"));
return ("Docks Line")
not sure if this is correct plus how you 'name' it to recall in the display for the user any help would be appreciated