New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location or radius does not work #22
Comments
@JorgeMoralesLopez Can you try version 0.1.6 :) |
I have tried in all possible ways, radius = {20000} the console throws at me Warning: Failed prop type: Invalid prop |
yes this one also take the version as a string. So you can do |
I have installed version 0.1.6 and location does not work. Do not have any examples with radius and location working? He already tried it. |
@JorgeMoralesLopez the version 0.1.6 was just a fix for radius. I'm currently working on the location right now |
Ok, I did not understand well ... Thanks! |
No problem my mistake |
Please, when it is fixed, let me know, and if it is going to cost you a lot of time also to be able to look for another alternative. It is a feature that I need urgently. |
@JorgeMoralesLopez Can you try version 0.1.7 I add props call latitude |
@EQuimper, now if the location works. But the radius does not work, it appears in the list very distant establishments. |
Can you give me a picture of the response you get and the props you pass if possible. So location work just the radius ? |
Hi there, this is an issue I am also facing. When passing the prop radius, I am able to see inside of the react-native-google-autocomplete/dist/GoogleAutoComplete.js that the radius is being passed (And can be logged to the console). |
I will check for the issue. Maybe google did change something with their api. Will check that |
Yes, the radio feature doesn't work because searches for very far places appear by putting radius = "50000" for example. If this could be fixed it would be great. |
Has this been fixed? Sorry to be a pain this is a vital part of the API though |
According to the Places API:
Otherwise, you would get only prefered result by location and radius but not restricted by the area. I will try to make PR |
I have changed to another API, sorry.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: fuzexjj <notifications@github.com>
Sent: Monday, December 7, 2020 3:50:46 AM
To: AppAndFlow/react-native-google-autocomplete <react-native-google-autocomplete@noreply.github.com>
Cc: Jack Blundell <BlundellJJ@cardiff.ac.uk>; Comment <comment@noreply.github.com>
Subject: Re: [AppAndFlow/react-native-google-autocomplete] Location or radius does not work (#22)
External email to Cardiff University - Take care when replying/opening attachments or links.
Nid ebost mewnol o Brifysgol Caerdydd yw hwn - Cymerwch ofal wrth ateb/agor atodiadau neu dolenni.
According to the Places API:
Location restrict
You may also restrict results to the region defined by location and a radius parameter, by adding the "strictbounds" parameter. This instructs the Place Autocomplete service to return only results within that region.
Otherwise, you would get only prefered result by location and radius but not restricted by the area.
I will try to make PR
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAppAndFlow%2Freact-native-google-autocomplete%2Fissues%2F22%23issuecomment-739646332&data=04%7C01%7Cblundelljj%40cardiff.ac.uk%7C7986c6f6076a43d5510d08d89a634877%7Cbdb74b3095684856bdbf06759778fcbc%7C1%7C0%7C637429098493352468%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yiRqGimV7pS3rvCywhOZljx0NOAC8R6sHfuTSQghf68%3D&reserved=0>, or unsubscribe<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMCWGWUFWCQYFDFGKWOSOX3STRGJNANCNFSM4H5JHWGQ&data=04%7C01%7Cblundelljj%40cardiff.ac.uk%7C7986c6f6076a43d5510d08d89a634877%7Cbdb74b3095684856bdbf06759778fcbc%7C1%7C0%7C637429098493362458%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ecqylaLFfUH2nxV1z9CJaUbXJWlYNBQNJGaTaiptG9o%3D&reserved=0>.
|
Location or radius does not work... @EQuimper, could you tell me what I'm doing wrong?
<GoogleAutoComplete apiKey={API_KEY} debounce={500} minLength={3} language="es" queryTypes="establishment" location="37.1848024, -5.7753099" radius="35000" components="country:es" >
The text was updated successfully, but these errors were encountered: