Bing maps REST API does not work - bing-maps

I am trying to show routes using BING maps REST service , but the map image with routes does not show up sometimes (shows blank map) , but after refreshing the html page it shows up.
I have contructed below URL
http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes?wp.0=300%20Albemarle%20Road,,,Charleston,29407-7593&wp.1=1000%20Fort%20Johnson%20Road,,,Charleston,29412-8898&wp.2=1525%20Avenue%20B%20South,,,North%20Charleston,29405-2328&mapVersion=v1&mapSize=800,600&zoomLevel=10&key="my bing map key"

I've taken a look at this. I was able to reproduce the error with your URL. I tried modifying it by removing the extra comma's and the removing the last part of the zip codes (zip+4) since those are not supported. After doing that I was still able to reproduce this issue, but much less frequently. I suspect that there may be a couple servers that are out of sync on Bing Maps side, thus the inconsistency. I'll notify the engineering team so they can look into this.

Related

Bing Maps MapControl not loading: GET https://www.bing.com/alse/rp/<random string>.br.js net::ERR_ABORTED 404

I'm getting 404's from my own site (regardless of browser) as well as the Bing Maps V8 Interactive SDK. On my site this leads to Uncaught TypeError: Microsoft.Maps.Location is not a constructor errors. I'm guessing this means Bing Maps is having problems and not my code because of the missing .js file? Anything I can do to mitigate this?
Looks like Microsoft fixed their issue. It is working now.
I have also reported this to Microsoft. All my screens that use the web controls have stopped working and report 404 problems on .js routines
I'm able to reproduce this. Looks like Bing Maps is down. We can report this to the Bing Maps Enterprise support team here: https://www.microsoft.com/en-us/maps/support (Bing Maps shows up under the developer tools category in the first form). I'll also report this from my end.
Update
The support team is now reporting that this issue has been resolved. I can confirm things are working on my end. I believe you can request details about the outage from the support team and they will send out an incident report once one is created (likely in the next couple of days).

accessing XHR within google sheets

I've been using import functions a lot in my sports modeling, but I've never been able to figure out how to get past the issue of pulling information that is dynamically imported from another source.
For example, i'm trying to use importxml to pull the money line values in this link here: https://www.sportsbookreview.com/betting-odds/nfl-football/money-line/
I can get the information in the left columns up until "PINNACLE", and after research i now understand I can't get the rest of the information because it's not static on the page and I need to go to the source... how do I find the source of this information so I can pull it from there?
I tried inspecting the page, clicking on "network", clicking on "XHR", refreshing the page and previewing the results, but nothing seemed to match.
Am I looking in the wrong place?
The page uses websockets to download the data, so I don't think you could simulate it in Google spreadsheets using formulas (maybe it could be possible in a script). However in this particular case there is a 'classic view' variant of the page which includes all the data in its source:
https://classic.sportsbookreview.com/betting-odds/nfl-football/money-line/

Is it possible to pass data needed for driving directions to the Bing Maps website?

I have an application that currently links to Google Maps passing it the required URL parameters needed to show driving directions for a set of points (typically 3+). This approach has worked and has allowed us to not use their API, which worked fine.
With Google, they made it pretty easy and clear by using parameters like "saddr" for the starting address, "to" for way points, and "daddr" for the destination. I could even pass in "pw" if I wanted to put the map into print mode. Simple, easy, works great!
I'm trying to determine if Bing Maps supports the same thing. I have been unable thus far to find any examples showing how this can be done, nor have I been able to easily decode the URL after creating my own driving directions using Bing Maps.
Again, I'd like to avoid using the API and am find with sending users to Bing's site when clicking my link.
It this possible? If yes, how can it be done?
Yes it is possible.
And I just wrote a little blog post to demonstrate how: http://alastaira.wordpress.com/2012/06/19/url-parameters-for-the-bing-maps-website/
Alastair's answer has full details if you follow the link through to the blog post.
But if you want the quick answer (again, thanks Alastair) use this root:
http://www.bing.com/maps/default.aspx?where1=
and stick your search destination in at the end. Eg. this gets you to Atwood Rd in London using its postcode:
http://www.bing.com/maps/default.aspx?where1=W6%200HX

How to ensure a place is part of the Google Places autocompletion

We got a customer looking after an event called Floriade placed in the city of venlo in the Netherlands. This point of interest is sometimes shown on the autocompletion under Floriade 2012. I say sometimes shown as we used to see it, then it disappeared, now it is back again.
1-How can I be sure that the autocompletion (through Google Places API) is showing this point of interest ?
2- What is enabling a point to be in this autocompletion or not ?
If a place has a Google Places page, e.g http://maps.google.com.au/maps/place?cid=14788366310032789085 it is guaranteed to be returned by a Places Autocomplete API.
You may have experienced a bug in the API. If it occurs again please report it on the issue tracker: http://code.google.com/p/gmaps-api-issues/issues/entry?template=Places%20API%20-%20Bug
Another way to guarantee that your application will show a place is to perform a 'Place Report Request' using the Google Places API with your API Key. This will instantly add a place and make it available to your API Key, then if the place is approved by Google if will be available to anyone.
Cheers
Chris

Open the iPhone map application via link to Google maps with KML as query

How does one force the iPhone map application to open when the link on a web page goes to maps.google.com/?q=http://example.com/mapdata.kml?
If I open the map application and specifically put http://example.com/mapdata.kml in the query box, all the data is loaded correctly. But if I use http://maps.google.com/?q=http://example.com/mapdata.kml, the map application loads but no data is loaded and nothing is in the query box.
The typical queries work, like q=cupertino or q=[latitude,longitude]. It seems to be the kml link that's broken.
Has anyone gotten this to work? Is this supported? Do you have to URI encode the query?
Your question interested me so I did a little looking around at the Apple URL Scheme Reference. It says the following:
Although the Maps application supports
many of the Google Maps parameters and
queries, it does not support them all.
The rules for creating a valid map
link are as follows:
The domain must be google.com and the
subdomain must be maps or ditu.
The
path must be /, /maps, /local, or /m
if the query contains site as the key
and local as the value.
The path
cannot be /maps/*.
All parameters must
be supported. See Table 1 for list of
supported parameters.
A parameter
cannot be q=* if the value is a URL
(so KML is not picked up).
The
parameters cannot include view=text or
dirflg=r.
If I'm reading that right, it doesn't look like what you're wanting is supported, however, it's interesting that you can type the full kml URL into the maps app directly and have it work. That seems like a bug on Apple's part. I would just start throwing parameters at it and see what happens. That's always fun. ;-)
Best Regards,
p.s. That is a nice sticker. I'd prefer a bounty, but looks like you haven't racked up enough SO points to offer that yet. ;-)
This link will do what you want
<a href="maps:q=http://example.com/mapdata.kml">
but it will only work on iOS so make sure you check the user agent etc and use a normal maps url on non-iOS
<a href="http://maps.google.com?q=http://example.com/mapdata.kml">
The maps URL in simplest form
maps:q=GivenTitle#latitude,longtitude