Page 1 of 1

How to show location of vehicle

Posted: Sun Apr 06, 2014 6:06 pm
by J Perez

Hello I need to build a simple app that will track a vehicle equipped with a raspberry pi. The vehicle is sending GPS data via POST to a server. How do I get the app to retrieve the coordinates from the server and display its real time location. Or can I use another method using your database.. Any help would be appreciated thanks


How to show location of vehicle

Posted: Sun Apr 06, 2014 7:12 pm
by Illya Stepanov

Hi Perez -

In Appery.io it's pretty easy to connect any service that is exposed via RESTful APIs.

So, if your server is exposed via REST services - you can easily connect it to your app and configure with method GET for getting the coordinates and after you can map that data as input variables for Google Map component to display it as the result.


How to show location of vehicle

Posted: Sun Apr 06, 2014 7:20 pm
by J Perez

Thanks for the quick reply.. How would I know if my server is exposed via RESTful services?. I'm new to this and I need it to work in the fastest/ simplest way possible. Thanks


How to show location of vehicle

Posted: Mon Apr 07, 2014 9:22 am
by Maryna Brodina

Hello!

Does your service have any url parameters you can use to retrieve data? If so, use it, else you can use Appery.io DB to store and retrieve data. Here is more information http://docs.appery.io/documentation/b...


How to show location of vehicle

Posted: Mon Apr 07, 2014 2:11 pm
by J Perez

Hi, So if i use the appery.io DB i can create one then send my information specifically latitude, longitude from my vehicle as through POST to the DB url. Im a little confused by what i need to do in the DB, will it automatically take this information and store it or do i need to set it up to take these values


How to show location of vehicle

Posted: Mon Apr 07, 2014 3:04 pm
by Kateryna Grynko

Hi,

Add a field of type "geo point" to your collection. Then call your service on adding a Database record:
http://docs.appery.io/documentation/b...


How to show location of vehicle

Posted: Mon Apr 07, 2014 4:35 pm
by J Perez

thanks i now have the database that is updated every x seconds and stores geo point. my next question is how do i get the most recent point to display on the map.. thanks


How to show location of vehicle

Posted: Mon Apr 07, 2014 7:15 pm
by Kateryna Grynko