Alteryx Designer Desktop Discussions

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

How can I generate the spatial points for a highway?

The_Fray
8 - Asteroid

Hello,

 

Lets say I have two addresses I want to travel between. Which is easy enough to look up on google maps. How can I find the data points for that trip so I could add it too Alteryx?

 

Thanks,


Frazer

3 REPLIES 3
meeravijayan2011
8 - Asteroid

Hi @The_Fray 

 

If the data contains the addresses of two points it is possible to geocode it by calling google API and get the lat and long of the two points. 

Please go through the below blog for detailed info:

 

https://www.theinformationlab.co.uk/2017/01/23/geocode-addresses-alteryx-google-api/

 

 

 

The_Fray
8 - Asteroid

Hello,

 

Thanks for the thoughts. I am not sure if that is exactly what I am looking for. Perhaps an example is better to explain: how would I get the points for the following route?

 

The_Fray_0-1574435406782.png

TravisR
Alteryx Alumni (Retired)

Hi @The_Fray You might want to check out the google directions API for this. 

 

https://developers.google.com/maps/documentation/directions/intro

 

Looks like it can return a series of points (which you can then build into a polyline for your route) or return an encoded polyline (which you would have to decode and then convert into geojson/Alteryx spatial object).

Labels