Reading traffic flow data from HERE maps rest API

喜欢而已 提交于 2019-12-20 11:35:32

问题


I am trying to use HERE maps REST API to get information about real-time traffic flow. The sample requests in HERE documentation work fine, however, I cannot find anywhere any documentation of the response (meaning of particular tags, such as <TRAFFICML_REALTIME>, <FIS> or <RW>).

Does anyone know how to obtain such a documentation?

Note: On HERE website I have found that all technical questions should be posted here and that their development support team is actively monitoring StackOverflow. There is no direct option to contact them.


回答1:


You should find it under "Meta Resources" in the documentation, following should provide the required info

http://traffic.cit.api.here.com/traffic/6.0/xsd/flow.xsd?app_id=DemoAppId01082013GAL%20&app_code=AJKnXv84fjrb0KIHawS0Tg




回答2:


Some of the tag meanings

  • "RWS" - A list of Roadway (RW) items
  • "RW" = This is the composite item for flow across an entire roadway. A roadway item will be present for each roadway with traffic flow information available
  • "FIS" = A list of Flow Item (FI) elements
  • "FI" = A single flow item
  • "TMC" = An ordered collection of TMC locations
  • "PC" = Point TMC Location Code
  • "DE" = Text description of the road
  • "QD" = Queuing direction. '+' or '-'. Note this is the opposite of the travel direction in the fully qualified ID, For example for location 107+03021 the QD would be '-'
  • "LE" = Length of the stretch of road. The units are defined in the file header
  • "CF" = Current Flow. This element contains details about speed and Jam Factor information for the given flow item.
  • "CN" = Confidence, an indication of how the speed was determined. -1.0 road closed. 1.0=100% 0.7-100% Historical Usually a value between .7 and 1.0
  • "FF" = The free flow speed on this stretch of road.
  • "JF" = The number between 0.0 and 10.0 indicating the expected quality of travel. When there is a road closure, the Jam Factor will be 10. As the number approaches 10.0 the quality of travel is getting worse. -1.0 indicates that a Jam Factor could not be calculated
  • "SP" = Speed (based on UNITS) capped by speed limit
  • "SU" = Speed (based on UNITS) not capped by speed limit
  • "TY" = Type information for the given Location Referencing container. This may be freely defined string


来源:https://stackoverflow.com/questions/28476762/reading-traffic-flow-data-from-here-maps-rest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!