MapQuest Driving Directions API - mapquest

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!

Related

Extending Leaflet Routing Machine to work with Here Maps

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.

Tools for documenting and mapping APIs with application's user interface for impact analysis

I work on developing API services that internally call multiple micro-services
I was looking for a tool that could help me map public facing APIs with the application's user interface (application is available as native android/ios and PWA)
We do use tools like Swagger and NewRelic for internally maintaining API related details and documentation. However, I was trying to look up any tool(preferably open-source) that could help me map the api calls with the user interface
For example:
A Homepage Screen for the app with multiple buttons. Each button makes a REST API call. These REST APIs internally call micro services.
I would like to have a UI based tool where I could show the Homepage screen for the app(a screenshot) and then write APIs endpoints and routes associated to each button.
The reason I am looking to do this is because I believe this will make new people on the team(and external stakeholders) easier to read and refer to the application flow and how it is tied to the REST APIs. This will also make impact analysis easier when making changes to certain services/APIs

How to AutoComplete an Address and get Lat/Long of that address in #flutter?

How to AutoComplete an Address and get Lat/Long of that address in #flutter?
This is nothing you can do directly with flutter. You need to call an API for that service. In a recent project I used HERE Autocomplete and HERE Geocoder for such a service, which worked quite well.
In Flutter you just need to work with the responses of those APIs. In my case the FutureBuilder was the perfect solution (there is even an example in the docs which is a good starting point).
You have to make HTTP Networking Requests in Flutter to the Place Autocomplete service that is part of the Places API Web Service.

Graphhopper geocode not initialized by osm.pbf

i have set up a graphhopper server, it work perfectly.
direction http api working well.
but geocode API not found anything.
i use a docker container : https://hub.docker.com/r/sogorkis/graphhopper/
initialized with an osm.pbf file.
that's sounds like it missing a config step...
could you help me?
Geocoding is supported by another external program (in the case of GraphHopper Maps it is the GraphHopper Geocoding API). GraphHopper only does routing, also the maps are not served from GraphHopper, just external services.

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.