User s Guide. Canadian Geo*Data CANADA

Similar documents
2015 Rules (v. 01/22/2015)

Rules and other related operating aids (Summary Sheet, Multiplier List, and Operating Tips) available at:

Divided Landscapes of Economic Opportunity: The Canadian Geography of Intergenerational Income Mobility

Washington Salmon Run Rules SPONSORED BY WESTERN WASHINGTON DX CLUB. Updated 5 August, 2014

2018 INUVIALUIT TRUST APPLICATION PACKAGE FOR ENROLMENT

MFM1P Foundations of Mathematics Unit 3 Lesson 14. Apply data-management techniques to investigate relationships between two variables;

Geographic Terms. Manifold Data Mining Inc. January 2016

The Canadian Population: Age and Sex

ELEMENTARY LEVEL British Columbia and Yukon Territory

2012 ARRL 10 Meter Contest Rules

VENTURE CAPITAL MONITOR

Canadian Census Records

Standards for the Operation of Radio Stations in the Amateur Radio Service

any questions I had after the job was done, they didn't just vanish after the bill was paid. To edit this sidebar, go to admin backend's.

Postal Code Conversion for Data Analysis

Rules: 2016 California QSO Party (CQP)

ArcGIS 9 Using ArcGIS StreetMap

2011 North Dakota QSO Party

2013 North Dakota QSO Party

Scientific and Technological (S&T) Activities of Provincial Governments and Provincial Research Organizations, 2000/2001 to 2004/2005

Standards for the Operation of Radio Stations in the Amateur Radio Service

Radio Station Licensing Procedure for Radiocommunication Service Providers System Licensing

Oracle Real-Time Scheduler

Postal Code OM Conversion File (PCCF), Reference Guide

2017 North Dakota QSO Party

The Postal Code Conversion File (PCCF) User Guide

Getting Started. Spectra Acquisition Tutorial

2011 National Household Survey (NHS): design and quality

Chart 20: Percentage of the population that has moved to the Regional Municipality of Wood Buffalo in the last year

WEB I/O. Wireless On/Off Control USER MANUAL

Rules: 2017 California QSO Party (CQP) Last Update: August 17, 2017

A A P S C o n f e r e n c e CANADIAN HOUSEHOLD DISTRIBUTION

Field Device Manager Express

Magic of Radio! Explore the. Earn your Amateur Radio license! Make friends around the world!

Postal Code OM Conversion File (PCCF), Reference Guide

Dead Bird Surveillance

Descartes Map Editor November 2013 U S E R S G U I D E

APPENDIX E. Database Data Entry Guidelines

Q Introduction. Summary of investment and fundraising. Deal size. Increase in deal size.

Q INTRODUCTION VC ACTIVITY OVERVIEW. Summary of investment and fundraising. ($ millions)

Geodetic Positioning Refresher

SysInfoTools PDF Image Extractor v2.0

VENTURE CAPITAL MONITOR

LD2342 USWM V1.6. LD2342 V1.4 Page 1 of 18

A FUN AND EFFECTIVE EXERCISE FOR UNDERSTANDING LATTICES AND SPACE GROUPS

2008 Statistics and Projections to the Year Preliminary Data

Maryland-DC QSO Party Rules

Introduction to Simulation of Verilog Designs Using ModelSim Graphical Waveform Editor. 1 Introduction. For Quartus II 13.1

2013 ARRL DX Contest Rules

Postal Code Conversion File October 1999 Postal Codes Reference Guide

investigating characteristics and the display of TOMS ozone data

GNSS Conductor GF. User s Guide. (Document No. SE )

GD&T Administrator Manual v 1.0

Printer Software Guide

Celtic Design 3. Celtic Design 1. Celtic Design 2. Celtic Design 4. Celtic Design 5. Celtic Design 6. Celtic. sss297. sss295. sss296. sss433.

Blue Bamboo P25 Device Manager Guide

1996 CENSUS: ABORIGINAL DATA 2 HIGHLIGHTS

CHAPTER 18 DOCUMENT IMAGING MODULE 18.0 OVERVIEW 18.1 REQUIREMENTS AND INSTALLATION Special Requirements Mapping Network Drive

