-
Notifications
You must be signed in to change notification settings - Fork 56
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
Google changed the API a bit, this is a quick fix. #1
base: master
Are you sure you want to change the base?
Conversation
fix in UICGRoute.m to get it working : // NSArray *allKeys = [dictionaryRepresentation allKeys]; |
They changed it again? |
i dont know but i had to change these lines to get it to work. couldn't find how to download your fix.. so perhaps i have downloaded the original and fixed the same thing (i'm sorry if that is the case!) |
My fix uses the F key instead of D, don't know the significance thou, google maps api's is a bit strange |
it's changed again, look for dictionary with steps key NSString *key = @""; NSDictionary *dd; for (NSString *ky in allKeys) { if([[dictionaryRepresentation objectForKey:ky] class] == [dd class] && [[dictionaryRepresentation objectForKey:ky] objectForKey:@"Steps"]!=nil){ key = [ky copy]; break; } } NSDictionary *k = [dictionaryRepresentation objectForKey:key]; |
RouteListViewController is not showing anything. It is completely blank. Please anyone help me find it out. Thanks for the help in advance. Waiting for early reply... |
It always display 500 geocode error. |
Just found a fix! here it is: Change the original code in this way:
That's all there is to it! Enjoy!!! Cheers! |
Hi even after implemented the "radorbit" fix the RouteListViewController is not showing anything. It is completely blank. Please anyone help me find it out. |
Has changed API again ? UICGRoute#initWithDictionaryRepresentation //NSArray *allKeys = [dictionaryRepresentation allKeys]; It worked at the moment. |
"RouteListViewController is not showing anything. It is completely blank.." Same thing, any solution? |
IF found probably a more reliable solution to that instead of continue to change the key, and probably I will add a more reliable at all. This is a beginning it just loop through the dictionaries looking for the right with the "STep" key. Hope this helps. Of course remove the unnecessary lines. NSSet * setOfKeys = [dictionaryRepresentation keysOfEntriesPassingTest:^(id key, id obj, BOOL * stop){ Bye, |
Thanks a lot Andrea! I have just a question, EDIT: I Got it.. chaged the Locale Identifier Thanks! |
Hi afrade, I do not remember quite well it's been a long time.
I've managed last two, removing all html encoding inside the string-->parsing as written-->show plain text, instead of converting from html using private API. |
I am sorry but i am very new to Xcode, I love this code but I cannot find a way to pass current latitude and longitude as start address, can someone please help? |
Guys is this legal with new Ios6? And Google preventing to publish its routes other than Google Maps? |
Google has again changed the key to "g" Replace with now if google change the response key it will work :) |
Thanks a lot Andrea!......... Great effort .... |
No description provided.