here-api

Here Map Location pointer compass head?

倖福魔咒の 提交于 2019-12-13 19:34:26
问题 Here map followers does compass head can be applied to map.getPositionIndicator().setVisible(true); if yes please share me the answer. 回答1: In theory you can change the image of the position indicator. But rotating the image is not supported, so you would need to replace the image permanently. All in all, I'd say it's much easier (and more flexible) to do this on your own. Here's a full working example: https://tcs.ext.here.com/sdk_examples/CustomPositionMarker.zip One comment: I use a

How to return results for incomplete strings on Nokia Here Maps API?

房东的猫 提交于 2019-12-13 19:26:57
问题 I'm building an application that relies on Here Maps Geocoder API to fetch results based on partial/incomplete strings, in order to give autocomplete suggestions to the user as they start typing something in the search box. Acording to their documentation, the street field in the query doesnt need to be an exact one, so I expect if i type half the name of the street i would get suggestions for it. Example street name: Zhibek-Zholy, Almaty, Kazakhstan : With partial street name Zhib ,

High-resolution maps using the HERE Maps API

五迷三道 提交于 2019-12-13 14:44:14
问题 How would I display a high-resolution map similar to the one at https://beta.here.com using the HERE Maps API for JavaScript? From the API reference there is an option to change the pixelRatio when creating a map. var map = new H.Map( document.getElementById('map'), defaultLayers.normal.map, { pixelRatio: 2 } ); This works great and produces a high-resolution map on high-DPI screens, however, this changes the scale of the map and all map objects become small and text becomes difficult to read

Implementation of dragging route

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 11:24:46
问题 I did not find any example of draggable routing, an example that had a definite route, and I could click somewhere on the route, drag it and it fit. Could you put some sample code for me to take as a basis? 回答1: Please have a look at this example: function createDragRoutes(alternatives){ for(var i=0;i<alternatives;i++){ dragRoute[i]=new Object(); dragRoute[i].routeHoverMarker = new H.map.Marker({lat: 50.126237073013314, lng: 8.627775069326162}, { icon: icon, visibility: false, zIndex: 1 });

is it possible to have the 4 zoom level feature with IE9 and IE10?

谁都会走 提交于 2019-12-13 08:19:26
问题 Using IE7, when hovering or clicking on the Zoombar, 4 zoom levels appears: Street, Country, Suburb, and State. This features does not exist when I am using IE9 or IE10. My question is how can I have this feature with IE9 and IE10? 回答1: The ZoomBar you are after is a legacy component which is only maintained on older browsers, modern browsers will automatically display the newer, smaller zoom component. Your only way to duplicate the older functionality here would be to create your own custom

Nokia HERE sdk - How to orient map?

好久不见. 提交于 2019-12-13 07:12:58
问题 In GoogleMaps if you want to change the orientation of the map you change the bearing of the 'camera' being used as perspective of the map. How do I re-orient a Nokia HERE sdk map? In other words, by default the map is displayed with North at the top. But as the user moves, turns, drives etc., I want to reorient the map to match their course/heading/bearing/direction so that 'forward' is at the top. I can get the direction the mobile device is facing from the built-in compass sensor without a

Why are search results not limited to the Bounding Box?

巧了我就是萌 提交于 2019-12-13 05:13:08
问题 I'm trying to do a simple places search within a specified rectangle area. My assumption was that the boundingBox Parameter for the findPlaces() method was to limit the search results to the specified rectangular area. But when I do a search with a specified boundingBox I get results all over the map. That's essentially what I'm doing: //create coordinates var mapCenter = map.center; var topLeft = new nokia.maps.geo.Coordinate(mapCenter.latitude + .005, mapCenter.longitude - .01); var

Interact with user-saved placemarks and collections via REST API?

廉价感情. 提交于 2019-12-13 04:43:59
问题 I have a Nokia/here.com account which stores severals collections of placemarks. Is there way to use the REST API to interact with these user/account-specific placemarks, like list and update them? If yes, where's the best place to start? Is anybody aware of some example? Thanks, John 回答1: We do not have such API at the moment but I sent a follow-up inquiry to the related product team and I will have some more feedback in the coming days. Otherwise, we do have the Custom Location Extension

Launch Nokia HERE Maps iOS via API

≡放荡痞女 提交于 2019-12-13 01:29:27
问题 Is there a documented API for launching Nokia's HERE Maps iOS app for turn-by-turn navigation ? 回答1: here-place://lat,lon e.g. here-place://48.866833,2.355411 to open Here on a given place. here-route://lat1,lon1,name1/lat2,lon2,name2 to start turn by turn navigation from lat1,lon1 to lat2,lon2. here-route:///lat2,lon2,name2 to start a turn by turn navigation from the user location to lat2,lon2. EDIT: It seems that name fields now support URL percent escaping to encode space and other

Here Maps REST API - getlinkinfo returns incorrect speed limit

时光总嘲笑我的痴心妄想 提交于 2019-12-13 01:26:38
问题 I have been using the getlinkinfo command to look at speed limits. The values returned by the API appear to be reduced by a factor of 3.6 relative to posted speed limits on roads in my community. For example, here is a request for a road segment of Highway 101 in Fredericton, NB, Canada that has a posted speed Limit of 90 kph: http://route.st.nlp.nokia.com/routing/6.2/getlinkinfo.xml?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&waypoint=45.921339,-66.666753&linkattributes=sc,sl