How to get the elevation of each point of KML file - here-api

I have specific route, represented by 100 and more points (classic KML file, for example http://dropbox.com/s/4k1bx3fl3p6h3tj/as-sokolov.kml?dl=1). In this case, I don't need to generate route, but just want to get elevation of any points. Is it possible? Thank you.

In this case, you will have to use the Fleet Telematics API to retrieve advanced data (layers). The ADAS_ATTRIB_FC1...5 layer contains curvature, height and slope information for all FC1 to FC5 roads.
https://developer.here.com/documentation/fleet-telematics/dev_guide/topics/here-map-content.html
You can get the layer content, given a bounding box or a polyline.
https://developer.here.com/documentation/fleet-telematics/api-reference.html#operation%2FsearchCorridorUsingGET

Related

R Segment a SpatialLinesDataFrame representing a route by a specified distance

I have a SpatialLinesDataFrame that is meant to represent survey tracks. These tracks are not strait lines where the route goes from a>b by the shortest distance, but instead the route twists and turns over its path (although no overlaps). My ultimate goal is to segment these curvy lines into specified distances, taking into account the twists and turns, to calculate presence/absence for each segment. Both in R and Arcmap I have segmented these lines, but it doesn't take into account the twists and turns along the path.
I believe the problem is that I need to convert the polylines into some kind of route class object, then segment that. Suggestions of how this can be done? Thanks in advance, Robin

How to measure geometry efficiently in Google Map

I would like to add color to each house in the following google map example:
https://www.google.com/maps/#43.0748326,141.3479359,19z?hl=en
I found an example in leaflet that add colors to US states by giving the GeoJson data including the corners coordinates of each state. You can find the example here:
http://leafletjs.com/examples/choropleth.html
I would like to do it with Google Map. Two questions in front of me are:
1. How can I get the corner coordinates of houses?
2. As the number of houses which I want to add color is relatively large, how can I efficiently measure the corner coordinates of these houses?
How can I get the corner coordinates of houses?
You can't. The data in Google Maps API is not available to you, because of technical and legal restrictions.
You'll likely want to do this some other way: for instance, with OpenStreetMap data and one of the many services that visualizes it.

quadrant sectioned map

I am unable to find any documentation on how to do what has been accomplished on the map in the page of the link below. Does anyone know how this was accomplished?
Link to interactive map
The technology is called quadtree and quadkey. It uses a z curve to reduce the dimension complexity. Each quadrant is a part of a bigger map. The entire map is made of 21^4 tiles. Each tile has it unique address. You can also look for a geohash or Nick's spatial index quadtree hilbert curve blog. I've written a hilbert curve quadkey script in php at phpclasses org (hilbert-curve). It uses a script to transform a lat/lng pair to WSG 84 datum and compute a quadkey. For example you can use it for a fast proximity lookup.

Google Maps API v3 Polylines not drawing

App works this way:
User enters a starting location and a distance. User can choose to draw circles, or lines over the roads. Circles work fine. Lines used to work.
When Lines, the code finds the lat/long of the starting location, then for the points N, S, E, W of the origin at the distance set by the user (say, 100km). Starting with the N destination, the code calls google.maps.DirectionsService() to get directions from the origin to N. This returns an array of lat/longs in the the route.overview_path.
NOTE: I COULD use the directionsRenderer() to draw the route, BUT, the distance drawn would be greater than the distance set by the user. Drawing the entire route from the origin to the point N might be 124km over the roads, and I just want to draw 100km.
Instead, I step through the route.overview_path[] array, checking the distance between that point and the point of origin, adding each point to a new array. When the distance is greater than the dist set by the user, I stop, pop off the last element, then create a new Polyline based on this 2nd, smaller array.
I've spent the entire day in Chrome's developer mode walking through the javascript, setting breakpoints, watching locals, etc. The array of points passed in google.maps.Polyline({}) is a good array of unique points. I just cannot figure out why they aren't rendering.
Ultimately, the code used to draw 4 lines starting at the point of origin, one heading North, one heading East, South, West. etc....
The code is here: http://whosquick.com/RunViz.html
Thank you for your attention.
Nevermind. Solved it.
var objGeo = new LatLon(Geo.parseDMS(myroute.overview_path[0].Pa), Geo.parseDMS(myroute.overview_path[0].Qa));
I had inadvertently switched Pa with Qa.

How do I find the the exact lat/lng coordinates of a polygon in bing maps

while browsing into a certain bing map application, i need to extract the coordinates of a polygon.
in the html, all i get is a the relative location of the polygon, and i need the lat/lng coordinates.
You can use the PixelToLatLong() method to convert from pixel locations on the map to corresponding Lat/Long. See http://msdn.microsoft.com/en-us/library/bb429564.aspx for details.

Resources