Skip to content
Florian Richter edited this page Oct 20, 2015 · 3 revisions

back to API Documentation

PolygonGetService

Try it!

Path: polygon
Produces: MediaType.APPLICATION_JSON
RolesAllowed: polygon

Request

GET /v1/polygon?cfg={"sources":[{"lat":32.610202,"lng":-117.003654,"id":"","tm":{"transit":{"frame":{"time":"39600","date":"20150813"}}}}],"elevation":true,"polygon":{"values":[1200],"minPolygonHoleSize":10000000}}&key=ENTER-KEY-HERE HTTP/1.1
Host: api.route360.net
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4
parameter type description
cb String prefix of the response
cfg String (JSON) APIConfig
key String your personal api key

Response

jQuery214023135109059512615_1445269146382({
    "code":"ok",
    "data":[{
            "area":439968.24480194505,
            "polygons":[{
                    "area":439968.24480194505,
                    "travelTime":300,
                    "outerBoundary":[
                        [1488460,6893073],
                        [...],
                        [1481408,6893192]
                    ]
                }
            ]
        }
    ],
    "message":""
})
key type
code String
data JSONArray
— object in data JSONObject
—— area Integer
—— polygons JSONArray
——— polygon in polygons JSONObject
———— area Integer
———— travelTime Integer
———— innerBoundary JSONArray
————— x in outerBoundary [Int, Int]
———— outerBoundary JSONArray
————— x in outerBoundary [Int, Int]
message String
Clone this wiki locally