Zip Code Locator / Store Locator

Guys,
I want to write a simple store-locator functionality in my website (Using a Mysql db with JSP-java etc.,)
I am not sure of the tools I need and how to approach the problem (once I get a Map of all the zip codes)... Please throw in some ideas that can help me on this...
Thanks a ton!

The earth is ~ 40,000 km equatorial circumference
Mapped as rectangular projection ignoring poles is 40,000 km x 16,000 km = 640,000,000 1km x 1km cells
so 1 byte/km2 = 640 MB
or 1 word/(250m x 250m) = 4*4*4*640MB = 40GB
So a reasonable brute force method for the planet (and a few big memory servers or a not very big fast disk) would work in most cases.
Obviously, if you're only interested in one part of the globe you scale down.
The USA is something like 10,000 km square so a �60 520GB disk would give you a 1/sqrt(500E9/4/(10E6m^2)) = 28m resolution lookup at < 10ms time per request.
A second lookup of the id returned from the big bitmap using the nearest neighbour approach for a few points would take you further, if required.
How much is your time worth to develop an efficient solution, if throwing �60 of hardware at it would be good enough?
Short of buying an awful lot of memory, any solution will hit the disk at least once (though you may be able to optimise away seeking, it's a query and won't be streaming whatever you do), so the overall time isn't likely to get much better without a lot of effort.
You can always trade off between the bitmap/localised query for space and speed.
Pete

