# Allowing Agents.jl OpenStreetMapSpace to read GeoJSON

**URL:** <https://discourse.julialang.org/t/allowing-agents-jl-openstreetmapspace-to-read-geojson/85055>\
**Category:** Specific Domains\
**Tags:** agents\
**Created:** [July 31, 2022, 12:37pm UTC](https://discourse.julialang.org/t/allowing-agents-jl-openstreetmapspace-to-read-geojson/85055 "2022-07-31T12:37:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imantha](https://avatars.discourse-cdn.com/v4/letter/i/6a8cbe/32.png) [@imantha](https://discourse.julialang.org/u/imantha)\
**Post date:** [July 31, 2022, 12:37pm UTC](https://discourse.julialang.org/t/allowing-agents-jl-openstreetmapspace-to-read-geojson/85055/1 "2022-07-31T12:37:11Z")

</div>

Hi I was wondering whether it would be too difficult add GeoJSON reading capabilities to `agents.jl`’s `OpenStreetMapSpace`.

I am asking this as open source tools such as QGIS allows easy conversion between `shp` and `GeoJSON` file formats. However I haven’t found any easy conversion from `.shp` to `.json`, `.osm` and `xml` file formats (I maybe wrong though as I am not GIS expert by any means) which is what OpenStreetMapSpace can read.

Particularly in my case I have heavily edited shape-file of the road network of Guadaloupe that I would like to convert JSON so that OpenStreetMapSpace can read. As for downloading using the provided functions isn’t too useful due to the size of the network which would take forever to load/render. Hence why I would like to convert `.shp` → `.json` which contains less nodes and edges and hence would be easier to read and plot.

I just curious to know if there is work around to read a GeoJSON file in agents.jl?

---

<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:** [July 31, 2022, 7:15pm UTC](https://discourse.julialang.org/t/allowing-agents-jl-openstreetmapspace-to-read-geojson/85055/2 "2022-07-31T19:15:40Z")

</div>

The reading of OSM data into a Graph is done by LightOSM.jl. As long as that is able to use GeoJSON, then so does Agents.jl. 🙂 You should open an issue at the repo and ask for this!
