Singapore's "limits"
July 13 2010, 2:24 AM
The emergence of location based applications drifts programmers towards geography. There seems to be a need for country boundaries regularly. Many times it's enough to tell if a point is within a 1 certain country or outside or maybe in another additional one... For such a simple case, it's accurate enough to test if the point is within a certain rectangle or not. No need to mingle with more complex polygons! It would be an overkill!
So here is a link with simplified coordinates for the bounding box of Singapore, visualized on Google Maps:
So the 4 corners are the following:
1.48, 103.6 1.48, 104.05 1.24, 104.05 1.24, 103.6
It's even almost very easily memorable. :)
1.24 x 103.6 -- 1.48 x 104.05