# Mixed agent types in OpenStreetMapSpace

**URL:** <https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272>\
**Category:** General Usage\
**Tags:** question, agents\
**Created:** [January 26, 2026, 12:03pm UTC](https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272 "2026-01-26T12:03:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [January 26, 2026, 12:03pm UTC](https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272/1 "2026-01-26T12:03:59Z")

</div>

Hello,

I am interested in developing a simulation with Agents.jl involving motor vehicles and pedestrians. The goal is to analyze the impact of pedestrian traffic on motor vehicle traffic. In this simulation, motor vehicles only travel on the streets, but pedestrians can travel on streets, cross streets, or travel off the streets. Is this possible in Agents.jl and if so, what general approach is recommended?

Thanks!

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [January 26, 2026, 12:16pm UTC](https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272/2 "2026-01-26T12:16:48Z")

</div>

yes this is possible, the OSMSpace does contain information about the street type. You’d have to manually restrict different agents to move to different nodes however, there is not yet an automatic function in Agents.jl. If you do create one, it would be great if you contribute it back!

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [January 26, 2026, 12:23pm UTC](https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272/3 "2026-01-26T12:23:12Z")

</div>

Thank you for your reply. Sounds good. I will look into developing a solution and would be willing to share or open a PR if the solution is suitable for Agents.jl. I am not very familiar with OpenStreetMapSpace and Open Street Maps more generally. So I will need a bit of time to familiarize myself. Would you (and/or someone else) be willing to advise as I try to work through a solution?

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [January 26, 2026, 12:24pm UTC](https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272/4 "2026-01-26T12:24:45Z")

</div>

I personally do not have the capacity unfortunately.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [January 26, 2026, 12:28pm UTC](https://discourse.julialang.org/t/mixed-agent-types-in-openstreetmapspace/135272/5 "2026-01-26T12:28:21Z")

</div>

No problem. I will post questions as they arise and see if someone can assist.
