Mapreduce for locations