× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There are databases available, some free, that have zip, latitude, longitude. From that, you can apply a formula to calculate the distance.

I last used Help Systems SEQUEL product a bit over 10 years ago but recall that they had a built-in function for it. Did a proof-of-concept for some sales analysis.


Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Brad Stone
Sent: Friday, December 2, 2022 6:01 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Web service call to determine distance between 2 zip codes

The Google Maps APIs could most likely handle this pretty easily. You
would just need something like GETURI, HTTPAPI, or SQL HTTP functions to
make the calls. You could also use open source (nodejs, etc).

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.google.com%2Fmaps%2Fdocumentation%2Fdistance-matrix&amp;data=05%7C01%7C%7Cb1fe59d833f942d4a3d908dad46dc162%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638055865139393993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=B5a6lS6gUAP80e7OyNO%2FT5tfuh7wlBTaSFJrBB%2Fp%2Fc0%3D&amp;reserved=0

I don't have any specific examples but it shouldn't be too difficult if
you've worked with web APIs before.

On Fri, Dec 2, 2022 at 7:12 AM Alan Shore via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

Hi everyone
We are on V7r3
I have been given a task to extract data concerning packages that have
shipped
Part of that data is to determine the distance between the origin zip code
and the destination zip code
Does anyone have code (and is willing to share it) for a web service call
to obtain this information?
As always - all answers gratefully accepted

Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image001.png@01D90625.BD2AB6B0]

60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx

'If you're going through hell, keep going.'
Winston Churchill

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=05%7C01%7C%7Cb1fe59d833f942d4a3d908dad46dc162%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638055865139393993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=UZBYvSgLleAyXN345TBby5DPl2RbITcP3o8etfB49VM%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=05%7C01%7C%7Cb1fe59d833f942d4a3d908dad46dc162%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638055865139393993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=9R3mTTx6mfbqUmJBsRYr7fNHNq%2Fp1gzu8d8ui0xZjyU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=05%7C01%7C%7Cb1fe59d833f942d4a3d908dad46dc162%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638055865139393993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=GJB7onmPsRLoSDd3Z9kHPDI1CmoikaEk%2Fcw7kIq5H8c%3D&amp;reserved=0


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.