Skip to content

Restructure distance sorting JSON.#151

Open
berkes wants to merge 1 commit intobenashford:masterfrom
berkes:feature/150-distance-sort
Open

Restructure distance sorting JSON.#151
berkes wants to merge 1 commit intobenashford:masterfrom
berkes:feature/150-distance-sort

Conversation

@berkes
Copy link
Copy Markdown

@berkes berkes commented Jun 6, 2020

This fixes issue #150, where the JSON is wrong for distance sorting.
The structure is a little non-standard, as it is wrapped in an object
with hardcoded _geo_distance as name.

Reaching through inner-outer and tupled structs is unfortunate, but
seems to be nessecary in order to keep the API the same and to
keep everything nicely contained inside a GeoDistance struct as seen
from the consumer or user.

This fixes issue benashford#150, where the JSON is wrong for distance sorting.
The structure is a little non-standard, as it is wrapped in an object
with hardcoded _geo_distance as name.

Reaching through inner-outer and tupled structs is unfortunate, but
seems to be nessecary in order to keep the API the same and to
keep everything nicely contained inside a GeoDistance struct as seen
from the consumer or user.
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

Successfully merging this pull request may close these issues.

1 participant