The MapBox - Polygon tool is used to generate a GeoJSON Polygon (as a string column) like the one below.

{"type": "Polygon", "coordinates": [[[-73.97166, 40.766178], [-73.971941, 40.766191], [-73.972355, 40.766215], [-73.97266, 40.766229], [-73.972868, 40.766118], [-73.973217, 40.76591], [-73.973525, 40.765775], [-73.97366, 40.765745], [-73.973874, 40.765697], [-73.974401, 40.765651], [-73.97466, 40.765566], [-73.975042, 40.765528], [-73.975242, 40.765492], [-73.97566, 40.765457], [-73.976082, 40.765332], [-73.976324, 40.765246], [-73.97666, 40.765137], [-73.976858, 40.765108], [-73.97752, 40.76505], [-73.97766, 40.765032], [-73.977752, 40.765002], [-73.978018, 40.76491], [-73.97849, 40.76474], [-73.97866, 40.764679], [-73.978899, 40.764671], [-73.979394, 40.764644], [-73.97966, 40.764635], [-73.98008, 40.76449], [-73.980202, 40.764452], [-73.98066, 40.764279], [-73.980988, 40.764238], [-73.981378, 40.764192], [-73.98166, 40.764157], [-73.98188, 40.76413], [-73.982584, 40.763986], [-73.98266, 40.763976], [-73.982709, 40.763959], [-73.982894, 40.76391], [-73.983521, 40.763771], [-73.98366, 40.763749], [-73.983872, 40.763698], [-73.98434, 40.763589], [-73.98466, 40.763509], [-73.985147, 40.763397], [-73.985192, 40.763378], [-73.98566, 40.763235], [-73.985919, 40.763169], [-73.986408, 40.763162], [-73.98666, 40.763119], [-73.986824, 40.763074], [-73.987199, 40.76291], [-73.987483, 40.762733], [-73.98766, 40.762612], [-73.988142, 40.762392], [-73.98845, 40.76191], [-73.988272, 40.761522], [-73.988194, 40.761376], [-73.988029, 40.76091], [-73.987923, 40.760647], [-73.98766, 40.760045], [-73.987614, 40.759956], [-73.987594, 40.75991], [-73.987554, 40.759804], [-73.987308, 40.759262], [-73.987205, 40.75891], [-73.987101, 40.758469], [-73.98707, 40.75832], [-73.986977, 40.75791], [-73.986906, 40.757664], [-73.98666, 40.756932], [-73.986653, 40.756917], [-73.986649, 40.75691], [-73.986637, 40.756887], [-73.986281, 40.756289], [-73.986125, 40.75591], [-73.985988, 40.755582], [-73.985745, 40.754995], [-73.985709, 40.75491], [-73.985695, 40.754875], [-73.98566, 40.754805], [-73.985374, 40.754196], [-73.985255, 40.75391], [-73.985128, 40.753442], [-73.985111, 40.753361], [-73.984999, 40.75291], [-73.984938, 40.752632], [-73.984768, 40.752018], [-73.984742, 40.75191], [-73.984716, 40.751854], [-73.98466, 40.751762], [-73.984322, 40.751248], [-73.984153, 40.75091], [-73.984036, 40.750534], [-73.983958, 40.750208], [-73.983875, 40.74991], [-73.983798, 40.749772], [-73.98366, 40.749678], [-73.983439, 40.749689], [-73.982915, 40.749655], [-73.98266, 40.749665], [-73.982467, 40.749717], [-73.981889, 40.74991], [-73.981719, 40.749969], [-73.98166, 40.749979], [-73.981572, 40.749998], [-73.980805, 40.750055], [-73.98066, 40.750102], [-73.980399, 40.750171], [-73.980061, 40.750311], [-73.97966, 40.750381], [-73.979227, 40.750477], [-73.978979, 40.750591], [-73.97866, 40.750696], [-73.97848, 40.75073], [-73.977874, 40.750696], [-73.97766, 40.750723], [-73.977514, 40.750764], [-73.977152, 40.75091], [-73.976795, 40.751045], [-73.97666, 40.751071], [-73.976453, 40.751117], [-73.975898, 40.751148], [-73.97566, 40.751227], [-73.975227, 40.751343], [-73.975133, 40.751383], [-73.97466, 40.751464], [-73.974265, 40.751515], [-73.97395, 40.75162], [-73.97366, 40.751674], [-73.973485, 40.751735], [-73.97279, 40.75178], [-73.97266, 40.75181], [-73.972566, 40.751816], [-73.972176, 40.75191], [-73.97179, 40.75204], [-73.97166, 40.752104], [-73.971424, 40.752146], [-73.971022, 40.752272], [-73.97066, 40.752317], [-73.970168, 40.752402], [-73.970153, 40.752403], [-73.96966, 40.752502], [-73.969339, 40.752589], [-73.96887, 40.7527], [-73.96866, 40.752754], [-73.96854, 40.75279], [-73.968246, 40.75291], [-73.967842, 40.753092], [-73.96766, 40.753266], [-73.967217, 40.753467], [-73.966961, 40.75391], [-73.967051, 40.754301], [-73.967101, 40.754469], [-73.967185, 40.75491], [-73.967351, 40.755219], [-73.967534, 40.755784], [-73.967585, 40.75591], [-73.967603, 40.755967], [-73.96766, 40.756112], [-73.967921, 40.756649], [-73.968021, 40.75691], [-73.968234, 40.757336], [-73.968316, 40.757566], [-73.968458, 40.75791], [-73.968493, 40.758077], [-73.96866, 40.758874], [-73.968668, 40.758902], [-73.968671, 40.75891], [-73.968687, 40.758937], [-73.969068, 40.759502], [-73.969225, 40.75991], [-73.969316, 40.760254], [-73.969464, 40.760714], [-73.969521, 40.76091], [-73.969561, 40.761009], [-73.96966, 40.761233], [-73.969885, 40.761685], [-73.969978, 40.76191], [-73.970105, 40.762355], [-73.970129, 40.762441], [-73.970262, 40.76291], [-73.970373, 40.763197], [-73.970555, 40.763805], [-73.970591, 40.76391], [-73.970608, 40.763962], [-73.97066, 40.76409], [-73.970927, 40.764643], [-73.971023, 40.76491], [-73.971226, 40.765344], [-73.971287, 40.765537], [-73.971429, 40.76591], [-73.971508, 40.766062], [-73.97166, 40.766178]]]}

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.

1

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.

2

Point Latitude

Select the column containing the latitude of the point around which you want to create an area.

3

Point Longitude

Select the column containing the longitude of the point around which you want to create an area.

4

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.

5

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) .

6

Select Column with Contour Value

Select the column containing the value in either meters or meters that defines how large your polygon will be.

7

Input MapBox API Token

Input your MapBox API Token.

8

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

Examples