scheid
3 Jan 2012, 5:37 PM
Hi All,
I am trying to use the Google maps /directions API (http://code.google.com/apis/maps/documentation/directions/) with a Sench Touch 2 list component to create a list of directions from one place to another. I can get the json data from the Google maps API just fine, but am having difficulty figuring out how to tell a list component that I just want to use the list of directions from the json object.
I see a good description of how to do nested data here: http://docs.sencha.com/touch/2-0/#!/api/Ext.data.reader.Reader , which seems like what I would need to do for the Google directions data.
But, can I configure the store(s) in such a way that I can still just specify a simple store object for the list component, or will I need to manually pick out the 'html_instructions' strings from the returned json object?
Basically I just need the html_instructions strings from the steps array of routes[0].legs[0]
Thanks for any help!
I am trying to use the Google maps /directions API (http://code.google.com/apis/maps/documentation/directions/) with a Sench Touch 2 list component to create a list of directions from one place to another. I can get the json data from the Google maps API just fine, but am having difficulty figuring out how to tell a list component that I just want to use the list of directions from the json object.
I see a good description of how to do nested data here: http://docs.sencha.com/touch/2-0/#!/api/Ext.data.reader.Reader , which seems like what I would need to do for the Google directions data.
But, can I configure the store(s) in such a way that I can still just specify a simple store object for the list component, or will I need to manually pick out the 'html_instructions' strings from the returned json object?
Basically I just need the html_instructions strings from the steps array of routes[0].legs[0]
Thanks for any help!