I define in my subform XML definition the following:
type="location" <-- You custom field 'location'
description="The time between the two points"
Is this the way to do it? Because I am getting a "text" field and not "location"
I've never tried that. My location field isn't built for that sort of thing. It would need to be rewritten as a field, not as a custom field plugin....I know that sounds funny - but they are very different. Many of the standard Joomla field types are not available as custom field plugins (I've released a few to fill those gaps).
I can try it - but it's not going to be easy to write that code because of the way google maps are initialized.
Were you planning on making the subform repeatable?