Dear CSPro Android Beta Users,
I'm wondering if anyone knows if it is possible to pass a parameter to Google Earth (or Google Maps) when launched it from your CSPro Android CAPI application.
Obviously launching Google Earth is pretty easy by using the execsystem function,
execsystem("app:com.google.earth");.
But what I am looking for is for it to show my current location or a set of gps coordinates, or address, of my specification.
Any experiences?
Best,
Jon
Launching GPS Point in Android Google Earth from CSPro
Re: Launching GPS Point in Android Google Earth from CSPro
Hey Jon,
Does this work? Never tried it but if execsys uses the same android launcher then it might work.
execsystem("geo:7.3419443,134.4791667");
Don't forget to make google.earth your default map viewer.
Laters,
Pierre
Does this work? Never tried it but if execsys uses the same android launcher then it might work.
execsystem("geo:7.3419443,134.4791667");
Don't forget to make google.earth your default map viewer.
Laters,
Pierre
Re: Launching GPS Point in Android Google Earth from CSPro
Thanks Pierre.
Unfortunately the standard geo execution does not work through the cspro execsystem. "app:", "call:", "browse:", "camera", and "view" all work, but "geo" does not. Not sure if its just not something that CSPro allows or if I am missing something.
Has anyone else been about to make this work?
Jon
Unfortunately the standard geo execution does not work through the cspro execsystem. "app:", "call:", "browse:", "camera", and "view" all work, but "geo" does not. Not sure if its just not something that CSPro allows or if I am missing something.
Has anyone else been about to make this work?
Jon
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Launching GPS Point in Android Google Earth from CSPro
Interesting. I didn't implement such a thing for execsystem. Would that be useful, using it like Pierre's suggestion, with the latitude and longitude? If so, I'll add it in.
Re: Launching GPS Point in Android Google Earth from CSPro
Hi Greg,
I think this would be a great addition to the CSPro Andriod!
Having the ability to map coordinates on google maps or google earth could be very helpful in navigating to sampled locations (households, health facilities, markets, etc.).
If its possible to list out multiple locations and label them that would be ideal.
For example, execsystem(maketext("geo: %s %d %d %s %d %d), [location label #1], [lat], [long], [location label #2], [lat], [long]); or the like.
Jon
I think this would be a great addition to the CSPro Andriod!
Having the ability to map coordinates on google maps or google earth could be very helpful in navigating to sampled locations (households, health facilities, markets, etc.).
If its possible to list out multiple locations and label them that would be ideal.
For example, execsystem(maketext("geo: %s %d %d %s %d %d), [location label #1], [lat], [long], [location label #2], [lat], [long]); or the like.
Jon
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Launching GPS Point in Android Google Earth from CSPro
For the current release, we're just going to support one point. You'll make a call like this:
execsystem("gps:38.8977,-77.0365,White House");
In the future we'll look into displaying more than one point at a time. I can see how this would be useful for displaying to interviewers where the sampled households are.Re: Launching GPS Point in Android Google Earth from CSPro
Very nice! Thanks!
Re: Launching GPS Point in Android Google Earth from CSPro
It would be very useful, Mr. Gregory Martin.
Thanks.
Thanks.