Bing maps url parameters for street view at a lat long - latitude-longitude

I am trying to create a url to use to open a Bing street side view based on lat long positions but it keeps taking me to the wrong location. Here is the lat long for the location I am looking for street view at.
Here the url that I am creating based on the click point in my arcgis map
https://www.bing.com/mapspreview?-116.393797,43.590106&lvl=17.79637&dir=265.4691&pi=-0.297&style=x&mo=z.0&ftst=0&ftics=False&v=2&sV=1
Here's where it takes me.
Here the lat long of the street side where bing maps opens the view of.
I am confused. I can't find the parameters needed for displaying streetside at based on lat long.

First off, documentation on how to create URL's for bing.com can be found here: https://msdn.microsoft.com/en-us/library/dn217138.aspx
Currently information on showing a streetview location is not documented. However, looking at the URL's from the website it is fairly easy to figure this out.
Your current URL has one big issue, the coordinates are reversed and comma separated rather than "~" separated and they aren't passed in a URL parameter. Here is a modified version of the URL: https://www.bing.com/mapspreview?cp=43.590119~-116.393826&lvl=17&dir=113.8911&pi=-0.284&style=x&v=2&sV=1
That said, the Bing Maps website is a consumer site for consumer use and really shouldn't be used for commercial purposes. The Bing Maps V8 map control has streetside in it and can be integrated with your application. http://www.bing.com/api/maps/sdk/mapcontrol/isdk#setViewToStreetside+JS

Related

Possible to retrieve name/artist of a song from radio station website?

I am trying to create a Shazam like service that works over the phone,
I was able to use Inspect Element to dig around and find an API call for WRIT FM.
I am trying to do the same for WKLH FM but I have not been able to find any references to any code that points to the currently playing song metadata.
The now playing page is here: http://player.listenlive.co/41851
It doesn't come up when doing View Page Source either,
Is there any tool I could use to pinpoint where the metadata is coming from? I need to be able to extract text in real time using a custom-made API so I can use that in my application (Asterisk PBX),
On the song history page, there IS some of this information available but it doesn't seem like it's offered in any predictable way which could be parsed: http://player.listenlive.co/41851/en/songhistory
Thanks!

GPS coordinates to display google street view panorama

I looked at the documentation and many other questions but I couldn't find something similar to what I am looking for. I want a query url where I give in a gps coordinate and it displays the google street view panorama, or some kind of call that when I give it a GPS coordinate it gives me the "Panoid".
I dont have the panoid, or am I trying to extract it from a URL, I want to create a call that return the panoid.
I found a way that I actually wasnt looking for since Im writing my program in C++. But it seems I will do it in Javascript, and pass it to my C++ program.
In the Street View Api Documentation there is this example:
https://developers.google.com/maps/documentation/javascript/examples/streetview-service
In this example there are a few lines that are important to answering this question:
var markerPanoID = data.location.pano;
// Set the Pano to use the passed panoID.
panorama.setPano(markerPanoID);
I could just grab the data.location.pano value from there, then use it as however I may like. I hope this is not a final answer, I really wish if there is another way where I dont have to create a webservice.
What about this (via Google Maps Street View API)
https://maps.googleapis.com/maps/api/streetview?
size=10000x10000
&location=46.414382,10.013988
&heading=151.78
&pitch=0

Placing values for longitude and latitude into a map field via PodioKit API?

I automatically read out the location data from images and want to use this longitude and latitude and set them for the value of a location/map field using PodioKit.
I already tried Google maps URL like
http://maps.google.com/?q=53.550556,9.993333&ll=53.550556,9.993333&z=17
or
https://www.google.com/maps/preview?q=53.550556,9.993333&ll=53.550556,9.993333&z=17
but had bad luck. I'm trying to use PodioKit and the documentation only talks about setting the "string value" of a location/map field. Possibly this question is too specific, but maybe another user found a solution or just a hint to push me into the right direction...
Cheers,
Michael / Hamburg
Sebastian at Podio here. Actually there is API support for submitting a latitude/longitude instead of a string but it is yet to be implemented in PodioKit. It should be very easy to add though, so I will have a look at it as soon as possible. Thanks for pointing this out.

Getting text information from the Internet into my app

I learning Objective C, and I am going to develop some apps. I have a general question: How to get text information from the Internet into your app. Say you want the current title of Yahoo News. Do I need to use some PHP, or are there Objective-C specific classes to choose from?
Help is appreciated (code as well!), just anything that can help me take te step to exploring the new possibilities!
If I understand your question, I'd say the best way to do it would be to get the HTML source from the URL of your choosing as a string, then parse it to grab an attribute such as the title. Have a look at NSString and NSXMLDocument; they both let you instantiate them from a URL.
Here's a great way to do it:
Go to Yahoo Pipes, and create your "pipe" (basically a feed of one or many different data inputs on the web).
Publish: Select a format for Yahoo to host, for example as an RSS feed or in JSON.
UIWebView can then point to your pipe's URL. (Here's a tutorial on UIWebView)
Done.
Note that you can choose to get the feed as RSS, JSON, and other formats as well. Here is an example of a pipe I set up for the National Vulnerabilities Database as RSS, and the same feed as JSON.
ASIHttpRequest Will keep you sane.

How to detect if a query string is relevant for a Google Map Static API lookup

I am currently developing a web app that uses Google's Static Map API, in order to display maps of places upon user's request.
My problem is the following: How can I detect if a given string is relevant or not to searching Google Maps ?
Examples:
Searching for "North Beach San Francisco" with the following URL returns a relevant map of what is asked.
http://maps.google.com/maps/api/staticmap?size=270x185&maptype=roadmap&sensor=false&markers=north%20beach%20san%20francisco
However, searching for something that is not an address like Orwell's "1984" with the following URL does also return a map but it is absolutely not relevant to the query.
http://maps.google.com/maps/api/staticmap?size=270x185&maptype=roadmap&sensor=false&markers=1984
My point is, I don't need to parse the query since Google Maps Static API can find an address pretty easily, but I need to know if the string the user submitted should be searched in Maps or just regular search.
There is a lot of address-parsing related questions on SO, but I repeat that I don't want to have a full address parsing process, I just want to know if Google would have displayed a map link if I had searched the same thing on their website.
I do know the Google Geocoding API but it's roughly the same, as it will return coordinates even for unadapted queries like "1984". (And I'm not even talking about the limitations that make it pretty impossible to use in a large-scale web application)
Thank you for your time !
Gael
What I eventually did:
Google Geocoding API has a response parameter that indicates the accuracy of the geocoding lookup. Using this parameter, I was able to determine if my query is a real address or just a standard query looking like an address.
Keep in mind that both Geocoding Service and Javascript Geocoding API have limitations (as of now, 2,500 requests per IP per day)
Do post a comment if you want further information about that !