praekelt / go-jsbox-location

Location finder for go-jsbox
Other
2 stars 0 forks source link

Make OpenStreetMaps api_params easy to edit #30

Open gsvr opened 9 years ago

gsvr commented 9 years ago

Would be great if in https://github.com/praekelt/go-jsbox-location/blob/develop/lib/providers/openstreetmap/provider.js, we could replace self.api_params = function(query_text) { with self.api_params = opts.api_params || function(result) {

hodgestar commented 9 years ago

What are the new parameters you need added?

gsvr commented 9 years ago

We wanted to be able to edit the q parameter - OSMaps supports the ability to search only against suburbs, which is useful for clinicfinder since we're not using street addresses.

On Thu, Feb 12, 2015 at 3:54 PM, Simon Cross notifications@github.com wrote:

What are the new parameters you need added?

— Reply to this email directly or view it on GitHub https://github.com/praekelt/go-jsbox-location/issues/30#issuecomment-74073472 .