Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. a newbie question: how to get latitude and longitude of city London

a newbie question: how to get latitude and longitude of city London

Scheduled Pinned Locked Moved The Lounge
tutorialquestionlearning
22 Posts 17 Posters 120 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mircea NeacsuM Mircea Neacsu

    Are you asking how it could be done or how it is done? It could be defined as the coordinates of the center of gravity of the polygon(s) representing the city boundaries. It is however done in the manner similar to the one described by trønderen, i.e picking an arbitrary place of a certain dubious relevance. You can see interesting examples running Google Earth and searching for different cities. It shows both the city limits polygon and the point picked up as center. In particular, for London, the center is the statue just south of Trafalgar Square, while for Paris and New York it is the city hall. For Madrid it is the "Puerta del Sol" plaza, that happens to be the origin for road distances in Spain. An interesting case is also the city where I live, Montreal: due to many mergers and de-mergers of various municipalities, the city boundary has absolutely nothing in common with a polygon. Conclusion: it's a mess :)

    Mircea

    S Offline
    S Offline
    Southmountain
    wrote on last edited by
    #21

    great info for the algorithm:rose:

    diligent hands rule....

    1 Reply Last reply
    0
    • S Southmountain

      recently I am studying on book like this: Raphael's. I wonder how to decide a city's latitude and longitude because a city is a large area, not a spot.

      diligent hands rule....

      O Offline
      O Offline
      obermd
      wrote on last edited by
      #22

      Or altitude. At lease with Denver we actually have a special color (purple) in Coors Field and on the steps of the capital building indicating 5280 feet above sea level.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups