Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4028516
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:13:48+00:00 2026-05-20T11:13:48+00:00

I got a point with latitude ‘x’ and longitude ‘y’ using decimals. The point

  • 0

I got a point with latitude ‘x’ and longitude ‘y’ using decimals. The point is centered in a square, the length to each side is 12 meters. How do I find the latitudes and longitudes of each corner of the square? I program in Java, but I appreciate any pseudo-code. 🙂

After reading articles on the matter, I guess that a change of ‘d’-meters is equal to ‘e’-degrees (in decimal)..? If so, what is the “conversion-rate”?

I do not know if this helps, but given that it is 12 meters to each side, each corner has to be 16,97 meters from the point.

In advance, thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:13:48+00:00Added an answer on May 20, 2026 at 11:13 am

    Store your center point lat/lon, as well as the distance to the corner (use some trig to figure this), and the radius of the earth in meters. Your bearing in degrees will be 45 to give you the top-right, 115 for top-left, and so on. Use the fancy math below to find the lat/long of your desired corner in decimal format. Convert to degrees by multiplying each by 180/PI

    lat1 = centerPoint.lat * ( Math.PI / 180 );  //Only do this if you need to convert from deg. to dec.
    lon1 = centerPoint.lng * ( Math.PI / 180 );  //Only do this if you need to convert from deg. to dec.
    d = distance;
    R = EARTHS_RADIUS_IN_METERS;
    brng = bearingInDegrees * ( Math.PI / 180 );
    lat2 = Math.asin( Math.sin( lat1 ) * Math.cos( d / R ) + Math.cos( lat1 ) * Math.sin( d / R ) * Math.cos( brng ) );
    lon2 = lon1 + Math.atan2( Math.sin( brng ) * Math.sin( d / R ) * Math.cos( lat1 ), Math.cos( d / R ) - Math.sin( lat1 ) * Math.sin( lat2 ) );
    
    return new LatLong( lat2 * ( 180 / Math.PI ), lon2 * ( 180 / Math.PI ) );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a point with latitude and longitude using decimals. The point is centered
I've got a table of points, each with a name, latitude, longitude, and an
At some point Find All References feature got broken for a single solution that
Case in point : I've got a handle to a window (for instance, using
I've got a postgres 8.3 database of hotels, each with an associated longitude and
I'm using the following code to turn user's IP into latitude/longitude information using the
I have got two WGS84 coordinates, latitude and longitude in degrees. These points are
I've got a list of ~5000 points (specified as longitude/latitude pairs), and I want
It is quite possible that I may not have got the point, but I
I just started reading Effective C++ today and got to the point where the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.