Here Flutter SDK (Explorer): How to retrieve details (e.g. contacts, fuelstation, evChargingPool)? - flutter

I was trying out the Flutter exmaples for the Here Flutter SDK (explorer). One use case would involve retrieving details about the found places. I checked the Place class and based on the nested details class I expected that I could retrieve detail Information about e.g., evChargingPools and the included charging station. Nevertheless detail information (contact, opening time ..) would also be of interest.
Unfortunately and independend of the type of query (TextQuery, PlaceIdQuery, CategoryQuery) i used, i could only retrieve the categories as part of the details node.
I am currently using the freemium version. I checked the documentation and at least up to my knowledge it does no state under which constraints (well excluded the case, the data does not exist) these detail information are included, or how to retrieve them.

your CategoryQuery has to include the FuelStations Ids.
https://www.developer.here.com/documentation/flutter-sdk-explore/4.13.2.0/dev_guide/topics/search.html#search-for-places-categories
So init a SearchEngine and a CategoryCategory with the area and the PlaceCategory.id(id: 7600)
Source for PlaceCategories: https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics-places/places-category-system-full.html#400---transport
Sorry if i can't provide a SourceCode example (my app is written in Swift so no Flutter), but i can provide you a Postman Request for it :)

Related

Maneuver issues in Turn By Turn Navigation with HERE maps in Flutter

Thanks in advance.
We have to use HERE map's Turn by turn navigation feature in one of our Flutter application, we have added billing in the developer account and have created the necessary keys.
When we try HERE map examples they have provided, we get everything except maneuver instructions that shows the user when to turn right/left/go straight for some distance etc.
I'm new to this and I have no idea how to get this, we never get events on the listener and it only shows updating there, am I missing something ?
this is how it looks right now, Updating...
I think we should be getting the progress here, but we are not getting it here...
_visualNavigator.routeProgressListener = Navigation.RouteProgressListener((routeProgress) { }
Please look into the provided example app. It shows here how to get the maneuver actions.
Your screenshot shows a different app, so make sure everything works with the example app, at first. The app offers to run a simulation mode. This should work. If you run the example app with real GPS updates, you may need to go outside and move to get location updates. This should also work.
If this still does not work, it could either mean that your device has an issue with getting GPS locations. Some iPads, for example, lack support. Or that you have disabled getting location updates. You can cross-check this when trying the positioning_app example from the same repository that shows how to get location updates.
A last point may be to clarify what events you get and what you miss: There are multiple event listeners providing real-time information during guidance - if you have only an issue with maneuvers, then most likely you can solve your issue by following strictly the code of the example app.
Note that previous HERE SDK versions, prior to HERE SDK 4.13.0, only provided empty maneuver instruction texts during guidance when they have been taken from the route instance. Make sure to take this information from the VisualNavigator instead.

How to create API with Dart?

I am currently creating a Flutter plugin, but I'm stuck in creating API.
This is an API that I want to create. (Java Example)
JAVA
PeterWorks.UserProperties userProperties = new PeterWorks.UserProperties();
userProperties.setAttrs("user_nick", "peterPark")
.setAttrs("place","Seoul")
.setAttrs("height",180)
.setAttrs("married",false);
Can you give me a sample that how to create that API with Dart?
Thanks.
You should check the types of topics that are normally allowed here, as this is borderline and others my outright flag it. In general, you should be posting specific questions showing what you've actually tried and not "build it for me" questions.
That said, here is a link (no affiliation) I referenced a while ago that focuses on building a basic backend server using Dart. See the second example.

How do I retrieve a list of my downloaded offline map packs using Mabox and Swift?

I am wanting to add offline map functionality to an iOS app build using Swift and Mapbox. There is great documentation and examples for downloading a map region pack, but am having a difficult time figuring out how to retrieve a list of offline packs. Their documentation here gives these instructions on how to receive:
"To detect when the shared offline storage object has finished loading its packs property, observe KVO change notifications on the packs key path. The initial load results in an NSKeyValueChangeSetting change."
But I am having a difficult time find any examples or explanations as to what that means. Any help would be greatly appreciated!
An array of all known offline packs can be retrieved using the .packs attribute of the MGLOfflineStorage class. Like so:
MGLOfflineStorage.shared.packs
To access these packs, you just need to iterate over the array or pass a specific index and retrieve whatever information you're interested in from the packs.
There is a good example of using this array to create a tableview of the completed offline packs on a device in the SDK's open source test app (NB: this example is written in Obj-C).
⚠️ Disclaimer: I currently work at Mabpox ⚠️
I was finally able to come to a solution. To observe the packs retrieval using Swift, you can use this code:
MGLOfflineStorage.shared.observe(\.packs, options: [.new, .old]){ object, change in
var offlinePacksArr : [MGLOfflinePack] = object.packs // Access to packs array here
}

IBM Watson Assistant - store slot data in custom defined entitiy?

I am using slots in one of my nodes in the dialog of IBM Watson Assistant. The issue is none of system provided entities for slots(sys-person, sys-percentage, sys-number...) does not fit my need.
I need a company name to be saved. So I created my own entity named
#companyName added pattern, and when the user enters value it is recognized by the entity pattern but the data is not saved to the entity.
How can I save the answer the user gives to that question in the my entity #companyName
screenshots:
---
You don't want to save the entity, but its value...:
You would need to check for #companyName.value and save it to the variable $companyName. See this slot using tips in the documentation for IBM Watson Assistant.
This tutorial showing a database-driven chatbot uses patterns to capture data and the code is available. Examine it for some coding examples.
I figured it out!
Everything that I had to do is append .literal in the second screenshot after the Check for: #companyName.
So now the slots part looks like this, and we have the entered value inside the variable $companyName
I found it in the official documentation, more precisely here:
https://cloud.ibm.com/docs/services/assistant/dialog-slots.html#dialog-slots
(under number 4. Add a slot for each unit of required information. For each slot, specify these details)

CRM 2016-Plugin Registring New Step

I am very new to MSCRM, so requesting for help. I am using Office365, i.e. MSCRM online organisation.
Here, I have written a plugin which should be fired when, in an Account entity, user uploads his image, the plugin stores the image as an attachment, in notes.
The plugin works fine, when I tested it by writing a console application.
I have registered the plugin and believe it will work fine here too. The only problem is I am unable to register the plugin new step.
The problem is in Filtering Attributes , I am unable to get entityimage attribute, even if i select/check All attributes.
Please suggest how should I proceed.
In this scenario you can write plugin on "Create" message of "Annotation" entity. And create message does not have any filtered attributes.
As you wrote and tested using Console Application, while converting it to plugin make sure that you are checking created note contains data into "FileName" and "DocumentBody" attribute. Along with you can also check whether this note is created against "Account" entity. This two conditions will narrow your scope, limited to notes created against account having some attachment. In plugin execution context you'll get above mentioned attributes.