ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Accessing the Geographical Database in Apple's Map Control Panel


Q: How can I provide my users with a “hook” to access the geographical database in Apple’s “Map” Control Panel from my application?

A: There’s no supported way of accessing the geographical database contained in the “Map” Control Panel. Here are some hints, however (just to satisfy your curiosity):

The data are stored in a resource of type 'CTY#', ID=-4064, in the Map cdev. The resource format is a list of word-aligned (variable length) city entries, preceded by an integer indicating the number of entries. Each entry has the format:

[Integer] length in bytes of the entry

[Longint] latitude in Fract; north = +

[Longint] longitude in Fract; east = +

[Longint] GMT difference in seconds; east = +

[Longint] (reserved; set to 0)

[PascalString] name of the city.

Updated: 17-May-1999


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.