Sending GPS Data to Your Rails Application Over HTTP

by dbaldwin

One undocumented feature of the Rails application is that it supports receiving GPS data directly over HTTP. This can come in handy while testing without a device. You can make a simple request by pointing your web browser to:

http://customer.domain.com/ws?imei=1234&lat=1&lng=2&alt=3&spd=4&dir=5

You’ll obviously need to change the base URL to your Foundation server URL. The URL parameters are self-explanatory, but make sure the IMEI in the HTTP request matches one in your system. For more details on how this HTTP interface works be sure to look at the ws_controller.rb file in the /opt/ublip/rails/current/app/controllers directory of your Foundation server.