# Open Street Map Parameters

**URL:** <https://vccsforum.nt.tuwien.ac.at/t/open-street-map-parameters/351>\
**Category:** Vienna 5G System Level Simulator\
**Created:** [April 28, 2024, 11:04am UTC](https://vccsforum.nt.tuwien.ac.at/t/open-street-map-parameters/351 "2024-04-28T11:04:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sophia](https://vccsforum.nt.tuwien.ac.at/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@Sophia](https://vccsforum.nt.tuwien.ac.at/u/Sophia)\
**Post date:** [April 28, 2024, 11:04am UTC](https://vccsforum.nt.tuwien.ac.at/t/open-street-map-parameters/351/1 "2024-04-28T11:04:18Z")

</div>

Dears,

I am getting errors while simulating launcherOpenStreetMap. I have only changed the latitude and longitude parameters in the OpenStreetMap scenario configurations as per the lines below;

%% Blockages  
% The following parameters describe the specification of an OpenStreetMap  
% city. The desired real-world area is specified via latitudes and  
% longitudes, which can easily be obtained from openstreetmap **dot** com via the  
% “Export” feature.  
openStreetMapCity = parameters.city.OpenStreetMap;  
**openStreetMapCity.latitude = [39.2650, 39.2850];**  
**openStreetMapCity.longitude = [-6.8259, -6.8146];**  
openStreetMapCity.streetWidth = 5;

**The following are the error messages;**

Dot indexing is not supported for variables of this type.

Error in blockages.OpenStreetMapCity (line 57)  
obj = obj.saveOsmBuildingList2Obj(osmDataList([osmDataList.isBuilding]));

Error in blockages.OpenStreetMapCity.getCity (line 82)  
city = blockages.OpenStreetMapCity(cityParameter, params.regionOfInterest.interferenceRegion);

Error in simulation.SimulationSetup/createCitiesAndBuildings (line 262)  
newCity = cityParameter.createCityFunction(cityParameter, obj.params);

Error in simulation.SimulationSetup/prepareSimulation (line 126)  
obj.createCitiesAndBuildings();

Error in simulation.LocalSimulation/setup (line 51)  
obj.simulationSetup.prepareSimulation();

Error in simulate (line 64)  
localSimulation.setup();

Error in launcherFiles.launcherOpenStreetMap (line 18)  
result = simulate(@scenarios.openStreetMap, parameters.setting.SimulationType.local);

---

<div class="post-metadata">

**Author:** ![ANabavi](https://vccsforum.nt.tuwien.ac.at/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@ANabavi](https://vccsforum.nt.tuwien.ac.at/u/ANabavi)\
**Post date:** [April 29, 2024, 7:25am UTC](https://vccsforum.nt.tuwien.ac.at/t/open-street-map-parameters/351/2 "2024-04-29T07:25:42Z")

</div>

Dear Sophia,

thank you for your message. I have checked that set of coordinates and it did throw the same kind of error when I tried it. Upon further investigation I saw that the openstreetmaps query did not return any objects, this caused the error. I looked up the coordinates on openstreetmaps, they point to a place in Spain that doesn’t seem to have any objects (buildings, streets) that the simulator could extract.  
If I switch latitude and longitude of the coordinates, they then point to a city where buildings can be extracted and the code works well.  
Therefore, I hope it will work if you re-check the coordinates.

Best regards,  
Armand
