Earth city importer

hello I am creating a game like “Rise of nations”.

I found a Problem I need to import city from real life.

It would take way to long to place them 1 by 1 so I would be really happy if someone could help me.

I need to get cities position and there population.

1 Like

Use HTTPService and JSONDecode to call to this API and decode the result. It gives you longitude, latitude, and population, which is all you’ll need to place the city on your map, assuming your map is realistically scaled to the actual Earth.

Sample response:

    "name": "San Francisco",
    "latitude": 37.7562,
    "longitude": -122.443,
    "country": "US",
    "population": 3592294,
    "is_capital": false

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.