{"id":14955804,"url":"https://github.com/serpapi/uule_converter","last_synced_at":"2025-10-08T18:33:11.420Z","repository":{"id":151824806,"uuid":"624891189","full_name":"serpapi/uule_converter","owner":"serpapi","description":"A Ruby library for encoding and decoding UULE parameters in Google search URLs using coordinates","archived":false,"fork":false,"pushed_at":"2024-03-04T14:02:39.000Z","size":23,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-19T09:37:37.896Z","etag":null,"topics":["google-local-business","google-maps","google-maps-api","local-seo","local-serp","open-source","opensource","ruby","ruby-gem","ruby-gems","ruby-on-rails","rubygem","rubygems","rubyonrails","seo","seo-friendly","seo-optimization","seo-tools","seotools","serp"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/serpapi.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":"2023-04-07T14:13:55.000Z","updated_at":"2024-11-05T17:44:09.000Z","dependencies_parsed_at":"2024-03-04T14:58:14.048Z","dependency_job_id":null,"html_url":"https://github.com/serpapi/uule_converter","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"de03e2c7098a78527935fae7f8ab192c2085597e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fuule_converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fuule_converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fuule_converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fuule_converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serpapi","download_url":"https://codeload.github.com/serpapi/uule_converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234852426,"owners_count":18896873,"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":["google-local-business","google-maps","google-maps-api","local-seo","local-serp","open-source","opensource","ruby","ruby-gem","ruby-gems","ruby-on-rails","rubygem","rubygems","rubyonrails","seo","seo-friendly","seo-optimization","seo-tools","seotools","serp"],"created_at":"2024-09-24T13:11:49.591Z","updated_at":"2025-10-06T08:32:13.142Z","avatar_url":"https://github.com/serpapi.png","language":"Ruby","readme":"# SerpApi UULE Converter\n#### A Ruby library for encoding and decoding UULE parameters in Google search URLs using coordinates\n\n---\n\n[![Gem Version][gem-shield]][gem-url]\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![Issues][issuesclosed-shield]][issuesclosed-url]\n[![MIT License][license-shield]][license-url]\n\n![serpapi-uule-converter](https://github.com/serpapi/uule_converter/assets/73674035/9d22887e-5fa6-4e9c-868f-6a05b5474acb)\n\n---\n\nA Blog Post with example usecase: [Real World Example of GPS Targeted Local SERP](https://serpapi.com/blog/gps-targeted-local-serp)\n\nThis gem is served under two names: \n- `uule_converter`(legacy): [RubyGems Link](https://rubygems.org/gems/serpapi-uule-converter)\n- `serpapi-uule-converter`(recent): [RubyGems Link](https://rubygems.org/gems/uule_converter)\n\nYou can also find a light version at [SerpApi UULE Converter Light](github.com/serpapi/uule_converter_light).\n\n---\n\n### Installation\n```bash\ngem install serpapi-uule-converter\n```\n\n---\n\n### Example\n\n```rb\nrequire 'serpapi-uule-converter'\n\nlatitude = 30.266666\nlongitude = -97.733330\n\n# Get GL parameter from coordinates (Optional, For more precise results)\ngl_parameter = UuleConverter.get_gl(latitude, longitude)\nputs \"GL Parameter: #{gl_parameter}\"\n\n# Encode coordinates to UULE\nuule_encoded = UuleConverter.encode(latitude, longitude)\nputs \"Encoded UULE: #{uule_encoded}\"\n\n# Decode UULE to coordinates\nuule_decoded = UuleConverter.decode(uule_encoded)\nputs \"Decoded UULE: #{uule_decoded}\"\n\nputs \"Example Google Link: https://www.google.com/search?q=Cafe\u0026tbm=lcl\u0026gl=#{gl_parameter}\u0026uule=#{uule_encoded}\"\n\n```\n\n---\n\n### Output\n\n```bash\nGL Parameter: us\n\nEncoded UULE: a+cm9sZToxCnByb2R1Y2VyOjEyCnByb3ZlbmFuY2U6MAp0aW1lc3RhbXA6MTY4MDg3NzkwNjIzNjczNgpsYXRsbmd7CmxhdGl0dWRlX2U3OjMwMjY2NjY2MApsb25naXR1ZGVfZTc6LTk3NzMzMzMwMAp9CnJhZGl1czotMQo\n\nDecoded UULE: {:role=\u003e\"1\", :producer=\u003e\"12\", :provenance=\u003e\"0\", :timestamp=\u003e\"1680877906236736\", :\"latlng{\"=\u003enil, :\"}\"=\u003enil, :radius=\u003e\"-1\", :latitude=\u003e30.266666, :longitude=\u003e-97.73333}\n\nExample Google Link: https://www.google.com/search?q=Cafe\u0026tbm=lcl\u0026gl=us\u0026uule=a+cm9sZToxCnByb2R1Y2VyOjEyCnByb3ZlbmFuY2U6MAp0aW1lc3RhbXA6MTY4MDg3NzkwNjIzNjczNgpsYXRsbmd7CmxhdGl0dWRlX2U3OjMwMjY2NjY2MApsb25naXR1ZGVfZTc6LTk3NzMzMzMwMAp9CnJhZGl1czotMQo\n\n```\n\n---\n\n### Result\n\n![uule_converter](https://user-images.githubusercontent.com/73674035/230626568-f6a5e57f-7053-4325-802a-eedd23ff7a49.png)\n\n[gem-shield]: https://img.shields.io/gem/v/serpapi-uule-converter.svg\n[gem-url]: https://rubygems.org/gems/serpapi-uule-converter\n[contributors-shield]: https://img.shields.io/github/contributors/serpapi/uule_converter.svg\n[contributors-url]: https://github.com/serpapi/uule_converter/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/serpapi/uule_converter.svg\n[forks-url]: https://github.com/serpapi/uule_converter/network/members\n[stars-shield]: https://img.shields.io/github/stars/serpapi/uule_converter.svg\n[stars-url]: https://github.com/serpapi/uule_converter/stargazers\n[issues-shield]: https://img.shields.io/github/issues/serpapi/uule_converter.svg\n[issues-url]: https://github.com/serpapi/uule_converter/issues\n[issuesclosed-shield]: https://img.shields.io/github/issues-closed/serpapi/uule_converter.svg\n[issuesclosed-url]: https://github.com/serpapi/uule_converter/issues?q=is%3Aissue+is%3Aclosed\n[license-shield]: https://img.shields.io/github/license/serpapi/uule_converter.svg\n[license-url]: https://github.com/serpapi/uule_converter/blob/master/LICENSE\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserpapi%2Fuule_converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserpapi%2Fuule_converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserpapi%2Fuule_converter/lists"}