Load only certain data in OsmaR - Subset geographical data

المشرف العام

Administrator
طاقم الإدارة
I'm trying to plot in R all the subway lines and stations in downtown New York. I would just need the shore-sea line and the lines with the stations.

I tried to follow the approach shown in the Osmar package documentation. Essentially, downloading all the nodes in the area and then sub setting only those needed (e.g. subway, station). However, it doesn't work as there are so many nodes in the area (above 50000) that the second line of code would yield an error: Error: XML content does not seem to be XML: 'You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm'

It recommends downloading the planet.osm but it is +500Gb. Is there any other way to do this? Subset in origing with the get_osm command maybe? Any help/idea hugely appreciated!

My code:

ny_bbox
 
أعلى