<p>Latitude is easy: -90 to +90.</p>
<p>Longitude can use one of two conventions: 0 to +360, or -180 to +180. You may want to handle both gracefully.</p>

CC BY-SA 4.0
2021-09-16T17:06:34.783Z
here is a nice explanation: 
 http://gis.humboldt.edu/OLM/Courses/old/GSP_101/01_IntroAndReivew/Presentation/Latitude_and_Longitude.html
f.thorpe
CC BY-SA 4.0
2021-09-16T11:34:09.837Z
2021-09-16T11:34:09.837Z
Semidiurnal Simon
<p>I'm developing an application where the user inputs latitude and longitude numbers in float type format.</p>
<p>I have to validate that the format of the numbers are correct.</p>
<p>My doubt is what is the maximun and minimum integer number on both latitude and longitude.</p>
<p>Let me give an example:</p>
<pre><code>latitude:  &lt;max/min&gt;.666666
longitude: -&lt;max/min&gt;.666666
</code></pre>
<p>What are the correct <code>max</code> and <code>min</code> in both cases?</p>

CC BY-SA 4.0
2021-09-16T01:12:55.010Z
In degrees:  -90 to +90 latitude; -180 to +180 longitude.
f.thorpe
<coordinate-system><gps>
Maximum and minimum integer number of latitude and longitude
schrodingerscatcuriosity
# Maximum and minimum integer number of latitude and longitude

(Asked by: username_0 on 2021-09-15)

I'm developing an application where the user inputs latitude and longitude numbers in float type format.

I have to validate that the format of the numbers are correct.

My doubt is what is the maximun and minimum integer number on both latitude and longitude.

Let me give an example:

```
latitude:  <max/min>.666666
longitude: -<max/min>.666666

```

What are the correct `max` and `min` in both cases?

**Tags:** coordinate-system, gps

> **Comments:**
> **username_1**: In degrees:  -90 to +90 latitude; -180 to +180 longitude.  

---

## 1 answers

### Answer by username_2 on 2021-09-16. Score: 2 | Accepted answer

Latitude is easy: -90 to +90.

Longitude can use one of two conventions: 0 to +360, or -180 to +180. You may want to handle both gracefully.

> **Comments:**
> **username_1**: here is a nice explanation:   http://gis.humboldt.edu/OLM/Courses/old/GSP_101/01_IntroAndReivew/Presentation/Latitude_and_Longitude.html  

---

