Using an EntryElement with AutoComplete features and Google Places API - ios

Im wondering if you can help me with a problem:
Problem: Im trying to create a dialog with an EntryElement that allows a user to enter an address. As the user enters the address I would like to call the Google Places API to bring back a list of results to ensure the address is valid. The results should be displayed as a list of StyledStringElements which the user can select.
Does anyone have any advise on how to best achieve this?
Thanks and regards. Adam!

Answer can be found here:
Xamarin Forums

Related

AppSheet: I need FILTER the data and show each user the rows that contains his NAME

I have this Users Sheet and the login process is working perfectly (if the user Email is contained in the Users list then the data will showup).
Now i need to show the user the data that contains his name only (Filter), from where i can do that ? and whats the code ?
Thanks in advance :)
You'll want to implement the Current User system in your app
This will allow for all sorts of advanced functionalities
FYI: you'll be better served searching for answers in the official AppSheet Community; it's been around for years, with tons of really detailed posts (full of good follow-up questions and answers)

Getting street names in iOS

I need to offer users a way to type an address in an UITextField with an autocompletion functionality as user is introducing the text. I've been looking for the best way to implement this, but I'm still not sure: is it possible to get a list of street names for a certain city? Or should I being provided such information in another and custom way (service request, a file with that information...)?
My application is for iOS 7+
Thanks
You can do this by using Google Places autocomplete API.This api provide you addreess that you want in list.
For More info please refer this example that help you to how to use Google Places autocomplete with your application
https://maniacdev.com/2013/10/ios-completion-providing-search-with-autocompletion-and-map-marking-using-google-places
you can find sample code for the same on Github find Below link for this
https://github.com/chenyuan/SPGooglePlacesAutocomplete
Hope this may help you.

dynamic twitter widget id

I want to use the new twitter embedded timelines (https://dev.twitter.com/docs/embedded-timelines) but how can I get the data for the right user by username? I have a lot of websites with users (>500) who have their username in the database but as far as I can see you have to give a data-widget-id to get the tweets from the right user.
Is there any way to do this by username? And if not, how can I quickly convert all my users' data-widget-id to the database?
Any help is appreciated
Looks like the best you can do is get a single valid data-widget-id and use it for many different user names using the data-screen-name property.
There is a discussion here from one of the twitter devs. The same one as #alex_b posted in the comments.
You can wrote same script for PHP, for Rails community this gits could be helpfull to get widget-id dynamically.
https://gist.github.com/shah743/dd042df63a8f307f16ed

Facebook like user search as you type

I am creating a messaging system for my web app and need help with searching for users to send messages to. So far I have it so that if you type a persons name (who is on the site) you can send a message to them. I want it to be as you start typing a persons name, a drop down appears with users names that the current user is following. Any thoughts on how I can do this?
I am using the gem mailboxer also wondering if anyone has suggestions for a better messaging gem. Thanks in advance.
Use jQuery autocomplete, and just populate the dropdown contents as all users that the user is following... something like current_user.followed_users. It's impossible to give code without seeing how your code works though.
A good alternative to jquery autocomplete is http://loopj.com/jquery-tokeninput/ and github at: https://github.com/loopj/jquery-tokeninput. A facebook like tagging to send message to multiple users. A demo app on https://github.com/railscasts/258-token-fields-revised/tree/master/bookstore-tokeninput-after from Ryan Bates from Railscasts http://railscasts.com/episodes/258-token-fields-revised
Good luck.

ios google api issue

I need to add a very common Google functionality to an iPhone app I am developing. The idea is that the user is presented with a TextBox where he can write an address (i.e.: "Amsterdam av)". The thing is that I want to add some "help" for him, se when he writes a street name, the app will show him a list of partial matches, like google Maps does here:
sample http://www.timotteo.com.ar/google.png
I canĀ“t find the exact class in the google API. It doesn't need to be as fast as google's own search, maybe the user can write "amst" and press a search button, to be presented with a list of partial matches. The API I'm looking for show return in some way a list with posibilities. All I could find for now where method that gives you the lat/long when you feed it with a specific address. Does somebody know what combination of methods/classes I should use? Maybe some example?
Txs in advance!
Perhaps you are looking for the autocomplete feature of the Places API:
https://developers.google.com/maps/documentation/javascript/places#places_autocomplete
This won't autocomplete for all addresses or streets, but rather for businesses, notable landmarks, etc.
If you want autocomplete for street addresses, I do not believe that is available through any documented APIs. That doesn't mean workarounds don't exist, but they may depend on more details about your use case. (For example, if you only care about a narrow geographic area, it may be possible to simply have a list of all the streets in your own database and handle the AJAX call yourself.)
Actully what I was looking for is this:
http://maps.google.com/maps/geo?q=amsterdam%201543&output=xml&oe=utf8&sensor=true&hl=es&gl=ar
That URL returns and XML with all the autocomplete options. All I have to do is parse that XML and voila! There I have my list.

Resources