Is there a way with HERE SDK for Flutter to get information about the motorway exit?
I read the documentation but I can't find anything.
I would like to show the name of the next motorway exit the driver should follow.
For navigation you register at the RouteProgressListener (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/RouteProgressListener-class.html) for progress updates.
In this callback (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/RouteProgressListener/onRouteProgressUpdated.html) your get the route progress object (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/RouteProgress/RouteProgress.html).
With this you know the index for the next maneuver and you query the Navigator for the concrete maneuver object via getManeuver (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/NavigatorInterface/getManeuver.html)
In this maneuver object (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/routing/Maneuver-class.html) you can get the exist sign text (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/routing/Maneuver/exitSignTexts.html) if available (in most cases only for highways of course).
Related
In the chat history (summary) page of my app I'm using the function getUnreadCount() on MesiboProfile to get the number of messages currently unread so that I can show an indicator near the message.
The problem is that count is only correct the first time I read the summary from the read session. If it arrives a new message when I already read the summary, that count is not updated.
I saw that the counter gets fixed if I read the summary again but is this the recommended way to update that counter?
I'm using the iOS SDK v1.9.55
In 1.x, the unread count can be updated manually. Set the unread count to zero once you read it or increment it every time you receive a new message. This avoids database access. Here is the 1.x code which does the same.
Update: you can also use getUnreadMessageCount() in the user or group readsession (not the summary session) to get it from the database.
https://github.com/mesibo/ui-modules-ios/blob/master/Messaging/Messaging/UserListViewController.m#L474
In 2.x, we have moved this to API with additional logic.
I want to create a telegram bot to send updates to the groups/channel in which it is added. I used BotFather to create a bot. However, in https://api.telegram.org/bot<BOTAPI>/getUpdates, I'm getting all the messages sent in a channel like this: "channel_post":{"message_id":59,"chat":{"id":-1001192794322,"title":"Nseindia","username":"nseindia_updates","type":"channel"},"date":1588581996,"text":"AMBUJACEM : Bear\nAPOLLOHOSP : Bullish Reversal\nKOTAKBANK : Bullish\nMOTHERSUMI : Bear"}}
This is not a problem now, but as time goes, the json file could get very large and could pose a problem.
Is there any way such that I don't get all the messages in the json present in https://api.telegram.org/bot<BOTAPI>/getUpdates
you should specify the update_id of the latest update you've processed as an offset parameter to getUpdates to make them(updates with less update_id) marked processed and that way they wont come up the next time you call getUpdates.
In telegram's Bot API Docs it says:
By default, updates starting with the earliest unconfirmed update are
returned. An update is considered confirmed as soon as getUpdates is
called with an offset higher than its update_id.
In running the graph API that is given as sample: https://graph.microsoft.com/v1.0/me/, it returns an output in the screen
What info is it returning and how can I use it in a user interface....
The easiest way to see what info is returned and try out different calls is to use the Graph Explorer at https://graph.microsoft.io/en-us/graph-explorer.
Otherwise, check the documentation at https://graph.microsoft.io/en-us/docs.
That API endpoint (https://graph.microsoft.com/v1.0/me/) return the user profile.
Here is the detail: https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/user_get
You can use the information however you wish on your client (e.g., display list of current licenses, display user information for confirmation and updates, etc.). Other user-related methods are here: https://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/user
I'm following a tutorial (3.4 Accounts on tuts+) and am unsure why I am getting an undefined error when attempting Accounts.createUser()
The error is suggesting that I must first create a collection as createUser() isn't recognised.
The code is here
http://meteorpad.com/pad/fbc4TQpB3EWEjDMGQ
Recreate the error by clicking the [Create Account] button, and then fill out the form and [Create]
According to the code, it should create a record in the Accounts collection but it doesn't.
I'm wondering if this tutorial was written for a legacy version of accounts-base
The tutorial episode is here
https://dl.dropboxusercontent.com/u/6707713/10-accounts.mov
Thanks
Jon
I have not seen any discussion or awareness so far that Firebase does in fact make available a unique identifier--in fact the full URL--to each specific data record via their "snapshot" which they return, i.e. the wrapper around the data record (accessed via snapshot.val()). By doing a basic property examination of the snapshot I discovered that the unique URL is available (see examples below). However, it seems that, for some reason, Firebase keeps changing the name of the key every few days, causing my application to break. I have to go in and re-discover the new URL property key and change it so that it will work again.
Here are three examples of how I have seen the key change so far. Each value is the same, but the key keeps changing over time (i.e.: "Wb", "Xb", "bc").:
getMemberBySnapshot - snapshot has prop Wb with value https://prototype1.firebaseio.com/users/-IwohKfw1l5F3gFqyJJ5
getMemberBySnapshot - snapshot has prop Xb with value https://prototype1.firebaseio.com/users/-IwohKfw1l5F3gFqyJJ5
getMemberBySnapshot - snapshot has prop bc with value https://prototype1.firebaseio.com/users/-IwohKfw1l5F3gFqyJJ5
I have read Firebase's suggestions that developers should use an email address if they want a unique key (what if my model does not use an email field? What if a user wants to change their email?), or Firebase suggests altenatively to retrieve all existing records and then search through them on the client. Neither of these solutions are satisfying. But I'm seeing that they do provide the unique URL to each data record in the 'snapshot'. Why do they not provide a stabilized key so that a developer can call it consistently???
Firebase.js is a compiled script. The names of internal variables will change every time we compile it and release a new version, so you should definitely not be relying on any properties that are not documented on our website.
For your specific case, you should be using:
snapshot.ref().toString()
in order to get the URL.