Google maps/places API search by phone
Asked Answered
H

2

12

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.

Hufford answered 9/5, 2013 at 13:51 Comment(2)
if you found some concrete solution then it'd be better to share on this plateformPerrotta
You can find your answer here https://mcmap.net/q/1012646/-how-does-quot-phone-quot-app-show-information-of-contacts-that-are-not-on-the-address-bookThreap
S
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

Shreve answered 21/12, 2015 at 2:15 Comment(4)
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"Perrotta
Question 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.Beebeebe
@ImranNaqvi calm down man, you're not even the person who asked the questionPhilosophism
@TheSexiestManinJamaica i'm fine dear , no worriesPerrotta
J
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.

Janettajanette answered 21/12, 2015 at 3:23 Comment(3)
yeah josh we can get phone number , but what the question says is "how can we get the place using the phone number"Perrotta
Sorry, need to read better. Have you tried running a text search request for the phone number in question and parsing the results? It's definitely a kludge solution, but it might work.Janettajanette
@JoshDoebbert just tried it, doesn't work I'm afraid. It returns "status": "ZERO_RESULTS"Philosophism

© 2022 - 2024 — McMap. All rights reserved.