This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

data loading based on bounding Box

0

I have downloaded data for a country. Now i have a co-ordinate and i want to load or extract all the elements(Mainly Roads) within 3 KM boundary from the current point. I can generate the bounding box for the data that needs to be loaded. Is there a way to do this. This should work offline and not to be confused with downloading data online.

asked 27 Sep '19, 06:45

Amruthesha's gravatar image

Amruthesha
16223
accept rate: 0%

Could you please elaborate where you download your data from and to and what programs you are using?

(27 Sep '19, 07:33) TZorn

Data is downloaded from openstreetmap.org by selecting area on map(not exactly a country). I have data in pbf format. I get my current position using GPS and i want to show road networks around current GPS position(say 3km). So are there any libraries/method available to do so.

(27 Sep '19, 11:43) Amruthesha

Also i want to access the elements near to current position, so that i can map it to the proper road network.

(30 Sep '19, 06:11) Amruthesha

Source code available on GitHub .