{"id":20754771,"url":"https://github.com/danemadsen/copernicus","last_synced_at":"2025-10-15T17:53:02.291Z","repository":{"id":260968726,"uuid":"880648514","full_name":"danemadsen/copernicus","owner":"danemadsen","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-07T03:14:39.000Z","size":350,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T04:25:53.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danemadsen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-30T05:02:19.000Z","updated_at":"2025-01-07T03:14:43.000Z","dependencies_parsed_at":"2024-12-29T12:17:30.634Z","dependency_job_id":"49c9d1b6-b007-4865-931a-67909208e3fd","html_url":"https://github.com/danemadsen/copernicus","commit_stats":null,"previous_names":["danemadsen/copernicus"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danemadsen%2Fcopernicus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danemadsen%2Fcopernicus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danemadsen%2Fcopernicus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danemadsen%2Fcopernicus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danemadsen","download_url":"https://codeload.github.com/danemadsen/copernicus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243059074,"owners_count":20229492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T09:18:56.269Z","updated_at":"2025-10-15T17:52:57.242Z","avatar_url":"https://github.com/danemadsen.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Copernicus\n\nA flutter_maps extension package for utilising the Copernicus API to retrieve sentinel satellite imagery.\n\n## Features\n\nThis package provides a `CopernicusLayer` widget that can be used in conjunction with the `flutter_map` package to display Copernicus satellite imagery on a map.\n\n## Getting started\n\nTo use this package, add `copernicus` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/packages-and-plugins/using-packages).\n\n```yaml\ndependencies:\n  copernicus: ^1.0.1\n```\n\n## Example\n\nHere is an example of how to use this package:\n\n```dart\nimport 'package:copernicus/copernicus.dart';\nimport 'package:flutter/material.dart';\nimport 'package:flutter_map/flutter_map.dart';\nimport 'package:latlong2/latlong.dart';\nimport 'package:flutter_map_cancellable_tile_provider/flutter_map_cancellable_tile_provider.dart';\n\nvoid main() {\n  runApp(const CopernicusExampleApp());\n}\n\nclass CopernicusExampleApp extends StatelessWidget {\n  const CopernicusExampleApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return const MaterialApp(\n      title: 'Copernicus Example',\n      home: HomePage(),\n    );\n  }\n}\n\nclass HomePage extends StatefulWidget {\n  const HomePage({super.key});\n\n  @override\n  State\u003cHomePage\u003e createState() =\u003e _HomePageState();\n}\n\nclass _HomePageState extends State\u003cHomePage\u003e {\n  String clientId = 'YOUR_CLIENT_ID';\n  String clientSecret = 'YOUR_CLIENT_SECRET';\n\n  @override\n  Widget build(BuildContext context) {\n    final mapOptions = MapOptions(\n      initialCenter: const LatLng(-27.47, 153.02),\n      initialZoom: 10,\n      cameraConstraint: CameraConstraint.contain(\n        bounds: LatLngBounds(\n          const LatLng(-90, -180),\n          const LatLng(90, 180),\n        ),\n      )\n    );\n\n    return FlutterMap(\n      options: mapOptions,\n      children: [\n        TileLayer(\n          urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',\n          subdomains: const ['a', 'b', 'c'],\n          userAgentPackageName: 'com.example.copernicus',\n          tileProvider: CancellableNetworkTileProvider(),\n        ),\n        CopernicusLayer(\n          clientId: clientId, \n          clientSecret: clientSecret, \n          data: const [\n            CopernicusRequestData(\n              satillite: CopernicusSatillite.s2l2a, \n              filteringOptions: CopernicusFilteringOptions(\n                mosaickingOrder: CopernicusMosaickingOrder.mostRecent,\n                maxCloudCoverage: 100,\n              ),\n              processingOptions: CopernicusProcessingOptions(\n                downSampling: CopernicusSampling.nearest,\n                upSampling: CopernicusSampling.bicubic,\n              )\n            )\n          ]\n        )\n      ],\n    );\n  }\n}\n```\n\n## Additional information\n\nFor more information about the copernicus API, please visit the [Copernicus API documentation](https://documentation.dataspace.copernicus.eu/Home.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanemadsen%2Fcopernicus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanemadsen%2Fcopernicus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanemadsen%2Fcopernicus/lists"}