Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more airports #96

Open
snollygolly opened this issue Jun 10, 2019 · 1 comment
Open

Add more airports #96

snollygolly opened this issue Jun 10, 2019 · 1 comment

Comments

@snollygolly
Copy link
Owner

I'd like to increase the number of airports available and I'd like to get at least 2 airports in every country I currently have. This may or may not be possible depending on the size of the country and airports available.

Airports are currently stored in places.json (https://github.com/snollygolly/paw-wars/blob/master/models/game/data/places.json). It consists of an array of airports. An example airport might look like this:

  {
    "id": "MEL",
    "name": "Melbourne Airport",
    "city": "Melbourne",
    "country": "Australia",
    "continent": "Australia",
    "size": 5,
    "coordinates": {
      "latitude": -37.6690123,
      "longitude": 144.8388386
    }
  }

Most of the values are self explanatory, but the important one for this issue is size. This is how many million people live in the metropolitan area around the airport. 5,000,000 people live in Melbourne (according to wikipedia), so size would be 5. When adding new airports please make sure you don't select airports that would have a size lower than 5.

Also, make sure you have the latitude and longitude correct, this helps calculate distance for flights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant