Skip to content

specklesystems/speckle_systems-OSM_context

Repository files navigation

OSM context

Get OpenStreetMap context and Basemap for your Revit project

This function reads the location of your Revit model (latitude, longitude and angle to True North) and generates a new 3d model with OSM buildings and roads within specified radius from the model. It also generates a .PNG image with a basemap of your selected location.

Final model Final basemap

More details

This functon will create a custom Coordinate Reference System based on Traverse Mercator and centered around specified location, so that the size distortions of the real-world location are minimized. 3d geometries within specified radius will then be queried from OSM API service, and the information for the basemap will be queried from the OSM raster tiles provider.

Location info from Revit model (lat, lon, angle) will be derived from the following settings under the tab Manage->Location:

Revit location settings

Using this Speckle Function

  1. Create a new Speckle Automation.
  2. Select your Speckle Project and Speckle Model.
  3. Select the existing Speckle Function for creating OSM context.
  4. Enter the chosen radius from your project location.
  5. Click Create Automation.