This is a public Forum  publicRSS

Topic

    Todd
    Travel Time Calculation
    Topic posted July 11, 2018 by ToddApprentice 
    65 Views, 12 Comments
    Title:
    Travel Time Calculation
    Content:

    I've tried researching for this answer with no luck, most articles are around travel time and routing.  The questions is that we need to track travel time and travel time should calculate in between work orders and from "Activate Route" to first work order.  We work with many sub-contractors and need to be able to include this in their time so that it is included in their pay for time worked and traveled.

    Thanks

    Answer

     

    • Ravi Shankar

      Todd,

      Did you check the below:

      https://docs.oracle.com/en/cloud/saas/field-service/18a/faadu/working-with-resources.html#c_about_travel_stats

      Locations defined for a tech would also have a say in travel time calculation, specifically for the first activity.

      https://docs.oracle.com/en/cloud/saas/field-service/18a/facmu/working-with-resources.html#c_determiningResourceLocation

      OFSC provides SOAP API to collect GPS info.

      https://docs.oracle.com/en/cloud/saas/field-service/18a/faslk/index.html

      Hope this helps.

      Ravi

    • Zsolt

      Hi Guys,

      Just one comment for Ravi: if you use the first icon when composing answer on WEB then the URL will be clickable which results better usability.

      Regards,
      Zsolt

    • Todd

      Thanks guys for the feedback.  So when the resource activates route in the morning then they travel to the first activity, does the system store or can we send this travel time to our upstream system?  Use case is activate route then travel 30 minutes...they then start activity and ends it 60 minutes later so we would need to have to pay the contractor for 90 minutes.  They then would travel 20 minutes to their next activity....they then start activity and ends it 30 minutes later so we would need to pas 50 minutes to upstream system.  I know the duration that is passed is the total time of activity but need to somehow pass the travel time also to get a grand total.

      Thanks

    • Zsolt

      Hi Todd,

      Yes, the filed "travel" contains the travel time to that activity, and the "duration" hold the duration (If I'm right then activity_travel and activity_duration in Message Scenarios). The tricky one can be the last activity if you want to take consideration to the travel time to they homes from the last activity for the day.

      Regards,
      Zsolt

    • Todd

      Thanks Zsolt that is what I was looking for and will test it out passing this field to capture travel and then add to duration to get total.

      Good to have fellow OFSC to lend helpful advice.

      Todd

    • Todd

      It seems to be working from one activity to the next when using this travel field between activities but it doesn't for when the resource has activated his route and the 1st activity.  Is there a different way to capture this initial travel time at the beginning of the day?

      Thanks

    • Zsolt

      Is the Configuration / Resource Types / "Working time includes first travel to activity" option checked for the relevant technician?
      Zsolt

    • Todd

      Zsolt,

      Yes I found that setting and turned it on and will be testing again.  I just wasn't sure if that setting will interfere with the routing plan we have in place?

      Thanks

    • Zsolt

      Sorry but it will.
      Zsolt

    • Ravi Shankar

      Todd,

      Travel time is calculated from the locations set for the technician --> Resource Settings - Locations. Routing engine will derive the travel time for the first activity based on the locations set for the tech. Following is a snippet from the documentation - Routing Cloud service.

      If the route is not yet started or no activity is started on the route, the coordinates sent to the routing engine are as follows:
      • If the resource’s GPS coordinates are obtained between 0–20 minutes, the GPS coordinates are used.
      • If no GPS coordinates are available, or if GPS coordinates are greater than 20 minutes, the resource's Start Location is used if it is available.
      • If no GPS coordinates are available, or if GPS coordinates are greater than 20 minutes, and no Start Location is assigned to the resource then the resource's location remains undefined.

      Preparing resource start and end locations for routing
      Start and End locations can be defined for a resource. Oracle Field Service Cloud Routing Cloud Service considers the travel time from start location to first activity and travel time from last activity to end location.

      If locations are not defined for the tech, default travel time setup in the application (Refer Configuration - Statistics) would be used during routing and that is set against the first activity in the route.

      Hope you have setup the locations for the technicians before routing was performed. Hope this helps.

      Ravi

    • Dima Buldakov

      Looks like you need to check checkbox "include travel to first activity in working type" on resource type level. Then OFSC will store this travel on first activity, and it would be possible to send it to an external system, as well.

      If you have different rules for different group of technicians, e.g. for contractors and in-house recurs, you'll need to create two separate resource types in OFSC.

       

    • Zsolt
      Dima Buldakov said:

      Looks like you need to check checkbox "include travel to first activity in working type" on resource type level. Then OFSC will store this travel on first activity, and it would be possible to send it to an external system, as well.

      If you have different rules for different group of technicians, e.g. for contractors and in-house recurs, you'll need to create two separate resource types in OFSC.

       

      View original

      Hi Dima,

      It's very good to answer for someone question, but this is a tread as you see. Without reading it thoroughly, maybe you just repeat what someone already said, or we are far from the original post and maybe your answer isn't relevant anymore.
      (And yes, I'm isn't a moderator here... it's just a friendly note.)

      Thanks,
      Zsolt