IRISYS ISI Series Imager Report Writing Software

SRT Marine Technology. LD2342 V1.4 Page 1 of 22

Agilent N7509A Waveform Generation Toolbox Application Program

Production and Value of Honey and Maple Products

Pennsylvania QSO Party 2016 Official Rules

2018 Tenth Anniversary Kansas QSO Party Rules

Production and Value of Honey and Maple Products

3/14/2016. The Geography of Directors and Business Growth. Introduction. Why Study Corporate Boards? Introduction. Boards and Geography

Appendix B: Descriptions of Virtual Instruments (vis) Implemented

Impedance Transformation with Transmission Lines

Geometry Controls and Report

Visible Minority and Population Group Reference Guide

Effective Training Inc. Aug 2009

Postal Code Conversion File (PCCF), Reference Guide

GW3-TRBO Affiliation Software Version 2.15 Module Book

Copyright 2014 SOTA Imaging. All rights reserved. The CLIOSOFT software includes the following parts copyrighted by other parties:

Contents. Nikon Scan for Windows. Scanner Control Software and TWAIN Source. Reference Manual. Overview Before You Begin.

FUJITSU TWAIN 32 Scanner Driver. Scanner Utility for Microsoft Windows Version User's Guide

Production and Value of Honey and Maple Products

1 Setup Guide. Before You Install MicroStation Descartes

M-16DX 16-Channel Digital Mixer

CanadaWest. The Growing Importance of Big Cities on the Demographic Landscape. Big Cities and the Census. January 2008

Announcing: 2017 CQ WW DX RTTY Contest September Starts 0000 UTC Saturday Ends 2359 UTC Sunday

Scanner Utility for Microsoft Windows Version 9.6. User's Guide

Using the S5U13781R01C100 Shield Graphics Library with Atmel Studio

Stratix Filtering Reference Design

Stratix II Filtering Lab

TRBOnet Guard Tour Configuration and Operation Guide

M F TYPE S R-SETUP. Setup Software

TRBOnet Enterprise/PLUS

Working with a financial adviser

Catalogue No. 92F-0153-GIE Postal Code Conversion File September 2002 Postal Codes Reference Guide

SRM9000-Application Note

2018 North Carolina QSO Party Contest Rules

The Canadian Open Mathematics Challenge November 3/4, 2016

DOCUMENT SCANNER INSTRUCTIONS. Space. Backup. Count Only. New File. Scanner. Feeding Option Manual Auto Semi-Auto

Production and Value of Honey and Maple Products

YCE13. Dealer PC Programming Software Reference Manual. Attention!

Production of a Landsat-7 ETM+ Orthoimage Coverage of Canada

Monaco ColorWorks User Guide

TouchMix Series. Quick Start Guide. Installing the Windows Driver. Non-DAW audio playback from computer. TouchMix-30 Pro settings.

Xcalibur. LCquan. Tutorial. Quantitative Analysis of a Three-Drugs Data Set Software Version 2.8

Transcription:

User s Guide Canadian Geo*Data CANADA

Canadian GEO*Data User s Guide Melissa Data Corporation

Copyright Information in this document is subject to change without notice. Companies, names, and data used in examples herein are fictitious unless otherwise noted. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Melissa Data Corporation. This document and the software it describes are furnished under a license agreement, and may be used or copied only in accordance with the terms of the license agreement. 2013. Melissa Data Corporation. All rights reserved. Information in this document is subject to change without notice. Melissa Data Corporation assumes no responsibility or liability for any errors, omissions, or inaccuracies that may appear in this document. Trademarks Candian Geo*Data is a trademark of Melissa Data Corporation. Windows is a registered trademark of Microsoft Corp. ZIP Code and ZIP+4 are registered trademarks of the United States Postal Service (USPS). All other brands and products are trademarks of their respective holder(s). MELISSA DATA CORPORATION 22382 Avenida Empresa Rancho Santa Margarita, CA 92688 Telephone: 1-800-MELISSA (1-800-635-4772) Fax: 949-589-5211 E-mail: info@melissadata.com Web site: www.melissadata.com Document Code: CADUSG Revision: 131121.018 Last Revision: November 21, 2013

