uber-api - 对于 Uber 开发 API,是否可以将源地址和目标地址作为参数传递以获取成本估算响应
问题描述
对于 Uber 乘车请求,它需要开始位置(开始地理位置)、结束位置(结束地理位置)和公平 ID。
从用户的角度来看,我可以传递源地址和目标地址。是否可以将开始和结束位置作为用户提供的地址传递,或者需要使用任何 google api 手动将地址转换为地理位置。
第三个参数 fair Id,我应该在哪里找到 fair id?
我已阅读developer.uber.com 文档,对于开始位置和结束位置,地理位置是强制性的,开始和结束地址是可选的。
请协助解决问题。
解决方案
For version v1.2, you must pass the latitude and longitude of the place. The best solution is to use another api to get the latitude/longitude of a place then send the lat/longitude to thje uber api. There are a few free lat/longitude apis out there, such as google location api.
Answering this for others who may look for this in the future, since I had same question a few weeks ago.
推荐阅读
- bash - 后台进程完成后,如何在 bash shell 中干净地打印消息?
- regex - 查找并替换不止一次出现的正则表达式模式
- html - 为什么border-radius在tcpdf中不起作用以及如何在一行中显示文本?
- mysql - MySQL - 慢查询
- spring - SpringData Couchbase 是否提供任何获取实时事件的方法?
- node.js - 无法从数据库中获取云功能的任何数据
- c# - 如何一次使用多个值检查 DataSet 中是否存在表?
- c - XGetImage 中的 Xlib 图像抓取失败
- arrays - Fortran 函数返回具有非平凡边界的可分配数组
- java - 如何从多对多双向关联中仅删除连接表?