Giter Club home page Giter Club logo

serpapi / uule_converter_light Goto Github PK

View Code? Open in Web Editor NEW

This project forked from serpapi/uule_converter

0.0 1.0 0.0 30 KB

A Ruby library for encoding and decoding UULE parameters in Google search URLs using coordinates

License: MIT License

Ruby 100.00%
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

uule_converter_light's Introduction

SerpApi UULE Converter Light

A Ruby library for encoding and decoding UULE parameters in Google search URLs using coordinates


Gem Version Contributors Forks Stargazers Issues Issues MIT License

serpapi-uule-converter


A Blog Post with example usecase: Real World Example of GPS Targeted Local SERP

This gem is served under two names:

You can also find the original version at SerpApi UULE Converter Light.


Installation

gem install serpapi-uule-converter-light

Example

require 'serpapi-uule-converter-light'

latitude = 30.266666
longitude = -97.733330

# Encode coordinates to UULE
uule_encoded = UuleConverter.encode(latitude, longitude)
puts "Encoded UULE: #{uule_encoded}"

# Decode UULE to coordinates
uule_decoded = UuleConverter.decode(uule_encoded)
puts "Decoded UULE: #{uule_decoded}"

Output

Encoded UULE: a+cm9sZToxCnByb2R1Y2VyOjEyCnByb3ZlbmFuY2U6MAp0aW1lc3RhbXA6MTY4MDg3NzkwNjIzNjczNgpsYXRsbmd7CmxhdGl0dWRlX2U3OjMwMjY2NjY2MApsb25naXR1ZGVfZTc6LTk3NzMzMzMwMAp9CnJhZGl1czotMQo

Decoded UULE: {:role=>"1", :producer=>"12", :provenance=>"0", :timestamp=>"1680877906236736", :"latlng{"=>nil, :"}"=>nil, :radius=>"-1", :latitude=>30.266666, :longitude=>-97.73333}

Result

serpapi-uule-converter-light

uule_converter_light's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.