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

Add _distance measure to response data #4

Open
jboarman opened this issue Dec 30, 2021 · 0 comments
Open

Add _distance measure to response data #4

jboarman opened this issue Dec 30, 2021 · 0 comments

Comments

@jboarman
Copy link
Member

It would be helpful to consumers if the data returned by Orbitron includes a distance measure. Since every query requires a given data point (whether it be a specific lat/long or zip centroid), then we should be able to calculate a distance between the input and each row of the output.

At some point, we may need to respond with varying units (miles vs km), or provide code for helper functions that convert between units, or allow parameters to be passed that dictate units to include in the response. However, the current project only supports miles at the moment. For this issue, perhaps we just add the units to the response, like _distance: "1.5 mi"? (The underscore is added here to avoid clashing with the source's data model.)

@jboarman jboarman changed the title Add a _distance data to response Add _distance measure to response data Dec 30, 2021
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

1 participant