abbrcode / abbreviations-in-code

The list of common abbreviations in program codes.
https://abbreviations-in-code.vercel.app
MIT License
426 stars 52 forks source link

"lat" and "lng" #28

Closed philipeachille closed 1 year ago

philipeachille commented 1 year ago

We should change the list to what Leaflet.js is using

https://leafletjs.com/reference.html#latlng

kisvegabor commented 1 year ago

Are there other sources that suggest "lng" for "longitude"? E.g it's not listed here at all https://www.abbreviations.com/abbreviation/longitude

T1xx1 commented 1 year ago

I prefer "long".

philipeachille commented 1 year ago

Leaflet, Mapbox, Google and I guess many others are using "lat, lng"

kisvegabor commented 1 year ago

I've search on it in Google like this:

long: 40M results

image

lon: 5M results

image

lng: 2M results

image


It suggests that "lng" is the least used.

T1xx1 commented 1 year ago

I suggest add all of them with yellow for "lng" and "lon".

kisvegabor commented 1 year ago

MY suggestion about yellow was that there should be max 1 yellow to have clear suggestion.

T1xx1 commented 1 year ago

Lol, sorry I meant red. Yellow are for those ones that have a context. They don't.

philipeachille commented 1 year ago

I really still suggest to use "lat" and "lng", both green, and ignore all other options.

This is a Google Places API response:

"geometry": { "location": { "lat": -33.866489, "lng": 151.1958561 },

Plus, as I said, leaflet.js and mapbox - probably the largest mapping libraries - use these also.

kisvegabor commented 1 year ago

I'm open to it, if we find enough evidence for that it's the most standard. But let's discuss the new words once the refactoring is finished.

T1xx1 commented 1 year ago

Should I start refactoring the code?

philipeachille commented 1 year ago

yea, first refactor and then do 1 issue, followed by one 1 pr per abbrev

kisvegabor commented 1 year ago

Which code do you mean? :slightly_smiling_face:

I meant refactoring the README to reflect the new ideas and plans.

T1xx1 commented 1 year ago

Isn't a markdown file a non-executable type of code?

BTW, yes the README.

kisvegabor commented 1 year ago

Isn't a markdown file a non-executable type of code?

It can be, I guess :slightly_smiling_face: I wasn't sure what you mean by code. (it could refer to the pearl script too)

T1xx1 commented 1 year ago

No, that's part of #25.

T1xx1 commented 1 year ago

Moved to discussions