Hello ,
I have a single index containing starbucks location data , a data view is based on an index from Elasticsearch
I wish to display results on kibana visualization based on the distance with different color coding
example
color 1 for stores in 5 mile radius
color 2 for stores in 10 mile radius etc
I have currently tried using a discover -> apply Query DSL filter with 5 miles and create a visualization , which is yielding all the values based on the initial geo distance filter
next , i wish to get the locations that are in 10 mile radius with a different color , but unable to add this.
can you please help me understand how this can be done ?
sample record ingested into index
{
"Unnamed: 0": 4403,
"storeNumber": "11031-95816",
"countryCode": "US",
"ownershipTypeCode": "CO",
"schedule": "[{'dayName': 'Today', 'hours': '4:30 AM to 11:00 PM', 'open': True, 'holiday': ''}, {'dayName': 'Tomorrow', 'hours': '4:30 AM to 11:00 PM', 'open': True, 'holiday': ''}, {'dayName': 'Thursday', 'hours': '4:30 AM to 11:00 PM', 'open': True, 'holiday': ''}, {'dayName': 'Friday', 'hours': '4:30 AM to 11:00 PM', 'open': True, 'holiday': ''}, {'dayName': 'Saturday', 'hours': '4:30 AM to 11:00 PM', 'open': True, 'holiday': ''}, {'dayName': 'Sunday', 'hours': '5:30 AM to 11:00 PM', 'open': True, 'holiday': ''}, {'dayName': 'Monday', 'hours': '4:30 AM to 11:00 PM', 'open': True, 'holiday': ''}]",
"slug": "barranca-i-10-west-covina-101-n-barranca-west-covina-ca-917911629-us",
"latitude": 34.072436,
"longitude": -117.881852,
"streetAddressLine1": "101 N. Barranca",
"streetAddressLine2": null,
"streetAddressLine3": null,
"city": "West Covina",
"countrySubdivisionCode": "CA",
"zipcode": "917911629",
"currentTimeOffset": -420,
"windowsTimeZoneId": "Pacific Standard Time",
"olsonTimeZoneId": "GMT-08:00 America/Los_Angeles"
}
query DSL sample
{
"bool": {
"filter": {
"geo_distance": {
"distance": "10mi",
"point_location": [
-121.92274393179278,
37.37703823893055
]
}
},
"must": {
"match_all": {}
}
}
}
thaank you