मैं रूटिंग एपीआई का परीक्षण कर रहा हूं और मैं सोच रहा हूं कि यह बंद सड़कों के माध्यम से मार्ग क्यों बनाता है।

मेरा अनुरोध है: https://route.ls.hereapi.com/routing/7.2/calculateroute.json?waypoint0=geo!50.01568168937738,20.90148497812504&waypoint1=geo!20.8755162303763 =API-KEY-HERE&mode=संतुलित%3Bcar&alternatives=0

{
  "response": {
    "metaInfo": {
      "timestamp": "2020-03-31T16:54:22Z",
      "mapVersion": "8.30.107.151",
      "moduleVersion": "7.2.202013-6746",
      "interfaceVersion": "2.6.76",
      "availableMapVersion": [
        "8.30.107.151"
      ]
    },
    "route": [
      {
        "waypoint": [
          {
            "linkId": "-985497829",
            "mappedPosition": {
              "latitude": 50.0160635,
              "longitude": 20.9021437
            },
            "originalPosition": {
              "latitude": 50.0156817,
              "longitude": 20.9014893
            },
            "type": "stopOver",
            "spot": 1,
            "sideOfStreet": "right",
            "mappedRoadName": "ulica Wędkarska",
            "label": "ulica Wędkarska",
            "shapeIndex": 0,
            "source": "user"
          },
          {
            "linkId": "-1052271133",
            "mappedPosition": {
              "latitude": 50.0154679,
              "longitude": 20.8792651
            },
            "originalPosition": {
              "latitude": 50.0155162,
              "longitude": 20.8792591
            },
            "type": "stopOver",
            "spot": 0.6372549,
            "sideOfStreet": "right",
            "mappedRoadName": "Ostrów",
            "label": "Ostrów",
            "shapeIndex": 29,
            "source": "user"
          }
        ],
        "mode": {
          "type": "balanced",
          "transportModes": [
            "car"
          ],
          "trafficMode": "disabled",
          "feature": []
        },
        "leg": [
          {
            "start": {
              "linkId": "-985497829",
              "mappedPosition": {
                "latitude": 50.0160635,
                "longitude": 20.9021437
              },
              "originalPosition": {
                "latitude": 50.0156817,
                "longitude": 20.9014893
              },
              "type": "stopOver",
              "spot": 1,
              "sideOfStreet": "right",
              "mappedRoadName": "ulica Wędkarska",
              "label": "ulica Wędkarska",
              "shapeIndex": 0,
              "source": "user"
            },
            "end": {
              "linkId": "-1052271133",
              "mappedPosition": {
                "latitude": 50.0154679,
                "longitude": 20.8792651
              },
              "originalPosition": {
                "latitude": 50.0155162,
                "longitude": 20.8792591
              },
              "type": "stopOver",
              "spot": 0.6372549,
              "sideOfStreet": "right",
              "mappedRoadName": "Ostrów",
              "label": "Ostrów",
              "shapeIndex": 29,
              "source": "user"
            },
            "length": 2383,
            "travelTime": 312,
            "maneuver": [
              {
                "position": {
                  "latitude": 50.0160635,
                  "longitude": 20.9021437
                },
                "instruction": "Head <span class=\"heading\">east</span> on <span class=\"street\">ulica Wędkarska</span>. <span class=\"distance-description\">Go for <span class=\"length\">153 m</span>.</span>",
                "travelTime": 24,
                "length": 153,
                "id": "M1",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0159132,
                  "longitude": 20.9040749
                },
                "instruction": "Turn <span class=\"direction\">right</span> onto <span class=\"next-street\">ulica Wędkarska</span>. <span class=\"distance-description\">Go for <span class=\"length\">108 m</span>.</span>",
                "travelTime": 18,
                "length": 108,
                "id": "M2",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0150228,
                  "longitude": 20.904547
                },
                "instruction": "Turn <span class=\"direction\">right</span> onto <span class=\"next-street\">ulica Dunajcowa</span>. <span class=\"distance-description\">Go for <span class=\"length\">374 m</span>.</span>",
                "travelTime": 55,
                "length": 374,
                "id": "M3",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0127375,
                  "longitude": 20.9007919
                },
                "instruction": "Turn <span class=\"direction\">slightly right</span> onto <span class=\"next-street\">ulica Do Promu</span>. <span class=\"distance-description\">Go for <span class=\"length\">75 m</span>.</span>",
                "travelTime": 18,
                "length": 75,
                "id": "M4",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0126946,
                  "longitude": 20.8997512
                },
                "instruction": "Turn <span class=\"direction\">left</span> onto <span class=\"next-street\">ulica Do Promu</span>. <span class=\"distance-description\">Go for <span class=\"length\">249 m</span>.</span>",
                "travelTime": 41,
                "length": 249,
                "id": "M5",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0111175,
                  "longitude": 20.897305
                },
                "instruction": "Turn <span class=\"direction\">right</span> onto <span class=\"next-street\">ulica Wincentego Witosa</span>. <span class=\"distance-description\">Go for <span class=\"length\">717 m</span>.</span>",
                "travelTime": 92,
                "length": 717,
                "id": "M6",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0145936,
                  "longitude": 20.8889151
                },
                "instruction": "Continue on <span class=\"next-street\">Ostrów</span>. <span class=\"distance-description\">Go for <span class=\"length\">707 m</span>.</span>",
                "travelTime": 64,
                "length": 707,
                "id": "M7",
                "_type": "PrivateTransportManeuverType"
              },
              {
                "position": {
                  "latitude": 50.0154679,
                  "longitude": 20.8792651
                },
                "instruction": "Arrive at <span class=\"street\">Ostrów</span>. Your destination is on the right.",
                "travelTime": 0,
                "length": 0,
                "id": "M8",
                "_type": "PrivateTransportManeuverType"
              }
            ]
          }
        ],
        "summary": {
          "distance": 2383,
          "trafficTime": 312,
          "baseTime": 312,
          "flags": [
            "builtUpArea"
          ],
          "text": "The trip takes <span class=\"length\">2.4 km</span> and <span class=\"time\">5 mins</span>.",
          "travelTime": 312,
          "_type": "RouteSummaryType"
        }
      }
    ],
    "language": "en-us"
  }
}

प्रस्तावित मार्ग इस तरह दिखता है: बंद दुल्हन के रास्ते

सड़क बंद करने की जानकारी मानचित्र में उपलब्ध है। मैंने इसे मैप क्रिएटर में चेक किया है। यहाँ WeGo मैप भी इसके बारे में जानता है और एक वैकल्पिक मार्ग सुझाता है: यहाँ WeGo से मान्य मार्ग

क्या मेरे अनुरोध में कुछ गड़बड़ है?

0
Starzu 31 मार्च 2020, 20:12

1 उत्तर

सबसे बढ़िया उत्तर

कृपया अपने रेस्ट कॉल में मोड के लिए निम्नलिखित संयोजनों का उपयोग करने का प्रयास करें। रूटिंग API v7 रूटिंग मोड के लिए निम्नलिखित मान्य पैरामीटर संयोजनों का समर्थन करता है।

Traffic-enabled:

mode=fastest;car;traffic:enabled

Traffic not enabled:

mode=fastest;car;traffic:disabled
mode=shortest;car

यह भी देखें: https://developer.here .com/documentation/routing/dev_guide/topics/routing-mode-parameter-combinations.html

कृपया कनेक्ट करें, भले ही इसका परिणाम वह न हो जो आप आउटपुट के होने की उम्मीद कर रहे हैं

0
HERE Developer Support 2 अप्रैल 2020, 07:12