I am trying to build subway maps using overpass-turbo and output in JSON. I only want the routes (ways) and the stations (nodes) for each network. This is what I have so far:
[out:json];
(
relation["network"="NYC Subway"];
);
out body;
>;
out skel qt;
With this query, I not only get the station nodes, but also nodes for exits, platforms, etc. for each station. I only want the 'main' station node as shown in this picture:

These nodes have attributes public_transport=station and railway=station while the exits and platforms do not. I am having trouble filtering only these main station nodes in overpass. I have tried this:
[out:json];
(
relation["network"="NYC Subway"];
node(r)["railway"="station"];
);
out body;
>;
out skel qt;
However, this is still giving me nodes for exits, platforms, etc.

