A simple tool for cloning tiles from OpenStreetMap (OSM) while preserving the structure.
- Clone OSM tiles while preserving the structure.
To use the osm_tile_clonner tool, follow these steps:
-
Update the
min_lat,max_lat,min_lon,max_lon, andzoomvalues in the script according to the desired tile range. -
Run the script.
python main.pyPlease note that this tool can potentially overload OSM servers if used intensively. Exercise caution and use it responsibly to prevent any negative impact on server performance.
As this tool is provided without an official repository, community and support channels are not available. Please proceed with caution and seek assistance from relevant OSM communities or resources if needed.
A tool that converts .osm files to a graph in JSON format.
- Convert .osm files to a graph in JSON format.
To use the road_creator tool, follow these steps:
-
Add the desired
map.osmfile to the script's directory. (here is a link to download the area of La Doua : https://download.bbbike.org/osm/extract/planet_4.854259,45.774737_4.889987,45.789342.osm.gz) -
Run the script.
# Example usage
osm_file = 'map.osm'
osm_data = parse_osm(osm_file)
jsonData = json.dumps(osm_data, indent=4)
# Save the results
with open("graph.json", 'w') as file:
json.dump(osm_data, file)
# Display the results
# print(jsonData)