{"id":18607351,"url":"https://github.com/addono/otf-location-tracker","last_synced_at":"2025-07-01T05:32:42.601Z","repository":{"id":82277174,"uuid":"253827409","full_name":"Addono/otf-location-tracker","owner":"Addono","description":"A location tracker implementation for the OpenTrackingFramework project.","archived":false,"fork":false,"pushed_at":"2020-04-13T14:55:19.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T21:12:17.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/Addono.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-07T15:01:13.000Z","updated_at":"2020-04-13T14:55:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b6993aa-7699-4042-9fd7-32dd536d281c","html_url":"https://github.com/Addono/otf-location-tracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Addono/otf-location-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fotf-location-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fotf-location-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fotf-location-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fotf-location-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Addono","download_url":"https://codeload.github.com/Addono/otf-location-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fotf-location-tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262903147,"owners_count":23382130,"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-07T02:29:10.109Z","updated_at":"2025-07-01T05:32:42.574Z","avatar_url":"https://github.com/Addono.png","language":"Scala","readme":"# Spark Streaming Location Tracker\n\n**TL;DR**: This service listens on a Kafka topic for events containing locations, computes which of these locations are close to each other, and publishes to a different topic all locations which are close to each other.\n\n## Usage\n\nFirst, make sure there's a Kafka instance running locally, this can be achieved by running:\n\n```bash\ndocker-compose up\n```\n\nThen, start the `src/main/scala/Main` class. This project uses Java 1.8, newer versions will not be compatible with the used Spark version.\n\nTo play around with it, open two shells, one running:\n\n```bash\nkafka-console-consumer --bootstrap-server localhost:9092 --topic contacts\n```\n\nAnd another one running:\n\n```\nkafka-console-producer --topic topicA --broker-list localhost:9092\n```\n\nAt this point you can send some demo data through the producer shell, e.g. this snippet (submit with shift-enter as to prevent also sending an empty message):\n\n```csv\n-88.331492,32.324142,hotel\n-88.175933,32.360763,gas\n-88.388954,32.357073,bar\n-88.221102,32.35078,restaurant\n```\n\nNow you will see in your consumer shell that several new messages appeared:\n\n```csv\nhotel,bar,0.066232283462637\ngas,restaurant,0.0462561402323107\nbar,hotel,0.066232283462637\nrestaurant,gas,0.0462561402323107\n```\n\nIn some cases, fewer events will be outputted, as it might be that your input was processed in two seperate batches. Currently, this is likely to happen, as the batch size is set to 1 second. Future versions with larger batch sizes should make this less significant.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddono%2Fotf-location-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddono%2Fotf-location-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddono%2Fotf-location-tracker/lists"}