最近设施查找的功能能返回结果,但是不清楚该结果是哪个设施点的分析结果,哪个设施点是最近的,
使用最近设施查找的方法,如下:
findClosestFacility(TransportationAnalystParameter parameter, Point2D eventPoint, int facilityCount, boolean isFromEvent, double maxWeight)
代码:
TransportationAnalyst m_analyst = getanalyst(); TransportationAnalystResult m_result = m_analyst.findClosestFacility(parameter, eventPoint, 1, true, 0);