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

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

Related

Panoramio api for searching by tag

I am in developing web application to allow user search Panoramio images using a tag. Would be appreciate if someone has done previously and share how you do that to me.
You'll find all the information you need to know here:
https://developers.google.com/maps/documentation/javascript/examples/layer-panoramio-tags
Its easy to implement, give it a go. As long as you've set up the Panoramio service correctly, it should only take a line or two of code.

How to use google place api in iphone to query supermarkets around my place

I am new in Google places API and don't know how to use in our application...Can any one explain me how to get the list of Supermarkets around my places..
Currently I am using this link but not able to get that things which I want.
Please help me to solve the problem...
The URL should be:
https://maps.googleapis.com/maps/api/place/search/json?location=lat,long&radius=500&types=grocery_or_supermarket&sensor=false&key=yourkey

Current Location to destination using mapview or google maps for the iphone iOS Xcode 4

SO I am a totally new and do not know where to begin. I basically want to create a view that shows the users current location and directs them to my set location (park, concert, business, etc.). It seems fairly simple but there is so much smoke and mirrors online that I do not know where to start or how to finish. Would it be easier to call to google maps or use the mapview in the SDK?
And the bigger question is how do you do this? I mean I can create simple views and load webviews but I can not figure this out.
Use MKMapView .. its fairly straightforward to set up -- you can get the current location from CLLocationManager and pass its coordinates to the map view.
http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial
Have a look at this website http://www.martip.net/blog/localized-current-location-string-for-iphone-apps
it will help you with the current location thing.
Directions are part of the Maps application and are not available in the MapKit API. To give your users Google Maps directions, you need to use the Maps URL scheme, as documented in the Apple URL Scheme Reference. Specifically, you need to include the saddr and daddr parameters in the URL, which specify the start and destination addresses for a directions search, respectively. I believe you can pass latitude/longitude coordinate pairs (comma-separated) for those parameters, but you’ll have to experiment a bit to find the correct formatting and order.
By "direct" do you mean actually show a path for how to get there? That there is no API for. You can place a pin anywhere on a map to show people where something is, but they have to figure out how to get there themselves.
The term you are looking for to add points to a map is adding Annotations to an MKMapView.
Have a look at this website it may help you http://www.raywenderlich.com/2847/introduction-to-mapkit-on-ios-tutorial

How does the Google adsense works?

can you tell me, how does the Google Ad sense works?
please explain me in brief..
There's quite a bit of information available from Google on the subject.
You want to know how to "use" it? or its algorithms? For the first one, they have a page for that, for the later one, I don't think you will even be able to figure it out:)
You place a javascript code in your site, and whenever someone visits your site, Google puts an ad in place. If the user clicks the add, you get money for it.
I assume your question is orientated around Google's contextual targeting.
In brief: Google sends a bot to read each page of your website. It looks at all the terms on the page and discards common words and instead tries to understand themes. Google also looks at adgroups of AdWords advertisers and looks to build an understanding of the themes of the keywords. Another algorithm pairs the two together so that relevant ads appear on a webpage.

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