{ "input": { "version": "2.0", "routeKey": "POST /lambda-ml-fastsam-api", "rawPath": "/prod/lambda-ml-fastsam-api", "rawQueryString": "", "headers": { "accept-encoding": "gzip", "authorization": "Bearer part1.part2.part3", "cdn-loop": "cloudflare; subreqs=1", "cf-connecting-ip": "2a06:98c0:3600::103", "cf-ew-via": "15", "cf-ray": "cf-ray-MXP", "cf-worker": "ml-tornidor.pages.dev", "content-length": "255", "content-type": "application/json", "host": "domain.execute-api.eu-west-1.amazonaws.com", "x-amzn-trace-id": "Root=1-656316af-2acac2173efc7cf468ea20cc", "x-forwarded-for": "2a06:98c0:3600::103, 172.71.114.177", "x-forwarded-port": "443", "x-forwarded-proto": "https" }, "requestContext": { "accountId": "686901913580", "apiId": "domain", "authorizer": { "jwt": { "claims": { "aud": "[http://prod-ml-lambda/ https://domain.eu.auth0.com/userinfo]", "azp": "v5hyXwmbFSm7pL0Y3p4xWNjYvw5pLIo2", "exp": "1701078906", "iat": "1700992506", "iss": "https://domain.eu.auth0.com/", "scope": "openid profile email", "sub": "auth0|sub-auth0" }, "scopes": null } }, "domainName": "domain.execute-api.eu-west-1.amazonaws.com", "domainPrefix": "domain", "http": { "method": "POST", "path": "/prod/lambda-ml-fastsam-api", "protocol": "HTTP/1.1", "sourceIp": "172.71.114.177", "userAgent": "" }, "requestId": "PAB7bgt0joEEJDw=", "routeKey": "POST /lambda-ml-fastsam-api", "stage": "prod", "time": "26/Nov/2023:09:58:07 +0000", "timeEpoch": 1700992687215 }, "body": "{\"bbox\": {\"ne\": {\"lat\": 39.036252959636606, \"lng\": 15.040283203125002}, \"sw\": {\"lat\": 38.302869955150044, \"lng\": 13.634033203125002}}, \"prompt\": [{\"type\": \"point\", \"data\": {\"lat\": 38.48542007717153, \"lng\": 14.921846904165468}, \"label\": 0}], \"zoom\": 10, \"source_type\": \"OpenStreetMap\"}", "isBase64Encoded": false }, "output": { "statusCode": 200, "header": { "Content-Type": "application/json" }, "body": "{\"n_predictions\": 1, \"geojson\": \"{\\\"type\\\": \\\"FeatureCollection\\\", \\\"features\\\": [{\\\"id\\\": \\\"0\\\", \\\"type\\\": \\\"Feature\\\", \\\"properties\\\": {\\\"raster_val\\\": 255.0}, \\\"geometry\\\": {\\\"type\\\": \\\"Polygon\\\", \\\"coordinates\\\": [[[14.91874694824219, 38.52077245013413], [14.932479858398436, 38.52077245013413], [14.932479858398436, 38.5196980033746], [14.947586059570312, 38.5196980033746], [14.947586059570312, 38.52077245013413], [14.955825805664064, 38.52077245013413], [14.955825805664064, 38.5196980033746], [14.957199096679688, 38.5196980033746], [14.957199096679688, 38.518623540576506], [14.958572387695312, 38.518623540576506], [14.958572387695312, 38.515400055952256], [14.959945678710936, 38.515400055952256], [14.959945678710936, 38.51110185192187], [14.961318969726562, 38.51110185192187], [14.961318969726562, 38.49713091673101], [14.962692260742188, 38.49713091673101], [14.962692260742188, 38.491756758498475], [14.964065551757814, 38.491756758498475], [14.964065551757814, 38.48960698295985], [14.965438842773436, 38.48960698295985], [14.965438842773436, 38.48638219939222], [14.966812133789062, 38.48638219939222], [14.966812133789062, 38.48423226350896], [14.975051879882812, 38.48423226350896], [14.975051879882812, 38.483157271516305], [14.976425170898438, 38.483157271516305], [14.976425170898438, 38.4820822634898], [14.977798461914064, 38.4820822634898], [14.977798461914064, 38.48100723942961], [14.97917175292969, 38.48100723942961], [14.97917175292969, 38.479932199335856], [14.977798461914064, 38.479932199335856], [14.977798461914064, 38.47778207104824], [14.976425170898438, 38.47778207104824], [14.976425170898438, 38.47670698285466], [14.975051879882812, 38.47670698285466], [14.975051879882812, 38.47563187862807], [14.972305297851562, 38.47563187862807], [14.972305297851562, 38.47348162207646], [14.970932006835938, 38.47348162207646], [14.970932006835938, 38.47240646975171], [14.969558715820314, 38.47240646975171], [14.969558715820314, 38.46810570012969], [14.96818542480469, 38.46810570012969], [14.96818542480469, 38.46703046764413], [14.965438842773436, 38.46703046764413], [14.965438842773436, 38.465955219126826], [14.964065551757814, 38.465955219126826], [14.964065551757814, 38.46487995457791], [14.962692260742188, 38.46487995457791], [14.962692260742188, 38.46380467399753], [14.961318969726562, 38.46380467399753], [14.961318969726562, 38.46272937738583], [14.959945678710936, 38.46272937738583], [14.959945678710936, 38.461654064742945], [14.958572387695312, 38.461654064742945], [14.958572387695312, 38.458428030628575], [14.959945678710936, 38.458428030628575], [14.959945678710936, 38.45627726106563], [14.961318969726562, 38.45627726106563], [14.961318969726562, 38.45305098649397], [14.959945678710936, 38.45305098649397], [14.959945678710936, 38.4519755295767], [14.958572387695312, 38.4519755295767], [14.958572387695312, 38.45090005662966], [14.957199096679688, 38.45090005662966], [14.957199096679688, 38.44122007878895], [14.955825805664064, 38.44122007878895], [14.955825805664064, 38.440144445551745], [14.947586059570312, 38.440144445551745], [14.947586059570312, 38.44122007878895], [14.944839477539064, 38.44122007878895], [14.944839477539064, 38.44337129717807], [14.943466186523438, 38.44337129717807], [14.943466186523438, 38.44659800454641], [14.942092895507814, 38.44659800454641], [14.942092895507814, 38.44982456765297], [14.939346313476562, 38.44982456765297], [14.939346313476562, 38.45090005662966], [14.937973022460938, 38.45090005662966], [14.937973022460938, 38.4519755295767], [14.936599731445314, 38.4519755295767], [14.936599731445314, 38.45305098649397], [14.935226440429688, 38.45305098649397], [14.935226440429688, 38.454126427381304], [14.933853149414062, 38.454126427381304], [14.933853149414062, 38.45627726106563], [14.932479858398436, 38.45627726106563], [14.932479858398436, 38.45735265386235], [14.931106567382814, 38.45735265386235], [14.931106567382814, 38.458428030628575], [14.929733276367188, 38.458428030628575], [14.929733276367188, 38.45950339136418], [14.92698669433594, 38.45950339136418], [14.92698669433594, 38.46057873606902], [14.924240112304688, 38.46057873606902], [14.924240112304688, 38.461654064742945], [14.920120239257812, 38.461654064742945], [14.920120239257812, 38.46272937738583], [14.917373657226564, 38.46272937738583], [14.917373657226564, 38.46380467399753], [14.914627075195312, 38.46380467399753], [14.914627075195312, 38.46487995457791], [14.911880493164062, 38.46487995457791], [14.911880493164062, 38.465955219126826], [14.910507202148438, 38.465955219126826], [14.910507202148438, 38.46703046764413], [14.90913391113281, 38.46703046764413], [14.90913391113281, 38.46810570012969], [14.90776062011719, 38.46810570012969], [14.90776062011719, 38.469180916583376], [14.906387329101562, 38.469180916583376], [14.906387329101562, 38.471331301394514], [14.90501403808594, 38.471331301394514], [14.90501403808594, 38.47240646975171], [14.903640747070314, 38.47240646975171], [14.903640747070314, 38.474556758368635], [14.902267456054688, 38.474556758368635], [14.902267456054688, 38.47563187862807], [14.900894165039062, 38.47563187862807], [14.900894165039062, 38.47778207104824], [14.89952087402344, 38.47778207104824], [14.89952087402344, 38.491756758498475], [14.900894165039062, 38.491756758498475], [14.900894165039062, 38.49390646989732], [14.902267456054688, 38.49390646989732], [14.902267456054688, 38.498205700271136], [14.903640747070314, 38.498205700271136], [14.903640747070314, 38.50787803050539], [14.90501403808594, 38.50787803050539], [14.90501403808594, 38.51110185192187], [14.906387329101562, 38.51110185192187], [14.906387329101562, 38.51325098601252], [14.90776062011719, 38.51325098601252], [14.90776062011719, 38.515400055952256], [14.90913391113281, 38.515400055952256], [14.90913391113281, 38.5164745668652], [14.910507202148438, 38.5164745668652], [14.910507202148438, 38.51754906173999], [14.911880493164062, 38.51754906173999], [14.911880493164062, 38.518623540576506], [14.914627075195312, 38.518623540576506], [14.914627075195312, 38.5196980033746], [14.91874694824219, 38.5196980033746], [14.91874694824219, 38.52077245013413]]]}}, {\\\"id\\\": \\\"1\\\", \\\"type\\\": \\\"Feature\\\", \\\"properties\\\": {\\\"raster_val\\\": 255.0}, \\\"geometry\\\": {\\\"type\\\": \\\"Polygon\\\", \\\"coordinates\\\": [[[14.950332641601564, 38.42078030658811], [14.950332641601564, 38.41970436883825], [14.951705932617188, 38.41970436883825], [14.951705932617188, 38.42078030658811], [14.950332641601564, 38.42078030658811]]]}}, {\\\"id\\\": \\\"2\\\", \\\"type\\\": \\\"Feature\\\", \\\"properties\\\": {\\\"raster_val\\\": 0.0}, \\\"geometry\\\": {\\\"type\\\": \\\"Polygon\\\", \\\"coordinates\\\": [[[13.633346557617188, 39.03678630788351], [13.633346557617188, 38.30233111129678], [15.040969848632812, 38.30233111129678], [15.040969848632812, 39.03678630788351], [13.633346557617188, 39.03678630788351]], [[14.91874694824219, 38.52077245013413], [14.91874694824219, 38.5196980033746], [14.914627075195312, 38.5196980033746], [14.914627075195312, 38.518623540576506], [14.911880493164062, 38.518623540576506], [14.911880493164062, 38.51754906173999], [14.910507202148438, 38.51754906173999], [14.910507202148438, 38.5164745668652], [14.90913391113281, 38.5164745668652], [14.90913391113281, 38.515400055952256], [14.90776062011719, 38.515400055952256], [14.90776062011719, 38.51325098601252], [14.906387329101562, 38.51325098601252], [14.906387329101562, 38.51110185192187], [14.90501403808594, 38.51110185192187], [14.90501403808594, 38.50787803050539], [14.903640747070314, 38.50787803050539], [14.903640747070314, 38.498205700271136], [14.902267456054688, 38.498205700271136], [14.902267456054688, 38.49390646989732], [14.900894165039062, 38.49390646989732], [14.900894165039062, 38.491756758498475], [14.89952087402344, 38.491756758498475], [14.89952087402344, 38.47778207104824], [14.900894165039062, 38.47778207104824], [14.900894165039062, 38.47563187862807], [14.902267456054688, 38.47563187862807], [14.902267456054688, 38.474556758368635], [14.903640747070314, 38.474556758368635], [14.903640747070314, 38.47240646975171], [14.90501403808594, 38.47240646975171], [14.90501403808594, 38.471331301394514], [14.906387329101562, 38.471331301394514], [14.906387329101562, 38.469180916583376], [14.90776062011719, 38.469180916583376], [14.90776062011719, 38.46810570012969], [14.90913391113281, 38.46810570012969], [14.90913391113281, 38.46703046764413], [14.910507202148438, 38.46703046764413], [14.910507202148438, 38.465955219126826], [14.911880493164062, 38.465955219126826], [14.911880493164062, 38.46487995457791], [14.914627075195312, 38.46487995457791], [14.914627075195312, 38.46380467399753], [14.917373657226564, 38.46380467399753], [14.917373657226564, 38.46272937738583], [14.920120239257812, 38.46272937738583], [14.920120239257812, 38.461654064742945], [14.924240112304688, 38.461654064742945], [14.924240112304688, 38.46057873606902], [14.92698669433594, 38.46057873606902], [14.92698669433594, 38.45950339136418], [14.929733276367188, 38.45950339136418], [14.929733276367188, 38.458428030628575], [14.931106567382814, 38.458428030628575], [14.931106567382814, 38.45735265386235], [14.932479858398436, 38.45735265386235], [14.932479858398436, 38.45627726106563], [14.933853149414062, 38.45627726106563], [14.933853149414062, 38.454126427381304], [14.935226440429688, 38.454126427381304], [14.935226440429688, 38.45305098649397], [14.936599731445314, 38.45305098649397], [14.936599731445314, 38.4519755295767], [14.937973022460938, 38.4519755295767], [14.937973022460938, 38.45090005662966], [14.939346313476562, 38.45090005662966], [14.939346313476562, 38.44982456765297], [14.942092895507814, 38.44982456765297], [14.942092895507814, 38.44659800454641], [14.943466186523438, 38.44659800454641], [14.943466186523438, 38.44337129717807], [14.944839477539064, 38.44337129717807], [14.944839477539064, 38.44122007878895], [14.947586059570312, 38.44122007878895], [14.947586059570312, 38.440144445551745], [14.955825805664064, 38.440144445551745], [14.955825805664064, 38.44122007878895], [14.957199096679688, 38.44122007878895], [14.957199096679688, 38.45090005662966], [14.958572387695312, 38.45090005662966], [14.958572387695312, 38.4519755295767], [14.959945678710936, 38.4519755295767], [14.959945678710936, 38.45305098649397], [14.961318969726562, 38.45305098649397], [14.961318969726562, 38.45627726106563], [14.959945678710936, 38.45627726106563], [14.959945678710936, 38.458428030628575], [14.958572387695312, 38.458428030628575], [14.958572387695312, 38.461654064742945], [14.959945678710936, 38.461654064742945], [14.959945678710936, 38.46272937738583], [14.961318969726562, 38.46272937738583], [14.961318969726562, 38.46380467399753], [14.962692260742188, 38.46380467399753], [14.962692260742188, 38.46487995457791], [14.964065551757814, 38.46487995457791], [14.964065551757814, 38.465955219126826], [14.965438842773436, 38.465955219126826], [14.965438842773436, 38.46703046764413], [14.96818542480469, 38.46703046764413], [14.96818542480469, 38.46810570012969], [14.969558715820314, 38.46810570012969], [14.969558715820314, 38.47240646975171], [14.970932006835938, 38.47240646975171], [14.970932006835938, 38.47348162207646], [14.972305297851562, 38.47348162207646], [14.972305297851562, 38.47563187862807], [14.975051879882812, 38.47563187862807], [14.975051879882812, 38.47670698285466], [14.976425170898438, 38.47670698285466], [14.976425170898438, 38.47778207104824], [14.977798461914064, 38.47778207104824], [14.977798461914064, 38.479932199335856], [14.97917175292969, 38.479932199335856], [14.97917175292969, 38.48100723942961], [14.977798461914064, 38.48100723942961], [14.977798461914064, 38.4820822634898], [14.976425170898438, 38.4820822634898], [14.976425170898438, 38.483157271516305], [14.975051879882812, 38.483157271516305], [14.975051879882812, 38.48423226350896], [14.966812133789062, 38.48423226350896], [14.966812133789062, 38.48638219939222], [14.965438842773436, 38.48638219939222], [14.965438842773436, 38.48960698295985], [14.964065551757814, 38.48960698295985], [14.964065551757814, 38.491756758498475], [14.962692260742188, 38.491756758498475], [14.962692260742188, 38.49713091673101], [14.961318969726562, 38.49713091673101], [14.961318969726562, 38.51110185192187], [14.959945678710936, 38.51110185192187], [14.959945678710936, 38.515400055952256], [14.958572387695312, 38.515400055952256], [14.958572387695312, 38.518623540576506], [14.957199096679688, 38.518623540576506], [14.957199096679688, 38.5196980033746], [14.955825805664064, 38.5196980033746], [14.955825805664064, 38.52077245013413], [14.947586059570312, 38.52077245013413], [14.947586059570312, 38.5196980033746], [14.932479858398436, 38.5196980033746], [14.932479858398436, 38.52077245013413], [14.91874694824219, 38.52077245013413]], [[14.950332641601564, 38.42078030658811], [14.950332641601564, 38.41970436883825], [14.951705932617188, 38.41970436883825], [14.951705932617188, 38.42078030658811], [14.950332641601564, 38.42078030658811]]]}}]}\", \"n_shapes_geojson\": 3, \"duration_run\": 6.364323854446411, \"message\": \"ok\", \"request_id\": \"test_invoke_id\"}", "isBase64Encoded": false } }