GithubHelp home page GithubHelp logo

geo.lua's People

Contributors

caoyi0905 avatar cristiangreco avatar itamarhaber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geo.lua's Issues

Add examples of method api calls

I'm not very familiar with calling Lua scripts in Redis and had trouble getting commands to work.
An easy to follow example might help:

redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania"

$ redis-cli SCRIPT LOAD "$(cat geo.lua)"
$ redis-cli EVALSHA fd07... 0 help

The calls I tried below gave me errors. I'm not sure what i'm doing wrong and I tried various combinations but no luck.

$ redis-cli EVALSHA fd07... 0 GEOBEARING Sicily "Catania" "Palermo"
No geoset key name provided 
$ redis-cli EVALSHA fd07... 1 GEODEL Sicily "Catania"
Unknown command SICILY 

Add geofencing

By combining any search and real-time location updates

GEOJSONPOLYADD error

When trying to add a polygon using GEOJSONPOLYADD I get this error:
(error) ERR Error running script (call to f_00246cc50061d17a18f65f3b32eaf921e6902d69): @user_script:548: user_script:548: attempt to call field '_polygonencode' (a nil value)
Looking in the source I found that there is a call to Geo._polygonencode, however such function does not exist.

Also, in the documentation there is no mention of GEOJSONPOLYADD, I tried to use GEOJSONADD to add a polygon and it failed with the error:
@user_script:516: user_script:516: Feature geometry must be a Point
Then I've found the GEOJSONPOLYADD command in the source code.

Thanks,
Kirill.

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.