Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Drawing Lines In Map Between Source and Nearest Points

MAAbdullahAlMubarah
8 - Asteroid

Dear Experts

 

I'm a beginner in Alteryx b, I'm looking to display the calculated distance between two sides :

Side-1 a Source Point Represent a point in the Map.

Side-2 The nearest (N) stores from the line in (1).

 

In the end, I need the results with the following output:
1-calculated a distance to display on the map (Browser).
2-Lines from Side-1 The Start point and all the nearest stores of that line (With different object points than the one on Side-1).
As it is displayed in the picture. I included All the resources with this post.

Map Path.jpg

 

 

 

2 REPLIES 2
CharlieS
17 - Castor
17 - Castor

I've attached an example to show how you can create lines and add labels to a couple of centroids from "stores.yxdb".

 

Key features:

- ST_CreateLine( in the Formula tool creates the line.

- Another formula created a centroid of the lines to attach the labels to. 

- In the Map tool, the line centroids are invisible and only serve as anchors for the labels.

 

20181210-NearestwithDist.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MAAbdullahAlMubarah
8 - Asteroid

Thank You So Much

Labels