public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIDocument uidoc = commandData.Application.ActiveUIDocument;
            Document   doc   = uidoc.Document;

            ContainerStore.Registration <MapStreamHttpService>();

            var osmServie = ContainerStore.Resolve <OsmService>();

            using (Transaction t = new Transaction(doc, "Build City"))
            {
                t.Start();

                // -73.8513, 40.6796, -73.8386, 40.6890
                // -74.0533, 40.6804, -73.9976, 40.7124
                // Define the map bounding box
                var mapbounds = new MapBounds
                {
                    Left   = -73.8513,
                    Bottom = 40.6796,
                    Right  = -73.8386,
                    Top    = 40.6890
                };

                OsmStore.Geolocate(mapbounds);
                osmServie.Run(doc);

                t.Commit();
            }


            return(Result.Succeeded);
        }
 public ExternalDBApplicationResult OnStartup(Autodesk.Revit.ApplicationServices.ControlledApplication app)
 {
     DesignAutomationBridge.DesignAutomationReadyEvent += HandleDesignAutomationReadyEvent;
     ContainerStore.Registration <MapStreamOnDemandService>();
     return(ExternalDBApplicationResult.Succeeded);
 }