Giter Site home page Giter Site logo

bmoren / p5.geolocation Goto Github PK

View Code? Open in Web Editor NEW
86.0 7.0 26.0 60 KB

a geolocation and geofencing library for p5.js

License: GNU Lesser General Public License v2.1

JavaScript 100.00%
geolocation gps p5js getcurrentposition geofence location location-tracking p5 p5-library p5-js

p5.geolocation's People

Contributors

bmoren avatar matteomenapace 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

p5.geolocation's Issues

new release?

Hello,

I want just to know if you plan to release a 0.6 version containing the latest commits.

Thank you!

Seems to be broken with recent p5.js versions

Not sure, what exactly is failing, but I don't get this to work anymore with recent p5.js versions.
Was just about to test a script that I demonstrated in class last year, using p5.js v0.5.4 and it does not work anymore in v0.5.16. Not sure, at which version exactly it broke.

When I use the provided example for getCurrentPosition()

var locationData;
function preload(){
    locationData =  getCurrentPosition();
}

function setup() {
    print(locationData.latitude)
    print(locationData.longitude)
    print(locationData.accuracy)
    print(locationData.altitude)
    print(locationData.altitudeAccuracy)
    print(locationData.heading)
    print(locationData.speed)
}

it keeps loading forever (displaying the "Loading...", which indicates it is currently stuck in the preload function).

It does display the console output of p5.geolocation Loaded, so it loads the library for sure, but it is unable to get the current position.

Accuracy stuck at 65 on iPhone

When I use the watchPosition() my accuracy is always 65 but if I use the navigator.geolocation.watchPosition I get accuracy below 10. Anyone else having this problem?

ios 9 silently fails if location services turned off

When testing on ios 9 and if the users Settings -> Privacy -> Location services -> Safari are set to "Never" the webpage will not prompt for permission. There should maybe be a more explicit alert that notifies vs a console log. Will look into testing to see if we can do something more direct for ios / mobile.

set up github pages

we might need to use glitch also for any real-time or persistence issues.

geolocation denied (preload issue)

I put the getCurrentPosition() function in the preload function in my sketch. When the user denies geolocation in the browser it never leaves the preload function. The geocheck function will never fire since it won't reach the setup functionality. I also tried the error callback function but it still doesn't leave the preload function. Am I doing something wrong?

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.