boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

The pi and GPS

Tue Mar 15, 2016 5:49 pm

Hi

I was wondering if i attach a GPS Module to the Pi and open a browser would i be able to navigate that way?

ie open google maps and say go here would it know where i'm currently located?

I'm not locked in to any browser so i can go with anything

fruitoftheloom
Posts: 20143
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: The pi and GPS

Tue Mar 15, 2016 6:09 pm

Removed irrelevant response...
Last edited by fruitoftheloom on Wed Mar 16, 2016 4:47 pm, edited 1 time in total.
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

Re: The pi and GPS

Tue Mar 15, 2016 8:25 pm

well it only clearly told how to get the gps data in to the pi


not how i would open maps.google.com and enter a TO address and have it figure what route to take based on where I'm currently

ghans
Posts: 7868
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: The pi and GPS

Tue Mar 15, 2016 8:50 pm

I guess you just need to install and configure GPSD ,
enable "Share my location" in Iceweasel (which is a renamed
Firefox) and Google Maps should do the rest automagically ...

Perhaps you need to modify some settings too , like
shown here :
http://bhavesh.freeshell.org/blog/firefox/8999.html

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

Re: The pi and GPS

Tue Mar 15, 2016 9:00 pm

will try, looks reasonable simple for a noob to do

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: The pi and GPS

Fri Mar 18, 2016 9:07 am

how can I use GPS locations on a map on my screen retrieved by a GPS sensor and Google maps or OpenStreetMaps if I have no internet access (i.e., offline) ?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

Re: The pi and GPS

Fri Mar 18, 2016 9:15 am

Google Maps need internet so you cant use that :-D that far i know

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: The pi and GPS

Fri Mar 18, 2016 9:34 am

download a map and store on the SD, just like navigations systems for cars are doing it.
If not Google maps, then OSM if applicable.
Finally on my mobile robot I have no WiFi outdoors!
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

Re: The pi and GPS

Fri Mar 18, 2016 9:41 am

ehh? why should i download a map?

It was you who asked what to do when there was no internet access, for myself i will just use my 4G dongle with 30gb data a month and use Google Maps

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: The pi and GPS

Fri Mar 18, 2016 9:50 am

??
download a map because then it's offline available, even without having internet!
and then I can use my GPS sensor, poll latitude and longitude, load the offline map on my screen, and display a "X" where my robot currently is located.

just on a car navigation system, there you also have no internet connection!
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

stubright
Posts: 109
Joined: Sat Dec 24, 2011 11:12 pm

Re: The pi and GPS

Fri Mar 18, 2016 9:52 am

What about using Navit, it's in the pi repositories
apt-cache search navit
It's an open source car navigation system that can use OSM data.
http://wiki.openstreetmap.org/wiki/Navit
I've never tried it but it might be worth a go.

Stu

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23078
Joined: Sat Jul 30, 2011 7:41 pm

Re: The pi and GPS

Fri Mar 18, 2016 9:52 am

Please keep on topic - the OP's original question.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: The pi and GPS

Fri Mar 18, 2016 10:28 am

no I don't want a route finder, I need the location displayed on a map even when the robot is off-road on an acre and no Wifi on the acre.
(that on-topic, the pi and GPS, just offline)
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

fruitoftheloom
Posts: 20143
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: The pi and GPS

Fri Mar 18, 2016 10:32 am

jamesh wrote:Please keep on topic - the OP's original question.
I an confused boelle started thread and now davenull seems to have taken over.... :?
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23078
Joined: Sat Jul 30, 2011 7:41 pm

Re: The pi and GPS

Fri Mar 18, 2016 10:39 am

davenull wrote:no I don't want a route finder, I need the location displayed on a map even when the robot is off-road on an acre and no Wifi on the acre.
(that on-topic, the pi and GPS, just offline)
Please post a new topic for new questions. Certainly seems to be a new question.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

Re: The pi and GPS

Fri Mar 18, 2016 10:48 am

maybe do a cleanup by removing the post's after my last one? of course including this one

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: The pi and GPS

Fri Mar 18, 2016 10:49 am

@mod:
I actually did not interprete the TO question "google maps and show GPS position" so closely, but then please devide the topic in 2 as there already have been questions and answered postings!
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

stubright
Posts: 109
Joined: Sat Dec 24, 2011 11:12 pm

Re: The pi and GPS

Fri Mar 18, 2016 11:20 am

davenull wrote:@mod:
I actually did not interprete the TO question "google maps and show GPS position" so closely, but then please devide the topic in 2 as there already have been questions and answered postings!
Sorry, I was replying to the original post not to yours. But having said that, if Navit works the same as other satnavs it will display your current location on a map. You don't need to use the navigation part of it and as it uses downloaded maps you don't need the internet or wifi.
Stu

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: The pi and GPS

Fri Mar 18, 2016 11:29 am

aaah! that's indeed promising!
I'll try to figure out how it works with my GPS (it's plugged to an Arduino extension board like a shield, data transmitted to th Pi via i2c) and then I will give it a try!
Thank you very much!
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

boelle
Posts: 224
Joined: Wed May 01, 2013 11:52 am

Re: The pi and GPS

Fri Mar 18, 2016 11:31 am

Why I was thinking of google maps is that I can link to that

What i'm actually doing is making a micro car pc for the local pizza delivery's car

A ras pi with the 7"inch screen is plenty enough for them, and they have no shortage on mobile broadband either.

what they do is calling a webage that shows all orders for delivery, each order has its own link that opens the order and address along with a link that CURRENTLY opens googles own navi app on android, and also a link that works on iphones

So my thought was simply mod the link to open google maps on a new tab

Return to “General discussion”