Skip to content

Is it possible to create new nodes with this library? #12

@RayBB

Description

@RayBB

Hello,

Apologies if I'm missing something obvious here.
I've successfully created a new modify changeset with no problem following here.

However, I don't see how I can create new nodes using the create section because it seems an ID is required for the feature but how can I get the ID of a node that isn't already created?

create is a list of OsmFeature, which require an id.
Perhaps there a create feature functionality somewhere that I'm missing?

Any advice on how to work around this?
Your library is really great and I'd like to keep using it but this final peace is stumping me right now.

Edit: Ah I now see the ID can be set to -1 for new nodes. However, it seems there are still several required fields (for typescript) changeset, timestamp, user, version, uid that shouldn't be required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions