Inconsistency for 'pois' vs 'category_stats'
nilsnolde opened this issue · 1 comments
nilsnolde commented
Now being back again, it's fine to write issues;)
I think the limit
parameter might not work correctly. When I take Kreuzberg as polygon and search for pubs (ID 569
) in Kreuzberg, it gives me:
- 81 features for
limit=100
- 208 features for
limit=500
- 377 features for
limit=2000
However, when asking for category_stats
on the same category, it gives me 361 as total_count.
Below is the base request data block:
{'filters': {'category_ids': [569]},
'geometry': {'geom': [[13.43926404, 52.48961046],
[13.42040115, 52.49586382],
[13.42541101, 52.48808523],
[13.42368155, 52.48635829],
[13.40788599, 52.48886084],
[13.40852944, 52.487142],
[13.40745989, 52.48614988],
[13.40439187, 52.48499746],
[13.40154731, 52.48500125],
[13.40038591, 52.48373202],
[13.39423818, 52.4838664],
[13.39425346, 52.48577149],
[13.38629096, 52.48582648],
[13.38626853, 52.48486362],
[13.3715694, 52.48495055],
[13.37402099, 52.4851697],
[13.37416365, 52.48771105],
[13.37353615, 52.48798191],
[13.37539925, 52.489432],
[13.37643416, 52.49167597],
[13.36821531, 52.49333093],
[13.36952826, 52.49886974],
[13.37360623, 52.50416333],
[13.37497726, 52.50337776],
[13.37764916, 52.5079675],
[13.37893813, 52.50693045],
[13.39923153, 52.50807711],
[13.40022883, 52.50938108],
[13.40443425, 52.50777471],
[13.4052848, 52.50821063],
[13.40802944, 52.50618019],
[13.40997081, 52.50692569],
[13.41152096, 52.50489127],
[13.41407284, 52.50403794],
[13.41490921, 52.50491634],
[13.41760145, 52.50417013],
[13.41943091, 52.50564912],
[13.4230412, 52.50498109],
[13.42720031, 52.50566607],
[13.42940229, 52.50857222],
[13.45335235, 52.49752496],
[13.45090795, 52.49710803],
[13.44765912, 52.49472124],
[13.44497623, 52.49442276],
[13.43926404, 52.48961046]],
'radius': 2000,
'type': 'polygon'},
'limit': 100,
'request': 'pois',
'sortby': 'distance'}
TimMcCauley commented
Please give this a try now:
100 features for limit=100
361 features for limit=500
361 features for limit=2000
category_stats on the same category = 361 as total_count