Last active
September 26, 2017 11:25
-
-
Save thesocialdev/d0fd3fad3ccdb11aefb8b5a00895eb1f to your computer and use it in GitHub Desktop.
Sugestão de padrão para envio de JSON para integração i3met e SIG Arteris
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ATUAL | |
{ | |
"codigo": "ERROR: RODOVIA", | |
"codigo_antt": "OAE 000 SC 200 00000 NS 1", | |
"tipo": "Ponte", | |
"UTM_X": null, | |
"UTM_Y": null, | |
"huso": null, | |
"carretera": "BR101", | |
"sentido_circ": "Tronco ascendente", | |
"kmi": 200, | |
"metrosi": 0, | |
"kmf": 200, | |
"metrosf": 1, | |
"photos": [ | |
{ | |
"id": 244882, | |
"descripcion": "CSFDGFD", | |
"sector": "Seção transversal - Vano" | |
} | |
] | |
} | |
# SUGESTÃO | |
{ | |
"dicionario": { | |
"codigo": "Código", | |
"codigo_antt": "Código ANTT", | |
"tipo": "Tipo", | |
"UTM_X": null, ; Campos que não serão mostrados devem vir com valor nulo | |
"UTM_Y": null, | |
"huso": null, | |
"carretera": "Rodovia", | |
"sentido_circ": "Sentido", | |
"kmi": "km inicial", | |
"metrosi": "metro inicial", | |
"kmf": "km final", | |
"metrosf": "metro final" | |
}, | |
"values": { | |
"codigo": "ERROR: RODOVIA", | |
"codigo_antt": "OAE 000 SC 200 00000 NS 1", | |
"tipo": "Ponte", | |
"UTM_X": null, | |
"UTM_Y": null, | |
"huso": null, | |
"carretera": "BR101", | |
"sentido_circ": "Tronco ascendente", | |
"kmi": 200, | |
"metrosi": 0, | |
"kmf": 200, | |
"metrosf": 1, | |
"photos": [ | |
{ | |
"id": 244882, | |
"descripcion": "CSFDGFD", | |
"sector": "Seção transversal - Vano" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment