问题
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