How to display dynamic map using GDK? - google-glass

Is there any SDK methods to display dynamic map using glass GDK?
What is used for Glass navigation app?

Google Maps is used for that application if I'm not mistaken. However, there is no way to replicate it with a dynamic map because Google Play Services isn't supported in the GDK so you won't be able to get location information or get maps from the API.

I don't believe that the GDK exposes a maps api the same way that the android api has the option to be compiled against the maps-inclusive version.
Having said that, it is possible to get the location, the same as you would on any android device (and if you are paired with an android device, that will likely be the provider of your last location fix). What you do with that is up to you, perhaps you thoroughly read the TOS of a mapping service, and make an api call to get a map image, and then display that (assuming that it's within the TOS of the mapping service). Perhaps you do something else with that data.
There is, unfortunately, no included maps API, to the best of my knowledge.

Related

Upload data from Linux in C++ to Firebase service

I'm working on an IoT application on top of embedded Linux, and I want to collect log data (mostly text files) of the devices.
The language I use is C++. I went through the documentation/tutorials of Firebase, however, it looks like only iOS, Android and Web (JS) are best supported, even the C++ part is assuming the carrier device is iOS/Android.
Is it's a good choice to use Firebase for my requirement? Should I just go ahead with C++ SDK or use REST API instead (that I can do with libcurl)
Thanks.
Depending on the complexity of what you want to do, you might just want to use the REST API.
Your biggest hurdle there is likely going to be the authentication part, once you get that out of the way, using the API itself is extremely simple.
Since you're talking about embedded Linux, your resources might be limited, which for me personally would be a reason to go use the REST API approach.
It comes down to ease of use (SDK), or lightweight (REST API). That's my 2 cts anyway...

Is there an easy way to supply data to Application Insights from normal win32 C++ code?

I'd like to know if there's something like a dll or lib (with headers, and possibly documentation) that can be linked into a normal* win32 C++ solution so it can (by function call) notify Application Insights of page views and send metric values.
This seems like it should exist and be simple to find, but I'm just going round in circles on Google, finding documentation for reading values back out via a web API, or using C#, or projects that other people tried in the past but now have no source available.
This is for updating a diagnostic tool which I'm trying to avoid having to completely re-architect because the logging now needs to go to a slightly different service.
*ie. not Winforms, C++/CX, Xamarin or UWP. Straight, command-line c++.
Currently there is no Application Insights client library for native applications (c/c++). Though it's in backlog I don't think it will be prioritized higher than java/node.js. So, I would not rely on its release anytime soon.
Customers who wanted to send telemetry from native applications usually picked one of the following options:
Using REST API directly. If application is going to use only couple of telemetry documents then it should be straightforward. With the most complexity coming from own requirements such as persistent channel.
Host CLR + use .NET Application Insights SDK
Have .NET service running on a box and implement communication channel between native app and this service.
Depending on environment (for instance, #2 makes sense if app already hosts .NET; #3 makes sense if there is already installed .NET service in addition to native app) you can check whether on of these options will work for you.

How to use Bing Maps as a web service?

If i want to use Bing maps as a service in my WP7 mobile App...
I just want to send my location right now and a place where I want to go then the map draw a road between these location.
These location might be so far like two cites or so near like two streets.
If I also want to use ground selection lines to specify locations to go between, Is that possible to be done or not.
Have a look at the Bing Maps REST Services API. You get directions, etc., but since you're using WP7, you might consider using the Bing Maps SDK for WP7.

Local version of Google Maps API

Do you guys know if there is a version of the Google Maps API for C++ which works using local maps rather than having to connect to a Google server?
The application is the plotting of GPS positions in an area with no internet coverage.
Thanks in advance.
As an alternative for Google Maps, you might want to have a look at OpenStreetMap.
(See also the usage and software sections on Wikipedia)
You can download and store map tiles (png files) using the google maps static API, and then reread those once stored images without reconnecting to the server. You'll have to write the whole download and management stuff yourself (i.e. using boost::asio for download etc. - i don't know of such a library), and you probably need to acquire a Google premier license, as google strongly restricts the anonymous usage of the static api. But technically thats possible.

Web service to get the GPS Coordinates

I'm developing an web application (jsp/strtus2) which requires the GPS coordinates of a place. What I want to know is, whether there are any free web services that I can get GPS coordinates of a place by passing address or zip code to the server.
Thanks in advance,
Nuwan
Yahoo's Geocoder is easy to use. Basically change a few query strings and it outputs an easy to parse xml file.
Google's had a few issues in our area with the coordinates being returned being incredibly inaccurate at times. Yahoo tends to actually land on the street in question, but probably wont hit the parcel itself.
That said, just note these services aren't going to be the most accurate.
You can use Bing Maps or Google Geolocation to do this. Bing has the pleasant ability to tie into native .NET namespaces.
http://code.google.com/apis/maps/documentation/geocoding/index.html
this is the link to the geocoding service by google