Expression Index Geo Nearest

Expression Index Geo Nearest

An issue arose when a selection was created from an Geo Nearest Expression using an index. The problem was that the place was not corresponding to the coordinates on the map Visualisation. 



E.g. When choosing Warwick in the list on the selection and then dropping a plot map on top, the plots were showing in Pontefract instead of over Warwick. 







Looking at the expression, the index was doing its job correctly. The problem was that there were 60 lat/long coordinates and 61 locations in the index. So at some point in the list a lat/long was missed for an index location. So when the build was running on the map visualisation, it was reading down the list and finding Warwick and producing the plots with the coordinates given. Which were for Pontefract (which was next in that list)