We have multiple locations with the same name. I need to draw a path to a specific location when I try to get directions it always chooses the closest location with that name. How can I tell it to choose one that is farther away?
What you are seeing is the intended behaviour when searching for directions using a Location or Category that exists in multiple places on the map (multiple nodes). This is useful in cases where a user searches for a Washroom and gets directed to the closest one.
However, you can specify a specific location as well. What source data are you starting with? By that I mean what information does the app have to decide which location to go to?
An easy way to distinguish between these is to set an externalId value in Mappedin CMS for the nodes for these locations. These values will remain constant (unless someone manually changes them) and can be used by apps. The app can look for a node with an externalId that matches the location you want to direct the user to and use that node when getting directions.