How can I draw a road using bing maps api? - gis

Is it possible to draw a road using bing maps js api? Ideally I would supply two georeference points and the trajectory/road would be always on the same road.
Basically, I want to highlight a road.

Use map.GetDirections(new VELatLong(lat,lon),new VELatLong(lat,lon))

Take a look at the "Get a multi-point route" sample in the interactive SDK under Get a multi-point route and directions.
This is the relevant function call:
map.GetDirections(["Microsoft", "Everett WA", "Bellingham WA"]);

Related

How can I make bend in google maps polyline?

Is it possible to make a bend in Google maps polyline.
Sample Example is here
I want to make a line over the railway and not a straight line.
Is it feasible?
Yes of course, you only have to look at the documentation of google maps, there are many examples, you just have to replace the latitude and longitude Google Maps API

Google Maps API V3 - Highlight a single road/street

Is there a way to highlight a specified road or street using Google Maps API V3?
Here is an example of what I am trying to get (image from searching a place in google): example
Styled maps does not do what I want since it will apply to all roads. Polylines is an option but finding the coordinates can be a bit of a pain since they are not always complete.
Thanks.
It has already been discussed and I'm afraid you'll have to use polylines.
This might be useful though : Highlighting whole street with some maps API

Google directions on OpenLayers

I'm a big fan of OpenLayers. The only thing i'm missing here are directions.
Since google maps supports directions, I want to integrate these with OpenLayers.
Is it possible to use the google maps api to get directions from point A to point B (support for waypoints?) and then display on my map (as an extra vector layer?)?
Google Maps doesn't support directions. and you have to use Google Directions API to get you direction instructions. as for displaying the directions on google maps, it's can be done. head to this post to
first post
or:
second post
to read more.

How to retrieve a static map showing city or municipality boundaries

I'm not sure where to start looking in the documentation, but I'm trying to load map images of cities with their boundaries outlined.
Like this...
Any help getting started would be greatly appreciated, I'm pretty new to the maps api.
Thanks
There is currently no way to request a map with boundaries automatically rendered on it. Your best bet is to pull the polygon information from another system and render using an encoded polyline if you're using the Static Map API or regular overlays in the JavaScript API.
Google Static Map API
Here it is
here, some links to help you:
Geographical boundaries of states/provinces -> Google Maps Polygon
EInsert extension
Boundary Draw - Google Map Application
Getting neighbourhood boundaries from Google Maps API
https://stackoverflow.com/questions/8441467/can-you-draw-custom-search-boundaries-in-google-map
Ability to draw boundaries on Google Maps

How do I turn off/hide landmarks on googlemaps

I am using the google maps api v2 to build attraction guide mashup. Currently it shows some landmarks on the tiles it returns. I notice some of the geocoding of certain attractions is off.
Is there a way I can tell google to send back map tiles with no land marks? I cant seem to find any info on the api docs about it.
As of Google Maps API v3, you can use the Google Maps API Styled Map Wizard to do exactly this.
There is no way to request custom tiles from Google. Your only option is to choose from the available map types, or to generate your own tiles.
The Terrain map (G_PHYSICAL_MAP) might be more acceptable for you.