I2MapsApi
    I2MapsApi
    • Login
      POST
    • Directions
      POST
    • Matrix
      POST
    • Optimization
      POST

      Directions

      Em desenvolvimento
      POST
      /api/maps/directions

      Requisição

      Parâmetros Header

      Parâmetros Bodyapplication/json

      Exemplo
      {
          "points": [
              {
                  "lat": -21.172535245620374, 
                  "long": -43.01689524703617
              },
              {
                  "lat": -21.11756942394107, 
                  "long": -42.943045758248985
              }
          ]
      }

      Códigos de solicitação

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/api/maps/directions' \
      --header 'Authorization: Bearer {{token}}' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "points": [
              {
                  "lat": -21.172535245620374, 
                  "long": -43.01689524703617
              },
              {
                  "lat": -21.11756942394107, 
                  "long": -42.943045758248985
              }
          ]
      }'

      Respostas

      🟢200Success
      application/json
      Body

      Exemplo
      {
          "box": {
              "southWest": {
                  "lat": -21.173214,
                  "lon": -43.018825
              },
              "northEast": {
                  "lat": -21.111578,
                  "lon": -42.938805
              }
          },
          "routes": [
              {
                  "box": {
                      "southWest": {
                          "lat": -21.173214,
                          "lon": -43.018825
                      },
                      "northEast": {
                          "lat": -21.111578,
                          "lon": -42.938805
                      }
                  },
                  "summary": {
                      "distance": 14547.9,
                      "duration": 1348.1
                  },
                  "wayPoints": [
                      0,
                      300
                  ],
                  "segments": [
                      {
                          "distance": 14547.9,
                          "duration": 1348.1,
                          "steps": [
                              {
                                  "distance": 112.4,
                                  "duration": 27,
                                  "instruction": "Head southwest",
                                  "name": "-",
                                  "wayPoints": [
                                      0,
                                      2
                                  ]
                              },
                              {
                                  "distance": 37.7,
                                  "duration": 9.1,
                                  "instruction": "Keep right onto Rua Francisco de Assis Meireles",
                                  "name": "Rua Francisco de Assis Meireles",
                                  "wayPoints": [
                                      2,
                                      4
                                  ]
                              },
                              {
                                  "distance": 333.9,
                                  "duration": 80.1,
                                  "instruction": "Turn right onto Rua Teofilo Antônio de Melo",
                                  "name": "Rua Teofilo Antônio de Melo",
                                  "wayPoints": [
                                      4,
                                      9
                                  ]
                              },
                              {
                                  "distance": 92.6,
                                  "duration": 22.2,
                                  "instruction": "Turn left onto Rua Manoel Aniceto Lage",
                                  "name": "Rua Manoel Aniceto Lage",
                                  "wayPoints": [
                                      9,
                                      10
                                  ]
                              },
                              {
                                  "distance": 173.7,
                                  "duration": 13.9,
                                  "instruction": "Turn right",
                                  "name": "-",
                                  "wayPoints": [
                                      10,
                                      14
                                  ]
                              },
                              {
                                  "distance": 48.8,
                                  "duration": 13.7,
                                  "instruction": "Enter the roundabout and take the 2nd exit",
                                  "name": "-",
                                  "wayPoints": [
                                      14,
                                      19
                                  ]
                              },
                              {
                                  "distance": 10382.6,
                                  "duration": 835.8,
                                  "instruction": "Turn slight right onto Avenida Engenheiro João Cataldo Pinto, BR-265, MGC-265",
                                  "name": "Avenida Engenheiro João Cataldo Pinto, BR-265, MGC-265",
                                  "wayPoints": [
                                      19,
                                      220
                                  ]
                              },
                              {
                                  "distance": 573,
                                  "duration": 53,
                                  "instruction": "Enter the roundabout and take the 2nd exit onto Avenida dos Ex-Combatentes, BR-265",
                                  "name": "Avenida dos Ex-Combatentes, BR-265",
                                  "wayPoints": [
                                      220,
                                      237
                                  ]
                              },
                              {
                                  "distance": 2155.5,
                                  "duration": 185.8,
                                  "instruction": "Turn sharp right onto Avenida Padre Arnaldo Jansen",
                                  "name": "Avenida Padre Arnaldo Jansen",
                                  "wayPoints": [
                                      237,
                                      287
                                  ]
                              },
                              {
                                  "distance": 417.9,
                                  "duration": 54.8,
                                  "instruction": "Continue straight onto Avenida Beira Rio",
                                  "name": "Avenida Beira Rio",
                                  "wayPoints": [
                                      287,
                                      297
                                  ]
                              },
                              {
                                  "distance": 73.5,
                                  "duration": 17.6,
                                  "instruction": "Turn right onto Rua José Martins Quintão",
                                  "name": "Rua José Martins Quintão",
                                  "wayPoints": [
                                      297,
                                      298
                                  ]
                              },
                              {
                                  "distance": 78.6,
                                  "duration": 18.9,
                                  "instruction": "Turn left onto Rua Antenor Brum",
                                  "name": "Rua Antenor Brum",
                                  "wayPoints": [
                                      298,
                                      299
                                  ]
                              },
                              {
                                  "distance": 67.7,
                                  "duration": 16.2,
                                  "instruction": "Turn left onto Avenida Santos Dummont",
                                  "name": "Avenida Santos Dummont",
                                  "wayPoints": [
                                      299,
                                      300
                                  ]
                              },
                              {
                                  "distance": 0,
                                  "duration": 0,
                                  "instruction": "Arrive at Avenida Santos Dummont, on the left",
                                  "name": "-",
                                  "wayPoints": [
                                      300,
                                      300
                                  ]
                              }
                          ]
                      }
                  ],
                  "geometry": "hhf`C`vpeGp@dBn@tA@HB~@uGVuELW?WEw@OwB|BSU{A_Bw@aAm@{@@EAIKIUYUMQg@uAuD[}@M[gAyCWe@Y]e@[e@OkBE_BDm@FeCLgABi@Au@Qe@WaC{CmDyEg@{@Sk@Ky@[}EKu@Oq@We@[[m@[[Gi@Ca@Dy@RqAt@kAh@a@J[Bo@C_AW_A[cDqAcA_@u@Yg@Ue@QsFuB_Ai@a@]_@a@g@q@cH}KyBqD_BgC}@yA_BiC_@c@[Y]Sk@O}@IuCQs@UYOWUSYUc@]_BmAwH?ISsAYeAO]c@a@s@We@GeACeDBcIAu@?{@BaBCg@CiBWwKkCm@Sc@SoDmCa@Se@Mg@Cm@Bq@L}DhAq@R_ALiB?aF]}AOc@G]MWOQSoGsJW[yAcB{EeF_@c@W]a@{@Qe@w@gDi@_Bs@uAm@o@k@g@o@g@mBcBqDsC{DgDsAkAg@i@_ByBeFiIyAmCGI_A_BWu@ESGq@?s@Bm@RgB^uCHw@D{@Aw@Am@EcAe@oFAyABsAHcCDsAD_B?y@BkAJ_CDeCEoA]iDAIAOEc@[eC]oBs@yD]iCImAGsA?kAHoB`@}Ad@mAl@{AhBaEzA_EXmARu@Rm@Lg@h@aCVaBHo@Do@BmAGkAGs@Gk@_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