× 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.



Just did Rob. I've looked at it enough that I've decided that's the route
I want to take once I decide on the web service.

Regarding consuming web services, I've never enjoyed the feeling where I'm
at now which is: "I don't know what I don't know." :)

Make sense?


On Wed, Feb 26, 2020 at 1:01 PM Rob Berendt <rob@xxxxxxxxx> wrote:

Assume it only returns a single row.
Look at the full example at the URL I had given you using that same
json_table function.

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Jeff Crosby
Sent: Wednesday, February 26, 2020 11:53 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Get latitude/longitude from address for free

CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.


Forgive my ignorance because I don't even know enough about this stuff to
be dangerous, but is :

"Select * from json_table(systools.httpgetclob(:URL, ..."

designed for reading a table via cursor for ultimately putting into an
array? Got this impression from googling a thread from a couple of months
ago.

Asking because I'm looking to provide a single address at a time and
receive a single set of lat/long coordinates.

Thanks.



On Wed, Feb 26, 2020 at 7:00 AM Tim Fathers <X700-IX2J@xxxxxxxxxxx> wrote:

...this is the best option IMO, you can probably do what you want in a
single SQL statement.

________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of
Booth Martin <booth@xxxxxxxxxxxx>
Sent: 25 February 2020 23:20
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx

Subject: Re: Get latitude/longitude from address for free

SQL has a "... from json_table(systools.httpgetclob(:URL, ..."
function. A fairly simple RPG program will get that info for you if you
find a web service you like. Then you're good from then on.


******

On 2/25/2020 3:05 PM, Jeff Crosby wrote:
Haven't needed this ability in bulk for several years. But shortly I
will
have use for geocoding ~300 addresses. The web service(s) I used
several
years (with lots of help from Doug Handy several times!) are no longer
working/available.

This is essentially a one-time need in bulk. In a normal month we'll
need
5 or 6 done and just do it by googling.

It would be great if SQL had something like this to embed in RPG
(excuse
if
the syntax is off):

Select Latitude, Longitude Into :lat, :long From
https://geocodeforfree
Where Address = :address

but that ain't gonna happen.

Thanks.

--
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://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C8cbace1a0d864c37f16608d7ba40f21c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637182660404874108&amp;sdata=g%2BaAQsodfUnC%2BvtDAnTWZ%2B%2BEIbkYGci3FU1%2BrohNoeA%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at

https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C8cbace1a0d864c37f16608d7ba40f21c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637182660404874108&amp;sdata=3NjJ3WZG%2FRYr0waCxoPn%2B8AHOJag6DsZTk28lXy1ieA%3D&amp;reserved=0
.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:

https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com&amp;data=02%7C01%7C%7C8cbace1a0d864c37f16608d7ba40f21c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637182660404874108&amp;sdata=L395OM%2FlBrNQW67S%2FHp%2FNIthr6FU6O33QSK5DcmHyrM%3D&amp;reserved=0
--
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://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



--


Jeff Crosby
VP Information Systems
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
direct.dilgardfoods.com

The opinions expressed are my own and not necessarily the opinion of my
company. Unless I say so.
--
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://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
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://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com




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.