Hi All Experts, need help here. I am trying to download the polygon from the map shown here. https://www.onemap.sg/main/v2/dronequery
But so far i am clueless on how to do it in Alteryx, can someone please help out?
Thanks in advance.
Solved! Go to Solution.
This page looks like it uses javascript to render up the information selected. For spatial objects, Alteryx can bring in lat/long coordinates, shp files, kml files, grc files, etc. However, this website does not allow for easily exportable information from either a file perspective, or even lat/long coordinates. I wish it were as easy as "Point a Download tool at the webpage and parse out the data", but it is a bit more complicated than that.
The site has an API: https://docs.onemap.sg/
You can use the Themes API to get the polygons
- You will need to register for a free account: https://developers.onemap.sg/signup/
- You can then use Postman to get a token from https://developers.onemap.sg/privateapi/auth/post/getToken
I couldn't get Alteryx to get the token for some reason but Postman will happily
- Use a download tool to query the themes API for:
boundary_5km
danger_areas
mha_uav_2015
prohibited_areas
restricted_areaspoly
tra_poly
- Next, you can parse and build the polygons.
I have put together a quick attempt doing this. You will need to put a token in the top left input
Fantastic find @jdunkerley79 I didn't see their API!