Hello habi, thanks for your comments. I'm bassically trying to get some train lines and his statitions in order calling Overpass API. I reviewed de lines and some stations didn´t have the relation with the line but when I call the api to get data, the stations of the line does not appear in order and the stations that I have added before, appears at the end of the list that I get with te API. Sorry for try to do that with JSON, i was looking a way to get this pourpose but I know that this is not the proper way. Do you know how to get a list of stations of a line IN ORDER regardless the orther they have been added the relation with his line? This is the Overpass query I´m still using for a specific operator var data = `
[out:json];
area["ISO3166-1"="CH"][admin_level=2]->.searchArea;
(
relation["operator"="Bernmobil"]["type"="route"]["route"~"train|railway|tram|light_rail"](area.searchArea);
);
out body;
`
