Geofencing - how to use

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
nemec
Posts: 17
Joined: Tue May 02, 2017 10:05 am

Geofencing - how to use

Post by nemec »

Hello !
i need any information how to use geofencing.
- is there a factsheet about the posibilities ?
- What package must be used (xroute ? )
- technical implementation ? Samples in java ?

unfortunately i dont have informations about this technology.
With the search-function i only find a little bit theory.

thanks in advance
Andreas
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Geofencing - how to use

Post by Bernd Welter »

Hi Andreas,

there are a lot of usecases (=requirements) and corresponding approaches given in this simple term.
regular API doc xServer 1.

I created a quick mindmap that should open your mind ( :lol: https://www.youtube.com/watch?v=TPFAYIr8z2I ) and lead you to your target.

What is the precise expectation towards the buzzword?
What information would be needed from our interfaces?

If you want we can record a websession about these approaches and I drill through the complete mindmap together with you. Or we identify just the path you need.

Best regards,
Bernd

PS please also check these recent posts
http://xserver.ptvgroup.com/forum/viewt ... ?f=7&t=779
http://xserver.ptvgroup.com/forum/viewt ... ?f=7&t=777
Attachments
overview of various topics being relevant for the usecases
overview of various topics being relevant for the usecases
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
nemec
Posts: 17
Joined: Tue May 02, 2017 10:05 am

Re: Geofencing - how to use

Post by nemec »

Hello !
unfortunately a break but now i continue ....
There is one topic especially where i need information:
the 'City Maut' - 'city toll' or so that i have in Citys like London,Stockholm or i think a special
solution in rome....
Unfortunately i don't know where to start the topic, because in the solution we use now,
we don't get a city maut / city toll in London for instance.
Is it possible to get a sample, how to get this toll ?

the second step is a defining of geofences individual....

Regards, Andreas
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Geofencing - how to use

Post by Bernd Welter »

Hello Andreas,

if the "city toll"-question isn't related to the "geofencing"-thread itself please start a new thread or check whether this one might be relevant:


Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Geofencing - how to use

Post by Bernd Welter »

Cheers!

Update 11.3.2024: since xServer 2.21 we do offer com.ptvgroup.xserver.xroute.ReachableLocationsRequest
Check the post below!


As of today the implementation of xRoute 2 does not yet offer the corridor search but there's also another approach to perform the routing based fencing - a least as a temporary solution if the corridor is small:
- Compute the reacheable area(aka Isochrone) around the latest GPS coordinate
- Check via geometry functions whether polygon and isochrine intersect
several position's isochrones have been checked against the route...
several position's isochrones have been checked against the route...
But I am very optimistic that we will implement and proivide a corridor search in the xServer 2 ;-)

Best regards,
Bernd

https://xserver2-test.cloud.ptvgroup.co ... easRequest
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Geofencing - how to use

Post by Bernd Welter »

Just have been asked for this again in 2024:
They would like to plan a route for a vehicle and take into consideration truck attributes on the route with the height width as well as allowed driver hours into consideration. Once the route is planned, they would like to post/send that specific route to navigator, and then generate alerts once the driver goes off route in their platform.
Here’s my feedback, based on PTV xServer2 (please let’s always mention the API version):
  • What’s the exact definition of “the driver goes off route”? E.g. requires more than 10min to return to the route
Here’s the xroute2 contribution – someone from the navigator domain would have to comment on “how does the mobile device push it’s coordinates to the backend?”.
Technical limitations:
  • Maximum route length = 500km (total route could be split in chunks based on partial trips given by the Break and Rest events)
  • Such fencing is not the same as “he won’t be in time” as it only checks inside/outside but not “in time”
Example:
  • 10min fence on the path from Pretoria to Johannesburg
    Route from Pretoria to Johannesburg - fence 10min
    Route from Pretoria to Johannesburg - fence 10min
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Geofencing - how to use

Post by Bernd Welter »

In the scope of PTGV Developer you can use the following methods:
  • Calculate the route based on ROuting API.CalculateRoute and request the RouteId.
  • Then use startAndCreateReachableAreas with the RouteId to get the area ID
  • Finally use getReachableAreas( id = areaId ) to get the polygon
Here are some relevant URLs:
Attachments
corridor.png
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply