-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add support for coordinates resolution. #209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Please consider updating docs in a follow up.
chunkedResponse -> | ||
chunkedResponse.getPlaceCoordinatesList().stream()) | ||
.collect(toList())) | ||
.build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add some comments for this block?
import org.datacommons.proto.Recon.ResolveCoordinatesResponse; | ||
import org.datacommons.proto.Recon.ResolveCoordinatesResponse.Place; | ||
|
||
/** Resolves nodes with lat-lngs by calling the DC coordinates resolution API. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TODO to update counters on errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
util/src/main/java/org/datacommons/util/CoordinatesResolver.java
Outdated
Show resolved
Hide resolved
Thanks Prashanth. Will do. |
--coordinates-resolution
flag is set.latitude
andlongitude
properties and basic validation. Support for more formats and validations will be added subsequently.