Wouldn't Googles Protocol Buffers [1] be a good match in terms of size? I suppose for lat/long using integers, you could get similar efficiency as plain ints, but with more flexibility in terms of optional fields. The downside from JSON and the like, is that you have to specify the possible message formats and have that specification on both ends.
↧