faq 101187628 - matsim-org/matsim-code-examples GitHub Wiki

How to get the Link for X-,Y-Coordinates

by JakobT on 2016-12-19 13:48:39


Hey, how can I determine the Link-ID if I have X-,Y-Coordinates?


For Example:

I know there is something at Position (200, 100). How do I get the corresponding Link to that Position in my network?


Comments: 1


Re: How to get the Link for X-,Y-Coordinates

by Marcel Rieser on 2016-12-19 16:30:49

Have a look at org.matsim.core.network.NetworkUtils.getNearestLink(network, coord).

⚠️ **GitHub.com Fallback** ⚠️