Dear Programmer, I would like to take this opportunity to introduce you to Melissa Data Corp. Founded in 1985, Melissa Data provides data quality solutions, with emphasis on address and phone verification, postal encoding, and data enhancements. We are a leading provider of cost-effective solutions for achieving the highest level of data quality for lifetime value. A powerful line of software, databases, components, and services afford our customers the flexibility to cleanse and update contact information using almost any language, platform, and media for point-of-entry or batch processing. This online manual will guide you through the properties and methods of our easy-to-use programming tools. Your feedback is important to me, so please don't hesitate to email your comments or suggestions to ray@melissadata.com. I look forward to hearing from you. Best Wishes, Raymond F. Melissa President

Contents Chapter 1: Introduction... 1 Files and Sizes...2 Installation...2 Chapter 2: Record Layouts... 4 Postal Database (canada.txt)...4 Overlay Database (overlay.txt)...6 Appendix A: Distance Calculation... 8 Approximate Solutions...8 Exact Solution...9 Bearing Formula...10

Chapter 1 Introduction Canadian Geo*Data is a Postal Code database in the fixed length (ASCII), FoxPro (dbf), and Access (mdb) formats. Canadian Geo*Data contains all the Postal Codes that are located within Canada. You can use this information to verify the addresses and organizations in your mailing list and to append additional data such as latitude and longitude. The included databases are: Canadian Geo*Data Database Area Code Overlay Database Canadian Geo*Data comes on a CD ROM. Updates Canadian Geo*Data is updated quarterly to ensure that the data you receive is as current as possible. Call Melissa Data at 1-800-800-6245 for more information on Canadian Geo*Data. Hardware Requirements In order to install Canadian Geo*Data you must have a PC with Windows XP or newer. Installing dbase or ASCII text databases requires at least 65 MB of available hard drive space. Installing Access databases requires at least 115 MB of available hard drive space. 1

CANADIAN GEO*DATA CHAPTER 1 USER S GUIDE INTRODUCTION FILES AND SIZES 1. Postal Database: Description: Contains Area Code, Overlay Code, Municipality, Province, Postal Code, Latitude, Longitude, Daylight Savings Time (DST), and Time Zone information File size: Approximately 766,800 records of 82 characters each 2. Overlay Database: Description: Contains Area Code overlays. File size: Approximately 3 records of 9 characters each. INSTALLATION The Canadian Geo*Data files are in a fixed-length (ASCII), FoxPro (dbf), and Access (mdb) format. Windows Installation 1 Put the Canadian Geo*Data CD into your CD-ROM drive. 2 Click the Start button on the lower left corner of your screen and select Run from the pop-up menu that appears. 3 In the Run screen, click the Browse button and navigate to your CD-ROM drive by selecting it from the pull-down menu of the Look in: window. 4 Select the Setup file in the CD-ROM directory and click Open. 5 Click OK in the Run screen to launch the installation wizard. 6 When the installation wizard screen appears, click Next to begin installing Canadian Geo*Data on your computer. 7 Read the License Agreement and choose Yes to accept it and continue the installation or No to abort the install if you do not agree with the licensing conditions. 8 Click Next to choose the default installation location (C:\Program Files\Melissa Data\Canadian GeoData) or use Browse to select another directory for the Canadian Geo*Data files. Click Next to proceed. 9 Select your desired file types. The options are: dbase Microsoft Access. Fixed-Length ASCII (*.DAT files), with or without SQL Headers 10 Click Next, then click Install. 11 The Canadian Geo*Data files will be installed and registered. Click Finish to exit the installation wizard. 2

CANADIAN GEO*DATA CHAPTER 1 USER S GUIDE INTRODUCTION Installation for Non-Windows Users If you are using, DOS, Linux, Solaris, another non-windows operating system, or Windows version before XP, the uncompressed individual data files can be copied from their folders on the Canadian Geo*Data installation CD. To do so, create a directory on your hard disk called Canada and copy the files you need from the CD to that directory. The uncompressed data files are located in the following directories: dbase \dbf Microsoft Access \mdb ASCII files \text 3

