aws-regions icon indicating copy to clipboard operation
aws-regions copied to clipboard

Cannot get the lat long of an region

Open AbhaysinghBhosale opened this issue 5 years ago • 10 comments

AbhaysinghBhosale avatar Mar 15 '19 13:03 AbhaysinghBhosale

Here are the regions with lat and long:

us-east-1;Virginia;38.13;-78.45 us-east-2;Ohio;39.96;-83 us-west-1;California;37.35;-121.96 us-west-2;Oregon;46.15;-123.88 eu-west-1;Ireland;53;-8 eu-west-2;London;51;-0.1 eu-west-3;Paris;48.86;2.35 eu-central-1;Frankfurt;50;8 sa-east-1;Sao Paulo;-23.34;-46.38 ap-southeast-1;Singapore;1.37;103.8 ap-southeast-2;Sydney;-33.86;151.2 ap-northeast-1;Tokyo;35.41;139.42 ap-northeast-2;Seoul;37.56;126.98 ap-south-1;Mumbai;19.08;72.88 ca-central-1;Canada Central;45.5;-73.6

Sumo99 avatar Mar 15 '19 13:03 Sumo99

Is there any api to get the lat long of regions

On Fri 15 Mar, 2019, 6:55 PM Sumo99, [email protected] wrote:

Here are the regions with lat and long:

us-east-1;Virginia;38.13;-78.45 us-east-2;Ohio;39.96;-83 us-west-1;California;37.35;-121.96 us-west-2;Oregon;46.15;-123.88 eu-west-1;Ireland;53;-8 eu-west-2;London;51;-0.1 eu-west-3;Paris;48.86;2.35 eu-central-1;Frankfurt;50;8 sa-east-1;Sao Paulo;-23.34;-46.38 ap-southeast-1;Singapore;1.37;103.8 ap-southeast-2;Sydney;-33.86;151.2 ap-northeast-1;Tokyo;35.41;139.42 ap-northeast-2;Seoul;37.56;126.98 ap-south-1;Mumbai;19.08;72.88 ca-central-1;Canada Central;45.5;-73.6

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jsonmaur/aws-regions/issues/11#issuecomment-473284664, or mute the thread https://github.com/notifications/unsubscribe-auth/AOHTLdrdJEZd-BoHSKQLA5t0kQItnLfdks5vW59LgaJpZM4b2ajS .

AbhaysinghBhosale avatar Mar 15 '19 14:03 AbhaysinghBhosale

I added a pull request. I simply added this stuff to the json file.

Sumo99 avatar Mar 15 '19 15:03 Sumo99

Are this the real exact locations and what about new coming regions

On Fri 15 Mar, 2019, 8:50 PM Sumo99, [email protected] wrote:

I added a pull request. I simply added this stuff to the json file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jsonmaur/aws-regions/issues/11#issuecomment-473327753, or mute the thread https://github.com/notifications/unsubscribe-auth/AOHTLRgcL0JXctRUfMi1WcVllaxlr0yDks5vW7pbgaJpZM4b2ajS .

AbhaysinghBhosale avatar Mar 16 '19 05:03 AbhaysinghBhosale

Hey guys, thanks for filing the issue and the PR. I'm not sure what the purpose of adding these coordinates would be. I'm assuming they are not the exact coordinates of the data centers, but rather the general coordinates of the country/state?

If you could explain how you plan on using them, maybe we can tweak the data structure to be a little clearer as to what the coordinates represent (and possibly add functions to the SDKs to find the closest region to a location, for example.)

jsonmaur avatar Mar 16 '19 17:03 jsonmaur

Hi there, I am working on the platform where I need to show the map of customers aws resources locations in map.For this purpose I am looking for an api which will give the lat long of data center for the resource.

This ask provides locations but it's difficult to trust it as this may not be exact coordinates and it's after all headcoded.

On Sat 16 Mar, 2019, 11:23 PM Jason Maurer, [email protected] wrote:

Hey guys, thanks for filing the issue and the PR. I'm not sure what the purpose of adding these coordinates would be. I'm assuming they are not the exact coordinates of the data centers, but rather the general coordinates of the country/state?

If you could explain how you plan on using them, maybe we can tweak the data structure to be a little clearer as to what the coordinates represent (and possibly add functions to the SDKs to find the closest region to a location, for example.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jsonmaur/aws-regions/issues/11#issuecomment-473569876, or mute the thread https://github.com/notifications/unsubscribe-auth/AOHTLeH_Xzq7e4DAb9TzVkrXwnbQ3EfSks5vXS-wgaJpZM4b2ajS .

AbhaysinghBhosale avatar Mar 16 '19 18:03 AbhaysinghBhosale

Hi jsonmaur,

I think these lat and longs are the locations of the datacenters themselves, see https://stackoverflow.com/a/8668187. Maybe it will be helpful for latency calculations?

Sumo99 avatar Mar 16 '19 21:03 Sumo99

You are may be the correct but this not provided by aws itself.

On Sun 17 Mar, 2019, 3:23 AM Sumo99, [email protected] wrote:

Hi jsonmaur,

I think these lat and longs are the locations of the datacenters themselves, see https://stackoverflow.com/a/8668187. Maybe it will be helpful for latency calculations?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jsonmaur/aws-regions/issues/11#issuecomment-473595734, or mute the thread https://github.com/notifications/unsubscribe-auth/AOHTLZIxl5fnBWhrbSfFflnpdJCrfCgjks5vXWfSgaJpZM4b2ajS .

AbhaysinghBhosale avatar Mar 17 '19 02:03 AbhaysinghBhosale

Yeah, I think latency calculations are much more complicated than simply finding the nearest data center. Might be useful to add in the future. I do see @AbhaysinghBhosale's point in the coordinates being useful for showing regions on a map.

jsonmaur avatar Mar 19 '19 03:03 jsonmaur

I think it is important to have a coordinate that can show the approximate location.

Seungwoo321 avatar Feb 10 '20 07:02 Seungwoo321