here-api

Transform Path/Polyline corresponding to Map zoom/move action

隐身守侯 提交于 2019-12-10 21:40:59
问题 I'm creating my own path/polyline in a Map using a MapLayer and a MapOverlay, all the points captured by the GPS are stored in a structure so I can access them. Anytime. Now, I want the path to transform at the same time the Map is manipulated by the user (zoom and map reposition) so the path is still joining the same points. So far my method is very CPU hungry and looks terrible GeocoordinateList _coordinates; MapLayer pointsLayer; private void MyMap_ZoomLevelChanged(object sender,

Create URL to here.com maps Driving Directions with addresses/coordinates passed along

余生长醉 提交于 2019-12-10 17:29:24
问题 Anybody know how to create a proper URL to link to here.com maps, from my site? We use an extensive amount of API calls to embed the maps inside our site, but I want to send emails to people with a 'Click Here for directions' link inside pointing to here.com driving directions with the address or coordinates built into the URL. Example: With Google Maps, all we would have to do is make a simple link like this: https://www.google.com/maps?saddr=32.5589671,-97.2586011&daddr=32.7787855,-97

How to remove previous infobubble, if I click different marker in HERE Map?

安稳与你 提交于 2019-12-10 17:26:07
问题 Here below is my code to add an infobubble. I want to remove the current infobubble previously after click(tap) on a different marker. function addInfoBubble(map) { var group = new H.map.Group(); map.addObject(group); // add 'tap' event listener, that opens info bubble, to the group group.addEventListener('tap', function(evt) { // event target is the marker itself, group is a parent event target // for all objects that it contains var bubble = new H.ui.InfoBubble(evt.target.getPosition(), { /

Showing a content Div on hover of a marker in HERE Maps

冷暖自知 提交于 2019-12-10 15:43:50
问题 I am new to here maps and need to show a div on marker hover. I have been able to put markers with icons but now need to show a div with some extra information. Does HERE maps API provide this functionality? Any doc URL or piece of code will be appreciated. NOTE: I am using HERE maps JS API for web. 回答1: You can create a tooltip effect by adding various event listeners to the map to check if the mouse pointer is over an object. (function (ctx) { // ensure CSS is injected var tooltipStyleNode

MapFragment can't be cast to android.support.v4.app.Fragment (HERE MAP API Mobile)

核能气质少年 提交于 2019-12-10 12:24:03
问题 I have some error with MapFragment i use HERE MAP API for Mobile. I'll try to add MapFragment in FragmentTabHost and my MapFragment Class I'm use FragmentActivity class name is "EventMap" My app is going like this:i have mainActivity is a ActionBarActivity and when i click a menu from this the app is going to FragmentTabHost. At FragmentTabHost i have two tab frist tab is a ListFragment for show my data and second is a EventMap.class .Now when i run the app and go to EventMap i got the error

HERE SDK Color only part of the route

对着背影说爱祢 提交于 2019-12-10 11:29:16
问题 Is there a way to color only a part of the route in a different color? Like drawing a polyline but one that takes the road configuration into consideration. 回答1: No, that is not supported. But if you are wondering about changing only the traveled portion color I previously answered here. 回答2: You can extract the route geometry to get the list of GeoCoordinates constituing the polyline: geoCoordinates = mapRoute.getRoute().getRouteGeometry() Then you can draw portions of the route in various

How to redraw Here Map when container resizes?

自闭症网瘾萝莉.ら 提交于 2019-12-09 11:24:54
问题 I hit a peculiar problem today which I haven't encountered or noticed before. While setting up a map in Here Maps 3.0, I noticed that if the browser window is "small", less than a full-screen one, during loading the map, also the map will stay small even if the browser window will be resized to a full-screen one. How could I update the Here Maps map size to occupy as much space as allotted? My arrangement is as follows and I wonder if the reason for this could be the relative div s. The

Nokia Maps: retrieve speed limit based on coordinates using REST API

放肆的年华 提交于 2019-12-09 07:28:29
问题 I am sure it's possible to retrieve speed limit on the road based on coordinates. I just can't find any example (rest API). As I understand I need to use routing mechanism to do that? 回答1: You will need to use the getLinkInfo endpoint from the Enterprise Routing API.. The speedLimit element returned is in m/s so multiply by 3.6 for km/h or 2.23 for mph . If the speedLimit element is missing then the national speed limit applies. http://route.st.nlp.nokia.com/routing/6.2/getlinkinfo.json

How to protect secrets properly?

↘锁芯ラ 提交于 2019-12-08 05:25:15
问题 I am using HERE api in both frontend and backend. If I try to put my app_id and app_code into the frontend code, it will be available to anyone seeing my site. I can try to create a domain whitelist and put my domain in this. But still, if I set the HTTP header "Referer" to my domain, I am able to access the API from any IP. So, what do I do? 回答1: The Difference Between WHO and WHAT is Accessing the API Server Before I dive into your problem I would like to first clear a misconception about

Here Maps Android SDK PositioningManager start method returns false

倾然丶 夕夏残阳落幕 提交于 2019-12-08 05:23:22
问题 I'm using Here Maps on my Nexus 6P to test out their navigation routing logic. I've got the map setup and I'm currently trying to get my location to show up on the map. Here maps v3.2.1 Premium Version running on Android 6.0.1 But every time I call the start method for PositioningManager instance I get a false return. Here is my code : mapEngine.init(context, new OnEngineInitListener() { @Override public void onEngineInitializationCompleted(Error error) { if (error == OnEngineInitListener