Comments (5)
https://twitter.com/tmcw/status/598605684477943808
from taui.
I'm going to create a helper, but it's going to be based on variable/function names.
Rules:
- Anything named
coordinates
will look like[${longitude}, ${latitude}]
- Anything named
latlng
will look like{ lat:${latitude},lng:${longitude} }
. - The reverse
[${lat}, ${lng}]
SHALL NEVER BE USED. - The shorthand
lon
SHALL NEVER BE USED. - If the reverse or lon need to be used for external libs, never store in a variable, convert on input/output.
from taui.
Sounds good. It may take a while for me to get into the habit of writing
lng instead of lon but I'll do my best. Completely agreed that it should
always be [longitude, latitude].
On Wed, Dec 30, 2015 at 8:57 PM, Trevor Gerhardt [email protected]
wrote:
I'm going to create a helper, but it's going to be based on
variable/function names.Rules:
- Anything named coordinates will look like [${longitude},
${latitude}]- Anything named latlng will look like {
lat:${latitude},lng:${longitude} }.- The reverse [${lat}, ${lng}] SHALL NEVER BE USED.
- The shorthand lon SHALL NEVER BE USED.
- If the reverse or lon need to be used for external libs, never
store in a variable, convert on input/output.—
Reply to this email directly or view it on GitHub
#8 (comment).
Matthew Wigginton Conway [WIG-in-tun CON-way]
Transportation Analytics/Open Source
Washington, DC
from taui.
x/y should be called point
s and should be an object. point.x
, point.y
. So...
originCoordinate
should look like [70.01232, 38.13234]
originLatLng
should look like { lat: 38.13234, lng: 70.01232 }
originPoint
should look like { x: 70.01232, y: 38.13234 }
These rules need to be followed for function inputs and return values and object properties but not 100% necessary if contained.
from taui.
Added ll.js, to be abstracted out on it's own at a later date.
from taui.
Related Issues (20)
- Geocoder box text stays present after clearing field HOT 3
- Negative signs on increases in travel time HOT 1
- Isoline issue HOT 6
- Deduplicate pattern names in route cards HOT 1
- Make transitive snap to streets at a higher zoom level
- Arbitrary transitive config
- Geocoder results in Indianapolis HOT 1
- Set grid icons manually, not just guessing based on the name
- Error in transitive renderer
- Showing Transitive paths makes isochrone updates slow
- Select pre-defined origin and destination points
- I18N: "show" is not translated in the static site UI
- Rename project HOT 5
- Jump to location based on URL
- Show two isochrones at once
- End marker offset by small amount
- GeoJSON isochrones don't lineup with Gridualizer steps
- The automated release is failing 🚨
- TAUI tab pegs 4 processors HOT 1
- GeoJSON "properties" missing on download HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taui.