Search code examples
routesgisreverse-geocodingrman

How to SNAP before RMAN in deCarta DDS?


Some of my routes don't work because the deCarta DDS doesn't find any arc near OLL and/or DLL and the server answers:

RMAN|%S=Cannot find path origin%N=0||

How to make the server search a nearby arc (SNAP) and do the route (RMAN) in a single request?


Solution

  • I think that your best bet is to handle it on the client side.

    Before you make that call you do not know if you need a SNAP and RMAN, or just an RMAN (I assume).

    What you need to do is to run RMAN if there is an error catch it, do a SNAP followed by a new RMAN.

    If you do a SNAP and RMAN everytime you will slow down your system with unecessary calls.