Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
peters
Partner - Contributor
Partner - Contributor

GeoOperation Closest in Chart expression

Hi

I am working in SaaS.

I would like a Map to show the Closest route between:

- a start point stored in a variable (or a file) and

- a set known of points (eg. Airports).

- ie.  if the location in the variable changes, the Closest route should be shown on the next map update.

 

Based on Patric's examples the expression below works dynamically for all Routes, but not for the Closest route.

=GeoOperations.ScriptEvalStr('Select LowResLine from Routes(originField="Start", destField="AirportPt",transportation="$(vMode)")',
'$(vMyPoint)' as Start, AirportPt)

 

QUESTION:

Can the Closest route be dynamically calculated in the Map Object Location expression, or must it be calculated in the Load Script?

 

 

Labels (3)
0 Replies