Home Forums Programming General Zip code --> Distance in google maps RE: Zip code --> Distance in google maps

  • Steven Willis (7/15/2013)


    Here's a stored procedure that calls the Google geocoding service which will work on full address or a zip code (center of zone) returning the lat/lon for the location. The second procedure lets you enter an origin and destination address (or zip) and returns the miles between the two points based on the lat/lon returned by the first procedure.

    Haven't tried it but very cool. That bad boy just found a home in my briefcase. Thanks, Steven.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)