Chapter 2 Record Layouts Canadian Geo*Data contains 5 files and 3 file types. These files are composed of a series of records. Each record is made up of fields. The fields contained in each of these database files are detailed below. POSTAL DATABASE (CANADA.TXT) Field Name Length Type PostalCode 6 Character Municipality 30 Character (City) Province 2 Character (State) Latitude 9 Numeric (xx.xxxxxx) Longitude 11 Numeric (-xxx.xxxxxx) TimeZone 2 Character DST 1 Character (Daylight Savings Time) AreaCode 3 Character Overlay 1 Character 4

CANADIAN GEO*DATA CHAPTER 2 USER S GUIDE RECORD LAYOUTS Field Name Length Type Filler 15 Character (Future Use) CR + LF 2 Character 82 Postal Code Postal Codes identify specific geographic delivery areas. The standard format for the Canadian Postal Code is A1A 1A1 (Although the space is removed for storage purposes, it is implied). Municipality The municipality (city), community, station or other name by which a Postal Code area is known. Province The Canada Post standard 2-letter province abbreviation. Possible codes are: AB Alberta BC British Columbia MB Manitoba NB New Brunswick NL Newfoundland and Labrador NS Nova Scotia NT Northwest Territories NU Nunavut ON Ontario PE Prince Edward Island QC Quebec SK Saskatchewan YT Yukon Latitude The geographic coordinate of a point measured in degrees north or south of the equator. Longitude The geographic coordinate of a point measured in degrees east or west of the Greenwich meridian. Area Code The dominant 3-digit telephone area code associated with the Postal Code. The Overlay Code field will indicate if more than one Area Code is associated with a single Postal Code. 5

CANADIAN GEO*DATA CHAPTER 2 USER S GUIDE RECORD LAYOUTS Time Zone The number representing the hours past UTC Time Standard. All Melissa Data products express time zones in UTC (Coordinated Universal Time). The time zone in which the Postal Code resides. The values are: 3A Newfoundland Time (1/2 hour change) 4 Atlantic 5 Eastern 6 Central 7 Mountain 8 Pacific DST - Daylight Savings Time Indicates if the Postal Code is affected by Daylight Savings Time. The values are: Y = uses daylight savings time N = does not use daylight savings time Overlay Indicates if a Postal Code has more than one Area Code. If a letter code indicates there is an overlay, you must refer to the overlay file to locate alternative area codes. The codes are: Blank Indicates that no overlay exists. A Vancouver, BC overlay (604/778) B Toronto, ON overlay (416/647) C Hamilton, ON overlay (905/289) D to Z future overlays Filler This location is reserved for future use. CR + LF The carriage return and line feed code. OVERLAY DATABASE (OVERLAY.TXT) Field Name Length Type Parent 3 Character (Original AC) Overlay 3 Character (Overlay AC) Group 1 Character CR + LF 2 Character 9 6

CANADIAN GEO*DATA CHAPTER 2 USER S GUIDE RECORD LAYOUTS Parent The original area code (listed in the canada.txt file). Overlay The alternate area code. Group A single letter matching the letter located in the canada.txt files overlay field. The codes are: A Vancouver, BC overlay (604/778) B Toronto, ON overlay (416/647) C Hamilton, ON overlay (905/289) D-Z future overlays CR + LF The carriage return and line feed code. 7

Appendix A Distance Calculation Any point on the earth s surface can be located by its latitude and longitude coordinates. Latitude is the angle above or below the equator in degrees. The equator is zero degrees, the north pole is north 90 degrees latitude, and the south pole is south 90 degrees latitude. The continental United States falls between 25 and 50 degrees north. Longitude is the angle east or west of the Greenwich meridian. The continental United States is between 70 and 125 degrees west. APPROXIMATE SOLUTIONS One degree of latitude is equal to 69.1 miles. One degree of longitude is equal to 69.1 miles at the equator. North or south of the equator, 1 degree of longitude is a smaller distance. It s reduced by the cosine of the latitude. Dividing the latitude number by 57.3 converts it to radians. DistLat = 69.1 * (Lat2-Lat1) DistLong = 69.1 * (Lg2-Lg1) * cos(lat1 / 57.3) Dist = (DistLat 2 + DistLong2) 0.5 8

