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

edgeDataReduceFn Example #40

Open
chadmpdev opened this issue Jul 5, 2018 · 2 comments
Open

edgeDataReduceFn Example #40

chadmpdev opened this issue Jul 5, 2018 · 2 comments

Comments

@chadmpdev
Copy link

Could you share an example on how to use edgeDataReduceFn. I have street names and other properties on my geojson but I cannot seem to get the edgeDataReduceFn function to work properly. I would appreciate any working example. Thanks!

@perliedman
Copy link
Owner

Hi, sorry for a late reply.

I have no example at the moment, and don't really have the time or energy to make one at the moment, but this is a good idea, so I'd like to keep this issue open to remind me to add this at some point in the future!

@perliedman perliedman reopened this Aug 5, 2018
@crizzis
Copy link
Contributor

crizzis commented Mar 23, 2022

For anyone coming here from Google: I figured out that the edgeDataReduceFn acts both as an accumulator and a combiner in the reduction operation, i.e. the right operand is either GeoJsonProperties, or a result of a previous reduction.

Hopefully someone will spend less hours trying to figure it out now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants