{"id":13816135,"url":"https://github.com/tum-gis/FROST-on-a-map","last_synced_at":"2025-05-15T14:33:13.627Z","repository":{"id":54264483,"uuid":"307326460","full_name":"tum-gis/FROST-on-a-map","owner":"tum-gis","description":"Basic examples for bringing SensorThingsAPI Locations and HistoricalLocations to web maps as markers or trajectories.","archived":false,"fork":false,"pushed_at":"2021-02-28T14:09:42.000Z","size":1039,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-19T13:37:02.264Z","etag":null,"topics":["2d-map","frost-server","historicallocations","js","leaflet","locations","ogc","sensorthings","sensorthingsapi","web-map","web-mapping"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tum-gis.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-26T09:49:50.000Z","updated_at":"2024-04-17T07:15:12.000Z","dependencies_parsed_at":"2022-08-13T10:20:58.011Z","dependency_job_id":null,"html_url":"https://github.com/tum-gis/FROST-on-a-map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tum-gis%2FFROST-on-a-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tum-gis%2FFROST-on-a-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tum-gis%2FFROST-on-a-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tum-gis%2FFROST-on-a-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tum-gis","download_url":"https://codeload.github.com/tum-gis/FROST-on-a-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254359094,"owners_count":22058043,"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":["2d-map","frost-server","historicallocations","js","leaflet","locations","ogc","sensorthings","sensorthingsapi","web-map","web-mapping"],"created_at":"2024-08-04T05:00:35.541Z","updated_at":"2025-05-15T14:33:13.200Z","avatar_url":"https://github.com/tum-gis.png","language":"JavaScript","funding_links":[],"categories":["Tutorials"],"sub_categories":["Example Query"],"readme":"======================================\r\nSensorThingsAPI ``Locations`` on a map\r\n======================================\r\n\r\nThis repo contains some basic examples on how to query ``Locations`` and ``HistoricalLocations``\r\nfrom an `OGC SensorThingsAPI \u003chttps://www.ogc.org/standards/sensorthings\u003e`_ conform service,\r\nas for instance `FROST-Server \u003chttps://github.com/FraunhoferIOSB/FROST-Server\u003e`_ instance and place them\r\non a web map using Open Source mapping APIs like `Leaflet.js \u003chttps://leafletjs.com/\u003e`_.\r\n\r\n****************\r\nLocation markers\r\n****************\r\n\r\nPlot the last ``Locations`` of all ``Things`` on a map and add a popup to the markers with basic\r\ninformations on the ``Thing``. To cluster markers at the same location\r\n`Leaflet MarkerCluster \u003chttps://github.com/Leaflet/Leaflet.markercluster\u003e`_ is used.\r\n\r\nAdapt line 16 of ``js/locationMarkers/locationMarkers.js`` to change the FROST instance.\r\n\r\n.. code-block:: javascript\r\n\r\n  // Configure FROST instance\r\n  var frostBaseURL = 'https://my.frost.server.de/FROST-Server/v1.1';\r\n\r\nOpen ``locationMarkers.html`` in a browser to view the results.\r\n\r\n.. image:: docs/img/locationMarkers.jpg\r\n   :width: 600\r\n   :alt: Locations markers with clustering for markers at same locations.\r\n\r\n***************************************************************\r\nTrajectory with directional arrows from ``HistoricalLocations``\r\n***************************************************************\r\n\r\nQuery the last n ``HistroicalLocations`` from a given ``Thing`` in a time period (optional)\r\nand plot a trajectory with `ArrowHeads \u003chttps://github.com/slutske22/leaflet-arrowheads\u003e`_\r\nfrom it.\r\n\r\nAdapt lines 15-18 of ``js/trajectory/trajectory.js``:\r\n\r\n.. code-block:: javascript\r\n\r\n  // FROST server, Thing, number of HistoricalLocations, time filter (optional)\r\n  var frostBaseURL = 'https://my.frost.server.de/FROST-Server/v1.1';\r\n  var thingIotID = 16;\r\n  var nHistoricalLocations = 10;\r\n  var timeIntervalFilter = '$filter=time%20gt%202020-10-20T00:00:00.000Z%20and%20time%20lt%202020-10-22T23:59:59.999Z';\r\n\r\nOpen ``trajectory.html`` in a browser to view the result.\r\n\r\n.. image:: docs/img/example-trajectory.jpg\r\n   :width: 600\r\n   :alt: Example trajectory from FROST HistroicalLocations\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftum-gis%2FFROST-on-a-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftum-gis%2FFROST-on-a-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftum-gis%2FFROST-on-a-map/lists"}