Hi all I need to know on how to pass two points (longitude and latitude) in http://m.bing.com/directions? to draw a route and show driving directions to the user.
I had find a solution by trial and error in this is the resulting URL: http://m.bing.com/directions?IIG=acc63aafc7ac4348b2fa7662d871504a&kval=3.1&appns=mSERP&cutc=1362555191520#/Maps?q=37.332333,-122.031219,,,,current%20location~42.983391,-81.233040,,,,current%20location&ul=&mode=1&autoredirect=0
I'm passing this from my app to safari mobile.
I need to know a proper way of passing two point and also if there are other parameters if there are any.
I googled for many hours and nothing is resolved.
Thanks!
you might be able to use the same parameters than with the bing maps portal, see the documentation here and if the user is using a mobile platform, he should be redirected to the mobile version:
http://onlinehelp.microsoft.com/en-us/bing/ff808440.aspx
Here is also an interesting article from Alastair on his blog:
http://alastaira.wordpress.com/2012/06/19/url-parameters-for-the-bing-maps-website/
Related
I'm investigating how and if there is a way to get a list of popular locations near you (or within an area) using the Google Maps/Places API. Please see the attached screenshot for what I am referring to:
You'll notice the "Popular Locations in Toronto, On" section. Is there a way to get a list of these by passing in your current location, whether that be with coordinates or simply an address? I'm trying to understand how this was achieved in the above screenshot. Any help would be greatly appreciated. Thanks in advance!
You can use this web service api
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=(latitude),(longitude)&radius=5000&key=(api_key)
to get all the nearby places. It also contains mechanisms to filter, keyword, etc.
You can check out this link https://developers.google.com/places/web-service/search to see a list of required and optional parameters that you can pass additionally.
In case you want to use native iOS sdk https://developers.google.com/places/ios-api/start this is a good place to start.
We are currently using a number of UTM codes with various companies to track a campaigns to our website. While most of them have worked without issue, three have failed to be recorded by Google Analytics and they all use the same format (two of the URLs are below). Any idea why this would be? The links themselves work, it's just GA hasn't accepted them at all.
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.semble.co.nz_mobilepay_bnz_-3Futm-5Fsource-3Dbnz-5Fapp-26utm-5Fmedium-3Donline-5Fbanner-26utm-5Fcontent-3Durl-5Fappnotification-26utm-5Fcampaign-3Dmobilepay-5Fcampaign&d=CwMFAg&c=N-xPqDyeLJg5V3gLll2thA&r=lbXMFujwGwA66Ivf0fYOaY8Dv5vHXIMr8z9PppNbh6c&m=JP3JnHYmkJ3J1YBwv9iHgnMsJJZdyrflVUuPxw_okaA&s=xT3UnMPmiP-DJPNwtQhywHsRWvmMg7PMylFMQjrGov4&e=
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.semble.co.nz_mobilepay_bnz_-3Futm-5Fsource-3Dbnz-5Fapp-26utm-5Fmedium-3Dgoogle-26utm-5Fcontent-3Durl-5Fappnotification-26utm-5Fcampaign-3Dmobilepay-5Fcampaign&d=CwMFAg&c=N-xPqDyeLJg5V3gLll2thA&r=lbXMFujwGwA66Ivf0fYOaY8Dv5vHXIMr8z9PppNbh6c&m=JP3JnHYmkJ3J1YBwv9iHgnMsJJZdyrflVUuPxw_okaA&s=wN-S93ZKKnjHZoGSPZJCTTvDk9NeqUd7zG9W5MoGwKA&e=
Thanks in advance!
You URL is not correctly builded, you must found any of this strings on your URL :
&utm-campaign=
&utm-source=
&utm-medium=
And didn't appear, seems like your system are recoding URL in some point.
My first question here. I'm hoping I'm doing the tags and such correctly so the right folks might be able to see this. If this question should be placed in other area, please let me know.
I'm trying to create a link to a set of custom driving directions that, when clicked from the native iOS Mail app, will open the Google Maps iOS app and populate the custom directions.
I have a map which has driving directions from Point A to Point B, but I've significantly revised the route using the click and re-position functionality in Google Maps (web).
Using the share function from Google Maps (web) creates a link that does in fact retain the custom route, which can be seen when the link is clicked and it opens in Safari. I don't mind that it opens in Safari, since at this point it prompts you to open up these directions in the Google Maps app. But here's where it gets muddy.
When you click the "use the app" button from Safari, the custom route does not carry over to the app. You are shown default route choices based on Point A and B.
The Google Directions API section on Waypoints and using the 'via:' prefix seems like the best way around this, but I'm not sure how I'd turn that into something clickable from an email.
For reference, here is one of the maps I made with a custom route. Basically I want to have it go from Point A to B along one road. I had to make a handful of points along the route in order to keep the route on the same stretch of road.
Further complicating this is Google's attempt to reroute even this map, based on real-time traffic. I went back to this link after copying it here to find out there's an accident on this road right now and it's re-routing through side streets.
Any help would be much appreciated.
Well, you can open the google maps as it follow as it is documented in the documentation:
comgooglemaps://?saddr=Google,+1600+Amphitheatre+Parkway,+Mountain+View,+CA+94043&daddr=Google+Inc,+345+Spear+Street,+San+Francisco,+CA¢er=37.422185,-122.083898&zoom=10
However, there is no mention on how you can add waypoints. And, indeed, you can not even do it in the Maps App. So there is basically nothing we can do...
BTW, here is a blog where included some work arounds, hope this helps a little.
here is what i do : long method, but it works.
open google my maps (instead of google maps) and make your custom route.
in options, export your route to KML/KMZ
at gps vizualizer com, convert your route to the format your app accepts.
I am using Google Places API to pull a list of resturants, and I am displaying them on map. However, since Apple has switched there map services over from Google in iOS 6.0, I am now in violation of Google's terms of use, which states that you must display Google data on a Google map.
"If your application displays Places API data on a map, that map must be provided by Google."
https://developers.google.com/places/policies#terms_of_use
I obviously need to change the map, because I am not going to release an application that is in violation. Any thoughts or suggestions on what to do? Should I go Google Maps with a web view? Does apple have some sort of Google Places API alternative?
Edit:
Using Google Maps through a web view is a hassle, i'd like to find an alternative to that, although it would technically work.
I decided to use Google Maps JavaScript API. Although, it is a little more difficult to deal with, mainly the JavaScript through Objective-C, it is a solution. The map is displayed through a web view, and I use JavaScript to interact with the map.
https://developers.google.com/maps/documentation/javascript/tutorial#api_key
I will wait to accept this answer, to see if anyone else has any thoughts. I just wanted to post this, in case it helps someone else.
Edit:
Google recently released a Maps SDK for iOS, this is the better solution now.
https://developers.google.com/maps/documentation/ios/
I would try to directly contact Google, explaining the situation, and ask them for written permission to use Apple's maps. This is more a legal question than programming. One would think that Google is aware that you can no longer display their maps using Apple's API and that, even regardless of the map, they would want you to use their places, as doing so generates advertising revenue for them.
Agree with #Owen here - you could get permission to leave your app unchanged until some possible future date when you might have to change it, or could you definitely go to the effort of changing it now and then possibly have to change it again in the future for some other reason.
If you could get a 100% guarantee that you could change it once and never have to change it again then I'd say do it now, but nothing's certain.
How to show the Route path from one place to another place using bingmaps in WP7?
i am having user starting latitude,longitude and destination latitude,longitude values...
Please tell me....any samples please let me know...
thanks in advance
It will depend on your needs and if you wish to customise your "Map".
There are two options available:
Use Bing Maps Direction Task - (very good, quick tutorial)
Use the Bing Maps control in your app - (you will need to sign up for a developer account, then follow the tutorials on how to call the various services to get route information based on start and end points and then finally show them on the map)
number 2 is more challenging, however will offer much greater levels of customisation