As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi, On occasion our gift officers want to find prospects that live within a certain radius of some point. For example, if they are travelling through New York City, they might want to reach out to their prospects that live within a 10-mile radius. Is there a way to do that in WebFOCUS if you have customer (prospect) addresses and zip codes? Do we need any add-ons to WebFOCUS (like the Google Maps API)?
Thanks for any advice/suggestions.This message has been edited. Last edited by: <Kathryn Henning>,
Hi, Tony Sorry, I read the original post from 2007 and the responses but I'm not sure how that helps me. If I am currently at zip code 12345 and I want to know what customers in my database live within a 10 mile radius of that zip code, how do I find that out? I don't have latitude and longitude for all zip codes, which it looks like you need for the f_dist function. I guess what I am looking for is information on GIS adapters and how they work with WebFOCUS. Since I have never used these before and don't know a lot about them any advice on where to start would be much appreciated. I am trying to leverage our investment in WebFOCUS rather than having to purchase software specific to gift officers searching for donors.
In order to calculate distance you need to have latitude and longitude. If you have addresses of your customers, there are utilities and web services online that will provide you that data for free if your looking for just a few addresses. For large conversions there are for fee services as well.
WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003
Leo, Taking Tony's hint (one should always do...) and looking up F_DIST, you do find the necessary calculations. The "free-zip-code-database" is an Excel sheet. You can define a MASTER to read it by using WF's Excel direct retrieval interface. This will give you:
As stated, the formula yields distances in kilometers; for miles, adjust accordingly.
Actually, for the present exercise involving a short distance like 10 miles, and given that the geo coordinates are only approximate (zip centroids), the adjustment from straight-line distance [drilling-through-the-earth] to length of the arc along the Earth's surface can be ignored.
looks suspicious to me, in that the argument of SQRT() treats difference in longitude and latitude as contributing equally to the distance, which is clearly untrue except near the Equator.
Here's a set of functions, based on the cited paper, that should yield chord distance in miles:
Thanks for all of the responses. I am in the process of moving into a new office so I haven't had a chance to try things out yet, but am looking forward to working on this (sure beats unpacking boxes!).
Originally posted by Danny-SRL: Leo, You can download a csv file containing zip codes lat. and long. from: http://greatdata.com/free-zip-code-database From then, it is Pythagoras...