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.
Asked
Active
Viewed 2,786 times
12
-
if you found some concrete solution then it'd be better to share on this plateform – Mani Dec 14 '15 at 21:54
-
You can find your answer here https://stackoverflow.com/a/55027347/790464 – Ahmed Hegazy Mar 06 '19 at 16:04
2 Answers
2
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

Tah
- 1,526
- 14
- 22
-
please dear , stick to the point . question is not about yelp . It clearly states "how can we get a place using phone number in google places api" – Mani Dec 21 '15 at 06:43
-
4Question also clearly states: "Is there any better alternative?". Please appreciate out-of-the-box suggestions even if they may not be directly applicable to your situation. – Cahit Dec 21 '15 at 20:15
-
@ImranNaqvi calm down man, you're not even the person who asked the question – ᴍᴇʜᴏᴠ Dec 27 '15 at 23:06
-
0
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
.

Josh Doebbert
- 542
- 4
- 16
-
yeah josh we can get phone number , but what the question says is "how can we get the place using the phone number" – Mani Dec 21 '15 at 06:41
-
Sorry, need to read better. Have you tried running a [text search request](https://developers.google.com/places/web-service/search#TextSearchRequests) for the phone number in question and parsing the results? It's definitely a kludge solution, but it might work. – Josh Doebbert Dec 21 '15 at 16:14
-
@JoshDoebbert just tried it, doesn't work I'm afraid. It returns `"status": "ZERO_RESULTS"` – ᴍᴇʜᴏᴠ Dec 27 '15 at 23:04