
Ahmed Nizam • over 8 years ago
How to get Uber Surge multiplier (Eg: 1.2x) when destination is not there?
Surge Multiplier is given in PriceEstimate and Request endpoints.
But price Estimate expects destination to be given.
How do I get the surge multiplier when the user hasn't given a destination?
Comments are closed.
2 comments
Uber Developer Manager • over 8 years ago
Ahmed- Great question. You are correct that price estimates expects destination to be given. If you are simply trying to display the surge, there is a loophole way to get it to work from behind the scenes. You could essentially set the destination for them as the pickup location (wherever they are currently at). Therefore no matter what it would show the surge at that current time. Hope this helps.
Ahmed Nizam • over 8 years ago
:) I just coded the same logic. May be Great people think alike ;)
I observed request API without destination works in Sandbox also.
The following thread says we need dropoff in sandbox.
http://uberhackathon.challengepost.com/forum_topics/4521-destination-necessary
You guys fixed this in upgrade may be?