1

Improvements

This commit is contained in:
Alex Yatskov 2015-03-25 12:39:24 +09:00
parent 1fe44e827a
commit 439ebc3a61
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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