Importing a road map into the MATLAB for simulation.

20 views (last 30 days)
I want to import a actual road map of Sri Lanka into MATLAB to simulate a vehicle movement with traffic. Could you please explain how to accomplish this to meet my requirements?

Answers (1)

Garv Agarwal
Garv Agarwal on 23 Jul 2023
Hi Ishan,
From my understanding, you want to import a road map of Sri Lanka into MATLAB.
There are multiple ways to import maps in MATLAB -
  • The HERE HD Live Map Importer in MATLAB which allows you to access highly accurate, continuously updated map data which can then be used to generate roads for simulations.
  • The OpenStreetMap which enables you to access crowdsourced map data. Using the Driving Scenario Designer app, you can import map data from OpenStreetMap and use it to generate roads for your driving scenarios.
  • MATLAB also supports other map sources like ASAM OpenDRIVE, Zenrin Japan Map API 3.0, etc.
You can use the roadNetwork function to get the road networks from these maps or use their interactive dialogue boxes for the same.
You can read more about it from the following documentation -

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!