Using device long/lat

andarv
Posts: 118
Joined: Sun Jun 28, 2015 3:51 pm
Location: Stockholm, Sweden

Using device long/lat

Post by andarv »

I'm planning to incorporate devices status update in a python script. One of the things that I want to check is of course location.

But right now I'm stuck in the planning because I don't now how to check long/lat in a radius.

I guess you could do It separately, first long and then lat, but I guess there is a simpler way?

One of the things the code will do is to serve as a check so that the phone doesn't trigger geofences (exiting) inadvertently.
Or is it an unsound idea?
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Using device long/lat

Post by RogueProeliator »

Sorry for the delay, had saved your post to reply when I got home and, well, forgot. :-o Anyway, I am not sure how most people would do a distance calculation - you might have a look at the iFindStuff plugin as I THINK it does a distance calculation, perhaps using Google? Perhaps Mike can answer a question or two regarding that.

Which reminds me, I got most of this setup as a status update so that I could work with Mike and integrate with that plugin; once that is done might be another option as opposed to doing it yourself...
andarv
Posts: 118
Joined: Sun Jun 28, 2015 3:51 pm
Location: Stockholm, Sweden

Re: Using device long/lat

Post by andarv »

Tanx for the answer :) I read your post when the plugin was updated but didn't really connect the dots at the time.
Now I understand a bit better what the integration with iFindstuff would bring.
I'll try that when that's possible, have it installed just to thinker with it.

In the meantime I will keep my self occupied trying to solve the calculations just for the fun of it.
Post Reply

Return to “DomoPad Android Client”