# LightOSM and OpenStreetMapX read different nodes from one and the same osm file

**URL:** <https://discourse.julialang.org/t/lightosm-and-openstreetmapx-read-different-nodes-from-one-and-the-same-osm-file/89628>\
**Category:** Geo\
**Created:** [November 1, 2022, 7:13pm UTC](https://discourse.julialang.org/t/lightosm-and-openstreetmapx-read-different-nodes-from-one-and-the-same-osm-file/89628 "2022-11-01T19:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctrebbau](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Post date:** [November 1, 2022, 7:13pm UTC](https://discourse.julialang.org/t/lightosm-and-openstreetmapx-read-different-nodes-from-one-and-the-same-osm-file/89628/1 "2022-11-01T19:13:50Z")

</div>

Anyone have a quick idea why this fails?

```julia
g1 = LightOSM.graph_from_file(
                    data_file, 
                     ...
                    largest_connected_component=true)

g2 = OpenStreetMapX.get_map_data(
                    data_file,
                    ...
                    trim_to_connected_graph=true
                    )
losm_nodes = keys(g1.nodes)
osmx_nodes = keys(g2.nodes)

@assert losm_nodes == osmx_nodes

```

All possible combinations of `largest_connected_component` give the same result
