来自 HopStop 的文档:http ://www.hopstop.com/developer/?action=documentation#6.1.3
对于GetRoute函数,声明可以提供X1、X2、Y1、Y2(经度、纬度)而不是提供地址,并且不需要地址
但是在执行时
http://www.hopstop.com/ws/GetRoute?licenseKey=LICENSE_KEY&X1=-73.9860&X2=-74.0062&Y1=40.7532&Y2=40.7617&day=1&time=9%3A00&mode=s
代替:
http://www.hopstop.com/ws/GetRoute?licenseKey=LICENSE_KEY&city1=newyork&address1=1800%20Broadway&city2=newyork&address2=162%20Madison%20Ave&day=1&time=9%3A00&mode=s
输出:
<ResponseStatus>
<FaultCode>181</FaultCode>
<FaultString>address1 and address2 not found.</FaultString>
</ResponseStatus>
感谢你的帮助。