J Perez
Posts: 0
Joined: Sun Apr 06, 2014 6:06 pm

How to show location of vehicle

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to show location of vehicle

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.

J Perez
Posts: 0
Joined: Sun Apr 06, 2014 6:06 pm

How to show location of vehicle

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to show location of vehicle

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...

J Perez
Posts: 0
Joined: Sun Apr 06, 2014 6:06 pm

How to show location of vehicle

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to show location of vehicle

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...

J Perez
Posts: 0
Joined: Sun Apr 06, 2014 6:06 pm

How to show location of vehicle

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

Return to “Issues”