Trace route - GPS

Hello,

I wonder if you can plot routes with the GPS in Corona SDK.

Basically the same process Google Maps or Maps (iOS).

In short: I have two locations and want to create a route between them without a third party application (Maps - Google and Maps - iOS).

Grateful for the attention.

I’m not sure how exactly this would work. But i would just 

display.newLine()

Every X amount of time. Or every frame. Maybe not the most efficient way but it’ll work. 

Are you try to draw the line and then the object follows it or as the object is moving the line follows behind.

–SonicX278

You cannot draw on top of a native.newMapView() nor can you draw on top of a native.newWebView (for using Google Maps instead of the default map SDK). Google maps might have some routing information, but there isn’t a way with Corona SDK to take GPS data and draw on a map in real time. You would need Enterprise for this.

Now it might be possible if you’re trying to generate a map like Runkeeper does after your run is done, to feed the GPS points to the Google Maps API and have it render the lines as part of the map. Key word is “Might”. But we still don’t support Corona SDK running in the background.

Rob

Thanks for the feedback Rob.

thank’s SonicX278

You could use googles directions API and then maybe load that call into a webview.

I’m not sure how exactly this would work. But i would just 

display.newLine()

Every X amount of time. Or every frame. Maybe not the most efficient way but it’ll work. 

Are you try to draw the line and then the object follows it or as the object is moving the line follows behind.

–SonicX278

You cannot draw on top of a native.newMapView() nor can you draw on top of a native.newWebView (for using Google Maps instead of the default map SDK). Google maps might have some routing information, but there isn’t a way with Corona SDK to take GPS data and draw on a map in real time. You would need Enterprise for this.

Now it might be possible if you’re trying to generate a map like Runkeeper does after your run is done, to feed the GPS points to the Google Maps API and have it render the lines as part of the map. Key word is “Might”. But we still don’t support Corona SDK running in the background.

Rob

Thanks for the feedback Rob.

thank’s SonicX278

You could use googles directions API and then maybe load that call into a webview.