Route result in static file

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.

Route result in static file

Postby krzysiek mbis » Mon Aug 05, 2019 10:32 am

Is there a way to have a route result with graphic file included (like: .jpg, .png, etc.)?
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
krzysiek mbis
Posts: 33
Joined: Thu Aug 11, 2016 9:41 am

Re: Route result in static file

Postby Bernd Welter » Mon Aug 05, 2019 10:39 am

Hello Krzysiek,

if you want to consume a image file e.g. with the total route or the destination area you have to get the polygon and further required attributes from the routinr response : then use this info to send a request to xMap which can return the image.

state-of-the-art applications use the xMap as a background engine and paint their own content such as locations, routing polygons and so on on top of the picture they got from xMap:

  • calculate route via xRoute and ask for result list options such as polygon (and more)
  • create a basic mapping call to xMap (include image in response, not just the URL of the image)
  • paint on top whatever you want
Which approach fits your requiremen ts best depends on your programming environment.

Best regards,
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
Posts: 1353
Joined: Mon Apr 14, 2014 10:28 am

Return to PTV xRouteServer