Jeff Jones
Jeff Jones

Reputation: 1

Google Wallet API - Location with detailsTemplateOverride

I'm customising the details section of my wallet pass using detailsTemplateOverride. I want to have the location shown with the blue 'directions' icon. This works fine without the override but when I use the override to display specific textmoduledata only, the location is not shown. I've tried the below but it doesnt work..there doesn't seem to be any documentation on this.

                'detailsTemplateOverride' => [
                    'detailsItemInfos' => [
                        [
                            'item' => [
                                'firstValue' => [
                                    'fields' => [
                                        ['fieldPath' => "object.locations[0]"]
                                    ]
                                ]
                            ],
                        ]

            'locations' => [
                [
                    'latitude' => 51.431156,
                    'longitude' => -9.961117,
                    ]
                ],

Upvotes: 0

Views: 28

Answers (0)

Related Questions