2017년 1월 8일 일요일

use external GPS to monitor in real time a path. How to?


I'm new here and I hope that my poor English is not misunderstood.
As the title, I'm trying to figure out if i can implement within an app that i'm making, a monitoring system to follow "step by step" (in live!)  the path of an object equipped with a GPS system. Of course you have to consider that i already have permission to take advantage of the GPS;  my doubts is .. "How to structure in MIT2 blocks for this purpose?" and   "I have to create a reference archive or can I take advantage TyniWebb DB addressing it to an external archive?"
Hope i was clear, and  will appreciate any advice you want to give me.

PS.
Forgive the lack of experience, but it is only recently that I MITstudy AppInventory 2 ^^'

--
How is your external GPS going to communicate with your phone? Via Bluetooth?
You will have to find out what the data is it sends to the phone and receive these using a clock and the Bluetooth protocol.
So, your first step is to find out what data the GPS sends. 

-- 
The GPS data that I should "take" are those communicateddirectly from devices installed on public vehicles to the respective trucking company. Clearly I'm allowed to do it :)
Let me give an example.
by the app I insert the name of the bus I want to monitor the actual position. The app has to be done in two ways:
1) should check whether the bus there (for this purpose I am realizing a database of all the buses in circulation. It will bequestioned every time you enter the bus number)
2) through Sensorposition and ProximitySensor modules would be calculated in real time distance between the user and the bus that he's waiting.
That's the theory, but in practice I'm afraid to be ..in stalled: /

-- 
if I understand correctly that the bus data should reach the user via the network, then compared to the GPS data of your smartphone.
But it is not clear if you are developing the application is for the user who wants to know the position of the bus for the bus itself.

-- 
yes, a very similar thing :) you still centered point.
There is an app from which I was inspired: it is called "where's my car?" and it is one of those sample app to understand how the blocks and some commands of the case. In this app, he parked his car and records the position on his smartphone before going to a game. At the end of the same, not remembering where he parked his vehicle, simply it interfaces to data recorded from the app on the location of his car and, using the GPS of your phone, follow the path that gradually "on the map for track real-time "to find the car.
Good..
In my case I'd like to understand how and if you can make it otherwise: you are waiting, on the map and monitor the approach and the bus route that interests you through the application cell.
Hence the answer to your second doubt .. I am realizing the app only at the user's benefit :)
I wrote the easy part or the inclusion of the number of the bus and the interrogation to a list through which you can also see the route that the vehicle usually accomplishes (a simple static image)
For the most "juicy part," they are in a stalemate: /
Thank you for your interest and welcome any practical example of how I should approach it.

--
Could you post some blocks which show what you have tried, and where the parte "succosa" is? Then we may be able to help you further.

-- 
Unfortunately, the interesting part ("succosa" part) is currentlyonly in my head. ^^'
I have not produced any block (or rather, with the ones I tried to realize, I was out of the way and I deleted them). For this reasonI wanted advice from you.
However, what follows is the incomplete picture of the main window...


Through the entry box A, you choose the number of the busand  after pressing button B the application should track theGPS signal relative to that bus, interfacing with its position (for example, the bus stop )

I did several tests but, as another reviewer says, maybe it is something difficult to achieve with MitApp Inv.


-- 
Unfortunately, the interesting part ("succosa" part) is currentlyonly in my head. ^^'
I have not produced any block (or rather, with the ones I tried to realize, I was out of the way and I deleted them). For this reasonI wanted advice from you.
However, what follows is the incomplete picture of the main window...


Through the entry box A, you choose the number of the busand  after pressing button B the application should track theGPS signal relative to that bus, interfacing with its position (for example, the bus stop )

I did several tests but, as another reviewer says, maybe it is something difficult to achieve with MitApp Inv.

--
You cannot do this directly with MITAI because you cannot get the data from the bus directly. It would be necessary to have a website that collects all data from all buses and then your appcould get the data from the website. The first part requires equipment in each bus to send that data (basically just a dedicated phone) and a web application with a database to store the data. After that, the second part canbe quite simple.
There are several similar projects. A while ago there was a Belgian guy who did something similar for a Belgian city. Also there was an pp of the month that kept track of schoolbuses and parents could see if their children were on them. I will dig out some pointers for you.
Here inHolland there are several commercial apps that show you where the nearest bus stop is,how long it takes before the bus will arrive, etc. But written in AI I presume.

--
I did a subway tracker project for the Boston subway which accesses route information from a web server through an API to plot positions on a customized Google map.
That may provide some ideas for your project.
----
Happy Inventing!

-- 
Here are two links: 
This is a Belgian app in the Play Store, maybe you can contact the author for ideas.

This is the schoolbus project.

I hope you will be busy for a while now ;-)

-- 
yop .. I was afraid that my idea could not be put into practice,and your answers gave me the confirmation :(
If the company would "computerize" totally its management, it would have been much simpler.  (
in Holland everything worksmuch better; I have been there for some time. I hope to come back soon *_* )As you said, and as others said, if certain information would becollected on a web page, i could call up the archive with the basic components of Mit2 using existing blocks.
I will bring some other idea;)

[Quote] "[]...  I will dig out some pointers for you..[]"  [/ quote]

Thank you for your interest Ghica ..
I really appreciate:)Appearance your future suggestions.
Have nice days: D...

-- 
I'm curious to look at your project. Maybe I'll find some great inspiration.

--
you gave me good ideas to think and work.
Thanks again :)

-- 

yop .. I was afraid that my idea could not be put into practice,and your answers gave me the confirmation :(
If the company would "computerize" totally its management, it would have been much simpler.  (
in Holland everything worksmuch better; I have been there for some time. I hope to come back soon *_* )As you said, and as others said, if certain information would becollected on a web page, i could call up the archive with the basic components of Mit2 using existing blocks.
I will bring some other idea;)

[Quote] "[]...  I will dig out some pointers for you..[]"  [/ quote]

Thank you for your interest Ghica ..
I really appreciate:)Appearance your future suggestions.


-- 

yop .. I was afraid that my idea could not be put into practice,and your answers gave me the confirmation :(
If the company would "computerize" totally its management, it would have been much simpler.  (
in Holland everything worksmuch better; I have been there for some time. I hope to come back soon *_* )As you said, and as others said, if certain information would becollected on a web page, i could call up the archive with the basic components of Mit2 using existing blocks.
I will bring some other idea;)

[Quote] "[]...  I will dig out some pointers for you..[]"  [/ quote]

Thank you for your interest Ghica ..
I really appreciate:)Appearance your future suggestions.

-- 
I don't know how MBTA sends the data from the subway cars to the server.
The bus/child tracking system appears to use a phone that text's info to the parents.
It seems that a simple solution would be to have a cheap phone on the bus text the built-in phone's gps location periodically to some collecting device that reads the texted gps locations.
That device might be an app that can choose which texts to receive and then display the returned lat,lon locations on a map as it receives them.

-- 

댓글 없음:

댓글 쓰기