Similar Messages

  • Zip code retail store locator

    Hi guys,
    Does anyone know the best, least-expensive way to add a
    zip-code based
    retail store locator for a wholesale site that has 2000
    retailers in its
    database?
    BTW: My backend coding skills are very limited.
    Thanks,
    Fudo

    I have sent my solution created for a store several years
    back to a lot of
    people here .. if you want to see it in action, go to
    http://www.firepit.com
    and click on "Where to Buy". It's done in ASP/VB .. but if
    you like that
    solution and server model, write to me offlist and I'll send
    you the files.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Fudo" <[email protected]> wrote in message
    news:C0DAEE0B.934B%[email protected]..
    > Hi guys,
    >
    > Does anyone know the best, least-expensive way to add a
    zip-code based
    > retail store locator for a wholesale site that has 2000
    retailers in its
    > database?
    >
    > BTW: My backend coding skills are very limited.
    >
    > Thanks,
    >
    > Fudo
    >

  • Is there a way of adding a zip code locator

    I'm doing a website for a business with 6 locations and would like for the customer to be able to type in their zip code to find the closest store in their area.
    I've done a custom google map usng (mapsenginelite) but would like to add some how the zip code locator. Any help would be much appreciated.
    Here's the site I've been working on http://www.cortezautopros.com/locations.html
    Thanks Ben

    This free extension may help http://www.dmxzone.com/go/21863/html5-data-bindings

  • Zip code input to return location

    I am wondering if there is a spry tool that I can use. I want
    the user to input one of about 50 zip codes in my area and then
    based on that input, return one of 3 locations(address).
    TIA,
    Bill

    If you're in the USA and your server supports PHP -
    A to Z store locator is fairly easy to work with:
    www.php4script.com/store-locator-script/
    Other flavors and zip code support can be found at HotScripts
    www.hotscripts.com/PHP/Scripts_and_Programs/Zip_Code_Locators/index.html
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Brhaynes75" <[email protected]> wrote in
    message
    news:fc4cc8$dkt$[email protected]..
    > I am developing a website that requires me to have a
    store locator that
    can
    > return a list of results based off the user's zip code
    submission. Can
    anyone
    > point me in the right direction?
    >
    > If there are solutions out there that can be purchased,
    if the product is
    > good, I will do that as well.
    >
    > Thanks in advance.
    >
    >
    >

  • Some websites show my location wrong zip code, how do I change zip code?

    At some websites firefox shows me as located at a wrong zip code. Where does it get this information and how do I change it so it comes up with the correct zip code?
    Checked these:
    http://whatismyipaddress.com/
    http://browserspy.dk/geolocation.php
    First one is correct & the the 2nd one is NOT....

    Which of the locations is wrong on the second (browserspy) link?
    The IP based map should show that same location as whatismyipaddress.<br />
    The Geolocation Based Map is empty for me (Latitude is undefined; Longitude is undefined) and may only work properly if you use a wireless connection to a known hotspot.

  • Why is my location city changed by Firefox to a town I don't live in? I put in my zip code in the weather info and it will not hold it no matter what I do. This is very frustrating and never a problem in the past. IE doesn't have the problem. Help?

    Why is my location city changed by Firefox to a town I don't live in? I put in my zip code in the weather info and it will not hold it no matter what I do. This is very frustrating and never a problem in the past. IE doesn't have the problem. Can anyone help?

    1) Is it a video clip? Something you recognize?  To be clear, it's displaying at a point in your exported movie but doesn't appear at all in the sequence?
    2) What are your sequence settings?  Right-click your sequence and choose "Item Properties" to verify.

  • Recently I have been unable to acccess my local weather or other zip code weather reports on the Weather Channel using my laptop. My wife has no problem accessing from her laptop from same location.

    This problem is new. I have always been able to access the Weather Channel's website and obtain weather reports for various zip codes. I have Window 7 and use Firefox and Google. I have The Weather Channel as one of my Bookmarks. The site comes up when requested but the three locations that I had listed are not evident and when I type in the zip codes nothing comes up.

    Hi there, I have the same problem with my envy 17ts-j100. I was trying to recover and I had a reset failed massage to I powered it off and went to sleep. The laptop won't boot to bios with symptoms as above.
    Somebody please help out.

  • Store locator system

    I'm currently attempting to build a store locator system. I'm
    found zipMonger, and that does what I need as far as getting all
    the zip codes in a radius. What I'm having a little trouble with is
    taking the list of returned zips and then returning the stores from
    those results. And, once that is working, I'd also like to be able
    to show the distance from the entered zip to the nearest stores
    returned from the search. Even better, plot them all on a Google or
    Yahoo map. Anyone have experience with this sort of thing? Can
    anyone point me in the right direction for getting this all to
    work?

    They go REALLY fast. Your best bet is to get the one you want set up in your cart ready to check out (preferably in the Apple Store app if you can), then just refresh at 10pm to see if anything pops up as available and check out right away. I came extremely close to nailing a 16GB AT&T one last night at a store 1 hour away, but by the time I got it through the cart, they were gone. I checked right at 10pm local time (CST), too.
    I have noticed that the option to check out via in store pickup will unlock at 10pm EST, but the stock levels will not update until 10pm local time (or 10pm the stores' local time).

  • Report for showing pending (ageing) quantity according to store location w

    dear ABAP Gurus,
    I have made a roport for showing pending (ageiing) quantity acc to location wise.
    and i m sending here the code i made for same.Tell me if sme amendments required.
    Report for showing pending (ageing) quantity according to store location wise:   
    1.     Fields on selection screen (input screen) : Plant code From to , Material code From to , Current date, Numbers of days(for display the ageing(pending) balance for a given period,Storage locations from to.
    2.     Field in the output List : Material code , Material descriptions, Balance quantiy,Balance value ,Consumptions date. 
    the code is:
    REPORT  ZAGEIN_SUDHA.
    TABLES: mara,mseg,makt.
    TYPES: BEGIN OF t_mara,
    matnr LIKE mara-matnr,           "material number
    maktx LIKE makt-maktx,           "material description
    ersda LIKE mara-ersda,           "material creation date
    lgort like mseg-lgort,           "storage location
    bwart like mseg-bwart,           "goods received or issued
    menge like mseg-menge,           "value at movement type
    werks like mseg-werks,           "plant
    END OF t_mara.
    DATA: i_mara TYPE STANDARD TABLE OF t_mara with header line,
          itab type standard table of mara with header line,
    *wa_mara TYPE t_mara,
    v_date TYPE i,                      "age in days
    GI type mseg-menge,                 "goods issued
    GR type mseg-menge,                 "goods received
    bal type mseg-menge,                "balance
    total type i,
    grace type i,
    g_quan type mseg-menge.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS: p_matnr FOR mara-matnr.
    select-options: p_werks for mseg-werks.
    select-options: p_lgort for mseg-lgort.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
    REFRESH i_mara.
    SELECT mr~matnr                        "mara-matnr
    mk~maktx                               "makt-maktx
    mr~ersda                               "mara-ersda
    mg~lgort                               "mseg-lgort
    mg~bwart                               "mseg-bwart
    mg~menge                               "mseg-menge
    INTO corresponding fields of table i_mara
    FROM mara AS mr INNER JOIN
    makt AS mk
    ON mrmatnr = mkmatnr INNER JOIN mseg AS mg on mkmatnr = mgmatnr
    WHERE mrmatnr IN p_matnr and mgwerks IN p_werks and mg~lgort IN
    p_lgort.
    total = 0.
    IF sy-subrc = 0.
    *CLEAR wa_mara.
    LOOP AT i_mara.
    if i_mara-bwart = '101' .
    GR = total + i_mara-menge.
    total = GR.
    elseif
    i_mara-bwart = '102' or i_mara-bwart = '122'.
    GR = GR - i_mara-menge.
    endif.
    if i_mara-bwart = '261'.
    GI = total + i_mara-menge.
    elseif i_mara-bwart = '262'.
    GR = GR + i_mara-menge.
    endif.
    bal = GR - GI.
    if bal GE  GR.
    grace = 30.
    else.
    grace = 10.
    endif.
    g_quan = bal - GR.
    v_date = sy-datum - i_mara-ersda.
    endloop.
    WRITE: / i_mara-matnr ,i_mara-maktx,' is ',v_date,' ,days old  and
    stored at' ,i_mara-lgort ,   ' with balance =', bal ,'the grace time is
    ', grace, 'and' ,'grace quantity is ' ,g_quan.
    *ENDLOOP.

    Hi,
    That sounds like a nice report.  What about it?!
    Gareth.

  • Report for showing pending (ageing) quantity according to store location wi

    Report for showing pending (ageing) quantity according to store location wise:   
    Fields on selection screen (input screen) : Plant code From to , Material code From to , Current date, Numbers of days(for display the ageing(pending) balance for a given period,Storage locations from to.
    Field in the output List : Material code , Material descriptions, Balance quantiy,Balance value ,Consumptions date.

    Hi,
    That sounds like a nice report.  What about it?!
    Gareth.

  • Restrictions at store location with 311

    When we run
    T-code: - MB1B with 311 movement type
    There mention two store location
    One for source
    Second for destination
    We need restrict one way stock transfer.
    That means
    1) Store A to store B to be approve with 311
    2) Store B to store A not approve 311
    We need restrict store B to store A with 311
    Amit

    Please have a look in note 205448. It describes the stock transfer with movement type 301. Perhaps this can be adapted to movement type 311?!
    Regards,
    Julia
    Edited by: Julia Bayrhammer on Nov 10, 2009 10:52 AM

  • How can I change the app store location?Want to buy in us and it keeps saying I'm in the australia app store

    How can I change a app store location? I'm in US trying to dowload an app and it says my account is not valid in the Australian store. I have nothing to do with Australia.

    Go to the iTunes Store. Scroll down to the very bottom and click the flag that is on the bottom right. Then you can select what store you want.

  • How do I stop ipad from changing my settings such as store location while I am temporarily in another country?

    QUESTION ONE:  For example - the calendars were automatically changed to Bahasa.  I changed them back - but they returned to Bahasa.  The second time only some of the screens changed to Bahasa.
    More seriously I can't download apps anymore because it tells me my store location is Indonesia and I registered in Australia store.  I didn't change my store location - iPad did.  How do I change it back?
    QUESTION TWO
    Another question - sometimes the screen goes large by itself and and won't reduce or zoom out again.  The only way to fix it is to switch the ipad off and power on again.  This does not work all the time.  Any ideas?  Fingers coming together do not work.
    QUESTION THREE
    Another question - I purchased a sd card and usb jack for photo import - as essential part of my use.  The sd jack does not appear to work as it does not show any photos on the ipad - nor any 'way' to import or to view the files on sd.  There is no little light to say its working or not - but I read the manual and it says that you insert the sd cardreader jack, turn on ipad and then insert the sd card without forcing - only one way fits.  After doing this I select the photo icon as an obvious choice on ipad but there are no photos or dialogue. 
    QUESTION FOUR
    Another question - In the same purchase I bought a usb jack for camera and photo connection.  This seems to work as a dialogue message pops up when I insert a camera connected usb into it.  But the dialogue says - 'the device uses too much electricity to import photos".  Is this because the device is an android phone and not an iphone?  Or is there another magic trick I need to learn?

    The site file is a database that keeps track of all your assets (and much more), including the scriptLib file. As soon as the page is saved (when you use the site file and it's open) the link will be change to the correct path that will work on the server.
    If you're not using the site file you might as well use a text editor, since most of GL functionality is gone.

  • How can we get the location from location area code?

    Hi All,
    i have an application which successfully runs on Motorola L6 and it gives me the cell-id, Location area code, and Mobile Network Code, and Mobile Country Code. Now I want to know how can I get the location ( I mean the name of the location) through location area code. And one more thing can we get current MNC and current MCC through j2me because I have written a code for getting this information for sony ericsson cells but dont have a handset to try out. Anyway if anyone has the information then please let me know
    Thanks in advance
    Sunil

    I donot think you have a direct blog..
    check this blog for java proxies ..
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    AND CONFIGURE A RFC..

  • Not responding to Customer Complaints!Hickory Tree Road/ Peters Creek Location Store

    Been a Verizon/Alltel Business account holder for 13 years and always been satisfied until recently. It's bad when a store gives you the District Manager's number and she doesn't repsond to your complaints either. My 17 year old daughter went to a "satellite" store and upgraded her phone which we gave verbal permision for her to do by phone. But then she comes home with two new digital data cards that they told her were free and bill us for subsequently. When I go to return them, they give me one hassle after another and even as of today, it still hasn't been accomplished after numerous attempts. They changed our plan and extended our contracts on all our devices when she upgraded   and now no one will even attempt to fix the problem. I have assured them this issue is not going away, I will definitely be getting a lawyer involved now due to the fact that they allowed an underage person to  make changes to my account. When all it really would have taken was a simple phone call from  the District Manager and someone making the location correct what they should have never done in the first place. I have a long list of complaints all stemming from one visit that occurred when my daughter upgraded her phone. Unfortunately, guess sales commission outweighs good judgement and customer satisfaction with Verizon these days. Beware Do not go to the Hickory Tree Road/Winston Salem Location Store-  As a matter of fact, JUST AVOID VERIZON ALTOGETHER!

    jeverhart wrote:
    Been a Verizon/Alltel Business account holder for 13 years and always been satisfied until recently. It's bad when a store gives you the District Manager's number and she doesn't repsond to your complaints either. My 17 year old daughter went to a "satellite" store and upgraded her phone which we gave verbal permision for her to do by phone. But then she comes home with two new digital data cards that they told her were free and bill us for subsequently. When I go to return them, they give me one hassle after another and even as of today, it still hasn't been accomplished after numerous attempts. They changed our plan and extended our contracts on all our devices when she upgraded   and now no one will even attempt to fix the problem. I have assured them this issue is not going away, I will definitely be getting a lawyer involved now due to the fact that they allowed an underage person to  make changes to my account. Actually, YOU allowed an underage person to do this when you gave them permission over the phone. No one to blame but yourself.
    When all it really would have taken was a simple phone call from  the District Manager and someone making the location correct what they should have never done in the first place. I have a long list of complaints all stemming from one visit that occurred when my daughter upgraded her phone. Again, after permission was given by you over the phone as you stated earlier in this post.
    Unfortunately, guess sales commission outweighs good judgement and customer satisfaction with Verizon these days. Beware Do not go to the Hickory Tree Road/Winston Salem Location Store-  As a matter of fact, JUST AVOID VERIZON ALTOGETHER!
    Also it seems you should avoid personal responsibility for your own actions.

Maybe you are looking for

  • 24" iMac + Call of Duty 4 (MW):  Setting up graphics for multiplayer

    Any savvy iMac Call of Duty 4 (Modern Warfare) players out there? I'm having a hard time finding posts at Aspyr or online that directly related to the ideal graphic settings for the game, using an imac 24". The manual that came with the game also doe

  • Any plan to include the mate desktop in Archlinux

    Are there any plan to include the Mate desktop in Archlinux? I have installed Linux for my mother that was used to Windows XP. My aim was to configure a desktop that was as close as possible as Windows XP. I have chosen Xfce (after a little reconfigu

  • Moved to Yosemite, now I can't print (Brother MFC-9840CDW)

    Hi there, I've just moved to Yosemite (at the request of GoToMeeting) and I'm now unable to print. I have a Brother MFC-9840CDW which my MacBook Pro can no longer find. As part of the move to 10.10.1 the Brother Printer Software appears to have updat

  • Why are my "info" edits not saving on purchased songs?

    when I edit the song info on "purchased" songs on the iTunes on my new iMac the info reverts back to original after I shut the mac down. I never had this issue in 10 years of iTunes experience on my old pc. It only happens with iTunes purchased songs

  • Is Business Objects and Crystal Reports are the same?

    Hi all, What is the difference between crystal reports and business objects. And what is the advantage of business objects. Can anyone let me know the forums for Business objects in SAP. And what is the latest version for business objects. thanxs har