itinero / reminiscence

A library for cross-platform memory mapping.
MIT License
9 stars 6 forks source link

Question: Add edge meta data value #14

Closed alecava58 closed 5 years ago

alecava58 commented 5 years ago

I'm trying to add an edge meta data value but I get and exception "Collection is readonly". May be I make mistake, what is the right way to add a meta data value to one or more edges?

following my snippet:

            foreach (var vertex in GetVerticesByCircle(network, latitude[0], longitude[0], radius))
            {
                edgeEnumerator.MoveTo(vertex);
                while (edgeEnumerator.MoveNext())
                {
                    var edgeData = edgeEnumerator.Data;
                    var metaData = routerDb.EdgeMeta.Get(edgeData.MetaId);
                    metaData.AddOrReplace("custom", "5000");
                }
            }
alecava58 commented 5 years ago

Wrong section - move to Itinero