罗马尼亚的卡车路线和收费标准计算

时间:2018-06-18 09:03:51

标签: here-api

我有以下要求:

https://tce.cit.api.here.com/2/calculateroute.json?mode=fastest;truck;traffic:disabled&departure=now&avoidseasonalclosures=true&cost_optimize=1&metricsystem=metric&truckRestrictionPenalty=soft&driver_cost=15&vehicle_cost=0.85&currency=EUR&vehicletype=diesel,24&truckType=tractorTruck&tollVehicleType=3&hybrid=0&emissionType=6&passengersCount=1&commercial=1&trailerType=2&trailersCount=1&vehicleNumberAxles=2&trailerNumberAxles=3&tiresCount=12&height=4.0m&width=2.50m&length=16.5m&heightAbove1stAxle=3.5m&trailerHeight=4.0m&vehicleWeight=12.0t&limitedWeight=40.0t&weightPerAxle=10.0t&maneuverAttributes=none&combineChange=true&routeAttributes=none,no,wp,lg&legAttributes=none,li,sh&linkAttributes=none,fl,le&detail=1&alternatives=1&rollup=none,total,country&jsonattributes=41&waypoint0=geo!stopOver!47.05185,21.93873;;6,7,2,8,9,10&waypoint1=geo!stopOver!44.85142,24.87989;;6,7,2,8,9,10&app_id=APPID&app_code=APPCODE

结果路线不好。 在真正的道路上没有对卡车的限制。 以下请求给出了正确的路由:

https://route.cit.api.here.com/routing/7.2/calculateroute.json?app_id=APPID&app_code=APPCODE&mode=fastest;car;traffic:disabled&departure=now&avoidseasonalclosures=true&metricsystem=metric&truckRestrictionPenalty=soft&trailersCount=1&height=4.0&width=2.50&length=16.5&limitedWeight=40.0&weightPerAxle=10.0&maneuverAttributes=none&combineChange=true&routeattributes=none,no,wp,lg,summary&linkattributes=none,fl,le&legattributes=none,li,sh&detail=1&alternatives=1&jsonattributes=41&waypoint0=geo!stopOver!47.05185,21.93873;;6,7,2,8,9,10&waypoint1=geo!stopOver!44.85142,24.87989;;6,7,2,8,9,10

两个请求返回的通行费也是错误的。 一天的返回值为11 RON,目标货币金额为2.36 EUR。 一天的正确价值是11欧元。 桥梁成本是正确的。

在哪里可以报告有关通行费成本计算和卡车限制的问题? 有请求获取路线上的卡车限制列表吗? 通行费成本值随增值税或不含增值税退回。我能同时获得这两个值吗? (有和没有增值税)

1 个答案:

答案 0 :(得分:0)

通行费费用货币现在可以正确显示。如果您仍然看到问题,请发表评论。 fae3457f-69a9-4ca9-beaa-75fb9800bbd3 Login finish! http://zboa3.sinopec.com/indishare/office.nsf/(frame)/tree fae3457f-69a9-4ca9-beaa-75fb9800bbd3 现在已切换至部门收文tab http://zboa3.sinopec.com/indishare/office.nsf/(frame)/tree fae3457f-69a9-4ca9-beaa-75fb9800bbd3 Traceback (most recent call last): File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 416, in _make_request httplib_response = conn.getresponse() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1322, in getresponse response.begin() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 303, in begin version, status, reason = self._read_status() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\socket.py", line 669, in readinto return self._sock.recv_into(b) ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "c:\Users\A\.vscode\extensions\ms-python.python-2020.1.58038\pythonFiles\lib\python\new_ptvsd\no_wheels\ptvsd\__main__.py", line 45, in <module> cli.main() File "c:\Users\A\.vscode\extensions\ms-python.python-2020.1.58038\pythonFiles\lib\python\new_ptvsd\no_wheels\ptvsd/..\ptvsd\server\cli.py", line 361, in main run() File "c:\Users\A\.vscode\extensions\ms-python.python-2020.1.58038\pythonFiles\lib\python\new_ptvsd\no_wheels\ptvsd/..\ptvsd\server\cli.py", line 203, in run_file runpy.run_path(options.target, run_name="__main__") File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 263, in run_path return _run_module_code(code, init_globals, run_name, File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "e:\Dropbox\15-私人资料\code\python\自动化收文程序\main.py", line 56, in <module> driver.find_element_by_id('smartdot_form_Button_1').click() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click self._execute(Command.CLICK_ELEMENT) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute return self._parent.execute(command, params) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 319, in execute response = self.command_executor.execute(driver_command, params) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 374, in execute return self._request(command_info[0], url, body=data) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 402, in _request resp = http.request(method, url, body=body, headers=headers) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\request.py", line 79, in request return self.request_encode_body( File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\request.py", line 171, in request_encode_body return self.urlopen(method, url, **extra_kw) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\poolmanager.py", line 330, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 719, in urlopen retries = retries.increment( File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\retry.py", line 400, in increment raise six.reraise(type(error), error, _stacktrace) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\packages\six.py", line 734, in reraise raise value.with_traceback(tb) File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 416, in _make_request httplib_response = conn.getresponse() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1322, in getresponse response.begin() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 303, in begin version, status, reason = self._read_status() File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "C:\Users\A\AppData\Local\Programs\Python\Python38\lib\socket.py", line 669, in readinto return self._sock.recv_into(b) urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))