Topic: Extracting Road Coordinates as Splines for Mesh Generation

hi.
I'm working on a project that requires creating custom meshes along roadways. Specifically, I'm looking for a method to:
Extract road data as an ordered list of geographic coordinates
Convert these coordinate lists into splines or curve data
Use these splines as paths for procedurally generating meshes along the roads
Is there a recommended approach within the Online Maps plugin to access the underlying road vector data? I'd like to avoid manually tracing the roads if possible, as I need to work with the actual road geometry for accurate mesh placement.
Has anyone implemented a similar feature or would you recommend specific API methods for this task? Any code examples or guidance would be greatly appreciated.
Thank you in advance for your assistance.

Re: Extracting Road Coordinates as Splines for Mesh Generation

Hi.

Unfortunately, I don't know how to get roads from vector tiles.
I can give you a MapboxBuildingManager that gets buildings from vector tiles:
https://forum.infinity-code.com/viewtop … 7791#p7791
Perhaps this will give you some direction for further work.

As an alternative to vector tiles, you can use the OSM Overpass API.
This is good for getting specific types of data for an area.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.