Google maps/places API search by phone

二次信任 提交于 2019-12-08 15:27:24

问题


We have a signup page where the user enters his business phone number. We want to find his business information from the phone number for verification. How can this be done with Google places/maps api? Is there any better alternative? I am kind of lost.


回答1:


After looking through the google api to double-check, their response doesn't return a phone number for the company either. https://developers.google.com/places/web-service/

It also may depend on the type of business you're looking for but Yelp does allow phone number searches in their API: https://www.yelp.com/developers/documentation/v2/phone_search




回答2:


Looks like you can get what you want using the Place details call of the web-service api. Amongst the fields returned are the formatted_phone_number and international_phone_number.



来源:https://stackoverflow.com/questions/16463399/google-maps-places-api-search-by-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!