polyline snap to roads in Bing Maps - maps

I have almost the same question as here,
Track a user draw polyline snap to roads bing maps
I don't find any javascipt API in the documentation for road snapping of a polyline.
There is a HTTP ( https://msdn.microsoft.com/en-us/library/mt814927.aspx ) but I would like to snap to road local data, as it would be done in the google maps API polyline snap to road using google maps api v3
So, is there a Bing API to snap polyline to road in a javascript?

Open up Bing and put in "bing api road snap"
From that first result I get https://www.microsoft.com/en-us/maps/snap-to-road

Related

Does the Google Street View API support retrieving a full 360 equi-rectangualr image?

The docs are not clear on this as they mention fov and viewport suggesting a portion of the entire spherical image.
Does the Google Street View API support retrieving the entire 360 degree equi-rectangular (lat/lon) image?
No, but you could download separate panorama tiles and pack them together of use a third party tool (ex: https://istreetview.com/) and get the entire 360 degree image.
Another option would be to code the above functionality by yourself by using Google StreetView Image API (https://developers.google.com/maps/documentation/streetview/intro). To be honest, I did not try this myself, but through the API you should be able to retrieve all parts of the image and then stitch it back into equirectangular panorama.
This might give you more info:
How to get the original panorama image by panoid in google street view?
EDIT: While searching a way to overcome the fact that Google StreetView app doesn;t work as marketed, I found another third party service able to retrieve photos https://gothru.co/
It is possible by making use of the FOV and heading options within the API.
Take particular note of the heading param.
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=0&key=YOUR_KEY
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=120&source=outdoor&key=YOUR_KEY
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=240&key=YOUR_KEY
By making these three separate API calls you will receive the 360 image sliced into three parts.
You can then use something like node blend to combine them and voila you have a 360 panoramic image!

OpenLayers with Bing Maps: Where does the data come from?

The street name 'Goethestraße' (52.51623 13.51613) is not rendered correctly on Bing Maps (Göthestraße) of OpenLayers.
What's the source of the data? I ask because Bing shows the proper street name:
I suspect the issue is that OpenLayers is pointing to the older static map tiles of Bing Maps and not the dynamic tile service. As such they are retrieving older map tiles that have errors that have since been corrected in Bing Maps.
Edit (based on #rbundritt's comment below): When configured with imagerySet: 'RoadOnDemand', ol.source.BingMaps displays the up-to-date dynamic tiles.

How to set map center to a certain city?

I have an angular google map in my Ionic application and for the first time it sets the map center to the users geolocation with cordova-plugin-geolocation but in case the user want to see what can the app offer in other cities I'd like to change the map center by letting the user to choose another city from a list.
What would be the proper way to do this if I don't know the coords of every city?
You can get the city coordinates from the Geocoding API, and pass those to your maps.
https://developers.google.com/maps/documentation/geocoding/intro

Drawing a route on Bing Maps in WP7 Silverlight

I need to draw a route from my position to a predefined location on a Bing Map. I've read carefully this answer:
https://stackoverflow.com/a/7680787/1233659
But I'm new to WP7, can anybody please tell me the step before using that code; how to add and use the service .
And will that answer be sufficient to draw the rout? Thanks.
First of all you need an account for the bing maps api: http://www.bingmapsportal.com/ If you have an account for bing maps you can request an authorization key, to use bing maps
then you add a webreference to your project that points to: http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc
If you added the reference you can use the code that is provided in the answer you linked. If you want additional information about the route servive you can find it at http://msdn.microsoft.com/en-us/library/cc966826.aspx and http://msdn.microsoft.com/en-us/library/cc981072.aspx
Hope this helps

get a map with pushpin from Bing [silverlight]

I tried to dvlp an applic for WP7. This applic must "ask" bing services to retrieve a map with pushpins (POI like train stations or metro stations). In my applic I want to get the pushpins collection and use it to do something else.
The matter is that I don't know how to get this map from Bing Maps.
Is somebody have an idea ?
Thnks a lot,
Skil
Have a look at the MSDN article on How to: Use the Bing Maps Silverlight Control for Windows Phone
Once you have a map you can add pushpins where you require them.
You could use the SearchServiceClient to find nearby stations, etc.

Resources