{"id":15011671,"url":"https://github.com/egbakou/app.user.locationinfo","last_synced_at":"2025-10-28T18:16:53.493Z","repository":{"id":144135432,"uuid":"189405219","full_name":"egbakou/App.User.LocationInfo","owner":"egbakou","description":"Tracking Plugin for Xamarin. It retrieves information about user's location without GPS activation: IP address, country name, city name, GPS coordinates (latitude and longitude), country calling code, country currency, country flag image, etc.","archived":false,"fork":false,"pushed_at":"2022-12-08T05:43:47.000Z","size":864,"stargazers_count":26,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T23:23:42.050Z","etag":null,"topics":["gps-coordinates","gps-location","gps-tracking","location","netstandard","nuget","nuget-package","tracking","tracking-api","xamarin-forms"],"latest_commit_sha":null,"homepage":"","language":"C#","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/egbakou.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":"2019-05-30T11:55:04.000Z","updated_at":"2024-11-10T20:24:00.000Z","dependencies_parsed_at":"2023-12-17T07:30:24.946Z","dependency_job_id":null,"html_url":"https://github.com/egbakou/App.User.LocationInfo","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"f8731c9349c517fac27c41a7d051d979e8d27e90"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egbakou%2FApp.User.LocationInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egbakou%2FApp.User.LocationInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egbakou%2FApp.User.LocationInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egbakou%2FApp.User.LocationInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egbakou","download_url":"https://codeload.github.com/egbakou/App.User.LocationInfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512589,"owners_count":21116635,"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":["gps-coordinates","gps-location","gps-tracking","location","netstandard","nuget","nuget-package","tracking","tracking-api","xamarin-forms"],"created_at":"2024-09-24T19:41:25.381Z","updated_at":"2025-10-28T18:16:53.390Z","avatar_url":"https://github.com/egbakou.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"art/icon.png\" alt=\"Icon\" width=\"50\" /\u003eTracking Plugin for Xamarin\n\nThis Plugin retrieves information about user's location without GPS activation: IP Address, country name, city name, GPS coordinates (latitude and longitude), country calling code, country currency, country flag image, etc.\n\n![](samples/TrackXamarinAppUser/TrackXamarinAppUser/screenshots/app.user.locationinfo-sample.png)\n\n## Setup\n\n- Available on NuGet: https://www.nuget.org/packages/App.User.LocationInfo/ [![NuGet](https://img.shields.io/nuget/v/App.User.LocationInfo.svg?label=NuGet)](https://www.nuget.org/packages/App.User.LocationInfo/)\n- Install into your shared project.\n\n## Platform\n\nApp.User.LocationInfo is written in C#  as .NET Standard 2.0 project. it works fine in applications that can be deployed directly to users' devices. The plugin is based on the user's IP address to retrieve location information.\n\n## Usage\n\nAdd namespace `App.User.LocationInfo.Services` and call `TrackingService` class to access to all methods:\n\n- Get current user's IP Address:\n\n```csharp\n// Get current user's IP Address\nvar ip = await TrackingService.GetUserIPAdressAsync();\n```\n\n- Get current user's country code:\n\n```csharp\n// Get current user's country code\nvar country_code = await TrackingService.GetUserCountryCodeAsync();\n```\n\n- Get current user's country name:\n\n```csharp\n// Get current user's country name\nvar country_name = await TrackingService.GetUserCountryNameAsync();\n```\n\n- Get [BasicUserLocationInfo](https://github.com/egbakou/App.User.LocationInfo/blob/master/src/App.User.LocationInfo/Models/BasicUserLocationInfo.cs) object (IP Address, Country, City, Currency, GPS coordinates, Internet Service Provider, ...)\n\n```csharp\n// Get BasicUserLocationInfo object\nvar basic_userlocationInfo = await TrackingService.GetBasicLocatioInfoAsync();\n```\n\n- Get [UserLocationInfo](https://github.com/egbakou/App.User.LocationInfo/blob/master/src/App.User.LocationInfo/Models/UserLocationInfo.cs) object ( [BasicUserLocationInfo](https://github.com/egbakou/App.User.LocationInfo/blob/master/src/App.User.LocationInfo/Models/BasicUserLocationInfo.cs) object + URL of the country flag image )\n\n```csharp\n// Get UserLocationInfo object\nvar userlocationInfo = await TrackingService.GetLocationInfoAsync();\n```\n\n## Sample project\n\n![](samples/TrackXamarinAppUser/TrackXamarinAppUser/screenshots/app.user.locationinfo-sample.png)\n\nCheck it out [here](https://github.com/egbakou/TrackXamarinAppUser) !\n\n## Created by: Kodjo Laurent Egbakou\n\n- LinkedIn: [Kodjo Laurent Egbakou](https://www.linkedin.com/in/laurentegbakou/)\n- Twitter: [@lioncoding](https://twitter.com/lioncoding)\n\n## Note\n\nMore updates are coming.\n\n## License\n\nThe MIT License (MIT) see [License file](https://github.com/egbakou/App.User.LocationInfo/blob/master/LICENSE)\n\n## Contribution\n\nFeel free to create issues and PRs 😃","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegbakou%2Fapp.user.locationinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegbakou%2Fapp.user.locationinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegbakou%2Fapp.user.locationinfo/lists"}