When creating your keys and searching why don't you try something like this:
address = """17 Somewhere St Somewhere NY 12345 USA""" key = ''.join(address.split()) Personally I would also add a .lower() on there so that case did not mess you up as well. And I would probably strip periods and commas too. Robert On Thu, Aug 26, 2010 at 14:07, Paul Frey <[email protected]> wrote: > Its not the case thats the problem, i think its the fact that the GPS > returns the address like this: > > 17 Somewhere St > Somewhere NY > USA > > Where as the only way you can enter in the key is: > > 17 Somewhere St Somewhere NY USA > > On Aug 26, 2:02 pm, Robert Kluin <[email protected]> wrote: >> If it is your "webdb" service, why don't you just lower-case the >> key-name and the search input before doing the lookup? >> >> Robert >> >> >> >> On Thu, Aug 26, 2010 at 10:27, Paul Frey <[email protected]> wrote: >> > So I have an app (programmed in app inventor) that will locate your >> > position with the GPS, return an address to the text box, and when you >> > click the search button, will search my custom tiny webDB service for >> > the key (keys are made up of road addresses) that matches that >> > address. However, the keys on this webDB service is case sensitive >> > and white space sensitive it seems. So when the GPS returns the >> > address to my text box it is not in the right format to find its >> > correct match in the key column. Does anybody know a way around this? >> >> > -Paul >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google App Engine" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
