You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.
Is your feature request related to a problem? Please describe.
If a user doesn't know the exact name of a group, it is not easy to find it.
As a user/prospective volunteer, I want to be able to find the closest group to my location So that I can contact them and begin volunteering
Describe the solution you'd like
A GraphQL query that returns a list of Groups, given a starting set of coordinates.
We will need to extend the existing Address type, eg:
type Address {
...
location: Coordinates!
...
}
The addresses database table will also need a migration, so that we can store coordinates (latitude and longitude) for each address. Existing queries and mutations and tests might also need to be reviewed, unless we decide to make this optional.
GraphQL contract:
type Coordinates {
latitude: Float!
longitude: Float!
}
type Query {
findGroupsNearby(to: Coordinates!, limit: Int!): [Group!]!
}
The GraphQL resolver should be thin and delegate to a Ferry.Locations.findGroupsNearby context function.
Given that the database model allows for a single group to have multiple addresses, we need to account for potential duplicates in the returned list.
We will need to rely on Postgres' geospatial extensions in order to implement this feature.
The text was updated successfully, but these errors were encountered:
Hello! thank you for getting in touch! It would be awesome to have this feature indeed. This ticket is a bit old, so I just reworked the description, please let me know if the new spec is more in line with what you were suggesting? Happy to assist if you need any help or further clarification.
Is your feature request related to a problem? Please describe.
If a user doesn't know the exact name of a group, it is not easy to find it.
As a user/prospective volunteer,
I want to be able to find the closest group to my location
So that I can contact them and begin volunteering
Describe the solution you'd like
Groups
, given a starting set of coordinates.Address
type, eg:addresses
database table will also need a migration, so that we can store coordinates (latitude and longitude) for each address. Existing queries and mutations and tests might also need to be reviewed, unless we decide to make this optional.GraphQL contract:
Ferry.Locations.findGroupsNearby
context function.The text was updated successfully, but these errors were encountered: