Extending Leaflet Routing Machine to work with Here Maps - leaflet

Leaflet Routing Machine provides an easy way to integrate directions capabilities in Leaflet. Out of the box it used to work with MapBox but it is a while since it has been updated and I find thaat it does not quite work anymore. In any case I want to use Leaflet + LRM with my chosen provider - HERE maps. The HERE Maps directions URL bears the form
https://route.ls.hereapi.com/routing/7.2/calculateroute.json?apiKey=<API_KEY>&waypoint0=geo!lat0,lng0
9&waypoint1=geo!lat1,lng1&mode=fastest;car;traffic:disabled
How can I modify Leaflet Routing machine to access and then use the results provided by the Here Directions API?

There is a plugin for here's routing API: https://github.com/Daredzik/lrm-Here
Haven't used it myself, but looks good.

Related

Bing Maps v8, Rest Service URL for V8

I am working on Bing Maps V8. Now i already have V6 implemented. i need to upgrade to v8.
Currently the Rest Service URL being used for version v6 is :
http://dev.virtualearth.net/REST/v1/Locations/query?key=BingMapsKey
I wanted to know for Bing Maps Version V8 is there any change/Different Rest Service URL or can i use the same ?
Any suggestions would be helpful.
Thanks in Advance
Regards,
Shyam
The Bing Maps REST service are their own API and independent of the web control versions. There is no change to the REST services. Note that Bing Maps V8 has two built in modules which you might consider using instead of the REST services;
Search Module - a JavaScript library that wraps the REST location
API.
https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk#searchByAddress+JS
https://msdn.microsoft.com/en-US/library/mt712846.aspx
Autosuggest
module - provides suggestions as you type. 
https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk#autoSuggestUi+JS
https://msdn.microsoft.com/en-us/library/mt712650.aspx

Self hosting GraphHopper Directions API

We are looking for an offline routing and reverse geocoding service.
GraphHopper advertises that its Directions API can be self-hosted:
GraphHopper Directions API Self-Hosting / On-Premises
The Directions API comes as a cloud service where you pay on-demand. The API is also
available as on-premises solution (self-hosted), which gives you
maximum performance, customization possibilities, independence; all in
your hands!
After installing GraphHopper on my local instance as per these instructions, I am able to perform routing queries successfully through the localhost HTTP API.
How do I get reverse geocoding working? I cannot find any documentation on this and the code on GitHub doesn't seem to hint towards anything.
The GraphHopper Directions API is a different product than the open source GraphHopper routing engine. The GraphHopper Directions API currently consists of
the Routing API (based on the GraphHopper routing engine),
the Matrix API,
the Geocoding API and
the Route Optimization API.
Currently they are no longer available for self-hosting. Note: I'm one of the authors.
GraphHopper is a routing service, not a geocoder.
According to this issue the Geocoder is separate from GraphHopper and only available in the Directions API for business.
If you are looking for a free OSM-based geocoding service then take a look at search engines in the OSM wiki.
I don't think the geocoding comes with the current version. Only the route api seems to be available.

MapQuest Driving Directions API

Could anyone explain me what is "leg" and "maneuver" in a route and how to show the route highlight with this new API? Earlier with MapQuest 5.x we used to do it with LinePrimitive Class in MQClientInterface.
What exactly are you trying to do? Are you using the JavaScript Maps API (for instance) to show the route on a map? If so, the JavaScript Maps API (and Flash Maps API) have convenience functions for showing a route on the map and they handle most of the heavy lifting for you, so you don't have to call the Directions API directly if you want to show the route on a map generated by the JavaScript Maps API or Flash Maps API.
A "leg" is essentially a stop along a route -- for instance if you want to route yourself from Lancaster, PA to Harrisburg, PA to York, PA -- Lancaster to Harrisburg is one leg, while Harrisburg to York is another.
A "maneuver" is almost like each turn you would have to make, so the turn-by-turn directions included with each leg.
Hope this helps!

Source Code for Bing Maps AJAX Control 7.0?

Is the source code available for Bing Maps AJAX Control 7.0 API?
I have seen the API references on MSDN - API references
And I have seen the interactive SDK - interactive SDK
But I would like to see the javascript source code for the AJAX control. The files that are downloaded by the control are all minified so it's not really possible to understand them.
I'd like to read the source to understand how driving, walking and transit routes are requested from the service, how they are represented as objects, and then how the routes are rendered. This is so that I can build my own custom route type.
Is the source code available somewhere? If so where can it be found?
Thanks,
No. There is no unminified version of the Bing Maps AJAX library.
Since it's only Javascript, you can, of course, use Firebug or similar to examine the methods exposed by http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0, and the structure of the calls made to various Bing Maps services, but you'll have to unpick the source code yourself.

Which is the best ESRI ArcGIS component library to use with GWT?

We are currently designing a GIS intranet application using GWT and ESRI ArcGIS. We are looking at 2 client side Javascript libraries:
The ESRI Javascript API
Open Layers
The library will have to support fused and non fused map caching as well as some layers that are dynamic. Open Layers GWT integration exists but the ESRI library is based on Dojo.
I'm looking for information and advice on where the gotchas will be for either approach.
If you're already using ArcGIS, go with the ArcGIS API for JavaScript. I think there are a lot more people out there using ArcGIS Server fused/non-fused map caches + ArcGIS API for JS than ArcGIS Server + OpenLayers so you'll have an easier time finding samples that are applicable to what you're doing.
I'd probably go with Dojo as ESRI is already built on that one. It has great way of creating widgets and relatively good documentation. a lot of can be found at their forums (though these are now closed for posting new questions -> use stackoverflow instead or their mailing list)
here is the link that might be helpful to you
javascript libraries comparison
GWT is perfect to structure big one-page application. So I'm developing a wrapper for the Javascript library.
http://github.com/lukefx/EsriGwt
It's in a super early state...I'm searching for someone who wants to help me :)
I have picked up the lukefx's GWT project, retooled many of the 'under the hood' components. I started a new project here: gwt-esri