Hi,
I need to know how to calculate a distance between two postal codes (location table and sales shipment header-ShiptoCity) and know the distance and put it in a field of a custom table. How can I do? In case if I were to use a webservice, how do I implement it on nav?
For nav 2018
Thanks so much
0
Answers
First, yes you will need to locate a WS for this, google a bit:
https://gis.stackexchange.com/questions/15199/looking-for-free-web-service-that-calculates-driving-distance-between-2-addresse/296403
https://developers.google.com/maps/documentation/distance-matrix/overview
I suggest you download postman:
https://www.postman.com/
you will need it to figure out WS calls and make it work.
Once you have this, you "translate this to NAV".
There are several ways to do WS calls to NAV, depending on the version (winhttps, AL...)
"basic" winhttp example