É possível usar o
tipo: application/vnd.lime.location+json
como uma opção (options
) ou título (header
) do
tipo: application/vnd.lime.document-select+json
Eu tentei montar da seguinte maneira o conteúdo dinâmico:
{
"itemType": "application/vnd.lime.document-select+json",
"items": [
{
"header": {
"type": "application/vnd.lime.media-link+json",
"value": {
"title": "EMPORIUM ALIMENTE",
"text": "** Loja Parceira (#PDX)\n\nEndereço: Av Armando Salles De Oliveira, 1455 - Centro, \nPiracicaba"
}
},
"options": [
{
"order": 1,
"label": {
"type": "application/vnd.lime.web-link+json",
"value": {
"title": "Telefone: 019 00000000",
"uri": "tel:019 00000000"
}
}
},
{
"order": 2,
"label": {
"type": "application/vnd.lime.location+json",
"value": {
"text": "Localização",
"latitude": -19.918899,
"longitude": -43.959275,
"altitude": 853
}
}
}
]
},
{
"header": {
"type": "application/vnd.lime.location+json",
"value": {
"text": "DROGAL - Endereço: Av. Independencia, 2759 - Dos Alemaes, \nPiracicaba",
"latitude": -19.918899,
"longitude": -43.959275,
"altitude": 853
}
},
"options": [
{
"label": {
"type": "application/vnd.lime.web-link+json",
"value": {
"title": "Telefone: 019 00000000",
"uri": "tel:019 00000000"
}
}
}
]
},
{
"header": {
"type": "application/vnd.lime.media-link+json",
"value": {
"title": "EMPORIO DO VOVO",
"text": "Endereço: Rua Bom Jesus, 74 - Cidade Alta, Brcao\nPiracicaba"
}
},
"options": [
{
"label": {
"type": "application/vnd.lime.web-link+json",
"value": {
"title": "Telefone: 019 34227001",
"uri": "tel:019 34227001"
}
}
}
]
}
]
}
Não funcionou em nenhum dos exemplos usando "type": "application/vnd.lime.location+json"
Referência: