MapBox - Polygon
Replace text values in one or multiple columns
The MapBox - Polygon tool is used to generate a GeoJSON Polygon (as a string column) like the one below.
You can use the Polygon column in visualisation tools to show an area around a point. The GeoJSON Polygon output is also very useful if you want to use the Point-in-Polygon tool. The polygon from above is an area of 1000 meters walking distance around Rockefella Center on Manhattan.
The 1000-meter walking distance around Rockefella
We use MapBox to generate the output of this tool. MapBox has a generous free tier that includes 100.000 monthly requests.
For every row in your dataset you will call a MapBox API. In other words, the tool will take longer time to run with many records. We strongly recommend testing on smaller datasets.
We have built-in restriction to handle rate limits for a single tool. However, you should be cautious if you run multiple models at the same time using the MapBox tool suite.
You are responsible for respecting the Terms of Use specified by MapBox when you use the MapBox - tool.
Configuration
The MapBox - Polygon tool consists of seven required input.
Select ID Column
Select a column containing an ID. Use the Row ID to generate one if you don’t have one in your dataset.
Point Latitude
Select the column containing the latitude of the point around which you want to create an area.
Point Longitude
Select the column containing the longitude of the point around which you want to create an area.
Select Routing Type
Select your routing type. You can choose between Driving, Driving (Traffic), Walking and Cycling. Your selection will determine the size of the area - you will get a larger area if you select driving as opposed to walking because you can cover a larger area driving versus walking.
Select Contour Type
This selection determines the unit of your column selection in Step #6. Select meters if want a distance of x meters around a point and select minutes if you want the area to represent how far you can get from the point in x minutes (depending on your routing type) .
Select Column with Contour Value
Select the column containing the value in either meters or meters that defines how large your polygon will be.
Input MapBox API Token
Input your MapBox API Token.
Advanced Settings
There are a number of advanced settings available to customize the shape of the area being created.
When To Use
The usage of the MapBox - Polygon tool is relatively narrow.
- The MapBox - Polygon can help you create the polygon input for the Point-in-Polygon tool
- You want to visualise an area in a visualisation tool