Web endpoint for locations
marcoow opened this issue · comments
This is the web endpoint for location data which supports search by position as well as free text.
supports search by position
Position is lat/lon? Is this when using location services on mobile etc...?
In that case the endpoint should support:
api/locations?filter[coordinates]=10.12,13.23
api/locations?filter[search]=Münich
Yes, this looks good but I think the second one should be api/locations?filter[name]=Münich
and then we should support wildcard characters so that we could e.g. search for api/locations?filter[name]=*Münich
or api/locations?filter[name]=*Münich*
Do you know if the wildcard chars are supported by the google api, or is this intended for our db?
I think the google api implicitly uses wildcards. We should apply wildcards when looking up locations in the database for sure.
We should probably implement the wildcard db search in #9?
Right - that's not going to be needed before 👍