Git Product home page Git Product logo

celllocate's Introduction

CellLocate

Cellular Location service for Particle Electron

celllocate's People

Contributors

asterix555 avatar

Stargazers

George Profenza avatar

Watchers

James Cloos avatar  avatar

Forkers

jontay81

celllocate's Issues

Can't retrieve lat,lng after calling display();

Hi,

First off, big thanks for wrapping this big bad boy up in a neat class !

I've tried using the class like so:

#include "CellLocate.h"

CellLocate locator;

bool displayed = false;


void setup() {
    Serial.begin(9600);
    getLocation();
}

void getLocation(){
    displayed = false;
    int status = locator.locate(30000);
    Serial.print("locate(30000) -> ");
    Serial.println(status);
}

void loop() {
    if(!displayed){
        
        bool in_progress = locator.in_progress();
        Serial.print(in_progress ? "." : "!");
        
        if(!in_progress){
            bool status = locator.get_response();
            
            Serial.println("locator completed!");
            Serial.print("response -> ");
            Serial.println(status);
            
            locator.display();
            
            locator.googleMaps();
            
            displayed = true;
        }
    }
    if(Serial.available() > 0){
        if(Serial.read() == 'l'){
            getLocation();
        }
    }
}

display() show's lat,lng, but googleMaps() doesn't:

locate(60000) ->0
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!locator completed!
response ->0
0/4/8,12:16:20,LAT:.6,LONG:,52,UNCERTAINTY:56,SPEED:60,64,68,72,76,80,84,MATCHED_COUNT:88
https://www.google.com/maps?q=,

I've tried printing straight to serial and I get nothing.

Any tips on how I can access the the location and timestamp ?

Thank you,
George

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.