DEV Community

Cover image for Part 2 Misconceptions programmers have about maps
san4opan4o
san4opan4o

Posted on

Part 2 Misconceptions programmers have about maps

Misconception 6. The shortest segment between two points looks like a line


An orthodroma is the shortest distance on curved objects. Particular cases of orthodromes are meridians and equator. Most often, orthodromes look like a curve when projected on a map.



A flight to Madrid from New York on a flat map looks too long, but in reality it takes longer to fly in a "straight line. Only the globe shows what's really going on. Of course, in real life, planes move along regulated air routes, which are dictated by the technical characteristics of the aircraft, weather conditions, geopolitics and social problems. The actual trajectory of a typical flight may differ from the orthodromes. GIS Geography

Delusion 7. The coordinates of stationary objects do not change


Objects move, tilt, and experience shrinkage. A building can move, with its occupants, without water and light being cut off.

Similarly, continents shift and rotate a few centimeters a year. For example, from 1994 to 2017, Australia suddenly shifted a lot to the northeast. This means that after the datum update, streets and entire cities suddenly shifted by 1.8 meters.

Misconception 8: Territory always belongs to someone


An obvious counterexample to this is the entire continent of Antarctica, which formally, under the 1959 treaty, does not belong to any state. Nevertheless, the same treaty indefinitely fixes territorial claims of several countries: Argentina, Australia, Great Britain, New Zealand, Norway, France, and Chile. No one has territorial claims to a fragment of the continent - Mary Baird Land.



However, there are huge chunks of no man's land north of latitude 60°S. For example, the Bir Tawil area between Egypt and Sudan has been left without an owner as a result of territorial disputes. The area of Bir Tawil is more than 2,000 km², it is a hot desert where no one lives. Due to the difficult natural conditions of the territory, the international community does not take seriously external attempts to claim Bir Tawil.

The territory may not have an owner or a national top-level domain.

Delusion 9. Territory belongs to one person


From the time the first states were formed, territorial disputes began to be resolved by diplomacy or war. Conflicts last for tens, hundreds of years. Any self-respecting state has claims on its neighbor's territory.


The countries with unresolved territorial disputes from the relevant Wikipedia list are highlighted in red. /u/whymostnamesaretaken

Interestingly, a dispute can arise over more than just what a state wants to own territory. On rare occasions, two parties attribute territory to a neighbor.


Territorial disputes on the Croatian-Serbian border. Both Croatia and Serbia claim the yellow areas, neither side claims the green

The Gornja Sig area on the Croatian-Serbian border is formally controlled by Croatia. However, Croatia considers the area to be Serbian, although Serbia does not claim it. In 2015, the Czech Vit Jedlicka took advantage of the complex legal status of the area and proclaimed the state of Liberland there. However, no one took this prank seriously.

Delusion 10. A little dotted line and I have a one-size-fits-all map


It only seems that if one disagrees, all one has to do is draw a few dotted lines instead of one continuous border.

India's 2016 law bans to depict a country's borders in a way other than the official one. The range of penalties for violation ranges from fines to imprisonment. The law is enforced: India even issues weather forecasts for territories over which it has no control but considers its own.

This law will have to be enforced, including for Kashmir, which Pakistan, India and China want to own in various configurations. These are countries with hundreds of millions, billions of people. Your potential users are sure to be found there.


This is how Google Maps gets out of the uncomfortable "whose Kashmir?" situation. Washington  Post

Moreover, certain countries. do not recognize other countries at all and react painfully even at the mention of their name. A country may not recognize a territory as part of itself, or as part of a separate neighboring country, because it has difficulty recognizing that neighbor. Also, some countries may not recognize a city as the capital of a country.

If so "lucky", you will have to make several different versions of your product for each specific country. You have to geolocate visitor's country by IP or account registration country. Errors in the GeoIP database can lead to legal prosecution in that country.

On the other hand, sometimes an error is not so critical. Whatever the position of European politicians, but if you show the visitor from Western Europe Jerusalem as the capital of Israel, there will be no outcry to the tech support. But if a resident of Jordan orders airline tickets from you, you better be careful.

Top comments (0)