mysociety / citizenconnect

Citizen Connect project for the NHS: reporting problems, leaving reviews
https://www.nhs.uk/careconnect/choices
Other
1 stars 0 forks source link

Provider finder to use local cache of organisation data #96

Closed crowbot closed 11 years ago

stevenday commented 11 years ago

We store lon/lat for each provider locally, so how will we do the location geo-coding if we're querying our data instead of the api? MapIt only does postcodes right?

crowbot commented 11 years ago

Geodjango gives us the ability to do bounding box searches, so I was thinking for postcode we query mapit for postcode to point - that gives us a lat and lon - then we do a bounding box search of providers. For name search we just do a string search constrained by whatever 'is it in the relevant city' check we have - if we were to get a set of outcodes for London for example, we could flag in our db which providers are in London. Is that what you're asking?

stevenday commented 11 years ago

Ah, yes, I was thinking we had to do searches like "London" where we geocode that to an area and return things inside that area - just postcodes and text search on names is great!

crowbot commented 11 years ago

Yeah we kept that out of the spec as I think it'd be hard to do well in the time we have for phase 2, and in addition is I think a less useful option for reporting an issue that for generic 'find a service' widgets - as if you're reporting an issue, you usually will know the name of the provider, having been there. If we do need to extend to a name based search, we'd need to use a gazeteer, either internally, or as a service.

crowbot commented 11 years ago

Closed in 7062cba1cc38fea5635f4514222f6759d9892515.