refsTo method
Route có điểm dừng tham chiếu tới marker markerId (route 1.2), theo
thứ tự trong sổ (seq).
Implementation
List<String> refsTo(String markerId) {
final ids = byRef[markerId];
if (ids == null || ids.isEmpty) return const [];
int seqOf(String rid) => byId[rid]?.seq ?? 1 << 30;
return [...ids]..sort((a, b) {
final c = seqOf(a) - seqOf(b);
return c != 0 ? c : a.compareTo(b);
});
}