{"id":17803384,"url":"https://github.com/sethwebster/googlemaps.locationservices","last_synced_at":"2025-07-05T20:03:35.758Z","repository":{"id":60773475,"uuid":"2264496","full_name":"sethwebster/GoogleMaps.LocationServices","owner":"sethwebster","description":"A simple library (including Nuget Package) for Google Maps geolocation and reverse geolocation","archived":false,"fork":false,"pushed_at":"2020-04-14T23:58:49.000Z","size":357,"stargazers_count":45,"open_issues_count":2,"forks_count":42,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-12T12:46:26.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nuget.org/List/Packages/GoogleMaps.LocationServices","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sethwebster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-24T21:45:42.000Z","updated_at":"2025-02-01T11:26:35.000Z","dependencies_parsed_at":"2022-10-04T15:28:25.716Z","dependency_job_id":null,"html_url":"https://github.com/sethwebster/GoogleMaps.LocationServices","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2FGoogleMaps.LocationServices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2FGoogleMaps.LocationServices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2FGoogleMaps.LocationServices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethwebster%2FGoogleMaps.LocationServices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sethwebster","download_url":"https://codeload.github.com/sethwebster/GoogleMaps.LocationServices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243862400,"owners_count":20360134,"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-10-27T12:46:38.810Z","updated_at":"2025-03-17T11:31:16.867Z","avatar_url":"https://github.com/sethwebster.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"GoogleMaps.LocationServices\n=======================================\n\nA simple library for Google Maps geolocation and reverse geolocation.\n\nThe easiest way to get hold of it is to install the [Nuget package](http://nuget.org/List/Packages/GoogleMaps.LocationServices).\n\nFrom the package manager console:\n`PM\u003e Install-Package GoogleMaps.LocationServices` \n\nExample Lookup\n----------------------\n\n```C#\nusing GoogleMaps.LocationServices;\n.....\n\nAddressData[] addresses = new AddressData[] \n{\n    new AddressData // Belgium\n    {\n        Address = \"Rue du Cornet 6\",\n        City = \"VERVIERS\",\n        State = null,\n        Country = \"Belgium\",\n        Zip = \"B-4800\"\n    },\n    new AddressData\n    {\n        Address = \"1600 Pennsylvania ave\",\n        City = \"Washington\",\n        State = \"DC\"\n    },\n    new AddressData\n    {\n        Address = \"407 N Maple Dr. #1\",\n        City = \"Beverly Hills\",\n        State = \"CA\"\n    }\n};\n\n// Constructor has 3 overload\n// No parameters. It does not use API Key\nvar gls = new GoogleLocationService();\n\n// Boolean parameter to force the requests to use https \n// var gls = new GoogleLocationService(useHttps: true);\n\n// String paremeter that provides the google map api key\n// var gls = new GoogleLocationService(apikey: \"YOUR API KEY\");\nforeach (var address in addresses)\n{\n    try\n    {\n        var latlong = gls.GetLatLongFromAddress(address);\n        var Latitude = latlong.Latitude;\n        var Longitude = latlong.Longitude;\n        System.Console.WriteLine(\"Address ({0}) is at {1},{2}\", address, Latitude, Longitude);\n    }\n    catch(System.Net.WebException ex)\n    {\n        System.Console.WriteLine(\"Google Maps API Error {0}\", ex.Message);\n    }\n                \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethwebster%2Fgooglemaps.locationservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsethwebster%2Fgooglemaps.locationservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethwebster%2Fgooglemaps.locationservices/lists"}