{"id":59799,"date":"2023-11-17T17:04:27","date_gmt":"2023-11-17T11:34:27","guid":{"rendered":"https:\/\/www.oneclickitsolution.com\/blog\/?p=59799"},"modified":"2024-02-04T13:43:55","modified_gmt":"2024-02-04T08:13:55","slug":"building-a-realtime-weather-app-in-flutter","status":"publish","type":"post","link":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter","title":{"rendered":"A Complete Guide to Building a Realtime Weather App in Flutter"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>Welcome to my first blog! I&#8217;m excited to introduce you to my simple application weather app. It provides your current location and real-time weather data, including temperature, wind speed, cloud conditions, humidity, and elevation above sea level. I built this app using the Flutter framework, which is Google&#8217;s <strong><a href=\"https:\/\/www.oneclickitsolution.com\/services\/ui-ux-design-and-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">UI <\/a><\/strong>toolkit. Flutter allows applications to work seamlessly on mobile, web, and desktop using a single codebase. It&#8217;s free and open source, making it a popular choice among <strong><a href=\"https:\/\/www.oneclickitsolution.com\/hire-dedicated-developers\/\" target=\"_blank\" rel=\"noreferrer noopener\">developers<\/a><\/strong> and organizations worldwide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-things-we-needed\">Things We Needed<\/h2>\n\n\n\n<p>In addition to having a basic understanding of Flutter, we&#8217;ll also need access to weather-related data through an API. For this task, I opted to use OpenWeatherMap (http:\/\/api.openweathermap.org\/), a reliable source that offers a free weather data API. To begin, you simply need to sign up for an account on their platform, which will provide you with a vital element: the <strong><a href=\"https:\/\/www.oneclickitsolution.com\/travel\/travel-api-integration\/\" target=\"_blank\" rel=\"noreferrer noopener\">API key<\/a><\/strong>. This special key is essential, as it acts as a crucial parameter needed to retrieve weather data.<\/p>\n\n\n\n<p><strong>&nbsp;Key example ===== &gt;&gt;&gt;&gt;&gt;&gt;&nbsp; 60e39g532ab04328madsccdc4g5c0ce0<\/strong><\/p>\n\n\n\n<p><strong>Pls don&#8217;t share your key the above example is a demo key<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.oneclickitsolution.com\/contact-us\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"300\" src=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/03\/Hire-Travel-Technology-Solution-Provider.png\" alt=\"Hire Travel Technology Solution Provider\" class=\"wp-image-54593\" srcset=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/03\/Hire-Travel-Technology-Solution-Provider.png 1200w, https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/03\/Hire-Travel-Technology-Solution-Provider-768x192.png 768w, https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/03\/Hire-Travel-Technology-Solution-Provider-20x5.png 20w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Installation required<\/h2>\n\n\n\n<p>Before a kick start all you need to install the following dependencies in your pubspec.yaml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"dart\" class=\"language-dart\">dependencies:\nflutter:\nsdk: flutter\ncupertino_icons: ^1.0.6\ngeocoding: ^2.1.1\ngeolocator: ^10.1.0\nhttp: ^1.1.0\nsleek_circular_slider: ^2.0.1\nget: ^4.6.5\npermission_handler: ^11.0.1\nintl: ^0.18.1\n<\/code><\/pre>\n\n\n\n<p>In the dependencies mentioned above, &#8216;geolocator&#8217; and &#8216;geocoding&#8217; are essential, while others can vary depending on your project requirements. For example, in my project, I utilized the &#8216;getx&#8217; library, so I installed the &#8216;get&#8217; dependency accordingly.<\/p>\n\n\n\n<p>Add these dependencies in your Androidmanifest.xml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"dart\" class=\"language-dart\">&lt;manifest xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n  package=\"com.example.weatherapp_starter_project\"&gt;\n  &lt;uses-permission       android:name=\"android.permission.ACCESS_FINE_LOCATION\" \/&gt;\n  &lt;uses-permission   android:name=\"android.permission.ACCESS_BACKGROUND_LOCATION\" \/&gt;\n  &lt;uses-permission    android:name=\"android.permission.ACCESS_COARSE_LOCATION\" \/&gt;\n  &lt;uses-permission android:name=\"android.permission.INTERNET\" \/&gt;\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Coding part<\/h2>\n\n\n\n<p>How to access the location using geolocator and geocoding<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"dart\" class=\"language-dart\">  @override\n  void onInit() {\n  initData();\n  super.onInit();}\n\n  \n  initData() async {\n  if (_isLoading.isTrue) {\n  await getLocation();\n  await getAddress(_latitude.value, _longitude.value); \n  }\n  }\n     getLocation() async {\n    bool isServiceEnabled;\n    LocationPermission locationPermission;\n    await Geolocator.requestPermission();\n    isServiceEnabled = await Geolocator.isLocationServiceEnabled();\n    if (!isServiceEnabled) {\n    return Future.error('Location not enabled');\n    }\n    locationPermission = await Geolocator.checkPermission();\n    if (locationPermission == LocationPermission.deniedForever) {\n    return Future.error('Location permission are denied forever');\n     } else if (locationPermission == LocationPermission.denied) {\n    if (locationPermission == LocationPermission.denied) {\n    return Future.error('Location permission is denied');\n   }\n   }\n    return await Geolocator.getCurrentPosition(\n    desiredAccuracy: LocationAccuracy.high)\n   .then((value) {\n    _latitude.value = value.latitude;\n    _longitude.value = value.longitude;\n    _isLoading.value = false;\n    weatherController.weather(_latitude.value, _longitude.value);\n    });\n    }\n    Future&lt;void&gt; getAddress(double lat, double lon) async {\n    List&lt;Placemark&gt; placemarks = await placemarkFromCoordinates(lat, lon);\n     Placemark place = placemarks[0];\n    city.value = place.locality!;\n    }\n<\/code><\/pre>\n\n\n\n<p>How to&nbsp; <strong><a href=\"https:\/\/www.oneclickitsolution.com\/blog\/call-apis-with-kotlin-coroutines\/\" target=\"_blank\" rel=\"noreferrer noopener\">call an API using<\/a><\/strong> with longitude and latitude as a parameter which we get from above code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"dart\" class=\"language-dart\">Future&lt;WeatherModel?&gt; weather(double lat, double lon) async {\n  final WeatherService weatherService = WeatherService();\n  final APIResponse response = await weatherService.weather(lat, lon);\n\n\n  if (response.ok) {\n  final Map&lt;String, dynamic&gt; responseData = json.decode(response.data);\n  print('response&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;$responseData');\n  final WeatherModel weatherModel = WeatherModel.fromJson(responseData);\n  currentTemperature.value = weatherModel.main?.temp ?? 0.0;\n  iconCode.value = weatherModel.weather?.first.icon ?? '';\n  winds.peed.value = weatherModel.wind?.speed ?? 0.0;\n  clouds.value = weatherModel.clouds?.all ?? 0;\n  humidity.value = weatherModel.main?.humidity ?? 0;\n  maxTemp.value = weatherModel.main?.tempMax ?? 0.0;\n  minTemp.value = weatherModel.main?.tempMin ?? 0.0;\n  } else {\n  return null;\n  }\n  return null;\n  }\n<\/code><\/pre>\n\n\n\n<p><strong>Service class<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"dart\" class=\"language-dart\">class WeatherService {\n  Future&lt;APIResponse&gt; weather(double lat, double lon) async {\n   try {\n   String url =     '${APIKey.baseUrl}\/data\/2.5\/weather?lat=$lat&amp;lon=$lon&amp;appid=90d29f532bb0        4328dadcccdc4f5c0ce0&amp;units=metric';\n\n\n   APIResponse response = await Http().handleHttpRequest&lt;APIResponse&gt;(\n    \"Unable to find data\",\n   () async =&gt; await Http.get(url),\n    );\n   return response;\n   } catch (e) {\n   return APIResponse(\n   false,\n   data: e.toString(),\n   message: \"Error in finding data.\",\n   Severity: ErrorLevel.Connection,\n   );\n   }\n   }\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Our weather app is ready, providing you with real-time information about your <strong><a href=\"https:\/\/www.oneclickitsolution.com\/blog\/gps-navigation-app\/\" target=\"_blank\" rel=\"noreferrer noopener\">current location<\/a><\/strong>, including temperature, humidity, wind speed, and other relevant details tailored to your preferences<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1700216316012\"><strong class=\"schema-faq-question\"><strong>Why do we have URLs with different endpoints for OpenWeatherMap?<\/strong><\/strong> <p class=\"schema-faq-answer\">The OpenWeatherMap API provides different endpoints based on your needs. For example, you can use the city name endpoint or the latitude and longitude endpoint to access weather data.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1700216331653\"><strong class=\"schema-faq-question\"><strong>Do I have to subscribe to get a token key from OpenWeatherMap?<\/strong><\/strong> <p class=\"schema-faq-answer\">No, you don&#8217;t need to subscribe. Simply create an account, and a unique token key will be generated for you. The free API access is available for OpenWeatherMap version 2.5. However, for the latest version 3.0, there is a fee.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1700216346422\"><strong class=\"schema-faq-question\"><strong>Why am I not receiving hourly and minutely data from the API?<\/strong><\/strong> <p class=\"schema-faq-answer\">Answer: The recent API response no longer includes hourly, minutely, and daily data for free. These features are now part of a paid subscription.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Welcome to my first blog! I&#8217;m excited to introduce you to my simple application weather app. It provides your current location and real-time weather data, including temperature, wind speed, cloud conditions, humidity, and elevation above sea level. I built this app using the Flutter framework, which is Google&#8217;s UI toolkit. Flutter allows applications to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":59802,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[516,22],"tags":[795,1213,805,1375],"class_list":["post-59799","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile-apps","category-technology","tag-mobile-app-development","tag-mobile-app-development-company","tag-travel-technology-solutions","tag-weather-app-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.2.1 (Yoast SEO v24.8.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A Step by step Guide to Build a Realtime weather app in Flutter<\/title>\n<meta name=\"description\" content=\"Learn to create a Flutter weather app with realtime updates! Step-by-step guide for building responsive and feature-rich weather application.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Step by step Guide to Build a Realtime weather app in Flutter\" \/>\n<meta property=\"og:description\" content=\"Learn to create a Flutter weather app with realtime updates! Step-by-step guide for building responsive and feature-rich weather application.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter\" \/>\n<meta property=\"og:site_name\" content=\"OneClick IT Consultancy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/oneclickconsultancy\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-17T11:34:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-04T08:13:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2023\/11\/weather-app-in-flutter.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"OneClick IT Consultancy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@OneclickIT\" \/>\n<meta name=\"twitter:site\" content=\"@OneclickIT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"OneClick IT Consultancy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"A Step by step Guide to Build a Realtime weather app in Flutter","description":"Learn to create a Flutter weather app with realtime updates! Step-by-step guide for building responsive and feature-rich weather application.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter","og_locale":"en_US","og_type":"article","og_title":"A Step by step Guide to Build a Realtime weather app in Flutter","og_description":"Learn to create a Flutter weather app with realtime updates! Step-by-step guide for building responsive and feature-rich weather application.","og_url":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter","og_site_name":"OneClick IT Consultancy","article_publisher":"https:\/\/www.facebook.com\/oneclickconsultancy","article_published_time":"2023-11-17T11:34:27+00:00","article_modified_time":"2024-02-04T08:13:55+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2023\/11\/weather-app-in-flutter.png","type":"image\/png"}],"author":"OneClick IT Consultancy","twitter_card":"summary_large_image","twitter_creator":"@OneclickIT","twitter_site":"@OneclickIT","twitter_misc":{"Written by":"OneClick IT Consultancy","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#article","isPartOf":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter"},"author":{"name":"OneClick IT Consultancy","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/person\/c2616c0a433427a79a96fe5ca2b34ec3"},"headline":"A Complete Guide to Building a Realtime Weather App in Flutter","datePublished":"2023-11-17T11:34:27+00:00","dateModified":"2024-02-04T08:13:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter"},"wordCount":461,"publisher":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#primaryimage"},"thumbnailUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2023\/11\/weather-app-in-flutter.png","keywords":["Mobile App Development","Mobile App Development Company","Travel Technology Solutions","Weather App Development"],"articleSection":["Mobile Application","Technology"],"inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter","url":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter","name":"A Step by step Guide to Build a Realtime weather app in Flutter","isPartOf":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#primaryimage"},"image":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#primaryimage"},"thumbnailUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2023\/11\/weather-app-in-flutter.png","datePublished":"2023-11-17T11:34:27+00:00","dateModified":"2024-02-04T08:13:55+00:00","description":"Learn to create a Flutter weather app with realtime updates! Step-by-step guide for building responsive and feature-rich weather application.","breadcrumb":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216316012"},{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216331653"},{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216346422"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#primaryimage","url":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2023\/11\/weather-app-in-flutter.png","contentUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2023\/11\/weather-app-in-flutter.png","width":1200,"height":628,"caption":"weather app in flutter"},{"@type":"BreadcrumbList","@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.oneclickitsolution.com\/blog\/"},{"@type":"ListItem","position":2,"name":"A Complete Guide to Building a Realtime Weather App in Flutter"}]},{"@type":"WebSite","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#website","url":"https:\/\/www.oneclickitsolution.com\/blog\/","name":"OneClick IT Consultancy","description":"We Build Brands from Ideas","publisher":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#organization"},"alternateName":"OneClick IT Solution","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oneclickitsolution.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#organization","name":"OneClick IT Consultancy","alternateName":"OneClick IT Solution","url":"https:\/\/www.oneclickitsolution.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/10\/oneclick-official-logo.png","contentUrl":"https:\/\/www.oneclickitsolution.com\/blog\/wp-content\/uploads\/2022\/10\/oneclick-official-logo.png","width":100,"height":100,"caption":"OneClick IT Consultancy"},"image":{"@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/oneclickconsultancy","https:\/\/x.com\/OneclickIT","https:\/\/www.instagram.com\/oneclick.it.consultancy\/","https:\/\/www.linkedin.com\/company\/one-click-it-consultancy\/","https:\/\/www.pinterest.com\/oneclickitconsultancy\/","https:\/\/www.youtube.com\/channel\/UCsEG6aiwOwvYrcZxMoP5xjg","https:\/\/oneclickit.tumblr.com\/","https:\/\/dribbble.com\/oneclickitconsultancy"]},{"@type":"Person","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/person\/c2616c0a433427a79a96fe5ca2b34ec3","name":"OneClick IT Consultancy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oneclickitsolution.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8169ffe1b63da548d77fb666e94f1aba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8169ffe1b63da548d77fb666e94f1aba?s=96&d=mm&r=g","caption":"OneClick IT Consultancy"},"description":"OneClick IT Consultancy is the best custom software development company based in India &amp; USA with expertise in BLE, travel, mobile, and web development. With nearly a decade\u2019s experience, we use best practices and development standards to deliver high-performance applications, focused on the user experience.","sameAs":["https:\/\/www.oneclickitsolution.com\/blog\/"],"jobTitle":"Founder","url":"https:\/\/www.oneclickitsolution.com\/blog\/author\/oneclick"},{"@type":"Question","@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216316012","position":1,"url":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216316012","name":"Why do we have URLs with different endpoints for OpenWeatherMap?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The OpenWeatherMap API provides different endpoints based on your needs. For example, you can use the city name endpoint or the latitude and longitude endpoint to access weather data.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216331653","position":2,"url":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216331653","name":"Do I have to subscribe to get a token key from OpenWeatherMap?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, you don't need to subscribe. Simply create an account, and a unique token key will be generated for you. The free API access is available for OpenWeatherMap version 2.5. However, for the latest version 3.0, there is a fee.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216346422","position":3,"url":"https:\/\/www.oneclickitsolution.com\/blog\/building-a-realtime-weather-app-in-flutter#faq-question-1700216346422","name":"Why am I not receiving hourly and minutely data from the API?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Answer: The recent API response no longer includes hourly, minutely, and daily data for free. These features are now part of a paid subscription.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/posts\/59799"}],"collection":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/comments?post=59799"}],"version-history":[{"count":0,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/posts\/59799\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/media\/59802"}],"wp:attachment":[{"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/media?parent=59799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/categories?post=59799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oneclickitsolution.com\/blog\/wp-json\/wp\/v2\/tags?post=59799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}