The "/v1/requests/{request_id}/map" endpoint returns the following link in Sandbox environment.
Map in Sandbox
How does this work in production -
Is it just a static image showing a route from pickup to destination (similar to the one we see in Uber rider history screen)?
Or is it a dynamic URL showing the current location of the vehicle with additional details?
Is the returned map href accessible after the trip is completed?
Is there an API that returns a static map as displayed in the "Uber Rider History" in Iphone app?
Is it just a static image showing a route from pickup to destination (similar to the one we see in Uber rider history screen)?
Or is it a dynamic URL showing the current location of the vehicle with additional details?
It's the latter. It includes details about the trip's progress and updates in real time. It's the same kind of link that you generate when sharing your own trip status using the "share ETA" button in the mobile app.
Is the returned map href accessible after the trip is completed?
Yes but only for a couple of days. After that it yields a 404.
Is there an API that returns a static map as displayed in the "Uber Rider History" in Iphone app?
No.
Related
We've got an iOS and Android app where we plan a trip, with the possibility to open the Uber app to request an Uber. As you already entered your pick-up and drop-off location, we use the "Standard Deep Links" functionality (see link (A) below). We pass the pick-up and drop-off location by the parameters described in the Uber documentation.
Since a while, the Uber app doesn't use the pick-up and drop-off location parameters anymore. For instance the following link just opens the Uber app and doesn't pre-select the trip.
uber://?action=setPickup&client_id=<CLIENT_ID_FROM_DEVELOPER_DASHBOARD>&pickup[latitude]=52.3876077&pickup[longitude]=4.626904&dropoff[latitude]=52.3880485&dropoff[longitude]=4.6387838
Can anyone from the Uber developer team look in to this? Why is this link not working anymore?
Thanks in advance!
(A) https://developer.uber.com/docs/riders/ride-requests/tutorials/deep-links/introduction#standard-deep-links
You can use this website to generate a deeplink: https://developer.uber.com/products/ride-requests-deeplink
Afterwards just replace https://m.uber.com/ul/ with uber://
is there a way to jump directly to a specific ride over the Uber deep link API? With the setPickup action I can directly request a new ride. Is there an action like 'showPickup' which would open the Uber app and jump directly to a specific ride?
Thanks for a reply
Jean-Marc
No, it is not currently possible to go to a specific ride id. That said, it shouldn't ever be needed as Uber only support a single ride per rider at any given time so if you open the app while the user is on-trip it will always open to the existing ride.
I would like to show a graph of visitors (eg. 7 days back) on a specific subpage on my website - not the entire site!
I've been looking at:
http://www.jensbits.com/2010/06/23/google-analytics-data-export-api-with-google-chart-visualizations-2/
.. but i cant figure out how to show a graph for a specific url/subpage.
Any ideas?
Follow these steps
1.Go to your Google Analytics Account.
2.Click on the 'gear' icon. It will show you 3 tabs-> Profile, Tracking Code and Property Settings. Click on Tracking Code.
Under What are you tracking? select A Single Domain radio button. It will show you its corresponding options on the right. Select I want to track PHP pages. It will show you the tracking code underneath. Copy paste the code in the php file/page you are willing to track.
Dont worry about the query parameters. They will be identified automatically with respect to the tracking code. So if your page identifies 100 different layouts with respect to the parameters, they will show up in your analytics account.
Use the following Api to export data from your account
Google Analytics PHP API
Then, after you have received the data, you can set up an ajax request that fetches the data from your PHP script and embeds it in your site using a javascript API chart builder. This is also available with Google
Google Charts API
Hope that helps. All the best!
Adding the "foursquare check-in" ability to an existing app has raised some questions. Mainly, "what to show after the user has checked in?". Within the native foursquare client, after a checkin is completed, it will display a screen showing any badges, specials and points you earned with that checkin.
Since checking-in isn't the primary function of our app, we wanted a way to give the user an option to see this information on demand. We can get all of this information from the API's checkin response, but we didn't want to reinvent the wheel.
We tried using the custom URL for displaying the native application as described here (Client API) but that just displays the checkin information, not the results from it:foursquare://checkins/CHECKIN_ID
Is there a client URL that is undocumented that we can call to display this information, or will it need to be displayed in our app?
There is no custom URL / intent for showing post check-in information. For now you'll need to reconstruct your version of the post check-in screen.
I have a facebook iframe application - let's call it apps.facebook.com/my-app.
We currently use Google Analytics for our tracking, and I correctly have Google Analytics installed on my application (that is included via iframe to the FB app) & it is tracking any use of the application mentioned above.
However, I would like to find out what the traffic source is to my-app PRIOR to facebook; ie, if a user goes to domain1.com, and follows a link from there to apps.facebook.com/my-app, it appears that the "traffic source" gets tracked as "apps.facebook.com" rather than "domain1.com", b/c the GA is installed within my code of the page included via the iframe, so its http referer is apps.facebook.com
Is there any way to retrieve "domain1.com" as my traffic source, in this case? Or any suggestions to try? (whether using Google Analytics, or another source? I see that the facebook insights does give some information on referrers, but it's not very extensive at all; no date ranges, etc)
Thanks so much!
- ali
Just using Google Analytics in Facebook, there isn't much you can do here. However, what we've done in the past (to general success) is to create a redirect link outside of Facebook with the analytics on it, and push all traffic there first.
In other words, create a page at www.myapp.com/redirect, and put the google tracker there (or, alternately, just append the referrer url to the query string manually). Then, redirect with javascript out to the Facebook canvas app URL. That way, the user ends up in the right place, and you get your referrer info as well.