Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph_from_place does not seem to download node names #1280

Closed
3 tasks done
JJ opened this issue Feb 19, 2025 · 1 comment
Closed
3 tasks done

graph_from_place does not seem to download node names #1280

JJ opened this issue Feb 19, 2025 · 1 comment
Labels

Comments

@JJ
Copy link

JJ commented Feb 19, 2025

Contributing guidelines

  • I understand the contributing guidelines

Documentation

  • My problem is not addressed by the documentation or examples

Existing issues

  • My problem does not appear in an existing issue

What operating system and Python version are you using?

Mac, python 3.11

What OSMnx version are you using?

2.0

Environment packages and versions

N/A

How did you install OSMnx?

Other (describe below)

Problem description

Poetry (uses pip underneath)

Complete minimal reproducible example

Sorry if this is not a bug. When a graph is downloaded this way:


 download_data/__init__.py
import osmnx as ox

def __main__():

    # Define the place name
    place_name = "Venezia-Murano-Burano, Veneto, Italy"

    # Download the street network data for Venice
    graph = ox.graph_from_place(place_name, network_type="walk", simplify=True)
    ox.save_graphml(graph, filepath="../data/venice.graphml",gephi=True)

    print("Data downloaded successfully!")
    ox.plot_graph(graph)


Nodes have simply an id, not any kind of defining name as edges do. It might be that they are simply that way and that most nodes don't have a name, but I would like to know if there's some way, or some command option, that helps decorate nodes with some place name.
@JJ JJ added the bug label Feb 19, 2025
@gboeing gboeing added notabug and removed bug labels Feb 19, 2025
@gboeing
Copy link
Owner

gboeing commented Feb 19, 2025

Thanks for using OSMnx! Per the contributing guidelines, please ask usage questions on StackOverflow as we reserve this issue tracker for bug reporting and feature development.

@gboeing gboeing closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants