Skip to content

Unique user-added node IDs #65

Description

@tedsteiner

There are some times when a user might want to add a new node for a specific location, and others when functions must add new nodes (most notably cropMap!, but maybe others, too). I originally implemented the function to handle this, addNewNode(location), to just count up from 1 until it finds an available node ID. This is obviously inefficient, but I've just never really cared that much. But another problem arises if you try to combine maps - every cropped map has a node "1." Is there an easier way to have unique node IDs?

One thought I had was to do something like hash((location.east,location.north)). I'm not sure whether we'd need to use the second term or not. The only issue I can think of is that if you want to interact with these IDs by name, they are many digits and harder to keep track of mentally.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions