473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

A class that provides place names in the world?

Can anyone please tell me if there is a class that provides place
names in the world? I am trying to implement a Flight system and if
there was such a class then it could've contributed towards the system
so that if anyone has typed in garbage, then it had showed an error
message.

I am aware of the alternative which is to implement my own class of
place names, but if there is already a class that provides place names
then I will not need to bother implementing such a class. Please tell
me if there is.

Thank you all.
Jul 17 '05 #1
5 1933
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...
Can anyone please tell me if there is a class that provides place
names in the world? I am trying to implement a Flight system and if
there was such a class then it could've contributed towards the system
so that if anyone has typed in garbage, then it had showed an error
message.

I am aware of the alternative which is to implement my own class of
place names, but if there is already a class that provides place names
then I will not need to bother implementing such a class. Please tell
me if there is.

Thank you all.


What are you going to do ?????
You do not really want to use a class with thousands of constants, do you ?

Use a database.
Jul 17 '05 #2
All I wanted to know if there was a Java class that has all the names
of places. I have alternatives but it will be time-consuming and
there are probably millions places in the world! I just want to know
if there is such a class.

ma***@applejuicenet.de (Torsten Krall) wrote in message news:<63**************************@posting.google. com>...
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...
Can anyone please tell me if there is a class that provides place
names in the world? I am trying to implement a Flight system and if
there was such a class then it could've contributed towards the system
so that if anyone has typed in garbage, then it had showed an error
message.

I am aware of the alternative which is to implement my own class of
place names, but if there is already a class that provides place names
then I will not need to bother implementing such a class. Please tell
me if there is.

Thank you all.


What are you going to do ?????
You do not really want to use a class with thousands of constants, do you ?

Use a database.

Jul 17 '05 #3
Mohammed Mazid wrote:
All I wanted to know if there was a Java class that has all the names
of places. I have alternatives but it will be time-consuming and
there are probably millions places in the world! I just want to know
if there is such a class.
"Places" can mean a lot of things. Do you want like the geography of
the area? Its airports? its wind pattern? or you just want the list of
cities in the world?

One city can have many airports. Whatever this is it can't just be in a
class. it would be in a database or datafile. What are you looking
for perciceley?

Would the stuff in the flightgear project help you?

ma***@applejuicenet.de (Torsten Krall) wrote in message news:<63**************************@posting.google. com>...
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...
Can anyone please tell me if there is a class that provides place
names in the world? I am trying to implement a Flight system and if
there was such a class then it could've contributed towards the system
so that if anyone has typed in garbage, then it had showed an error
message.

I am aware of the alternative which is to implement my own class of
place names, but if there is already a class that provides place names
then I will not need to bother implementing such a class. Please tell
me if there is.

Thank you all.


What are you going to do ?????
You do not really want to use a class with thousands of constants, do you ?

Use a database.

Jul 17 '05 #4
The list of cities. I know that database is the only solution, but if
there is a class already that provides all the names of the cities,
then why do I need to bother?

Just would like to know if there is such a class that provides names
of cities.

I would assume that if I was entering the place name in a Java
program, I would have an if statement:

//Assume there is a class for names of cities called Cities
Cities cities = new Cities();
if placeName != cities
System.out.println("City not found!");

I know there is no such class as Cities, but let's assume there was,
I'd want to have an if statement like that. I was only wondering if
there was a collection class that hold names of cities.

Yoyoma_2 <Yoyoma_2@[at-]Hotmail.com> wrote in message news:<Ve37c.866184$X%5.717972@pd7tw2no>...
Mohammed Mazid wrote:
All I wanted to know if there was a Java class that has all the names
of places. I have alternatives but it will be time-consuming and
there are probably millions places in the world! I just want to know
if there is such a class.


"Places" can mean a lot of things. Do you want like the geography of
the area? Its airports? its wind pattern? or you just want the list of
cities in the world?

One city can have many airports. Whatever this is it can't just be in a
class. it would be in a database or datafile. What are you looking
for perciceley?

Would the stuff in the flightgear project help you?

ma***@applejuicenet.de (Torsten Krall) wrote in message news:<63**************************@posting.google. com>...
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...

Can anyone please tell me if there is a class that provides place
names in the world? I am trying to implement a Flight system and if
there was such a class then it could've contributed towards the system
so that if anyone has typed in garbage, then it had showed an error
message.

I am aware of the alternative which is to implement my own class of
place names, but if there is already a class that provides place names
then I will not need to bother implementing such a class. Please tell
me if there is.

Thank you all.

What are you going to do ?????
You do not really want to use a class with thousands of constants, do you ?

Use a database.

Jul 17 '05 #5
Mohammed Mazid wrote:
The list of cities. I know that database is the only solution, but if
there is a class already that provides all the names of the cities,
then why do I need to bother?

Just would like to know if there is such a class that provides names
of cities.

I would assume that if I was entering the place name in a Java
program, I would have an if statement:

//Assume there is a class for names of cities called Cities
Cities cities = new Cities();
if placeName != cities
System.out.println("City not found!");

I know there is no such class as Cities, but let's assume there was,
I'd want to have an if statement like that. I was only wondering if
there was a collection class that hold names of cities.

No but i know there is a partial list of places for time zone stuff.

I googled it and i found
http://www.atravco.com/airportcodes1.html
Take that and copy/paste it into a file then make SQL statements to load
them into your database. Prefferably by region.

I think that should do it.

Yoyoma_2 <Yoyoma_2@[at-]Hotmail.com> wrote in message news:<Ve37c.866184$X%5.717972@pd7tw2no>...
Mohammed Mazid wrote:

All I wanted to know if there was a Java class that has all the names
of places. I have alternatives but it will be time-consuming and
there are probably millions places in the world! I just want to know
if there is such a class.


"Places" can mean a lot of things. Do you want like the geography of
the area? Its airports? its wind pattern? or you just want the list of
cities in the world?

One city can have many airports. Whatever this is it can't just be in a
class. it would be in a database or datafile. What are you looking
for perciceley?

Would the stuff in the flightgear project help you?

ma***@applejuicenet.de (Torsten Krall) wrote in message news:<63**************************@posting.google. com>...
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...
>Can anyone please tell me if there is a class that provides place
>names in the world? I am trying to implement a Flight system and if
>there was such a class then it could've contributed towards the system
>so that if anyone has typed in garbage, then it had showed an error
>message.
>
>I am aware of the alternative which is to implement my own class of
>place names, but if there is already a class that provides place names
>then I will not need to bother implementing such a class. Please tell
>me if there is.
>
>Thank you all.

What are you going to do ?????
You do not really want to use a class with thousands of constants, do you ?

Use a database.

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
48
by: mahurshi | last post by:
I am new to c++ classes. I defined this "cDie" class that would return a value between 1 and 6 (inclusive) It runs fine and gives no warnings during compilation. I was wondering if you guys...
5
by: sparks | last post by:
I am about to pull my hair out on this one. its a class stack with push and pop but one time its trying to find a } at the end of the code the next it says that I need a } after private man I...
0
by: emin.shopper | last post by:
I had a need recently to check if my subclasses properly implemented the desired interface and wished that I could use something like an abstract base class in python. After reading up on metaclass...
3
by: antred | last post by:
Hello everyone, While working on a program I encountered a situation where I'd construct a largish data structure (a tree) from parsing a host of files and would end up having to throw away...
21
by: phpCodeHead | last post by:
Code which should allow my constructor to accept arguments: <?php class Person { function __construct($name) { $this->name = $name; } function getName()
23
by: mike3 | last post by:
Hi. (posted to both newsgroups since I was not sure of which would be appropriate for this question or how specific to the given language it is. If one of them is inappropriate, just don't send...
5
by: alan | last post by:
Hello world, I'm wondering if it's possible to implement some sort of class/object that can perform mapping from class types to strings? I will know the class type at compile time, like so:...
3
by: June Lee | last post by:
Is that for Class/Object function prototype, I must define the function in header file or .cpp file. MyClass::functionA(); MyClass::functionB(); but for C function prototype, I don't have to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.