AcroSuite Locator

FREE
By Samurai | Updated a month ago | Location
Popularity

6.7 / 10

Latency

1,208ms

Service Level

100%

Health Check

N/A

Back to All Tutorials (1)

Description and Examples for AcroSuite Locator

AcroSuite Locator may extract Adjacent Locations and generate some Location Clusters from a points’ coordinates(longitude/latitude) array.

##1> Adjacent Locations
Extract those adjacent locations(points) of the first point within MaxDistance or MaxCount from a points’ coordinates(longitude/latitude) array,returning point No., coordinates(longitude/latitude) set, distances set and directions set. *Number limit of input points: 1000
https://acrosuite-locator.p.rapidapi.com/v0_1/CstService/tools/geometry/neighbors
http method: post

Request Header parameters:

Content-Type: application/json
x-rapidapi-host: acrosuite-locator.p.rapidapi.com
x-rapidapi-key: [your rapidapi-key]

Request Query parameters:

maxCount=&maxDistance=&withDistance=&withDirection=
maxCount: the max count of adjacent locations(points) to return
maxDistance: the max distance of adjacent locations(points), unit: kilometer
withDistance: include distance information in return or not, true: include, false: not include
withDirection: true: include direction information in return or not, include, false: not include

Request JSON Example:

{
    "type": "MultiPoint",
    "coordinates": [
        [139.421134, 35.904979],[140.238484, 35.767676],[140.156450, 35.441841],[139.433170, 35.392131],[138.421134, 36.904979]
    ]
}

“coordinates”: points’ coordinates([longitude, latitude]) array

Response JSON Example:

{
    "contents": {
        "coordinates": [
            [
                139.43317,
                35.392131
            ],
            [
                140.238484,
                35.767676
            ],
            [
                140.15645,
                35.441841
            ],
            [
                138.421134,
                36.904979
            ]
        ],
        "directions": [
            178.90393185595997,
            101.46725353730005,
            127.57290815557042,
            321.4671156418437
        ],
        "distances": [
            57.03646469116211,
            75.244873046875,
            84.04613494873047,
            142.7338409423828
        ],
        "nos": [
            3,
            1,
            2,
            4
        ],
        "type": "MultiPoint"
    },
    "errors": null,
    "memo": "Congratulations on your success!",
    "result": true
}

“contents”.“coordinates”: from Request JSON “coordinates” array.
“contents”.“nos”: the extracted locations(points) No. from the original locations(points) array

##2> Location Clustering
Generate some Clusters of points within MaxDistance from a points’ coordinates(longitude/latitude) array, returning points No., center point coordinates(longitude/latitude) and Points’ coordinates(longitude/latitude) set. *Number limit of input points: 1000
https://acrosuite-locator.p.rapidapi.com/v0_1/CstService/tools/geometry/clusters
http method: post

Request Header parameters:

Content-Type: application/json
x-rapidapi-host: acrosuite-locator.p.rapidapi.com
x-rapidapi-key: [your rapidapi-key]

Request Query parameters:

maxDistance=100&withCoordinates=true
maxDistance: the max distance of locations(points) within a Cluster, unit: kilometer
withCoordinates: include coordinates information in return or not, true: include, false: not include

Request JSON Example:

{
    "type": "MultiPoint",
    "coordinates": [
        [139.421134, 35.904979],[140.238484, 35.767676],[140.156450, 35.441841],[139.433170, 35.392131],[138.421134, 36.904979]
    ]
}

“coordinates”: points’ coordinates([longitude, latitude]) array

Response JSON Example:

{
    "contents": [
        {
            "center": [
                139.8123095,
                35.626656749999995
            ],
            "coordinates": [
                [
                    139.421134,
                    35.904979
                ],
                [
                    140.238484,
                    35.767676
                ],
                [
                    140.15645,
                    35.441841
                ],
                [
                    139.43317,
                    35.392131
                ]
            ],
            "count": 4,
            "distanceLimit": 100,
            "memo": "",
            "no": 0
        },
        {
            "center": [
                138.421134,
                36.904979
            ],
            "coordinates": [
                [
                    138.421134,
                    36.904979
                ]
            ],
            "count": 1,
            "distanceLimit": 100,
            "memo": "",
            "no": 1
        }
    ],
    "errors": null,
    "memo": "Congratulations on your success!",
    "result": true
}

“contents”.“no”: the cluster No.
“contents”.“center”: the center point coordinates.
“contents”.“coordinates”: locations(points) coordinates set in the cluster.
“contents”.“count”: locations(points) number in the cluster.
“contents”.“distanceLimit”: the max distance in the cluster.