<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"<!-- Configure the GraphBuilderTask --><bean id="graphBuilderTask" class="org.opentripplanner.graph_builder.GraphBuilderTask"><!-- The path where the graph bundle will be written --><property name="path" value="/workspace/graph" /><property name="graphBuilders"><list><!-- Include an OpenStreetMap graph builder plugin --><bean class="org.opentripplanner.graph_builder.impl.osm.OpenStreetMapGraphBuilderImpl"><property name="providers"><list><!-- Use an OSM provider that reads a file--><bean class="org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl"><property name="path" value="/workspace/map.osm" /></bean><!-- you could have more than one of these beans,if you have multiple OSM files -->
</list></property><property name="defaultWayPropertySetSource"><bean class="org.opentripplanner.graph_builder.impl.osm.DefaultWayPropertySetSource" /></property></bean></list></property></bean></beans>
I think its a big deal, because right now a rely on OTP to do Car route computation. However, I have the following problem.This fails with CAR as transportation model as can be seen below. Below you can see the exact same web request just with mode changed to BICYCLE, which works. A quick look a the coordinates, shows that in BICYCLE mode the coordinates a translated to point on the road, however this is not done for CAR mode.Any pointers on how to solve my problem?The hacked we came up with is to ask first for a route with in BICYCLE take to and from ask for a new route in CAR mode.
<response><error><id>404</id><msg>Trip is not possible. Your start or end point might not be safely accessible (for instance, you might be starting on a residential street connected only to a highway).</msg><noPath>false</noPath></error><requestParameters><entry><key>optimize</key><value>TRIANGLE</value></entry><entry><key>time</key><value>9:53 am</value></entry><entry><key>wheelchair</key><value>false</value></entry><entry><key>maxWalkDistance</key><value>4828.0</value></entry><entry><key>routerId</key><value/></entry><entry><key>fromPlace</key><value>56.287995914586,9.4334769747521</value></entry><entry><key>toPlace</key><value>56.176743,9.527921</value></entry><entry><key>date</key><value>08/16/2012</value></entry><entry><key>mode</key><value>TraverseMode (CAR)</value></entry><entry><key>numItineraries</key><value>3</value></entry></requestParameters></response><response><plan><date>2012-08-16T09:53:00+02:00</date><from><name>Krabbesgade</name><lon>9.433108553804407</lon><lat>56.28804510504127</lat><geometry>{"type": "Point", "coordinates": [9.433108553804407,56.28804510504127]}</geometry></from><to><name>path</name><lon>9.527970920654882</lon><lat>56.17690525939001</lat><geometry>{"type": "Point", "coordinates": [9.527970920654882,56.17690525939001]}</geometry></to><itineraries><itinerary><duration>3511000</duration><startTime>2012-08-16T09:53:00+02:00</startTime><endTime>2012-08-16T10:51:31+02:00</endTime><walkTime>0</walkTime><transitTime>0</transitTime><waitingTime>0</waitingTime><walkDistance>17208.618906482665</walkDistance><elevationLost>0.0</elevationLost><elevationGained>0.0</elevationGained><transfers>-1</transfers><fare><fare/></fare><legs><leg mode="BICYCLE" route=""><startTime>2012-08-16T09:53:00+02:00</startTime><endTime>2012-08-16T10:51:31+02:00</endTime><distance>17208.618906482665</distance><from><name>Krabbesgade</name><lon>9.433108553804407</lon><lat>56.28804510504127</lat><geometry>{"type": "Point", "coordinates": [9.433108553804407,56.28804510504127]}</geometry></from><to><name>path</name><lon>9.527970920654882</lon><lat>56.17690525939001</lat><arrival>2012-08-16T10:51:31+02:00</arrival><departure>2012-08-16T10:51:31+02:00</departure><geometry>{"type": "Point", "coordinates": [9.527970920654882,56.17690525939001]}</geometry></to><legGeometry><length>346</length><points>gwpvI{kqx@jBL@l@j@hIlIiChDgA\M~FsBxQ{FlKkDxDoADTFNHHJBFAJGFODS?_@bIeCtSuGpIqCfJ}C`Co@hFyApDdGr@bAnAZnA^j@P`ClA~E~BjDvBvAr@n@j@r@rAlAvBt@t@dAb@hILrAZr@d@b@p@Tt@|BlPL\LPbDAvBcB`DkAbBApCJJeBv@{EJcBb@GvKeE~F{B~@m@f@o@t@aBb@k@f@YjDoAl@a@rBoCfBmBhA}@d@[f@C\JfHrE~@h@bCx@n@d@hAdBd@`@`C`@|@Mp@q@f@{@bBwDtA{BfCwCrGkGxBaCzAwB`BaDn@kAf@e@XIV?VHPNp@mA\cAj@cCbAiEXc@bBkA`@CjDUh@YtB}Af@w@r@yAhAiCpA{D`@k@rL_JhAu@jAUfBFdA`@~@~@x@j@z@JtAYpA_AhAuAtAaDjB}FdAaD`AsBnBaCfEqEdAgApCaCdC}AhD}AnD{@pDuAzEsBnBuAr@e@p@GfAJt@d@bApAv@r@jDnB|A`@bBBhBa@hGsBxBy@]kBQwELoERqC|@wNN}BH@LK`GgMdA}A`C{Et@}A`BiDj@_B|F{VxMod@hEgKn@kBZkBL}BBkJHeBfEwUxBdBlDlBlF|BlHlDzAp@nI`DxLpFTgDV_CBcBnAkSRkDTeVFqDPgC`@Tr@p@NNLLTNVFh@AZGNAh@Cj@Nt@uHVwAVyALs@Nc@BEPUTa@L_@Jq@@]Dq@Du@Bs@Da@Je@Lc@HWLNVRNARILOLQJWDWB_@B_@@k@Ak@Ce@E]?_@D[?W?c@CYEW?W@MDSBMXq@Ry@LYZWn@i@\[DELS`@o@N[@EJc@Jk@PyAFqALiANm@Ra@R]JSDQFc@d@N`@Bx@ULGLOJERSRHNTHRPP?UD_A?UDkABsABy@DS@SPk@RW\SFSj@oAR[\i@h@gA`@_Ad@sATi@BGPq@Fa@@e@?QAEVEnAYx@MrAOtIt@rCe@NiB\kBf@kA|B}Cr@i@v@[h@?@?JcAJoAF{@De@@YBs@Bm@@e@?mB?oF?[AWC[Q_BIo@HEHEKk@Gc@Qe@EIEGIKGKWg@Ua@QWGFcAgAx@gDc@cBe@oBI[CKcCoJTiA</points></legGeometry><steps><walkSteps><distance>59.80677891782366</distance><streetName>Krabbesgade</streetName><absoluteDirection>SOUTH</absoluteDirection><stayOn>false</stayOn><bogusName>false</bogusName><lon>9.433108553804407</lon><lat>56.28804510504127</lat><elevation/></walkSteps>.......<walkSteps><distance>25.708081023119075</distance><relativeDirection>RIGHT</relativeDirection><streetName>path</streetName><absoluteDirection>SOUTHEAST</absoluteDirection><stayOn>false</stayOn><bogusName>false</bogusName><lon>9.5276074</lon><lat>56.1770171</lat><elevation/></walkSteps></steps><duration>3511000</duration></leg></legs><tooSloped>false</tooSloped></itinerary></itineraries></plan><requestParameters><entry><key>optimize</key><value>TRIANGLE</value></entry><entry><key>time</key><value>9:53 am</value></entry><entry><key>wheelchair</key><value>false</value></entry><entry><key>maxWalkDistance</key><value>4828.0</value></entry><entry><key>routerId</key><value/></entry><entry><key>fromPlace</key><value>56.287995914586,9.4334769747521</value></entry><entry><key>toPlace</key><value>56.176743,9.527921</value></entry><entry><key>date</key><value>08/16/2012</value></entry><entry><key>mode</key><value>TraverseMode (BICYCLE)</value></entry><entry><key>numItineraries</key><value>3</value></entry></requestParameters></response>Kind Regards Dan.