官术网_书友最值得收藏!

  • Swift 2 Blueprints
  • Cecil Costa
  • 193字
  • 2021-07-09 21:36:43

Project overview

The idea of this app is to give users information about cities such as the current weather, pictures, history, and cities that are around.

How can we do it? Firstly, we have to decide on how the app is going to suggest a city to the user. Of course, the most logical city would be the city where the user is located, which means that we have to use the Core Location framework to retrieve the device's coordinates with the help of GPS.

Once we have retrieved the user's location, we can search for cities next to it. To do this, we are going to use a service from http://www.geonames.org/.

Another piece of information that will be necessary is the weather. Of course, there are a lot of websites that can give us information on the weather forecast, but not all of them offer an API to use it for your app. In this case, we are going to use the Open Weather Map service.

What about pictures? For pictures, we can use the famous Flickr. Easy, isn't it? Now that we have the necessary information, let's start with our app.

主站蜘蛛池模板: 胶南市| 城固县| 阳东县| 普格县| 永定县| 安泽县| 卢龙县| 通海县| 武冈市| 分宜县| 胶南市| 临湘市| 佛坪县| 伊金霍洛旗| 邯郸市| 泰州市| 广宁县| 北京市| 亚东县| 新巴尔虎右旗| 陵水| 荥经县| 嘉定区| 巴南区| 尚义县| 潜山县| 长垣县| 蒲江县| 南充市| 阿勒泰市| 揭西县| 措美县| 英山县| 阿拉善盟| 宜兰县| 韶关市| 新和县| 手游| 三门峡市| 星子县| 西贡区|