Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement template-based output formatting. #4

Open
aohren opened this issue Apr 5, 2014 · 3 comments
Open

Implement template-based output formatting. #4

aohren opened this issue Apr 5, 2014 · 3 comments
Assignees

Comments

@aohren
Copy link
Contributor

aohren commented Apr 5, 2014

Allow user-defined output format, based on a template that maps from our canonical format to arbitrarily defined user templates.

@aohren aohren self-assigned this Apr 5, 2014
@trevorcarlson
Copy link

This is a great idea. But what are you thinking exactly, a high-level description language. Maybe a JavaScript per-entry way to describe the data might be helpful:

"print(data1 + ',' + data2)"

On Apr 5, 2014, at 10:57 AM, Adam Ohren notifications@github.com wrote:

Allow user-defined output format, based on a template that maps from our canonical format to arbitrarily defined user templates.


Reply to this email directly or view it on GitHub.

@aohren
Copy link
Contributor Author

aohren commented Apr 5, 2014

Open to anything really. I think there's lots of ways. Something like that or like the following that describes $vars on our end and where it would go in your expected format. Or all of the above! :)

MyFormat {
xPos: $lat
yPos: $long
}

@aohren
Copy link
Contributor Author

aohren commented Apr 11, 2014

I'm going to start by reworking the already hardcoded CSV and KML formats as simple templates and embedding an Apache Velocity engine on the server. This will be an internal implementation detail for now, but will make it much easier to add/update our formats going forward. After that's done we can brainstorm ways of maybe allowing users to submit their own (ie- upload their own template and we'll transform the data and send it back to them).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants