Improvements
This commit is contained in:
parent
1fe44e827a
commit
439ebc3a61
@ -44,8 +44,7 @@ func executeQuery(rw http.ResponseWriter, req *http.Request) {
|
|||||||
|
|
||||||
var geo *geoContext
|
var geo *geoContext
|
||||||
if request.Geo != nil {
|
if request.Geo != nil {
|
||||||
geo.latitude = request.Geo.Latitude
|
geo = &geoContext{latitude: request.Geo.Latitude, longitude: request.Geo.Longitude}
|
||||||
geo.longitude = request.Geo.Longitude
|
|
||||||
}
|
}
|
||||||
|
|
||||||
context := queryContext{geo, request.Profile, request.WalkingDist}
|
context := queryContext{geo, request.Profile, request.WalkingDist}
|
||||||
|
1
util.go
1
util.go
@ -219,6 +219,7 @@ func getRecords(context queryContext) records {
|
|||||||
accessCount: accessCount,
|
accessCount: accessCount,
|
||||||
id: id}
|
id: id}
|
||||||
|
|
||||||
|
entry.features = make(featureMap)
|
||||||
entry.features["delicious"] = delicious
|
entry.features["delicious"] = delicious
|
||||||
entry.features["accomodating"] = accomodating
|
entry.features["accomodating"] = accomodating
|
||||||
entry.features["affordable"] = affordable
|
entry.features["affordable"] = affordable
|
||||||
|
Loading…
Reference in New Issue
Block a user