You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`input_data`: Description of input data. Needs to be the names of the defined variables or executable Python statements.
18
+
-`region_boundaries`: Location of the contour, which is pandas.Series in WKB format.
19
+
-`weights`: Weight of the contour, which is pandas.Series of float64 type or int64 type.
20
+
-`params`: Drawing parameters.
21
+
-`width`: Width of the image.
22
+
-`height`: Height of the image.
23
+
-`bounding_box`: Geographic extent represented by the rendered image [x_min, y_min, x_max, y_max].
24
+
-`coordinate_system`: Coordinate system of the input data. See [World Geodetic System](https://en.wikipedia.org/wiki/World_Geodetic_System) for more information.
25
+
-`color_gradient`: The color gradient range of the contour, that is, the color of the contour is gradient from the left to the right.
26
+
-`color_bound`: Value range of the contour color, used together with `color_gradient`.
27
+
-`opacity`: Opacity of the contour.
28
+
-`aggregation_type`: Aggregation type.
29
29
30
30
### Python backend
31
31
32
-
The example for Python backend is as follows:
32
+
A JSON example for the Python backend is as follows:
33
33
34
34
```json
35
35
{
@@ -52,7 +52,7 @@ The example for Python backend is as follows:
52
52
53
53
### PySpark backend
54
54
55
-
If you use the PySpark backend, you only need to change the `input_data` in the example of Python backend to the following SQL query:
55
+
If you use the PySpark backend, you only need to change the `input_data` in the above example for Python backend to the corresponding SQL query. See the following example:
56
56
57
57
```
58
58
"sql": "select ST_GeomFromText(buildingtext_pickup) as polygon, fare_amount as count from raw_data where buildingtext_pickup!=''"
@@ -62,13 +62,13 @@ If you use the PySpark backend, you only need to change the `input_data` in the
62
62
63
63
### Python
64
64
65
-
The example uses Python's `requests` library to call `Arctern RESTful API`. Run the following command to install `requests`:
65
+
Examples in this article use Python's `requests` library. Run the following command to install `requests`:
66
66
67
67
```bash
68
68
pip install requests
69
69
```
70
70
71
-
Here is an example of calling the `choroplethmap` API:
71
+
Sample code:
72
72
73
73
```python
74
74
import requests
@@ -130,6 +130,6 @@ curl --location --request POST 'http://localhost:8080/choroplethmap' \
-`input_data`: Description of input data. Needs to be the names of the defined variables or executable Python statements.
18
+
-`points`: Location of the fishnet cell, which is pandas.Series in WKB format.
19
+
-`weights`: Weight of the fishnet cell, which is pandas.Series of float64 type or int64 type.
20
+
-`params`: Drawing parameters.
21
+
-`width`: Width of the image.
22
+
-`height`: Height of the image.
23
+
-`bounding_box`: Geographic extent represented by the rendered image [x_min, y_min, x_max, y_max].
24
+
-`coordinate_system`: Coordinate system of the input data. See [World Geodetic System](https://en.wikipedia.org/wiki/World_Geodetic_System) for more information.
25
+
-`color_gradient`: The color gradient range of the fishnet cell. Supports the default value ["#0000FF", "#FF0000"] only.
26
+
-`cell_size`: Size of the fishnet cell.
27
+
-`cell_spacing`: Spacing between fishnet cells.
28
+
-`opacity`: Opacity of the fishnet cell.
29
+
-`aggregation_type`: Aggregation type.
30
30
31
31
### Python backend
32
32
33
-
The example for Python backend is as follows:
33
+
A JSON example for the Python backend is as follows:
34
34
35
35
```json
36
36
{
@@ -54,7 +54,7 @@ The example for Python backend is as follows:
54
54
55
55
### PySpark backend
56
56
57
-
If you use the PySpark backend, you only need to change the `input_data` in the example of Python backend to the following SQL query:
57
+
If you use the PySpark backend, you only need to change the `input_data` in the above example to the corresponding SQL query. See the following example:
58
58
59
59
```
60
60
"sql": "select ST_Point(pickup_longitude, pickup_latitude) as point, fare_amount as count from raw_data"
@@ -64,13 +64,13 @@ If you use the PySpark backend, you only need to change the `input_data` in the
64
64
65
65
### Python
66
66
67
-
The example uses Python's `requests` library to call `Arctern RESTful API`. Run the following command to install `requests`:
67
+
Examples in this article use Python's `requests` library. Run the following command to install `requests`:
68
68
69
69
```bash
70
70
pip install requests
71
71
```
72
72
73
-
Here is an example of calling the `fishnetmap` API:
73
+
Sample code:
74
74
75
75
```python
76
76
import requests
@@ -134,6 +134,6 @@ curl --location --request POST 'http://localhost:8080/fishnetmap' \
-`input_data`: Description of input data. Needs to be the names of the defined variables or executable Python statements.
18
+
-`points`: Location of the point, which is pandas.Series in WKB format.
19
+
-`weights`: Heat value, which is pandas.Series of float64 type or int64 type.
20
+
-`params`: Drawing parameters.
21
+
-`width`: Width of the image.
22
+
-`height`: Height of the image.
23
+
-`bounding_box`: Geographic extent represented by the rendered image [x_min, y_min, x_max, y_max].
24
+
-`coordinate_system`: Coordinate system of the input data. See [World Geodetic System](https://en.wikipedia.org/wiki/World_Geodetic_System) for more information.
25
+
-`map_zoom_level`: Zoom level of the map, in the range of [1, 15].
26
+
-`aggregation_type`: Aggregation type.
27
27
28
28
### Python backend
29
29
30
-
The example for Python backend is as follows:
30
+
A JSON example for the Python backend is as follows:
31
31
32
32
```json
33
33
{
@@ -48,7 +48,7 @@ The example for Python backend is as follows:
48
48
49
49
### PySpark backend
50
50
51
-
If you use the PySpark backend, you only need to change the `input_data` in the example of Python backend to the following SQL query:
51
+
If you use the PySpark backend, you only need to change the `input_data` in the above example for Python backend to the corresponding SQL query. See the following example:
52
52
53
53
```
54
54
"sql": "select ST_Point(pickup_longitude, pickup_latitude) as point, fare_amount as weights from raw_data"
@@ -58,13 +58,13 @@ If you use the PySpark backend, you only need to change the `input_data` in the
58
58
59
59
### Python
60
60
61
-
The example uses Python's `requests` library to call `Arctern RESTful API`. Run the following command to install `requests`:
61
+
Examples in this article use Python's `requests` library. Run the following command to install `requests`:
62
62
63
63
```bash
64
64
pip install requests
65
65
```
66
66
67
-
Here is an example of calling the `heatmap` API:
67
+
Sample code:
68
68
69
69
```python
70
70
import requests
@@ -122,6 +122,6 @@ curl --location --request POST 'http://localhost:8080/heatmap' \
-`input_data`: Description of input data. Needs to be the names of the defined variables or executable Python statements.
18
+
-`points`: Location of points, which is pandas.Series in WKB format.
19
+
-`params`: Drawing parameters.
20
+
-`width`: Width of the image.
21
+
-`height`: Height of the image.
22
+
-`bounding_box`: Geographic extent represented by the rendered image [x_min, y_min, x_max, y_max].
23
+
-`icon_path`: Absolute path to the icon file in PNG format.
24
+
-`coordinate_system`: Coordinate system of the input data. See [World Geodetic System](https://en.wikipedia.org/wiki/World_Geodetic_System) for more information.
25
25
26
26
### Python backend
27
27
28
-
The example for Python backend is as follows:
28
+
A JSON example for the Python backend is as follows:
29
29
30
30
```json
31
31
{
@@ -44,7 +44,7 @@ The example for Python backend is as follows:
44
44
45
45
### PySpark backend
46
46
47
-
If you use the PySpark backend, you only need to change the `input_data` in the example of Python backend to the following SQL query:
47
+
If you use the PySpark backend, you only need to change the `input_data` in the above example for Python backend to the corresponding SQL query. See the following example:
48
48
49
49
```
50
50
"sql": "select ST_Point(pickup_longitude, pickup_latitude) as point from raw_data"
@@ -54,13 +54,13 @@ If you use the PySpark backend, you only need to change the `input_data` in the
54
54
55
55
### Python
56
56
57
-
The example uses Python's `requests` library to call `Arctern RESTful API`. Run the following command to install `requests`:
57
+
Examples in this article use Python's `requests` library. Run the following command to install `requests`:
58
58
59
59
```bash
60
60
pip install requests
61
61
```
62
62
63
-
Here is an example of calling the `icon_viz` API:
63
+
Sample code:
64
64
65
65
```python
66
66
import requests
@@ -114,6 +114,6 @@ curl --location --request POST 'http://localhost:8080/icon_viz' \
0 commit comments