Many agencies of the central government are located in Taipei City due to its proximity to the capital New Taipei City .
Many central government agencies are located in the city of Taipei , because of its proximity to the capital , New Taipei City .

Do these sentences mean the same thing?
yes