CANADIAN GEO*DATA USER S GUIDE APPENDIX A DISTANCE CALCULATION If you don t want to use the COS function, then a good approximate solution is: DistLat = 69.1 * (Lat2-Lat1) DistLg = 53 * (Lg2 - Lg1) Dist = (DistLat 2 + DistLong 2 ) 0.5 EXACT SOLUTION To calculate the exact distance between points requires spherical geometry. The basic formula is: D = 3959arccos[sin(Lat1)sin(Lat2)+ cos(lat1)cos(lat2)cos(lg2-lg1)] The above formula has one major problem: most computer languages do not support the arc cosine function. Therefore a different form is necessary, one that uses the arc tangent function that most languages embrace. D = 3959atn [ (1-A 2 ) 0.5 / A] where A is equal to: A = sin(lat1)sin(lat2)+ cos(lat1)cos(lat2)cos(lg2-lg1) Most computer languages compute the sine and cosine function with the angle given in radians. To convert degrees to radians, divide degrees by the constant 57.3 (180/pi). In BASIC this would be programmed as follows: Where: C = 57.3 A = sin(lat1/c)*sin(lat2/c) + cos(lat1/c)* cos(lat2/c)*cos(lg2/c - Lg1/C) D = 3959 * atn( SQR(1-A^2)/A) D = distance in statue miles from the first to the second point. C = degrees to radians constant 57.3. Lat1 = latitude of the first point in degrees. Lg1 = longitude of the first point in degrees. Lat2 = latitude of the second point in degrees. Lg2 = longitude of the second point in degrees. NOTE: Dividing the latitude number by 57.3 converts it to radians. Since all ZIP code points in the United States are north latitude and west longitude, there is no need to check the sines (positive and negative) of the latitudes and longitudes. Some programming languages, such as dbase II/III, do not have the functions of the sine, cosine and arc tangent. Also, the formulas given are time-consuming to calculate. A simpler but less accurate method is given here: D = 69.1 * SQR [(LAT2-LAT1)2 +0.6* (LG2-LG1) 2 ] Although this formula is not as accurate as the first great circle method, it will give good results for most applications. In Basic, it is written as follows: D = 69.1 * SQR [(LAT2-LAT1)^2 +.6*(LONG2-LONG1)^2] 9

CANADIAN GEO*DATA USER S GUIDE APPENDIX A DISTANCE CALCULATION In dbase III it is written as follows: D = 69.1 * SQRT [(LAT2-LAT1)^2 + 0.6 *(LONG2-LONG1)^2] To make using the database easier, the latitudes and longitudes are given in the decimal format instead of the degree, minute and second format. The latter would require the additional steps of converting seconds to fractions of a minute and then minutes to a fraction of a degree. BEARING FORMULA The bearing is the direction from the first point to the second point. It is expressed as an angle from north in degrees. Due north is a bearing of zero degrees, east is a bearing of 90 degrees, south is 180, and west is 270. The bearing from the first point to the second is calculated with: sin(lat1) * sin(lg2-lg1) B = Arc Tan sin(lat2) * cos(lat1) - cos(lat2) * sin(lat1) * cos(lg2-lg1) Since the ARCTAN function gives the angle in radians, it is necessary to convert B to degrees by multiplying by 57.3 (180/Pi). To use this equation requires some special considerations. This example assumes that Lat1, Lat2, Lng1, Lng2 have been converted to radians. Use the following steps: N = sin(lat1)*sin(lng1-lng2) D = sin(lat2)*cos(lat1) cos(lat2)*sin(lat1)*cos(lng1-lng2) B = 57.3 * ARCTAN(N/D) If (D > 0) then (B = 360+B) If (D < 0) then (B = 180+B) If (B < 0) then (B = 360 + B) Where: N is the Numerator. D is the Denominator. B is the Bearing. 10