Repository: allinurl/goaccess Branch: master Commit: 03618c2c3814 Files: 135 Total size: 3.1 MB Directory structure: gitextract_ui100px0/ ├── .codespellrc ├── .github/ │ ├── FUNDING.yml │ └── workflows/ │ ├── build-test.yml │ ├── deb-packaging-buildx.yml │ ├── deb-packaging.yml │ ├── docker-publish.yml │ └── spelling.yml ├── .gitignore ├── AUTHORS ├── COPYING ├── ChangeLog ├── DOCKER.md ├── Dockerfile ├── Dockerfile.debian-12 ├── Makefile.am ├── NEWS ├── README.md ├── SECURITY.md ├── TODO ├── build-dynamic.sh ├── config/ │ ├── browsers.list │ ├── goaccess.conf │ └── podcast.list ├── configure.ac ├── docker-compose/ │ ├── README.md │ ├── configs/ │ │ ├── goaccess.traefik.conf │ │ ├── goaccess.vanilla.conf │ │ └── nginx.conf │ ├── docker-compose.traefik.yaml │ └── docker-compose.vanilla.yaml ├── goaccess.1 ├── inlang.config.js ├── po/ │ ├── LINGUAS │ ├── Makevars │ ├── POTFILES.in │ ├── de.po │ ├── es.po │ ├── fr.po │ ├── goaccess.pot │ ├── it.po │ ├── ja.po │ ├── ka.po │ ├── ko.po │ ├── pt_BR.po │ ├── ru.po │ ├── sv.po │ ├── uk.po │ └── zh_CN.po ├── resources/ │ ├── cities-10m.json │ ├── countries-110m.json │ ├── css/ │ │ └── app.css │ ├── js/ │ │ ├── app.js │ │ └── charts.js │ └── tpls.html ├── snap/ │ └── snapcraft.yaml └── src/ ├── base64.c ├── base64.h ├── bin2c.c ├── bitmap.c ├── bitmap.h ├── browsers.c ├── browsers.h ├── color.c ├── color.h ├── commons.c ├── commons.h ├── csv.c ├── csv.h ├── dialogs.c ├── dialogs.h ├── error.c ├── error.h ├── fileio.c ├── fileio.h ├── gchart.c ├── gchart.h ├── gdashboard.c ├── gdashboard.h ├── gdns.c ├── gdns.h ├── geoip1.c ├── geoip1.h ├── geoip2.c ├── gholder.c ├── gholder.h ├── gkhash.c ├── gkhash.h ├── gkmhash.c ├── gkmhash.h ├── gmenu.c ├── gmenu.h ├── goaccess.c ├── goaccess.h ├── gslist.c ├── gslist.h ├── gstorage.c ├── gstorage.h ├── gwsocket.c ├── gwsocket.h ├── json.c ├── json.h ├── khash.h ├── labels.h ├── opesys.c ├── opesys.h ├── options.c ├── options.h ├── output.c ├── output.h ├── parser.c ├── parser.h ├── pdjson.c ├── pdjson.h ├── persistence.c ├── persistence.h ├── settings.c ├── settings.h ├── sha1.c ├── sha1.h ├── sort.c ├── sort.h ├── tpl.c ├── tpl.h ├── ui.c ├── ui.h ├── util.c ├── util.h ├── websocket.c ├── websocket.h ├── win/ │ ├── mman.h │ └── mmap.c ├── wsauth.c ├── wsauth.h ├── xmalloc.c └── xmalloc.h ================================================ FILE CONTENTS ================================================ ================================================ FILE: .codespellrc ================================================ [codespell] skip=./.git,./po,./resources/js/*.min.js,./resources/css/*.min.css check-hidden= check-filenames= builtin=clear,rare,informal,usage,code,names ignore-words-list=master,thead,referer,cros,hastable,musl,stdio ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: allinurl patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] ================================================ FILE: .github/workflows/build-test.yml ================================================ name: C build and Test on: push: branches: - "master" pull_request: branches: - "master" jobs: build: strategy: fail-fast: false matrix: os: - ubuntu-latest - macos-latest - macos-14 config_params: - "" - "--enable-debug" - "--with-getline --enable-asan" - "--enable-utf8 --enable-debug --with-getline" - "--enable-utf8 --with-getline --enable-asan" include: - os: ubuntu-latest setup-env: | sudo apt-get update sudo apt-get install -y build-essential autoconf gettext autopoint libncursesw5-dev libssl-dev git libmaxminddb-dev jq - os: macos-latest setup-env: | brew install ncurses gettext autoconf automake libmaxminddb openssl@3 jq - os: macos-14 setup-env: | brew update brew install ncurses gettext autoconf automake openssl@3 libmaxminddb jq runs-on: ${{ matrix.os }} steps: - name: Setup env. run: ${{ matrix.setup-env }} - uses: actions/checkout@v3 - name: Check Architecture run: | echo "Running on $(uname -m) architecture" - name: autoreconf run: autoreconf -fiv - name: Configure run: ./configure ${{ matrix.config_params }} - name: Make run: sudo make - name: Make Check run: sudo make check - name: Make Distcheck run: sudo make distcheck - name: Define log run: | echo -e 'localhost:80 192.168.0.1 - - [01/Jul/2013:06:20:38 -0500] "GET / HTTP/1.1" 200 3829 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0"\ google.com:80 ::1 - - [01/Jul/2013:06:25:11 -0500] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"\ bing.com:80 142.250.190.142 - - [01/Jul/2013:06:41:31 -0500] "-" 408 0 "-" "-"\ yahoo.com:80 74.6.143.25 - - [01/Jul/2013:07:20:02 -0500] "HEAD / HTTP/1.1" 200 213 "-" "Wget/1.14 (linux-gnu)"' > access.log cat access.log - name: Set up output directory run: echo "output_dir=${GITHUB_WORKSPACE}/report" >> $GITHUB_ENV - name: Create output directory run: mkdir -p ${GITHUB_WORKSPACE}/report - name: Run goaccess single thread run: ./goaccess access.log --log-format=VCOMBINED -o ${output_dir}/report.html - name: Run goaccess multi-thread run: ./goaccess access.log --log-format='%v:%^ %h %^[%x] "%r" %s %b "%R" "%u"' --datetime-format='%d/%b/%Y:%H:%M:%S %z' -o ${output_dir}/report.html -j 2 -a --tz="Europe/Berlin" - name: Run goaccess multi-thread JSON output run: | ./goaccess access.log --log-format=VCOMBINED -o ${output_dir}/report.json -j 2 -a --json-pretty-print cat ${output_dir}/report.json | jq . - name: Make distclean run: sudo make distclean ================================================ FILE: .github/workflows/deb-packaging-buildx.yml ================================================ name: .deb packaging buildx on: workflow_dispatch: jobs: build_job: runs-on: ubuntu-latest strategy: matrix: include: - arch: arm32v7 distro: ubuntu22.04 - arch: arm32v7 distro: ubuntu24.04 - arch: arm32v7 distro: ubuntu25.10 - arch: arm32v7 distro: bullseye - arch: arm32v7 distro: bookworm - arch: arm32v7 distro: trixie - arch: aarch64 distro: ubuntu22.04 - arch: aarch64 distro: ubuntu24.04 - arch: aarch64 distro: ubuntu25.10 - arch: aarch64 distro: bullseye - arch: aarch64 distro: bookworm - arch: aarch64 distro: trixie - arch: amd64 distro: bullseye - arch: amd64 distro: bookworm - arch: amd64 distro: trixie - arch: i386 distro: bullseye - arch: i386 distro: bookworm - arch: amd64 distro: ubuntu22.04 - arch: amd64 distro: ubuntu24.04 - arch: amd64 distro: ubuntu25.10 steps: - name: Checkout repository uses: actions/checkout@v2 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v2 - name: Setup QEMU uses: docker/setup-qemu-action@v2 - name: Create artifacts directory run: mkdir -p "${GITHUB_WORKSPACE}/artifacts" - name: Build deb package run: | echo "Matrix arch: ${{ matrix.arch }}" echo "Matrix distro: ${{ matrix.distro }}" # Convert the matrix distro into a shell variable. MY_DISTRO="${{ matrix.distro }}" if [[ "$MY_DISTRO" == ubuntu* ]]; then # Remove the 'ubuntu' prefix to get the version tag. VERSION_TAG="${MY_DISTRO#ubuntu}" DEFAULT_IMAGE="ubuntu:${VERSION_TAG}" else DEFAULT_IMAGE="debian:${MY_DISTRO}" fi echo "Default IMAGE: ${DEFAULT_IMAGE}" # Determine the base image and platform based on the target architecture. case "${{ matrix.arch }}" in arm32v7) if [[ "$MY_DISTRO" == ubuntu* ]]; then BASE_IMAGE="arm32v7/ubuntu:${VERSION_TAG}" else BASE_IMAGE="arm32v7/debian:${MY_DISTRO}" fi PLATFORM="linux/arm/v7" ;; aarch64) if [[ "$MY_DISTRO" == ubuntu* ]]; then BASE_IMAGE="arm64v8/ubuntu:${VERSION_TAG}" else BASE_IMAGE="arm64v8/debian:${MY_DISTRO}" fi PLATFORM="linux/arm64" ;; i386) if [[ "$MY_DISTRO" == ubuntu* ]]; then BASE_IMAGE="i386/ubuntu:${VERSION_TAG}" else BASE_IMAGE="i386/debian:${MY_DISTRO}" fi PLATFORM="linux/386" ;; amd64) BASE_IMAGE="$DEFAULT_IMAGE" PLATFORM="linux/amd64" ;; *) echo "Unsupported architecture: ${{ matrix.arch }}" exit 1 ;; esac echo "Using base image: ${BASE_IMAGE}" echo "Using platform: ${PLATFORM}" docker run --rm --platform "${PLATFORM}" \ -v "${GITHUB_WORKSPACE}/artifacts:/artifacts" \ "${BASE_IMAGE}" bash -c "\ apt-get update && \ apt-get install -y ca-certificates wget curl lsb-release && \ cd /artifacts && \ curl -O https://deb.goaccess.io/provision/provision.dpkg.sh && \ chmod +x provision.dpkg.sh && \ ./provision.dpkg.sh && \ ls -lath && \ echo 'Build Success'" - name: Test deb package installation run: | DEB_FILE=$(find "${GITHUB_WORKSPACE}/artifacts" -name "goaccess_*.deb") echo "Found deb package: $DEB_FILE" case "${{ matrix.distro }}" in bullseye) TEST_IMAGE="debian:bullseye" ;; bookworm) TEST_IMAGE="debian:bookworm" ;; trixie) TEST_IMAGE="debian:trixie" ;; ubuntu22.04) TEST_IMAGE="ubuntu:22.04" ;; ubuntu24.04) TEST_IMAGE="ubuntu:24.04" ;; ubuntu25.10) TEST_IMAGE="ubuntu:25.10" ;; *) echo "Unknown distro: ${{ matrix.distro }}" && exit 1 ;; esac echo "Using Docker image for testing: $TEST_IMAGE" case "${{ matrix.arch }}" in arm32v7) TEST_PLATFORM="linux/arm/v7" ;; aarch64) TEST_PLATFORM="linux/arm64" ;; i386) TEST_PLATFORM="linux/386" ;; amd64) TEST_PLATFORM="linux/amd64" ;; *) echo "Unsupported architecture: ${{ matrix.arch }}" && exit 1 ;; esac echo "Using platform for testing: $TEST_PLATFORM" docker run --rm --platform "$TEST_PLATFORM" \ -v "${GITHUB_WORKSPACE}/artifacts:/artifacts" \ "$TEST_IMAGE" bash -c "\ apt-get update && \ apt-get install -y /artifacts/$(basename $DEB_FILE) && \ goaccess --version && \ apt-get remove -y goaccess" - name: Upload deb package uses: actions/upload-artifact@v4 with: name: deb-package-${{ matrix.distro }}-${{ matrix.arch }} path: artifacts/*.deb retention-days: 1 ================================================ FILE: .github/workflows/deb-packaging.yml ================================================ name: .deb packaging on: workflow_dispatch: jobs: build_job: # The host should always be linux runs-on: ubuntu-latest name: Build on ${{ matrix.distro }} ${{ matrix.arch }} # Run steps on a matrix of arch/distro combinations strategy: matrix: include: - arch: arm32v7 distro: ubuntu16.04 - arch: arm32v7 distro: ubuntu18.04 - arch: arm32v7 distro: ubuntu22.04 - arch: arm32v7 distro: ubuntu24.04 - arch: arm32v7 distro: ubuntu24.10 - arch: arm32v7 distro: bullseye - arch: arm32v7 distro: bookworm - arch: aarch64 distro: ubuntu18.04 - arch: aarch64 distro: ubuntu20.04 - arch: aarch64 distro: ubuntu22.04 - arch: aarch64 distro: ubuntu24.04 - arch: aarch64 distro: ubuntu24.10 - arch: aarch64 distro: buster - arch: aarch64 distro: bullseye - arch: aarch64 distro: bookworm - arch: amd64 distro: buster - arch: i386 distro: buster - arch: amd64 distro: bullseye - arch: amd64 distro: bookworm - arch: i386 distro: bullseye - arch: i386 distro: bookworm - arch: amd64 distro: ubuntu16.04 - arch: i386 distro: ubuntu16.04 - arch: amd64 distro: ubuntu18.04 - arch: i386 distro: ubuntu18.04 - arch: amd64 distro: ubuntu20.04 - arch: amd64 distro: ubuntu22.04 - arch: amd64 distro: ubuntu24.04 - arch: amd64 distro: ubuntu24.10 steps: - uses: actions/checkout@v2.1.0 - uses: allinurl/run-on-arch-action@master name: Build artifact id: build with: arch: ${{ matrix.arch }} distro: ${{ matrix.distro }} # Not required, but speeds up builds githubToken: ${{ github.token }} # Create an artifacts directory setup: | mkdir -p "${PWD}/artifacts" # Mount the artifacts directory as /artifacts in the container dockerRunArgs: | --volume "${PWD}/artifacts:/artifacts" # The shell to run commands with in the container shell: /bin/bash # Install some dependencies in the container. install: | case "${{ matrix.distro }}" in ubuntu*|jessie|stretch|buster|bullseye|bookworm) apt-get update && apt-get install -y ca-certificates wget curl lsb-release && apt-get clean all ;; esac # Produce a binary artifact and place it in the mounted volume run: | ls -lath "/artifacts" curl -O https://deb.goaccess.io/provision/provision.dpkg.sh chmod +x ./provision.dpkg.sh ./provision.dpkg.sh echo "Success!!" - name: Show the artifact run: | pwd ls -lath "${PWD}/artifacts" - name: Test deb package installation run: | # Find the generated deb package DEB_FILE=$(find "${PWD}/artifacts" -name "goaccess_*.deb") echo "Found deb package: $DEB_FILE" # Determine the correct Docker image for the distro case "${{ matrix.distro }}" in bookworm) IMAGE="debian:bookworm" ;; bullseye) IMAGE="debian:bullseye" ;; buster) IMAGE="debian:buster" ;; ubuntu16.04) IMAGE="ubuntu:16.04" ;; ubuntu18.04) IMAGE="ubuntu:18.04" ;; ubuntu20.04) IMAGE="ubuntu:20.04" ;; ubuntu22.04) IMAGE="ubuntu:22.04" ;; ubuntu24.04) IMAGE="ubuntu:24.04" ;; ubuntu24.10) IMAGE="ubuntu:24.10" ;; *) echo "Unknown distro: ${{ matrix.distro }}" && exit 1 ;; esac echo "Using Docker image: $IMAGE" # Run a container with the correct architecture and test the installation docker run --rm -v "${PWD}/artifacts:/artifacts" --platform linux/${{ matrix.arch }} "$IMAGE" bash -c " apt-get update && apt-get install -y /artifacts/$(basename $DEB_FILE) && goaccess --version && apt-get remove -y goaccess" - name: Upload deb package uses: actions/upload-artifact@v4 with: name: deb-package-${{ matrix.distro }}-${{ matrix.arch }} path: 'artifacts/*.deb' retention-days: 1 ================================================ FILE: .github/workflows/docker-publish.yml ================================================ name: Docker on: push: # Publish `master` as Docker `latest` image. branches: - master # Publish `v1.2.3` tags as releases. tags: - v* # Run tests for any PRs. pull_request: env: IMAGE_NAME: ${{ github.repository }} jobs: # Run tests. # See also https://docs.docker.com/docker-hub/builds/automated-testing/ test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | if [ -f docker-compose.test.yml ]; then docker-compose --file docker-compose.test.yml build docker-compose --file docker-compose.test.yml run sut else docker build . --file Dockerfile fi # Push image to Docker Hub. # See also https://docs.docker.com/docker-hub/builds/ push: # Ensure test job passes before pushing image. needs: test runs-on: ubuntu-latest if: github.event_name == 'push' steps: - uses: actions/checkout@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Push image run: | # Change all uppercase to lowercase IMAGE_ID=$(echo "${{ github.repository }}" | tr '[A-Z]' '[a-z]') # Strip git ref prefix from version VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') # Strip "v" prefix from tag name [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') # Use Docker `latest` tag convention [ "$VERSION" == "master" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION docker buildx create --use docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_ID:$VERSION --push . ================================================ FILE: .github/workflows/spelling.yml ================================================ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow name: "Spelling" on: workflow_dispatch: # Add [skip ci] to commit message to skip CI. permissions: contents: "read" concurrency: group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: spell_check: name: "文A Spell check" runs-on: "ubuntu-22.04" timeout-minutes: 1 steps: - name: "Checkout repository" uses: "actions/checkout@v3" - name: "Cache pip" uses: "actions/cache@v3" with: path: "~/.cache/pip" key: "${{ runner.os }}-pip-codespell" - name: "Install codespell" run: | pip install --user 'codespell>=2.2' - name: "Search for misspellings" run: | "$(python -m site --user-base)/bin/codespell" ================================================ FILE: .gitignore ================================================ #custom section config.status config.guess config.sub config.rpath configure~ **/.deps/ /INSTALL /Makefile src/.dirstamp src/config.h src/config.h.in src/config.h.in~ src/config.log src/config.status src/.deps/ src/stamp-h1 goaccess bin2c # font selection selection.json #merged from https://raw.github.com/github/gitignore/master/Autotools.gitignore # http://www.gnu.org/software/automake Makefile.in # http://www.gnu.org/software/autoconf /autom4te.cache /aclocal.m4 /compile /configure /depcomp /install-sh /missing # VIM *.*.swp *.log # Object files *.o *.ko *.obj *.elf # Precompiled Headers *.gch *.pch # Libraries *.lib *.a *.la *.lo # Shared objects (inc. Windows DLLs) *.dll *.so *.so.* *.dylib # Executables *.exe *.out *.app *.i*86 *.x86_64 *.hex # Vagrant .vagrant # M4 macros /m4/* # I18n stuff /ABOUT-NLS /po/*.gmo /po/*.header /po/*.mo /po/*.sed /po/*.sin /po/Makefile.in.in /po/Makevars.template /po/POTFILES /po/Rules-quot /po/Makefile /po/stamp-po # compiled resources /src/appcss.h /src/appjs.h /src/bootstrapcss.h /src/chartsjs.h /src/d3js.h /src/facss.h /src/hoganjs.h /src/tpls.h /src/countries110m.h /src/cities10m.h /src/topojsonjs.h # intermediate resources /resources/css/app.css.tmp /resources/css/bootstrap.min.css.tmp /resources/css/fa.min.css.tmp /resources/js/app.js.tmp /resources/js/charts.js.tmp /resources/js/d3.v?.min.js.tmp /resources/js/hogan.min.js.tmp /resources/tpls.html.tmp /resources/countries-110m.json.tmp /resources/cities-10m.json.tmp /resources/js/topojson.v3.min.js.tmp ================================================ FILE: AUTHORS ================================================ GoAccess was designed and developed by Gerardo Orellana Special thanks to the following individuals for their great contributions: * 0bi-w6n-K3nobi <71027865+0bi-w6n-K3nob@users.noreply.github.com> * Aaditya Bagga * abgit * Adam Monsen * Adam Števko * Adam Weinberger * Adrian * Ainsley Ellis * aishikoyo * Alan Placidina * Alexander Eifler * Alexandre GUIOT--VALENTIN * Alexandre Perrin * Alexis Lefebvre * Ali Homafar * allofmex * Amos Hayes * A. Nackov * Anders Johansson <47452862+tellustheguru@users.noreply.github.com> * Andreas Sommer * Andreas Weigel * Andrew Kvalheim * Andrew Minion * Antonio Terceiro * Arnaud Rebillout * Arnie97 * as0n * Aslak Raanes * Axel Wehner * azio7 * bbbboom * Bbertatum * Benjamin Bach * Bjørnar Hansen * Bob Black * Bo Cai * Brandon Coleman * Branimir Ri\v{c}ko * Carlos Duelo * Celso Providelo * ChangMo Yang * Chang Zhao * Chilledheart * Chris Downs * Christian Göttsche * Christian Hermann * Christian Moelders * Christopher Meng * Clément Hermann * cristianpb * Cthulhux * Daniel Aleksandersen * Daniel Aleksandersen * Daniel (dmilith) Dettlaff * Danila Vershinin * Danny Kirkham * Darek Kay * David Carlier * David Geistert * d_dandrew * ElXreno * Enrique Becerra * evitalis * Felix Häberle <34959078+felixhaeberle@users.noreply.github.com> * Florian Forster * forDream * fqbuild * Frederic Cambus * Func * gemmaro * Genki Sugawara * Gerald Combs * Geraldo Alves * gitqlt * Hiroki Kamino <46459949+err931@users.noreply.github.com> * holys * Izzy * JackDesBwa * Jannes Blobel <72493222+jannesblobel@users.noreply.github.com> * Jeffery Wilkins * Jeremy Burks * Jeremy Lin * Joaquín de la Zerda * Joe Groocock * Joe Winett * Jonas Kittner * Joona * Jordan Trask * Josh Briggs * Julian Xhokaxhiu * Justin Mills * Kamino Hiroki <37243867+4f8p@users.noreply.github.com> * Kit Westneat * Koichiro Iwao * kokke * kyle sloan * LeoAttn * lhywk * Linus Gasser * Magnus Groß * Maksim Losev * mario-donnarumma * markiewb * Mark J. Berger * Martins Polakovs * Massimiliano Torromeo * Mathieu Aubin * Mathieu Thoretton * Max Christian Pohle * metrix78 * Michael Vetter * Mika Raunio * Moritz Schott * m-r-r * mynameiscfed * Newbe36524 * Nicolas Le Manchet * Nicolas * Ophir LOJKINE * Otto Kekäläinen * Panos Stavrianos * pitilux * Pixelcode <52963327+realpixelcode@users.noreply.github.com> * Placidina * pravdomil * rachid-debu * radoslawc * rahra * Ramires Viana <59319979+ramiresviana@users.noreply.github.com> * rgriebl * Roy Marples * rtmkrlv * Ryow * schoonc * Sean Cross * Sean Wei * Sebastian Wiedenroth * sh4rkman * Simon Gardling * SjonHortensius * Steely Wing * Stéphane Péchard * Stephen Wade * Stoyan Dimov * Stuart Henderson * Sveinbjorn Thordarson * Tatsuyuki Ishi * Thomas Gläßle * Thomas Jost * Thomas Lange * throwaway1037 * Tim Gates * Timothy Quilling * Tom Samstag * ugola * Ulrich Schwarz * Viktor Szépe * Viktor Szépe * Ville Skyttä * Vincent Bernat * Vladimir Pavljuchenkov * William Muir * Wladimir Palant * wodev * woobee * Yaroslav Halchenko * Yuri D'Elia * Yuriy M. Kaminskiy * zeke ================================================ FILE: COPYING ================================================ The MIT License (MIT) Copyright (c) 2009-2022 Gerardo Orellana Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: ChangeLog ================================================ Changes to GoAccess 1.10.1 - Saturday, February 14, 2026 - Fixed a crash when restoring persisted data via `--restore` that contained GEOLOCATION data generated in versions ≤ v1.9.4 and loaded with v1.10. Changes to GoAccess 1.10 - Wednesday, February 11, 2026 - Added new bar charts to the terminal UI for a quicker visual read of metrics. - Added city-level entries to the GEOLOCATION panel. - Added optional zlib support to parse compressed log files. - Added panel reordering in the TUI, letting you customize the dashboard layout. - Added sorting for panels in the HTML report. - Added the ability to expand and collapse subitems within TUI panels for easier navigation of large datasets. - Added a TX Amount percent column to the TUI for clearer traffic share insight. - Added the ability to prepend the virtual host to a request via --concat-vhost-req - Deprecated `--no-column-names` in favor of a unified TUI dashboard. - Fixed log tailing edge cases, including empty reads and date specificity overrides from the CLI. - Fixed stability issues in multi-threaded parsing and during Ctrl+C with multiple jobs. - Fixed inability to override date specificity from the CLI. - Fixed dry-run lines being counted as processed during config format testing. - Improved the TUI spinner and progress display for smoother, clearer feedback during parsing. - Refreshed the HTML dashboard styling and theme visuals. - Updated browser and OS detection lists, including macOS 26 (Tahoe) and Alibaba Cloud Linux. - Updated packaging targets, adding Debian Trixie while dropping Debian Buster and i386 builds. - Updated Swedish, Chinese and Japanese translations - Updated Dockerfile to use openssl-dev for compatibility with SSL_CIPHER_standard_name(3ssl). Changes to GoAccess 1.9.4 - Monday, March 31, 2025 - Added an azimuthal (globe) projection to the HTML report for geolocation, providing a less distorted view of the global map. - Added 'apple-touch-icon' for improved iPhone home screen support, enabling quick access to reports directly from the home screen. - Added 'aria-*' attributes to HTML report for better accessibility, ensuring that the report is more inclusive for screen readers and other assistive technologies. - Added 'theme-color' '' tag to the HTML report for better integration with mobile devices, allowing the browser's address bar to match the report's theme color. - Added additional validation checks to ensure the existence of file paths provided in CLI options, preventing errors. - Added WebSocket authentication to support both local-generated JSON Web Tokens (JWT) and external verification methods. This enhancement enables easy integration with external authentication systems while ensuring CSRF protection for token refresh requests. - Changed WebSocket server to avoid swapping bytes on big-endian platforms, fixing compatibility issues on AIX systems. - Fixed the issue where zooming/panning the map would unexpectedly skip or jump back, providing a smoother user experience. - Fixed the issue where the same mime types were displayed as duplicates due to different casing by normalizing mime types before adding them to the storage, ensuring consistent reporting. - Replaced div elements with more semantic HTML elements like
,
, and
, improving the structure and accessibility of the report. - Updated the list of supported browsers and operating systems to ensure more accurate tracking and reporting. - Updated the method of parsing the browser list for bots/crawlers, enabling the capture of previously difficult-to-parse bots, allowing for more precise targeting and better analytics. Changes to GoAccess 1.9.3 - Friday, May 31, 2024 - Added additional common bots to the list. - Added Address Sanitizer via '--enable-asan' to the configure options for debugging purposes. - Fixed inability to parse JSON keys containing dots. - Fixed out-of-bounds access for invalid HTTP status codes. - Fixed out-of-bounds access when parsing a log in serial processing mode. - Fixed regression introduced in 8f570c, which caused duplicate counts upon restoring from disk via '--restore'. Changes to GoAccess 1.9.2 - Friday, April 12, 2024 - Added World Map to the Geo Location panel on the HTML report. - Added additional non-official/standard HTTP status codes such as Caddy's 0 HTTP status among others. - Added support for '%z' on strptime for non-glibc systems, such as musl libc in Alpine Linux (Docker container), enabling the use of '--tz' - Changed the '--hide/ignore-referrer' options to filter by hostname directly without the use of wildcards, e.g., '--ignore-referrer=wiki.google.com'. - Fixed inability to parse duplicate specifiers during log format parsing. - Fixed regression which previously hindered the ability to modify log, date, and time formats within the TUI dialog. i.e., '# goaccess access.log -c'. - Replaced 'remote_ip' with 'client_ip' for Caddy's JSON format, allowing the use of trusted proxies. - Updated Caddy JSON example log format to handle headers correctly. - Updated Swedish i18n. Changes to GoAccess 1.9.1 - Tuesday, February 05, 2024 - Added support for macOS to the OS detection. - Fixed C99 mode issue with initial declarations [CentOS7]. - Fixed minor typographical, orthographic, and grammatical errors in the German translation. - Fixed a regression issue wherein parsing would halt at the first empty log file. Changes to GoAccess 1.9 - Tuesday, January 30, 2024 - Added multi-threaded log processing with '--jobs=' for a boost in parsing speed, achieving an improvement ranging from 1.26 to 3.65x faster. - Added the 'SEARCH' method to the list of HTTP request methods. - Added compatibility to include the Traefik log format. - Added the ability to gracefully handle SIGQUIT as a signal for shutdown. - Altered WebSocket server initialization, ensuring it takes place after log-format checks. - Deprecated '--output-format'; now, only the '--output' option is permissible. - Implemented mutex locking to prevent a TZ environment race condition. - Fixed a potential heap overflow when checking a request for bots. - Fixed sorting of child items on HTML panels when sorting a column via the UI. - Fixed an issue where, in some cases, the referer host wouldn't be extracted properly - Fixed the miscategorization of Android 12.1 under operating systems. - Fixed TUI and temporarily ignored SIGINT during subdialog execution via Ctrl+C. - Updated the list of browsers/bots. Changes to GoAccess 1.8.1 - Tuesday, October 31, 2023 - Added latest Android and macOS versions to the list of OSs. - Fixed issue when trying to apply a regex on an invalid value (HTML report). - Fixed issue with D3.js xScale.domain() going out of boundaries in certain cases. - Prevent setting default static files when no static-file options are defined in config file. Changes to GoAccess 1.8 - Saturday, September 30, 2023 - Added dual-stack support to the WebSocket server. - Added Debian Bookworm to the official deb repo. - Added Ubuntu Lunar to the official deb repo. - Fixed compiler error on macOS 10.12. - Updated bootstrap to v3.4. - Updated FontAwesome with additional icons for upcoming major release. - Updated Japanese translation. - Updated OS display from Macintosh to macOS. - Updated to D3.js v7 (latest) including charts.js code. Changes to GoAccess 1.7.2 - Friday, March 31, 2023 - Added a color-coding scheme to HTTP status codes. - Added '--external-assets' command line option to output external JS+CSS files. Great when used with Content Security Policy (CSP). - Ensure there's a fallback for 'Windows' if it appears on the user-agent. - Ensure we construct the WebSocket URL in a way that supports multiple use cases when used along '--ws-url' and '--port'. - Fixed a segfault due to a null pointer exception on FreeBSD. - Fixed build with '--disable-nls'. - Fixed invalid read (heap-buffer-overflow) when parsing an XFF spec via JSON. - Fixed segfault when parsing a specific XFF specifier. Changes to GoAccess 1.7.1 - Tuesday, February 28, 2023 - Added 'inlang' for easy localization (i18n) updates. https://inlang.com/editor/github.com/allinurl/goaccess - Added nanosecond parsing option via the '%n' specifier. Great for parsing 'Traefik' JSON logs duration field. - Changed Docker workflow to build a docker image on different architectures {'arm64' & 'amd64'}. - Fixed issue with '--unknowns-as-crawlers' where it did not process them as such. Changes to GoAccess 1.7 - Saturday, December 31, 2022 - Added an option to classify unknown OS and browsers as crawlers using `--unknowns-as-crawlers`. - Added highlighting to certain metrics on the HTML report for readability. - Added a new panel that displays ASN data for GeoIP2 and legacy databases. Great for detecting malicious traffic and blocking accordingly. - Added an ASN metric per IP/host. - Changed and prioritize user's browsers list over heuristics. - Ensure `--geoip-database=` can be used multiple times to support different databases. - Fixed invalid read when loading the list of agents for an IP. - Fixed issue where a file containing a NUL `\0` character would crash the program. - Updated Swedish i18n. Changes to GoAccess 1.6.5 - Monday, October 31, 2022 - Updated Dockerfile build stage to use alpine:3. - Updated deb build to use the right libncursesw6 dependency. Changes to GoAccess 1.6.4 - Friday, September 30, 2022 - Added Korean translation (i18n). - Added the ability to use filenames as virtualhosts using '--fname-as-vhost='. - Enabled crawlers/bots under the OSs panel instead of being shown as 'Unknown'. - Updated the format on the command-line help output. Changes to GoAccess 1.6.3 - Thursday, August 31, 2022 - Enabled DNS thread when resolving a host and outputting real-time HTML. This helps avoid stalling the WS server on busy connections. - Fixed issue where it would not properly parse an XFF if the '%h' specifier was already set. - Fixed possible XSS issues when using '--html-custom-css' and '--html-custom-js' by allowing valid filenames. Changes to GoAccess 1.6.2 - Thursday, July 14, 2022 - Added `Android 12` to the list of OSs. - Added `macOS 12 Ventura` to the list of OSs. - Fixed implicit declaration build issue due to `timegm(3)` on `BSDs` and `macOS`. - Fixed issue where timezone conversion would be performed twice on a given date. Changes to GoAccess 1.6.1 - Thursday, June 30, 2022 - Added a `--ping-interval=` in an attempt to keep the WebSocket connection opened. - Added support for timezone conversion via `--datetime-format=` and `--tz=`. - Added the ability to reconnect to the WebSocket server after 1 sec with exponential backoff (x20). - Fixed issue where an invalid client connection would stall data out to clients via the WebSocket server. - Fixed an issue where real-time data would be parsed multiple times under `Cygwin`. Changes to GoAccess 1.6 - Tuesday, May 31, 2022 - Changed slightly how the XFF field is specified. See man page for details. - Ensure city is displayed with the DBIP City Lite database. - Ensure no 'cleaning up resources' message is displayed if `--no-progress` is passed. - Ensure the maximum number of items per panel defaults to 1440 (24hrs) when passing `--date-spec=min`. - Fixed issue when parsing a delimited XFF field followed by a host IP. - Fixed issue where some data was buffered on the WebSocket server before it was sent to each client. - Fixed issue where the WebSocket server would fail with POLLNVAL consuming 100% CPU. - Fixed segfault when attempting to open an unresolved IP on mac/BSDs. Changes to GoAccess 1.5.7 - Thursday, April 28, 2022 - Updated Caddy's JSON format. This should address CADDY's v2.5.0 change. - Updated Chinese translation (i18n). - Updated GeoIP module so it defaults to native language name (i18n) or fall-back to English. - Updated Russian translation (i18n). - Updated Ukrainian translation (i18n). Changes to GoAccess 1.5.6 - Wednesday, March 30, 2022 - Added `--anonymize-level=<1|2|3>` option to specify IP anonymization level. - Added minute specificity to the Visitors panel via `--date-spec=min`. - Added the ability to toggle on/off panels on the HTML report. - Changed stderr to stdout on non-error output when exiting goaccess. Changes to GoAccess 1.5.5 - Monday, January 31, 2022 - Added mechanism to automatically parse additional bots. - Changed area chart interpolation to 'monotone'. This should avoid the issue where the interpolated curve has a bend into the negative space. - Changed build to use debugging symbols even for release builds. - Changed order on which we verify bots to be the first thing we check. This adds a slight improvement on parsing time. - Ensure we initialize DNS resolver conditions and mutexes before they're used. - Fixed possible buffer over-read for cases where a '\0' could be reached early when parsing a log line. - Fixed possible data race on UI spinner thread. - Fixed regression where a lot of robots were not detected by GoAccess. Changes to GoAccess 1.5.4 - Saturday, December 25, 2021 - Added AWS ALB to the predefined logs format list --log-format=AWSALB. - Ensure we lock our pipe/websocket writer before broadcasting message. - Ensure we require a valid host token even when we're not validating the IP. - Ensure we simply update the TUI once after tailing multiple files. - Ensure we simply update the UI once after tailing multiple files. - Fixed buffer overflow when checking if an HTTP code was a 404 on an empty status code. - Optimized terminal and HTML UI output when tailing multiple files. - Updated DB PATH error message to be more descriptive. Changes to GoAccess 1.5.3 - Thursday, November 25, 2021 - Added additional crawlers to the default list. - Added Italian translation (i18n). - Added 'macOS 12' to the list of OS. - Fixed buffer overflow caused by an excessive number of invalid requests with multiple logs. - Fixed visualization issue on the HTML report for panels with disabled chart. Changes to GoAccess 1.5.2 - Tuesday, September 28, 2021 - Added .avi to the list of static requests/extensions. - Changed label from 'Init. Proc. Time' to 'Log Parsing Time'. - Fixed issue where lengthy static-file extension wouldn't account certain valid requests. - Fixed possible buffer underflow when checking static-file extension. - Fixed segfault when attempting to parse an invalid JSON log while using a JSON log format. - Fixed segfault when ignoring a status code and processing a line > '4096' chars. Changes to GoAccess 1.5.1 - Wednesday, June 30, 2021 - Changed official deb repo so it now builds '--with-getline' in order to support request lines longer than 4096. - Ensure there's no tail delay if the log file hasn't changed. - Fixed data race when writing to a self-pipe and attempting to stop the WS server. - Fixed inability to close expanded panel when pressing 'q' on TUI. - Fixed possible data race during parsing spinner label assignment. - Increased the maximum number of files to monitor from '512' to '3072'. Changes to GoAccess 1.5 - Wednesday, May 26, 2021 - Added a Docker container based isolated build environment (Debian). - Added Dark Mode detection to the HTML report. - Added the ability for the WebSocket server to bind to a Unix-domain socket. - Added the ability to parse IPs enclosed within brackets (e.g., IPv6). - Changed categorization of requests containing 'CFNetwork' to 'iOS' when applicable. - Changed command line option from '--hide-referer' to '--hide-referrer'. - Changed command line option from '--ignore-referer' to '--ignore-referrer'. - Fixed a potential division by zero. - Fixed inability to parse IPv6 when using a 'CADDY' log format. - Fixed issue where a 'BSD' OS could be displayed as Linux with certain user-agents. - Fixed memory leak when a JSON value contained an empty string (e.g., JSON/CADDY format). - Fixed possible buffer overflow on a WS packet coming from the browser. - Refactored a substantial part of the storage codebase for upcoming filtering/search capabilities (issue #117). - Refactored DB storage to minimize memory consumption up to '35%'. - Updated default 'AWS Elastic Load Balancing' log format. - Updated German translation. - Updated page size to 24 on the HTML report. - Updated UNIX OS categories. Changes to GoAccess 1.4.6 - Sunday, February 28, 2021 - Added additional feed reader clients. - Added additional browsers and bots to the main list. - Added command line option '--unknowns-log' to log unknown browsers and OSs. - Added 'Referer' to the pre-defined 'Caddy JSON' log format. - Added support for real-time piping as non-root user. - Added the ability to Handle case when IPv4 is encoded as IPv6 in GeoIP1/legacy. - Ensure we capture linux (lowercase) when extracting an OS. - Fixed a regression in parsing Google Cloud Storage or possibly other non-JSON formats. - Fixed inability to parse escaped formats. - Fixed issue when using '%s' with 'strptime(3)' under musl libc. This addresses mostly the Docker image. - Fixed possible buffer over-read for certain log-format patterns. - Fixed segfault when attempting to process a malformed JSON string. - Fixed segfault when setting an empty log-format from the TUI dialog. - Fixed sorting on hits and visitors when larger than INT_MAX. - Updated CloudFront pre-defined log-format to reflect the latest fields. - Updated 'Dockerfile' image to use 'alpine:3.13' instead of edge due to compatibility issue with the GNU coreutils. Changes to GoAccess 1.4.5 - Tuesday, January 26, 2021 - Fixed build issue due to initial declarations only allowed in C99 mode (e.g., CentOS7). Changes to GoAccess 1.4.4 - Monday, January 25, 2021 - Added 'Caddy' to the list of pre-defined log formats. - Added command line option '--no-strict-status' to disable status validation. - Added native support to parse JSON logs. - Added the ability to process timestamps in milliseconds using '%*'. - Ensure TUI/CSV/HTML reports are able to output 'uint64_t' data. - Ensure we allow UI render if the rate at which data is being read is greater than '8192' req/s. - Ensure we don't re-render Term/HTML output if no data was read/piped. - Fixed build configure to work on NetBSD. - Fixed issue where it would send data via socket each second when managed by systemd. - Fixed issue where parser was unable to parse syslog date with padding. - Fixed issue where some items under browsers.list were not tab separated. - Fixed issue where the format parser was unable to properly parse logs delimited by a pipe. - Fixed issue where T.X. Amount metrics were not shown when data was piped. - Fixed issue where XFF parser could swallow an additional field. - Fixed memory leak when using '%x' as date/time specifier. - Replaced select(2) with poll(2) as it is more efficient and a lot faster than select(2). - Updated Swedish i18n. Changes to GoAccess 1.4.3 - Friday, December 04, 2020 - Added the ability to set how often goaccess will parse data and output to the HTML report via '--html-refresh='. - Changed how TLS is parsed so the Cypher uses a separate specifier. It now uses '%K' for the TLS version and '%k' for the Cypher. - Fixed issue where real-time output would double count a rotated log. This was due to the change of inode upon rotating the log. - Updated man page to reflect proper way of 'tail -f' a remote access log. Changes to GoAccess 1.4.2 - Monday, November 16, 2020 - Added the ability to show 'Encryption Settings' such as 'TLSv1.2' and Cipher Suites on its own panel. - Added the ability to show 'MIME Types' such as 'application/javascript' on its own panel. - Changed Debian build to use mmdb instead of libgeoip (legacy). - Ensure the HTML report defaults to widescreen if viewport is larger than '2560px'. - Fixed inability to properly process multiple logs in real-time. - Fixed issue where named PIPEs were not properly seed upon generating filename. - Fixed issue where served time metrics were not shown when data was piped. - Removed unnecessary padding from SVG charts. Improves readability on mobile. Changes to GoAccess 1.4.1 - Monday, November 09, 2020 - Added additional browsers and bots to the main list. - Added 'Android 11' to the list of OSs. - Added 'macOS 11.0 Big Sur' to the list of OSs. - Added 'average' to each panel overall metrics. - Added '.dmg', '.xz', and '.zst' to the static list. - Added extra check to ensure restoring from disk verifies the content of the log against previous runs. - Added Russian translation (i18n). - Added Ukrainian translation (i18n). - Added support for HTTP status code '308'. - Added the ability for 'get_home ()' to return NULL on error, instead of terminating the process. Great if using through systemd. - Added the ability to read lowercase predefined log formats. For instance, '--log-format=COMBINED' or '--log-format=combined'. - Changed how FIFOs are created and avoid using predictable filenames under '/tmp'. - Changed '--ignore-referer' to use whole referrer instead of referring site. - Ensure Cache Status can be parsed without sensitivity to case. - Ensure restored data enforces '--keep-last' if used by truncating accordingly. - Fixed a few memory leaks when restoring from disk. - Fixed blank time distribution panel when using timestamps. - Fixed build issue due to lack of 'mmap' on 'Win'/'Cygwin'/'MinGW'. - Fixed crash in mouse enabled mode. - Fixed double free on data restore. - Fixed inability to keep processing a log when using '--keep-last'. - Fixed inability to properly parse truncated logs. - Fixed inability to properly count certain requests when restoring from disk. - Fixed issue where it would not parse subsequent requests coming from stdin (tail). - Fixed issue where log truncation could prevent accurate number counting. - Fixed issue where parsed date range was not rendered with '--date-spec'. - Fixed issue where parser would stop regardless of a valid '--num-test' value. - Fixed issue where restoring from disk would increment 'MAX.TS'. - Fixed possible incremental issue when log rotation occurs. - Fixed possible XSS when getting real-time data into the HTML report. - Fixed potential memory leak when failing to get root node. - Fixed real-time hits count issue for certain scenarios. - Fixed segfault in 'Docker' due to a bad allocation when generating FIFOs. - Fixed 'Unknown' Operating Systems with 'W3C' format. - Removed unnecessary include from parser.c so it builds in macOS. - Updated each panel overall UI to be more streamlined. - Updated French translation. - Updated German translation. - Updated Spanish translation. - Updated sigsegv handler. Changes to GoAccess 1.4 - Monday, May 18, 2020 - Added a caching storage mechanism to improve parsing raw data and data rendering. - Added a mechanism to avoid counting duplicate data when restoring persisted data from disk. - Added additional option to the HTML report to set a maximum number of items per page to 3. - Added a list of podcast-related user agents under '%sysconfdir%'. - Added 'Android 10' to the list of Android codenames. - Added a 'widescreen' layout to the HTML report (e.g., 4K TV/KPI Dashboard). - Added 'Beaker', 'Brave', and 'Firefox Focus' to the list of browsers - Added command line option --user-name=username to avoid running GoAccess as root when outputting a real-time report. - Added 'DuckDuckGo' and 'MSNBot' browsers to the browsers.list. - Added 'facebookexternalhit' to the default crawler list. - Added German translation (DE). - Added Kubernetes Nginx Ingress Log Format to the default config file. - Added 'macOS Catalina' to the list of OSX codenames. - Added minor CSS updates to HTML report. - Added missing header '' to fix FreeBSD build - Added new 'Edg' token to the list of browsers. - Added '--no-ip-validation' command line to disable client IP validation - Added '--persist' and '--restore' options to persist to disk and restore a dump from disk. - Added Portuguese translation (pt-BR) - Added Swedish translation (SV) - Added the ability to parse server cache status and a new panel to display those metrics. - Changed accumulated time to work by default on '--persist' and '--restore'. - Changed back how the hits and visitors percentage is calculated to be more intuitive. - Changed Geo Location panel display default to show only if database file is provided ('LIBMAXMINDDB'). - Changed initial processing time from secs to HH:MM:SS in HTML output. - Changed '--max-items' for the static HTML report to allow no limit on output entries. - Changed required 'gettext' version to 0.19 - Changed to ignore 'SIGPIPE' with 'SIG_IGN' - Changed version to 10.15 for 'macOS Catalina'. - Ensure proper escaping on default AWSELB log format. - Ensure valid requests counter is not affected on duplicate entries when restoring data. - Fixed issue preventing Ctrl-C (SIGINT) for the curses interface to stop the program. - Fixed issue where HTML report wouldn't update the tables when changing per page option. - Fixed issue where it wouldn't find either the user's or global config file. - Fixed issue where changing the number of items per page in the HTML report would not automatically refresh the tables. - Fixed issue where last updated label was not updated in real-time. - Fixed issue where overall date range wasn't showing the right start/end parse dates. - Fixed issue where tailing a file could potentially re-parse part of the log. - Fixed memory leak when fetching country/continent while using 'LIBMAXMINDDB'. - Fixed several '-Wcast-qual' warnings. - Fixed unwanted added characters to the HTML output. - Fixed websocket issue returning a 400 due to request header size. - Increased 'MAX_LINE_CONF' so a JSON string can be properly parsed from the config file. - Removed deprecated option '--geoip-city-data' from config file. - Removed unnecessary dependency from snapcraft.yaml. - Removed Vagrantfile per #1410 - Removed some old browsers from the default curated list. - Replaced TokyoCabinet storage for a non-dependency in-memory persistent storage. - Updated Dockerfile. Changes to GoAccess 1.3 - Friday, November 23, 2018 - Added ability to store accumulated processing time into DB_GEN_STATS tcb file via '--accumulated-time' command line option. - Added additional Apache status codes to the list. - Added a few feed readers to the list. - Added 'Android 8 Oreo' to the list of OSs. - Added 'Android Pie 9' to the list of OSs. - Added --anonymize-ip command line option to anonymize ip addresses. - Added --browsers-file command line option to load a list of crawlers from a text file. - Added byte unit (PiB) to C formatter and refactored code. - Added byte unit (PiB) to JS formatter. - Added Chinese translation (i18n). - Added French translation (i18n). - Added '%h' date specifier to the allowed date character specifiers. - Added "HeadlessChrome" to the list of browsers. - Added --hide-referer command line option to hide referrers from report. - Added HTTP status code 429 (TOO MANY REQUESTS). - Added IGNORE_LEVEL_PANEL and IGNORE_LEVEL_REQ definitions. - Added Japanese translation (i18n). - Added macOS 10.14 Mojave to the list of OSs. - Added "Mastodon" user-agent to the list of crawlers/unix-like. - Added new fontawesome icons and use angle arrows in HTML paging. - Added new purple theme to HTML report and default to it. - Added --no-parsing-spinner command line option to switch off parsing spinner. - Added .ogv and ogg static file extension (ogg video, Ogg Vorbis audio). - Added OS X version numbers when outputting with --real-os. - Added parsing mechanism in an attempt capture more bots and to include unspecified bots/crawlers. - Added --pidfile command line option to the default config file. - Added Spanish translation (i18n). - Added SSL support for Docker goaccess build. - Added support to the WebSocket server for openssl-1.1*. - Added the ability to show/hide a chart per panel in the HTML report. - Added transparency to the navigation bar of the HTML report. - Added "WhatsApp" user-agent to the list of crawlers. - Changed default db folder so it adds the process id (PID). --db-path is required now when using --load-from-disk. - Changed Dockerfile to build from the current source. - Changed 'hits' to be right-aligned on TUI. - Changed to use faster slide animations on HTML report. - Changed wording from 'Bandwidth' to the proper term 'Tx. Amount'. - Ensure database filenames used by btree are less predictable. - Ensure HTML templates, CSS and JS files are minified when outputting report. - Ensure key phrases from Google are added even when https is used. - Ensure live report updates data & charts if tab/document has focus. - Ensure multiple 'Yandex' crawlers are properly parsed. - Ensure Safari has priority over most crawlers except the ones that are known to have it. - Ensure the request protocol on its own is properly parsed. - Ensure the right number of tests are performed against the given log. - Ensure user configuration is parsed first when available. - Ensure wss:// is used when connecting via HTTPS. - Ensure XFF parser takes into account escaped braces. - Fixed a regression where fifo-in/out would fail with ENXIO. - Fixed a regression where it would return EXIT_FAILURE on an empty log. - Fixed a (ssh) pipeline problem with fgetline()/fgets() when there is a race for data on stdin. - Fixed broken X-Forwarded-For (XFF) %~ specifier in certain parsing cases. - Fixed conf.filenames duplication problem if logs are via pipe. - Fixed float percent value on JSON/HTML output for locales using decimal comma. - Fixed issue where it was not possible to establish a Web Socket connection when attempting to parse and extract HTTP method. - Fixed issue where log formats with pipe delimiter were not properly parsed. - Fixed memory leak after config file path has been set (housekeeping). - Fixed memory leak when adding host to holder introduced in c052d1ea. - Fixed possible memory leak when hiding specific referrers. - Fixed several JS jshint warnings. - Fixed sudo installs on TravisCI. - Fixed UNDEFINED time range in HTML report when VISITORS panel was ignored. - Fixed unnecessary closing span tags from template. - Fixed use-after-free when two color items were found on color_list. Changes to GoAccess 1.2 - Tuesday, March 07, 2017 - Added a Dockerfile. - Added Amazon S3 bucket name as a VirtualHost (server block). - Added a replacement for GNU getline() to dynamically expand line buffer while maintaining real-time output. - Added --daemonize command line option to run GoAccess as daemon. - Added several improvements to the HTML report on small-screen devices. - Added option to the HTML report to auto-hide tables on small-screen devices. - Added --process-and-exit command line option to parse log and exit. - Added several feed readers to the list of browsers. - Added "-" single dash per convention to read from the standard input. - Added support for MaxMind GeoIP2. - Added the ability to read and follow from a pipe such as "tail -f access.log | goaccess -" - Added the ability to specify multiple logs as input sources, e.g.: "goaccess access.log access.log.1" while maintaining real-time output. - Added time unit (seconds) to the processed time label in the HTML/terminal output. - Added visitors' percent column to the terminal dashboard. - Changed D3 charts to dim Y-axis on mouseover. - Changed D3 charts to reflect HTML column sort. - Changed D3 charts to render only if within the viewport. This improves the overall real-time HTML performance. - Changed HTML report tables to render only if within the viewport. - Changed percentage calculation to be based on the total within each panel. - Ensure start/end dates are updated real-time in the HTML output. - Ensure "window.location.hostname" is used as the default WS server host. In most cases, this should avoid the need for specifying "--ws-url=host". Simply using "--real-time-html" should suffice. - Fixed issue on HTML report to avoid outputting scientific notation for all byte sizes. - Fixed integer overflow when calculating bar graph length on terminal output. - Fixed issue where global config file would override command line arguments. - Fixed issue where it wouldn't allow loading from disk without specifying a file when executed from the cron. - Fixed issue where parser couldn't read some X-Forwarded-For (XFF) formats. Note that this breaks compatibility with the original implementation of parsing XFF, but at the same time it gives much more flexibility on different formats. - Fixed issue where specifying fifo-in/out wouldn't allow HTML real-time output. - Fixed issue where the wrong number of parsed lines upon erroring out was displayed. - Fixed issue where the WebSocket server prevented to establish a connection with a client due to invalid UTF-8 sequences. - Fixed percent issue when calculating visitors field. - Updated the list of crawlers. Changes to GoAccess 1.1.1 - Wednesday, November 23, 2016 - Added data metric's "unique" count on each panel to the JSON/HTML outputs. - Changed D3 bar charts to use .rangeBands and avoid extra outer padding. - Fixed mouseover offset position issue on D3 bar charts. - Fixed possible heap overflow when an invalid status code was parsed and processed. This also ensures that only valid HTTP status codes are parsed >=100 or <= 599. - Fixed sluggish D3 chart re-rendering by changing how x-axis labels are displayed in the HTML report. Changes to GoAccess 1.1 - Tuesday, November 08, 2016 - Added a new layout to the HTML report and additional settings and changes. - Added --crawlers-only command line option to display crawlers/bots only. - Added --fifo-in and --fifo-out command line options to set websocket FIFO reader/writer. - Added --no-html-last-updated command line option. - Added --num-tests command line option. - Added --html-prefs command line option to to set default preferences for the HTML report. - Added "Amazon S3" Log Format to the list of predefined options. - Added "Android 7.1 Nougat" to the list of OSs. - Added "Android Marshmallow 6.0.1" to the list of OSs. - Added "Android Nougat 7.0" to the list of OSs. - Added "Feed Wrangler" to the list of feeds. - Added "Go-http-client" to the list of browsers. - Added "MicroMessenger" (WeChat) to the list of browsers. - Added "SemrushBot" to the list of crawlers. - Added "Remote User" panel to capture HTTP authentication requests. Use %e within the log-format variable to enable this panel. - Added tebibyte unit to the byte to string function converter. - Added the ability to parse reverse proxy logs that have multiple IPs. This adds the ability to parse the "X-Forwarded-For" field in a reverse proxy setup. - Added the ability to show which token didn't match log/date/time pattern. This also ensures that in the absence of data, its output is not treated as error but instead it produces an empty report. - Added the ability to specify a WebSocket protocol (ws|wss) through --ws-url. - Added the request query string to the W3C format. - Added TLS/SSL support to the HTML real-time report. - Changed browser classification for Google Cloud Clients. - Changed how "Darwin" OS was reported to display AppName instead. - Changed default W3C log format to use the URL path instead of full request. - Changed HTML default number of items on each table to 7. - Changed request parser to allow empty query strings. - Changed default HTML output theme to darkBlue. - Ensure every version of iOS is broken down under the OS panel. - Ensure latest JSON data is fast-forwarded when connection is opened. GoAccess now sends the latest JSON data to the client as soon as the WebSocket connection is opened. - Ensure localStorage is supported and enabled in the HTML report - Ensure unknown countries/continents are listed. - Fixed D3 chart width overflow issue on Edge. - Fixed integer to string key conversion for unique visitors. This fixes the issue where resulting keys would collide with existing keys and thus not keeping the right visitors count on certain panels. - Fixed memory leak when unable to URL decode %q specifier. - Fixed memory leak when unable to URL decode %U specifier. - Fixed month name abbreviation on app.js. - Fixed percentage integer overflow with large numbers on 32bits platforms. - Fixed percent calculation due to integer division rounding to zero. - Fixed possible code injection when outputting an HTML report. - Fixed segfault when using options -H or -M without an argument. - Removed timestamp from the HTML report title tag. Changes to GoAccess 1.0.2 - Tuesday, July 05, 2016 - Added minor changes to the HTML report stylesheet. - Added the ability to specify the WebSocket port within --ws-url. - Added the proper byte swap functions used by Sun Solaris. - Added the proper default --http-method/protocol values on the config file. - Changed bar transition to scale delay dynamically to the length of the dataset. - Fixed build issue on platforms lacking of open_memstream() by refactoring the JSON module to use its own memory buffer. - Fixed issue where the server wouldn't send cached buffer to slow clients. - Fixed OS X build check of ncursesw. - Implemented a throttle mechanism for slow clients to avoid caching too much data on the server-side. - Removed flickering on D3 line and bar chart redraw. Changes to GoAccess 1.0.1 - Friday, June 17, 2016 - Added Android version number along with the codename when using --real-os, e.g., "Lollipop 5.1". - Added some missing headers and function checks to configure.ac. - Fixed a regression where it wouldn't allow abbreviated date and time formats such as %F or %T. - Fixed build issues on systems running GLIBC older than 2.9, such as RHEL <= 5. - Fixed issue where it wouldn't send the whole buffer to a socket causing the real-time-html WebSocket server to progressively consume a lot more memory. - Fixed memory leak when using getline and follow mode enabled. - Fixed some buffer initialization issues on read_line() and perform_tail_follow(). - Fixed uint types in sha1 files. Changes to GoAccess 1.0 - Thursday, June 09, 2016 - Added --enable-panel= command line option to display the given module. - Added --json-pretty-print command line option to output pretty json. - Added --log-format= command-line shortcuts for standard log formats. - Added --origin command line option to match the origin WebSocket header. - Added --output= as a shortcut to --output-format. - Added a complete real-time functionality to the HTML output. - Added an option to set the max number of items to show per panel. - Added D3 Visualziations to the HTML dashboard. - Added metadata metrics to the each of the panels (JSON output) - Added option to specify time distribution specificity. - Added the ability to download a JSON file from the HTML report. - Added the ability to output multiple formats on a single log parse. - Added the ability to set the date specificity in hours. - Added the ability to sort all HTML tables on all panels. - Added the ability to specify a custom CSS and JS file to the HTML report. - Added user-agents to the JSON output per each host. - Added "Vivaldi" to the list of browsers. - Bootstrapify the HTML dashboard. - Changed configure.ac to use LDFLAGS instead of CFLAGS where applicable. - Changed default terminal color scheme to 256 Monokai if terminal supports 256 colors. - Changed GoAccess license to The MIT License (MIT) - Changed the visitors panel to display its dates continuously instead of top. - Default to 256 Monokai color scheme if terminal supports 256 colors. - Default to display HTTP method/protocol (if applicable). - Display the children's Max. T.S. as the parent's top Max. T.S. - Ensure the parent's Avg. T.S. displays parent's Cum. T.S. over parent's Hits. - Fixed color issue when switching from the color scheme dialog. - Fixed cross platform build issue when ncurses is built with and without termlib=tinfo. - Fixed curses header window issue where it wouldn't clear out on small window sizes. - Fixed issue where tail mode wouldn't parse full lines using getline(). - Fixed minor background color issue when using ncurses 6. - Fixed possible division by zero when calculating percentage. - Fixed singly link list node removal. - Fixed still reachable memory leak on GeoIP cleanup (geoip legacy >= 1.4.7). - Fixed various Valgrind's still reachable memory leaks. - Removed -Wredundant-decls. Changes to GoAccess 0.9.8 - Monday, February 29, 2016 - Added a more complete list of static extensions to the config file. - Added "Android 6.0 Marshmallow" to the list of OSs. - Added --no-tab-scroll command line option to disable scroll through panels on TAB. - Added the first and last log dates to the overall statistics panel. - Ensure GoAccess links correctly against libtinfo. - Ensure static content is case-insensitive verified. - Fixed bandwidth overflow issue (numbers > 2GB on non-x86_64 arch). - Fixed broken HTML layout when html-method/protocol is missing in config file. - Refactored parsing and display of available modules/panels. Changes to GoAccess 0.9.7 - Monday, December 21, 2015 - Added "Squid native" log format to the config file. - Fixed integer overflow when getting total bandwidth using the on-disk storage. - Fixed issue where a timestamp was stored as date under the visitors panel. - Fixed issue where config dialog fields were not cleared out on select. - Fixed issue where "Virtual Hosts" menu item wasn't shown in the HTML sidebar. Changes to GoAccess 0.9.6 - Tuesday, October 27, 2015 - Added --dcf command line option to view the default config file path. - Added --ignore-status the ability to ignore parsing status codes. - Added "Darwin" to the list of OSs. - Fixed segfault when appending data to a log (follow) without virtualhosts. Changes to GoAccess 0.9.5 - Thursday, October 22, 2015 - Added major performance improvements to the default storage when parsing and storing data (~%44 less memory, ~37% faster). - Added the ability to parse virtual hosts and a new panel to display metrics per virtual host. - Added the ability to parse HTTP/2 requests. - Added the ability to use GNU getline() to parse full line requests. - Added the ability to output debug info if a log file is specified, even without --enable-debug. - Added OS X "El Capitan". - Added WebDav HTTP methods and HTTP status from RFC 2518 and RFC 3253. - Fixed detection of some Googlebots. - Fixed issue where time served metrics were not shown when loading persisted data. - Fixed linker error on OSX: ld: library not found for -lrt. - Fixed percentage on the HTML output when excluding IPs. - Removed GLib dependency and refactored storage functionality. By removing this dependency, GoAccess is able to store data in a more efficient manner, for instance, it avoids storing integer data as void* (generic typing), thus greatly improving memory consumption for integers. Changes to GoAccess 0.9.4 - Tuesday, September 08, 2015 - Added --all-static-files command line option to parse static files containing a query string. - Added --invalid-requests command line option to log invalid requests to a file. - Added additional overall metric - total valid requests. - Added "%~" specifier to move forward through a log string until a non-space char is found. - Added the ability to parse native Squid access.log format. - Fixed a few issues in the configuration script. - Fixed inability to parse color due to a missing POSIX extension. "ERR:Invalid bg/fg color pairs" Changes to GoAccess 0.9.3 - Wednesday, August 26, 2015 - Added --no-column-names command line option to disable column name metrics. - Added a default color palette (Monokai) to the config file. - Added AWS Elastic Load Balancing to the list of predefined log/date/time formats. - Added CloudFlare status codes. - Added column headers for every enabled metric on each panel. - Added cumulative time served metric. - Added "DragonFly" BSD to the list of OSs. - Added maximum time served metric (slowest running requests). - Added "Slackbot" to the list of crawlers/browsers. - Added the ability to parse the query string specifier "%q" from a log file. - Added the ability to process logs incrementally. - Added the ability to set custom colors on the terminal output. - Disabled REFERRERS by default. - Ensure bandwidth metric is displayed only if %b specifier is parsed. - Fixed issue where the --sort-panel option wouldn't sort certain panels. - Fixed several compiler warnings. - Set predefined static files when no config file is used. - Updated "Windows 10" user agent from 6.4 (wrong) to 10.0.(actual) Changes to GoAccess 0.9.2 - Monday, July 06, 2015 - Added ability to fully parse browsers that contain spaces within a token. - Added multiple user agents to the list of browsers. - Added the ability to handle time served in milliseconds as a decimal number `%L`. - Added the ability to parse a timestamp in microseconds. - Added the ability to parse Google Cloud Storage access logs. - Added the ability to set a custom title and header in the HTML report. - Added "%x" as timestamp log-format specifier. - Ensure agents" hash table is destroyed upon exiting the program. - Ensure "Game Systems" are processed correctly. - Ensure visitors panel header is updated depending if crawlers are parsed or not. - Fixed issue where the date value was set as time value in the config dialog. - Fixed memory leak in the hits metrics when using the in-memory storage (GLib). Changes to GoAccess 0.9.1 - Tuesday, May 26, 2015 - Added --hl-header command line option to highlight active panel. - Added "Applebot" to the list of web crawlers. - Added "Microsoft Edge" to the list of browsers. - Added additional Nginx-specific status codes. - Ensure dump_struct is used only if using __GLIBC__. - Ensure goaccess image has an alt attribute on the HTML output for valid HTML5. - Ensure the config file path is displayed when something goes wrong (FATAL). - Ensure there is a character indicator to see which panel is active. - Fixed Cygwin compile issue attempting to use -rdynamic. - Fixed issue where a single IP did not get excluded after an IP range. - Fixed issue where requests showed up in the wrong view even when --no-query-string was used. - Fixed issue where some browsers were not recognized or marked as "unknown". - Fixed memory leak when excluding an IP range. - Fixed overflows on sort comparison functions. - Fixed segfault when using on-disk storage and loading persisted data with -a. - Removed keyphrases menu item from HTML output. - Split iOS devices from Mac OS X. Changes to GoAccess 0.9 - Thursday, March 19, 2015 - Added --geoip-database command line option for GeoIP Country/City IPv6. - Added "Windows 10 (v6.4)" to the real windows user agents. - Added ability to double decode an HTTP referer and agent. - Added ability to sort views through the command line on initial load. - Added additional data values to the backtrace report. - Added additional graph to represent the visitors metric on the HTML output. - Added AM_PROG_CC_C_O to configure.ac - Added "Android Lollipop" to the list of operating systems. - Added "average time served" metric to all panels. - Added "bandwidth" metric to all panels. - Added command line option to disable summary metrics on the CSV output. - Added numeric formatting to the HTML output to improve readability. - Added request method specifier to the default W3C log format. - Added the ability to ignore parsing and displaying given panel(s). - Added the ability to ignore referer sites from being counted. A good case scenario is to ignore own domains. i.e., owndomain.tld. This also allows ignoring hosts using wildcards. For instance, *.mydomain.tld or www.mydomain.* or www?.mydomain.tld - Added time/hour distribution module. e.g., 00-23. - Added "visitors" metrics to all panels. - Changed AC_PREREQ macro version so it builds on old versions of autoconf. - Changed GEOIP database load to GEOIP_MEMORY_CACHE for faster lookups. - Changed maximum number of choices to display per panel to 366 from 300. - Ensure config file is read from home dir if unable to open it from %sysconfdir% path. - Fixed array overflows when exceeding MAX_* limits on command line options. - Fixed a SEGFAULT where sscanf could not handle special chars within the referer. - Fixed character encoding on geolocation output (ISO-8859 to UTF8). - Fixed issue on wild cards containing "?" at the end of the string. - Fixed issue where a "Nothing valid to process" error was triggered when the number of invalid hits was equal to the number of valid hits. - Fixed issue where outputting to a file left a zero-byte file in pwd. - Improved parsing of operating systems. - Refactored log parser so it allows with ease the addition of new modules. This also attempts to decouple the core functionality from the rendering functions. It also gives the flexibility to add children metrics to root metrics for any module. e.g., Request A was visited by IP1, IP2, IP3, etc. - Restyled HTML output. Changes to GoAccess 0.8.5 - Sunday, September 14, 2014 - Fixed SEGFAULT when parsing a malformed request that doesn't have HTTP status. Changes to GoAccess 0.8.4 - Monday, September 08, 2014 - Added --444-as-404 command line option to handle nginx non-standard status code 444 as 404. - Added --4xx-to-unique-count command line option to count client errors (4xx) to the unique visitors count. Now by default it omits client errors (4xx) from being added to the unique visitors count as they are probably not welcomed visitors. 4xx errors are always counted in panels other than visitors, OS & browsers. - Added and updated operating systems, and browsers. - Added excluded IP hits count to the general statistics panel on all reports. - Added HTTP nonstandard code "444" to the status code list. - Fixed compile error due to missing include for type off_t (gcc 4.1). - Fixed issue when excluding IPv4/v6 ranges. - Removed request status field restriction. This allows parsing logs that contain only a valid date, IPv4/6 and host. Changes to GoAccess 0.8.3 - Monday, July 28, 2014 - Fixed SEGFAULT when parsing a CLF log format and using --ignore-crawlers. - Fixed parsing conflict between some Opera browsers and Chrome. - Fixed parsing of several feed readers that are Firefox/Safari-based. - Fixed Steam detection. - Added Huawei to the browser's list and removed it from the OS's list. Changes to GoAccess 0.8.2 - Monday, July 20, 2014 - Added --version command line option. - Added --ignore-crawlers command line option to ignore crawlers. - Added ability to parse dates containing whitespaces in between, e.g., "Jul 15 20:13:59" (syslog format). - Added a variety of browsers, game systems, feed readers, and podcasts. - Added missing up/down arrows to the help section. - Added the ability to ignore multiple IPv4/v6 and IP ranges. - Added the PATCH method according to RFC 5789. - Fixed GeoLocation percent issue for the JSON, CSV and HTML outputs. - Fixed memory leak when excluding one or multiple IPs. Changes to GoAccess 0.8.1 - Monday, June 16, 2014 - Added ability to add/remove static files by extension through the config file. - Added ability to print backtrace on segmentation fault. - Escaped JSON strings correctly according to [RFC4627]. - Fixed encoding issue when extracting keyphrases for some HTTP referrers. - Fixed issue where HTML bar graphs were not shown due to numeric locale. - Fixed issue with URIs containing "\r?\n" thus breaking the corresponding output. - Make sure request string is URL decoded on all outputs. Changes to GoAccess 0.8 - Tuesday, May 20, 2014 - Added APT-HTTP to the list of browsers. - Added data persistence and ability to load data from disk. - Added IE11 to the list of browsers. - Added IEMobile to the list of browsers. - Added multiple command line options. - Added Nagios check_http to the list of browsers. - Added parsing progress metrics - total requests / requests per second. - Added the ability to parse a GeoLiteCity.dat to get the city given an IPv4. - Changed the way the configuration file is parsed. This will parse all configuration options under ~/.goaccessrc or the specified config file and will feed getopt_long with the extracted key/value pairs. This also allows the ability to have comments on the config file which won't be overwritten. - Ensure autoconf determines the location of ncurses headers. - Fixed issue where geo_location_data was NULL. - Fixed issue where GoAccess did not run without a tty allocated to it. - Fixed potential memory leak on --log-file realpath(). - Fixed Solaris build errors. - Implemented an on-memory hash database using Tokyo Cabinet. This implementation allows GoAccess not to rely on GLib's hash table if one is needed. - Implemented large file support using an on-disk B+ Tree database. This implementation allows GoAccess not to hold everything in memory but instead it uses an on-disk B+ Tree database. - Trimmed leading and trailing whitespaces from keyphrases module. Changes to GoAccess 0.7.1 - Monday, February 17, 2014 - Added --no-color command line option to turn off color output. - Added --real-os command line option to get real OS names, e.g., "Android, Windows, Mac". - Added ability to log debug messages to a file. - Added ability to parse tab-separated log format strings. - Added ability to support terminals without colors. - Added command line option to append HTTP method to request. - Added command line option to append HTTP protocol to request. - Added long options to command-line. - Added missing "Win 9x 4.90" (Windows Me) user-agent. - Added missing Windows RT user-agent. - Ensure mouse click does not reset expanded module if it is the same. - Fixed Amazon CloudFront tab-separated log format. - Fixed "FreeBSD style" ncursesw built into system. - Fixed HTML report issue where data cell would not wrap. - Fixed issue when isatty() could not find a valid file descriptor. - Fixed SymbianOS user-agent and retrieve its version. Changes to GoAccess 0.7 - Monday, December 15, 2013 - Added a command line option to ignore request query strings. - Added additional compiler flags & fixed several warnings. - Added additional static file extensions. - Added country per IP to HOSTS module (HTML & JSON). - Added DEBUG mode to Makefile & -O2 to default release. - Added GEOLOCATION report to all outputs - includes continents/countries. - Added IP resolver to HTML and JSON output. - Added module numbers to each module header. - Added the ability to output JSON and CSV. - Added Windows NT 6.3 (Win 8.1) to the list. - Fixed buffer overflow issue with realpath. - New HTML report - HTML5 + CSS styles. - Properly split request line into the three request modules. Changes to GoAccess 0.6.1 - Monday, October 07, 2013 - Added active module indication by name. - Added additional crawlers to the list. - Added custom configuration file option. - Added human-readable string when unable to open log. - Added missing include when compiling on OSX 10.6. - Added optional mouse support to the main dashboard. - Added the ability to select active module by number (keys). - Added the rest of HTTP methods according to RFC2616. - Changed referring site sscanf format to process multiple URLs. - Changed the default color scheme to monochrome. - Fixed issue where %T was not processing floating-point numbers. - Fixed percentage issue for browsers and os modules. - Fixed SIGSEGV when reading from stdin to stdout. - Improved performance when expanding a module. - Reduced memory consumption by decreasing number of dns threads. - Removed ^UP/^DOWN due to a key mapping conflict. Changes to GoAccess 0.6 - Monday, July 15, 2013 - Added a bunch of minor fixes and changes. - Added and updated list of browsers and operating systems. - Added a predefined log format/date for the Amazon CloudFront (Download Distribution). - Added parsing/processing indicators. - Added the ability to independently sort each module. - Added the ability to search across the whole dashboard with the option to use regular expressions. - Config window now accepts [ENTER] to continue or F10. - Fixed issue where Opera +15 was identified as Chrome. - Implemented the ability to parse the time taken to serve the request, in microseconds and seconds. - Improved memory usage and better performance in general. - Moved away from the original pop-up UI to a new expandable dashboard allowing data to be processed in real-time. - Sanitized HTML output with html entities for special chars. - Updated the hosts module so it shows the reverse DNS as a sub node. Changes to GoAccess 0.5 - Monday, June 04, 2012 - Added ability to output a full stats report to a file. - Added a key shortcut to scroll top/bottom. - Added a new include sys/socket.h - BSD - Added support for IPv6 - Added the ability to parse a custom format string. - Fixed google cache key-phrases. - Fixed issue on empty Google query strings. - Fixed issue on Opera agents where version was not recognized correctly. - Fixed other minor fixes and changes. Changes to GoAccess 0.4.2 - Monday, January 03, 2011 - Added UTF-8 support. Now it should handle properly wide-character/UTF-8. Run ./configure --enable-utf8 - Fixed a minor bug when adding monthly totals on visitors subwin. - Removed -lrt since GoAccess does not link to librt. (OS X doesn't include librt) Changes to GoAccess 0.4.1 - Monday, December 13, 2010 - Added more flexibility when resizing the terminal. Should work fine with the standard 80x24. - Added the ability to pass a flag to ./configure so GeoIP can be enabled if needed. - Implemented a pipeline from stdin, so the input doesn't have to be only a file. Changes to GoAccess 0.4 - Tuesday, November 30, 2010 - Added graphs to the unique_visitors subwin. - Implemented bandwidth per day, and host. - Implemented list of agents for specific hosts. - Rewrote hash tables iterative code to avoid the use of GHashTableIter, this way it works with all GLib > 2.0.0. - Various bug fixes and code cleanups (mainly in the subwin modules). Changes to GoAccess 0.3.3 - Monday, September 27, 2010 - Changed tarball's filename. - Fixed a request size parsing issue. Due to malformed syntax on the HTTP protocol, bandwidth was reset to 0. Ex. "HEAD /" 400 20392 - Fixed a segfault when goaccess was executed without any options but with an additional unknown argument. Changes to GoAccess 0.3.2 - Thursday, September 09, 2010 - Fixed an agent parsing issue. As a result, operating systems were not properly counted. Changes to GoAccess 0.3.1 - Friday, September 03, 2010 - Added a color scheme implementation Changes to GoAccess 0.3 - Sunday, August 29, 2010 - Added a counter for total requests since initial parse was implemented - Added a more detailed and comprehensive browser and os report - Added bandwidth details for requested files - Added percentage details on modules 2, 3, 4, 5, 10, 11 - Code cleanups - Fixed a potential segmentation fault when resizing main window - Fixed a segmentation fault on pop-up window search if haystack was null - Fixed invalid entries when parsing status codes - Implemented a real support for LFS - Handles files larger than 2 GiB on 32-bit systems - Implemented support for "vhost_combined" log format - Changed position of data/graphs depending on # of hits Changes to GoAccess 0.2 - Sunday, July 25, 2010 - Added a keyphrases report coming from Google search engine. This includes, raw, cache, and translation queries. - Fixed a memory leak when invalid entries were parsed - Fixed a potential buffer overflow. - Implemented real-time statistics (RTS). Data will be appended as the log file grows. Equivalent to "tail -f" on Unix systems - Implemented screen resize functionality - Simplified creation of the "unique visitors" hash-key. - Simplified the "process_unique_data" function - Various small speed increases & code cleanup Changes to GoAccess 0.1.2 - Monday, July 12, 2010 - Fixed a segmentation fault when parsing logs with unusual request type. Ex. "GET HTTP/1.1 HTTP/1.1" Changes to GoAccess 0.1.1 - Saturday, July 10, 2010 - Added an enhanced error handling - Added an extra macro on configure.ac to check against GHashTableIter. ./configure might not check for glib 2.16 that introduced "GHashTableIter". - Added Glibc LFS - Cleaned up code a little bit - Fixed a segmentation fault when displaying the help text on x86_64. - Fixed assignments in conditions. In case the assignment is actually intended put extra parenthesis around it. This will shut GCC (and others) up. - Fixed casts associated with "g_hash_table_iter_next". - Fixed comparison between signed and unsigned integer types. - Fixed function declarations. - Fixed includes. - Fixed two format strings. (If the error was ever triggered, it'd most likely lead to a segfault) Changes to GoAccess 0.1 - Tuesday, July 06, 2010 - Initial release 0.1 ================================================ FILE: DOCKER.md ================================================ # Docker image features * This command uses the language set for this system. If that does not support it will be output in English. [**Supported Language**](https://github.com/allinurl/goaccess/raw/master/po/LINGUAS) * This image supports building on the ARM architecture (e.g. Raspberry Pi) * Do you want to change the timezone? Use the `-e` option to pass the time-zone setting to Docker. (e.g. `-e TZ="America/New_York"`) * The container is built with geo-location support (see [the manual](https://goaccess.io/man#options)). To enable the respective panel, mount the geolocation database using `-v /path/to/GeoLite2-City.mmdb:/GeoLite2-City.mmdb` and specify `--geoip-database /GeoLite2-City.mmdb` when running GoAccess. * If you made changes to the config file after building the image, you don't have to rebuild from scratch. Simply restart the container: ``` docker restart goaccess ``` * If you had already run the container, you may have to stop and remove it first: ``` docker stop goaccess docker rm goaccess ``` * The container and image can be completely removed as follows: ``` docker stop goaccess docker rm goaccess docker rmi allinurl/goaccess ``` ================================================ FILE: Dockerfile ================================================ # Build stage FROM alpine:3.20 AS builds RUN apk add --no-cache \ autoconf \ automake \ build-base \ clang \ gettext-dev \ libmaxminddb-dev \ openssl-dev \ linux-headers \ ncurses-dev \ pkgconf \ tzdata # GoAccess COPY . /goaccess WORKDIR /goaccess RUN autoreconf -fiv && rm -rf autom4te.cache RUN CC="clang" CFLAGS="-O3" LIBS="$(pkg-config --libs openssl)" ./configure --prefix=/usr --enable-utf8 --with-openssl --enable-geoip=mmdb RUN make -j$(nproc) && make DESTDIR=/dist install # Check dynamic dependencies RUN ldd /dist/usr/bin/goaccess && echo "Dependencies checked" # Runtime stage FROM alpine:3.20 RUN apk add --no-cache \ gettext-libs \ libmaxminddb \ ncurses-libs \ openssl \ tzdata # Copy GoAccess binary and assets COPY --from=builds /dist/usr/bin/goaccess /usr/bin/goaccess COPY --from=builds /dist/usr/share /usr/share COPY --from=builds /usr/share/zoneinfo /usr/share/zoneinfo # Set up volume and port VOLUME /var/www/goaccess EXPOSE 7890 ENTRYPOINT ["/usr/bin/goaccess"] CMD ["--help"] ================================================ FILE: Dockerfile.debian-12 ================================================ # Used to have all compile dependencies isolated in a container image. FROM debian:12 RUN apt update -qqq RUN apt install -y \ libncurses-dev \ libssl-dev \ libmaxminddb-dev \ build-essential \ autoconf \ gettext \ autopoint # GoAccess WORKDIR /goaccess ENTRYPOINT ["./build-dynamic.sh"] ================================================ FILE: Makefile.am ================================================ #AUTOMAKE_OPTIONS = foreign bin_PROGRAMS = goaccess AUTOMAKE_OPTIONS = subdir-objects dist_noinst_DATA = \ resources/tpls.html \ resources/css/app.css \ resources/css/bootstrap.min.css \ resources/css/fa.min.css \ resources/js/app.js \ resources/js/charts.js \ resources/countries-110m.json \ resources/cities-10m.json \ resources/js/d3.v7.min.js \ resources/js/topojson.v3.min.js \ resources/js/hogan.min.js noinst_PROGRAMS = bin2c bin2c_SOURCES = src/bin2c.c BUILT_SOURCES = \ src/tpls.h \ src/bootstrapcss.h \ src/facss.h \ src/appcss.h \ src/d3js.h \ src/topojsonjs.h \ src/hoganjs.h \ src/countries110m.h \ src/cities10m.h \ src/chartsjs.h \ src/appjs.h CLEANFILES = \ src/tpls.h \ src/bootstrapcss.h \ src/facss.h \ src/appcss.h \ src/d3js.h \ src/topojsonjs.h \ src/hoganjs.h \ src/countries110m.h \ src/cities10m.h \ src/chartsjs.h \ src/appjs.h \ resources/tpls.html.tmp \ resources/countries-110m.json.tmp \ resources/cities-10m.json.tmp \ resources/css/bootstrap.min.css.tmp \ resources/css/fa.min.css.tmp \ resources/css/app.css.tmp \ resources/js/d3.v7.min.js.tmp \ resources/js/topojson.v3.min.js.tmp \ resources/js/hogan.min.js.tmp \ resources/js/charts.js.tmp \ resources/js/app.js.tmp # Tpls src/tpls.h: bin2c$(EXEEXT) $(srcdir)/resources/tpls.html if HAS_SEDTR cat $(srcdir)/resources/tpls.html | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/tpls.html.tmp ./bin2c $(srcdir)/resources/tpls.html.tmp src/tpls.h tpls else ./bin2c $(srcdir)/resources/tpls.html src/tpls.h tpls endif # countries.json src/countries110m.h: bin2c$(EXEEXT) $(srcdir)/resources/countries-110m.json if HAS_SEDTR cat $(srcdir)/resources/countries-110m.json | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/countries-110m.json.tmp ./bin2c $(srcdir)/resources/countries-110m.json.tmp src/countries110m.h countries_json else ./bin2c $(srcdir)/resources/countries-110m.json src/countries110m.h countries_json endif # cities.json src/cities10m.h: bin2c$(EXEEXT) $(srcdir)/resources/cities-10m.json if HAS_SEDTR cat $(srcdir)/resources/cities-10m.json | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/cities-10m.json.tmp ./bin2c $(srcdir)/resources/cities-10m.json.tmp src/cities10m.h cities_json else ./bin2c $(srcdir)/resources/cities-10m.json src/cities10m.h cities_json endif # Bootstrap src/bootstrapcss.h: bin2c$(EXEEXT) $(srcdir)/resources/css/bootstrap.min.css if HAS_SEDTR cat $(srcdir)/resources/css/bootstrap.min.css | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/css/bootstrap.min.css.tmp ./bin2c $(srcdir)/resources/css/bootstrap.min.css.tmp src/bootstrapcss.h bootstrap_css else ./bin2c $(srcdir)/resources/css/bootstrap.min.css src/bootstrapcss.h bootstrap_css endif # Font Awesome src/facss.h: bin2c$(EXEEXT) $(srcdir)/resources/css/fa.min.css if HAS_SEDTR cat $(srcdir)/resources/css/fa.min.css | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/css/fa.min.css.tmp ./bin2c $(srcdir)/resources/css/fa.min.css.tmp src/facss.h fa_css else ./bin2c $(srcdir)/resources/css/fa.min.css src/facss.h fa_css endif # App.css src/appcss.h: bin2c$(EXEEXT) $(srcdir)/resources/css/app.css if HAS_SEDTR cat $(srcdir)/resources/css/app.css | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/css/app.css.tmp ./bin2c $(srcdir)/resources/css/app.css.tmp src/appcss.h app_css else ./bin2c $(srcdir)/resources/css/app.css src/appcss.h app_css endif # D3.js src/d3js.h: bin2c$(EXEEXT) $(srcdir)/resources/js/d3.v7.min.js if HAS_SEDTR cat $(srcdir)/resources/js/d3.v7.min.js | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/js/d3.v7.min.js.tmp ./bin2c $(srcdir)/resources/js/d3.v7.min.js.tmp src/d3js.h d3_js else ./bin2c $(srcdir)/resources/js/d3.v7.min.js src/d3js.h d3_js endif # topojson.js src/topojsonjs.h: bin2c$(EXEEXT) $(srcdir)/resources/js/topojson.v3.min.js if HAS_SEDTR cat $(srcdir)/resources/js/topojson.v3.min.js | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/js/topojson.v3.min.js.tmp ./bin2c $(srcdir)/resources/js/topojson.v3.min.js.tmp src/topojsonjs.h topojson_js else ./bin2c $(srcdir)/resources/js/topojson.v3.min.js src/topojsonjs.h topojson_js endif # Hogan.js src/hoganjs.h: bin2c$(EXEEXT) $(srcdir)/resources/js/hogan.min.js if HAS_SEDTR cat $(srcdir)/resources/js/hogan.min.js | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/js/hogan.min.js.tmp ./bin2c $(srcdir)/resources/js/hogan.min.js.tmp src/hoganjs.h hogan_js else ./bin2c $(srcdir)/resources/js/hogan.min.js src/hoganjs.h hogan_js endif # Charts.js src/chartsjs.h: bin2c$(EXEEXT) $(srcdir)/resources/js/charts.js if HAS_SEDTR cat $(srcdir)/resources/js/charts.js | sed -E "s@(,|;)[[:space:]]*//..*@\1@g" | sed -E "s@^[[:space:]]*//..*@@g" | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/js/charts.js.tmp ./bin2c $(srcdir)/resources/js/charts.js.tmp src/chartsjs.h charts_js else ./bin2c $(srcdir)/resources/js/charts.js src/chartsjs.h charts_js endif if DEBUG ./bin2c $(srcdir)/resources/js/charts.js src/chartsjs.h charts_js endif # App.js src/appjs.h: bin2c$(EXEEXT) $(srcdir)/resources/js/app.js if HAS_SEDTR cat $(srcdir)/resources/js/app.js | sed -E "s@(,|;)[[:space:]]*//..*@\1@g" | sed -E "s@^[[:space:]]*//..*@@g" | sed "s/^[[:space:]]*//" | sed "/^$$/d" | tr -d "\r\n" > $(srcdir)/resources/js/app.js.tmp ./bin2c $(srcdir)/resources/js/app.js.tmp src/appjs.h app_js else ./bin2c $(srcdir)/resources/js/app.js src/appjs.h app_js endif if DEBUG ./bin2c $(srcdir)/resources/js/app.js src/appjs.h app_js endif confdir = $(sysconfdir)/goaccess dist_conf_DATA = config/goaccess.conf dist_conf_DATA += config/browsers.list dist_conf_DATA += config/podcast.list goaccess_SOURCES = \ src/base64.c \ src/base64.h \ src/browsers.c \ src/browsers.h \ src/color.c \ src/color.h \ src/commons.c \ src/commons.h \ src/csv.c \ src/csv.h \ src/dialogs.c \ src/dialogs.h \ src/error.c \ src/error.h \ src/fileio.c \ src/fileio.h \ src/gchart.c \ src/gchart.h \ src/gdashboard.c \ src/gdashboard.h \ src/gdns.c \ src/gdns.h \ src/gholder.c \ src/gholder.h \ src/gkhash.c \ src/gkhash.h \ src/gkmhash.c \ src/gkmhash.h \ src/gmenu.c \ src/gmenu.h \ src/goaccess.c \ src/goaccess.h \ src/gslist.c \ src/gslist.h \ src/gstorage.c \ src/gstorage.h \ src/gwsocket.c \ src/gwsocket.h \ src/json.c \ src/json.h \ src/khash.h \ src/labels.h \ src/opesys.c \ src/opesys.h \ src/options.c \ src/options.h \ src/output.c \ src/output.h \ src/parser.c \ src/parser.h \ src/persistence.c \ src/persistence.h \ src/pdjson.c \ src/pdjson.h \ src/settings.c \ src/settings.h \ src/sort.c \ src/sort.h \ src/tpl.c \ src/tpl.h \ src/ui.c \ src/ui.h \ src/util.c \ src/util.h \ src/websocket.c \ src/websocket.h \ src/xmalloc.c \ src/xmalloc.h if WITH_SSL goaccess_SOURCES += \ src/wsauth.c \ src/wsauth.h endif if USE_SHA1 goaccess_SOURCES += \ src/sha1.c \ src/sha1.h endif if USE_MMAP goaccess_SOURCES += \ src/win/mman.h \ src/win/mmap.c endif if GEOIP_LEGACY goaccess_SOURCES += \ src/geoip1.c \ src/geoip1.h endif if GEOIP_MMDB goaccess_SOURCES += \ src/geoip2.c \ src/geoip1.h endif if DEBUG AM_CFLAGS = -DDEBUG -O0 -DSYSCONFDIR=\"$(sysconfdir)\" else AM_CFLAGS = -O2 -DSYSCONFDIR=\"$(sysconfdir)\" endif if WITH_RDYNAMIC AM_LDFLAGS = -rdynamic endif if WITH_ZLIB AM_LDFLAGS = -lz endif goaccess_LDADD = -lm AM_CFLAGS += -Wall -Wextra -Wnested-externs -Wformat=2 -g AM_CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations AM_CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare AM_CFLAGS += -Wbad-function-cast -Wcast-align AM_CFLAGS += -Wdeclaration-after-statement -Wshadow -Wold-style-definition if WITH_ASAN AM_CFLAGS += -fsanitize=address endif dist_man_MANS = goaccess.1 SUBDIRS = po ACLOCAL_AMFLAGS = -I m4 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ EXTRA_DIST = config.rpath ================================================ FILE: NEWS ================================================ Copyright (C) 2009-2026 Gerardo Orellana * Version history: - 1.10.1 [Saturday, Feb 14, 2026] . GoAccess 1.10.1 Released. See ChangeLog for new features/bug-fixes. - 1.10 [Tuesday, Feb 10, 2026] . GoAccess 1.10 Released. See ChangeLog for new features/bug-fixes. - 1.9.4 [Monday, Mar 31, 2025] . GoAccess 1.9.4 Released. See ChangeLog for new features/bug-fixes. - 1.9.3 [Friday, May 31, 2024] . GoAccess 1.9.3 Released. See ChangeLog for new features/bug-fixes. - 1.9.2 [Friday, April 12, 2024] . GoAccess 1.9.2 Released. See ChangeLog for new features/bug-fixes. - 1.9.1 [Tuesday, February 05, 2024] . GoAccess 1.9.1 Released. See ChangeLog for new features/bug-fixes. - 1.9 [Tuesday, January 30, 2024] . GoAccess 1.9 Released. See ChangeLog for new features/bug-fixes. - 1.8.1 [Tuesday, October 31, 2023] . GoAccess 1.8.1 Released. See ChangeLog for new features/bug-fixes. - 1.8 [Saturday, September 30, 2023] . GoAccess 1.8 Released. See ChangeLog for new features/bug-fixes. - 1.7.2 [Friday, March 31, 2023] . GoAccess 1.7.2 Released. See ChangeLog for new features/bug-fixes. - 1.7.1 [Tuesday, February 28, 2023] . GoAccess 1.7.1 Released. See ChangeLog for new features/bug-fixes. - 1.7 [Saturday, December 31 , 2022] . GoAccess 1.7 Released. See ChangeLog for new features/bug-fixes. - 1.6.5 [Monday, October 31 , 2022] . GoAccess 1.6.5 Released. See ChangeLog for new features/bug-fixes. - 1.6.4 [Friday, September 30 , 2022] . GoAccess 1.6.4 Released. See ChangeLog for new features/bug-fixes. - 1.6.3 [Thursday, August 31 , 2022] . GoAccess 1.6.3 Released. See ChangeLog for new features/bug-fixes. - 1.6.2 [Thursday, July 14 , 2022] . GoAccess 1.6.2 Released. See ChangeLog for new features/bug-fixes. - 1.6.1 [Thursday, June 30 , 2022] . GoAccess 1.6.1 Released. See ChangeLog for new features/bug-fixes. - 1.6 [Tuesday, May 31 , 2022] . GoAccess 1.6 Released. See ChangeLog for new features/bug-fixes. - 1.5.7 [Thursday, April 28 , 2022] . GoAccess 1.5.7 Released. See ChangeLog for new features/bug-fixes. - 1.5.6 [Wednesday, March 30, 2022] . GoAccess 1.5.6 Released. See ChangeLog for new features/bug-fixes. - 1.5.5 [Monday, January 31, 2022] . GoAccess 1.5.5 Released. See ChangeLog for new features/bug-fixes. - 1.5.4 [Saturday, December 25, 2021] . GoAccess 1.5.4 Released. See ChangeLog for new features/bug-fixes. - 1.5.3 [Thursday, November 25, 2021] . GoAccess 1.5.3 Released. See ChangeLog for new features/bug-fixes. - 1.5.2 [Tuesday, Sep 28, 2021] . GoAccess 1.5.2 Released. See ChangeLog for new features/bug-fixes. - 1.5.1 [Wednesday, Jun 30, 2021] . GoAccess 1.5.1 Released. See ChangeLog for new features/bug-fixes. - 1.5 [Wednesday, May 26, 2021] . GoAccess 1.5 Released. See ChangeLog for new features/bug-fixes. - 1.4.6 [Sunday, February 28, 2021] . GoAccess 1.4.6 Released. See ChangeLog for new features/bug-fixes. - 1.4.5 [Tuesday, January 26, 2021] . GoAccess 1.4.5 Released. See ChangeLog for new features/bug-fixes. - 1.4.4 [Monday, January 25, 2021] . GoAccess 1.4.4 Released. See ChangeLog for new features/bug-fixes. - 1.4.3 [Friday, December 04, 2020] . GoAccess 1.4.3 Released. See ChangeLog for new features/bug-fixes. - 1.4.2 [Monday, November 16, 2020] . GoAccess 1.4.2 Released. See ChangeLog for new features/bug-fixes. - 1.4.1 [Monday, November 09, 2020] . GoAccess 1.4.1 Released. See ChangeLog for new features/bug-fixes. - 1.4 [Monday, May 18, 2020] . GoAccess 1.4 Released. See ChangeLog for new features/bug-fixes. - 1.3 [Friday, November 23, 2018] . GoAccess 1.3 Released. See ChangeLog for new features/bug-fixes. - 1.2 [Tuesday, March 07, 2017] . GoAccess 1.2 Released. See ChangeLog for new features/bug-fixes. - 1.1.1 [Wednesday, November 23, 2016] . GoAccess 1.1.1 Released. See ChangeLog for new features/bug-fixes. - 1.1 [Tuesday, November 08, 2016] . GoAccess 1.1 Released. See ChangeLog for new features/bug-fixes. - 1.0.2 [Tuesday, July 05, 2016] . GoAccess 1.0.2 Released. See ChangeLog for new features/bug-fixes. - 1.0.1 [Friday, June 17, 2016] . GoAccess 1.0.1 Released. See ChangeLog for new features/bug-fixes. - 1.0 [Thursday, June 09, 2016] . GoAccess 1.0 Released. See ChangeLog for new features/bug-fixes. - 0.9.8 [Monday, February 29, 2016] . GoAccess 0.9.8 Released. See ChangeLog for new features/bug-fixes. - 0.9.7 [Monday, December 21, 2015] . GoAccess 0.9.7 Released. See ChangeLog for new features/bug-fixes. - 0.9.6 [Tuesday, October 27, 2015] . GoAccess 0.9.6 Released. See ChangeLog for new features/bug-fixes. - 0.9.5 [Thursday, October 22, 2015] . GoAccess 0.9.5 Released. See ChangeLog for new features/bug-fixes. - 0.9.4 [Tuesday, September 08 , 2015] . GoAccess 0.9.4 Released. See ChangeLog for new features/bug-fixes. - 0.9.3 [Wednesday, August 28, 2015] . GoAccess 0.9.3 Released. See ChangeLog for new features/bug-fixes. - 0.9.2 [Monday, July 06, 2015] . GoAccess 0.9.2 Released. See ChangeLog for new features/bug-fixes. - 0.9.1 [Tuesday, May 26, 2015] . GoAccess 0.9.1 Released. See ChangeLog for new features/bug-fixes. - 0.9 [Thursday, March 19, 2015] . GoAccess 0.9 Released. See ChangeLog for new features/bug-fixes. - 0.8.5 [Sunday, September 14, 2014] . GoAccess 0.8.5 Released. See ChangeLog for new features/bug-fixes. - 0.8.4 [Monday, September 08, 2014] . GoAccess 0.8.4 Released. See ChangeLog for new features/bug-fixes. - 0.8.3 [Monday, July 28, 2014] . GoAccess 0.8.3 Released. See ChangeLog for new features/bug-fixes. - 0.8.2 [Monday, July 21, 2014] . GoAccess 0.8.2 Released. See ChangeLog for new features/bug-fixes. - 0.8.1 [Monday, June 16, 2014] . GoAccess 0.8.1 Released. See ChangeLog for new features/bug-fixes. - 0.8 [Monday, May 20, 2013] . GoAccess 0.8 Released. See ChangeLog for new features/bug-fixes. - 0.7.1 [Monday, February 17, 2014] . GoAccess 0.7.1 Released. See ChangeLog for new features/bug-fixes. - 0.7 [Monday, December 16, 2013] . GoAccess 0.7 Released. See ChangeLog for new features/bug-fixes. - 0.6.1 [Monday, October 07, 2013] . GoAccess 0.6.1 Released. See ChangeLog for new features/bug-fixes. - 0.6 [Monday, July 15, 2013] . GoAccess 0.6 Released. See ChangeLog for new features/bug-fixes. - 0.5 [Monday, June 04, 2012] . GoAccess 0.5 Released. See ChangeLog for new features/bug-fixes. - 0.4.2 [Monday, January 03, 2011] . GoAccess 0.4.2 Released. See ChangeLog for new features/bug-fixes. - 0.4.1 [Monday, December 13, 2010] . GoAccess 0.4.1 Released. See ChangeLog for new features/bug-fixes. - 0.4 [Tuesday, November 30, 2010] . GoAccess 0.4 Released. See ChangeLog for new features/bug-fixes. - 0.3.3 [Monday, September 27, 2010] . GoAccess 0.3.3 Released. See ChangeLog for new features/bug-fixes. - 0.3.2 [Thursday, September 09 2010] . GoAccess 0.3.2 Released. See ChangeLog for new features/bug-fixes. - 0.3.1 [Friday, September 03, 2010] . GoAccess 0.3.1 Released. See ChangeLog for new features/bug-fixes. - 0.3 [Sunday, August 29, 2010] . GoAccess 0.3 Released. See ChangeLog for new features/bug-fixes. - 0.2 [Sunday, July 25, 2010] . GoAccess 0.2 Released. See ChangeLog for new features/bug-fixes. - 0.1.2 [Tuesday, July 13, 2010] . GoAccess 0.1.2 Released. See ChangeLog for new features/bug-fixes. - 0.1.1 [Saturday, July 10, 2010] . GoAccess 0.1.1 Released. See ChangeLog for new features/bug-fixes. - 0.1 [Wednesday, July 07, 2010] . Welcome to the GoAccess 0.1 Released. ================================================ FILE: README.md ================================================ GoAccess [![C build](https://github.com/allinurl/goaccess/actions/workflows/build-test.yml/badge.svg)](https://github.com/allinurl/goaccess/actions/workflows/build-test.yml) [![GoAccess](https://goaccess.io/badge)](https://goaccess.io) ======== ## What is it? ## GoAccess is an open source, real-time web log analyzer and interactive viewer that runs in a terminal on *nix systems or directly in your browser. Designed with system administrators, DevOps engineers, and security professionals in mind, it delivers fast, actionable HTTP statistics and visual server reports on the fly. GoAccess parses your web server logs in real time and presents the data directly in the terminal or via a live HTML dashboard, making it easy to monitor traffic, detect anomalies, and troubleshoot issues instantly. More info at: [https://goaccess.io](https://goaccess.io/?src=gh). [![GoAccess Terminal Dashboard](https://goaccess.io/images/goaccess-real-time-term-gh-2026-1.png?2026021201)](https://goaccess.io/) [![GoAccess HTML Dashboard](https://goaccess.io/images/goaccess-real-time-html-gh-2026.png?2026021201)](https://rt.goaccess.io/?src=gh) ## Features ## GoAccess parses the specified web log file and outputs the data to the X terminal. Features include: * **Completely Real Time**
All panels and metrics are timed to be updated every 200 ms on the terminal output and every second on the HTML output. * **Minimal Configuration needed**
You can just run it against your access log file, pick the log format and let GoAccess parse the access log and show you the stats. * **Track Application Response Time**
Track the time taken to serve the request. Extremely useful if you want to track pages that are slowing down your site. * **WebSocket Authentication:**
GoAccess offers enhanced WebSocket authentication, supporting local and external JWT verification, with secure token refresh capabilities and seamless integration with external authentication systems. * **Nearly All Web Log Formats**
GoAccess allows any custom log format string. Predefined options include, Apache, Nginx, Amazon S3, Elastic Load Balancing, CloudFront, etc. * **Incremental Log Processing**
Need data persistence? GoAccess has the ability to process logs incrementally through the on-disk persistence options. * **Only one dependency**
GoAccess is written in C. To run it, you only need ncurses as a dependency. That's it. It even features its own Web Socket server — http://gwsocket.io/. * **Visitors**
Determine the amount of hits, visitors, bandwidth, and metrics for slowest running requests by the hour, or date. * **Metrics per Virtual Host**
Have multiple Virtual Hosts (Server Blocks)? It features a panel that displays which virtual host is consuming most of the web server resources. * **ASN (Autonomous System Number mapping)**
Great for detecting malicious traffic patterns and block them accordingly. * **Color Scheme Customizable**
Tailor GoAccess to suit your own color taste/schemes. Either through the terminal, or by simply applying the stylesheet on the HTML output. * **Support for Large Datasets**
GoAccess features the ability to parse large logs due to its optimized in-memory hash tables. It has very good memory usage and pretty good performance. This storage has support for on-disk persistence as well. * **Docker Support**
Ability to build GoAccess' Docker image from upstream. You can still fully configure it, by using Volume mapping and editing `goaccess.conf`. See [Docker](https://github.com/allinurl/goaccess#docker) section below. There is also documentation how to use [docker-compose](./docker-compose/README.md). ### Nearly all web log formats... ### GoAccess allows any custom log format string. Predefined options include, but not limited to: * Amazon CloudFront (Download Distribution). * Amazon Simple Storage Service (S3) * AWS Elastic Load Balancing * Combined Log Format (XLF/ELF) Apache | Nginx * Common Log Format (CLF) Apache * Google Cloud Storage. * Apache virtual hosts * Squid Native Format. * W3C format (IIS). * Caddy's JSON Structured format. * Traefik's CLF flavor ## Why GoAccess? ## GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea is to quickly analyze and view web server statistics in real time without needing to use your browser (_great if you want to do a quick analysis of your access log via SSH, or if you simply love working in the terminal_). It also serves as a practical tool for security monitoring, making it easy to spot suspicious activity, unusual traffic patterns, brute-force attempts, scanners, bots, and anomalous requests directly from your logs. While the terminal output is the default output, it has the capability to generate a complete, self-contained, real-time [**`HTML`**](https://rt.goaccess.io/?src=gh) report, as well as a [**`JSON`**](https://goaccess.io/json?src=gh), and [**`CSV`**](https://goaccess.io/goaccess_csv_report.csv?src=gh) report. You can see it more of a monitor command tool than anything else. ## Installation ## Packaging status ### Build from release GoAccess can be compiled and used on *nix systems. Download, extract and compile GoAccess with: $ wget https://tar.goaccess.io/goaccess-1.10.1.tar.gz $ tar -xzvf goaccess-1.10.1.tar.gz $ cd goaccess-1.10.1/ $ ./configure --enable-utf8 --enable-geoip=mmdb --with-zlib $ make # make install ### Build from GitHub (Development) ### $ git clone https://github.com/allinurl/goaccess.git $ cd goaccess $ autoreconf -fiv $ ./configure --enable-utf8 --enable-geoip=mmdb $ make # make install ### Distributions ### It is easiest to install GoAccess on GNU+Linux using the preferred package manager of your GNU+Linux distribution. Please note that not all distributions will have the latest version of GoAccess available. #### Debian/Ubuntu #### # apt-get install goaccess **Note:** It is likely this will install an outdated version of GoAccess. To make sure that you're running the latest stable version of GoAccess see alternative option below. #### Official GoAccess Debian & Ubuntu repository #### $ wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null $ echo "deb [signed-by=/usr/share/keyrings/goaccess.gpg arch=$(dpkg --print-architecture)] https://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/goaccess.list $ sudo apt-get update $ sudo apt-get install goaccess **Note**: * `.deb` packages in the official repo are available through HTTPS as well. You may need to install `apt-transport-https`. #### Fedora #### # yum install goaccess #### Arch #### # pacman -S goaccess #### Gentoo #### # emerge net-analyzer/goaccess #### OS X / Homebrew #### # brew install goaccess #### FreeBSD #### # cd /usr/ports/sysutils/goaccess/ && make install clean # pkg install sysutils/goaccess #### OpenBSD #### # cd /usr/ports/www/goaccess && make install clean # pkg_add goaccess #### openSUSE #### # zypper ar -f obs://server:http http # zypper in goaccess #### OpenIndiana #### # pkg install goaccess #### pkgsrc (NetBSD, Solaris, SmartOS, ...) #### # pkgin install goaccess #### Windows #### GoAccess can be used in Windows through Cygwin. See Cygwin's packages. Or through the GNU+Linux Subsystem on Windows 10. #### Docker #### A Docker image has been updated, capable of directing output from an access log. If you only want to output a report, you can pipe a log from the external environment to a Docker-based process: touch report.html cat access.log | docker run --rm -i -v ./report.html:/report.html -e LANG=$LANG allinurl/goaccess -a -o report.html --log-format COMBINED - OR real-time tail -F access.log | docker run -p 7890:7890 --rm -i -e LANG=$LANG allinurl/goaccess -a -o report.html --log-format COMBINED --real-time-html - There is also documentation how to use [docker-compose](./docker-compose/README.md). ##### Build in isolated container You can also build the binary for Debian based systems in an isolated container environment to prevent cluttering your local system with the development libraries: $ curl -L "https://github.com/allinurl/goaccess/archive/refs/heads/master.tar.gz" | tar -xz && cd goaccess-master $ docker build -t goaccess/build.debian-12 -f Dockerfile.debian-12 . $ docker run -i --rm -v $PWD:/goaccess goaccess/build.debian-12 > goaccess You can read more about using the docker image in [DOCKER.md](https://github.com/allinurl/goaccess/blob/master/DOCKER.md). #### Distribution Packages #### GoAccess has minimal requirements, it's written in C and requires only ncurses. However, below is a table of some optional dependencies in some distros to build GoAccess from source. | Distro | NCurses | GeoIP (opt) | GeoIP2 (opt) | OpenSSL (opt) | | ---------------------- | ---------------- | ---------------- | --------------------- | -------------------| | **Ubuntu/Debian** | libncurses-dev | libgeoip-dev | libmaxminddb-dev | libssl-dev | | **RHEL/CentOS** | ncurses-devel | geoip-devel | libmaxminddb-devel | openssl-devel | | **Arch** | ncurses | geoip | libmaxminddb | openssl | | **Gentoo** | sys-libs/ncurses | dev-libs/geoip | dev-libs/libmaxminddb | dev-libs/openssl | | **Slackware** | ncurses | GeoIP | libmaxminddb | openssl | **Note**: You may need to install build tools like `gcc`, `autoconf`, `gettext`, `autopoint` etc. for compiling/building software from source. e.g., `base-devel`, `build-essential`, `"Development Tools"`. ## Storage ## #### Default Hash Tables #### In-memory storage provides better performance at the cost of limiting the dataset size to the amount of available physical memory. GoAccess uses in-memory hash tables. It has very good memory usage and pretty good performance. This storage has support for on-disk persistence as well. ## Command Line / Config Options ## See [**options**](https://goaccess.io/man#options) that can be supplied to the command or specified in the configuration file. If specified in the configuration file, long options need to be used without prepending `--`. ## Usage / Examples ## **Note**: Piping data into GoAccess won't prompt a log/date/time configuration dialog, you will need to previously define it in your configuration file or in the command line. ### Getting Started ### To output to a terminal and generate an interactive report: # goaccess access.log To generate an HTML report: # goaccess access.log -a > report.html To generate a JSON report file: # goaccess access.log -a -d -o report.json To generate a CSV report to stdout: # goaccess access.log --no-csv-summary -o csv GoAccess also allows great flexibility for real-time filtering and parsing. For instance, to quickly diagnose issues by monitoring logs since goaccess was started: # tail -f access.log | goaccess - And even better, to filter while maintaining opened a pipe to preserve real-time analysis, we can make use of `tail -f` and a matching pattern tool such as `grep`, `awk`, `sed`, etc.: # tail -f access.log | grep -i --line-buffered 'firefox' | goaccess --log-format=COMBINED - or to parse from the beginning of the file while maintaining the pipe opened and applying a filter # tail -f -n +0 access.log | grep -i --line-buffered 'firefox' | goaccess -o report.html --real-time-html - ### Multiple Log files ### There are several ways to parse multiple logs with GoAccess. The simplest is to pass multiple log files to the command line: # goaccess access.log access.log.1 It's even possible to parse files from a pipe while reading regular files: # cat access.log.2 | goaccess access.log access.log.1 - **Note**: the single dash is appended to the command line to let GoAccess know that it should read from the pipe. Now if we want to add more flexibility to GoAccess, we can use `zcat --force` to read compressed and uncompressed files. For instance, if we would like to process all log files `access.log*`, we can do: # zcat --force access.log* | goaccess - _Note_: On Mac OS X, use `gunzip -c` instead of `zcat`. ### Multi-thread Support ### Use `--jobs=` (or `-j`) to enable multi-thread parsing. For example: # goaccess access.log -o report.html -j 4 And use `--chunk-size=<256-32768>` to adjust chunk size, the default chunk size is 1024. For example: # goaccess access.log -o report.html -j 4 --chunk-size=8192 ### Real-time HTML outputs ### GoAccess has the ability the output real-time data in the HTML report. You can even email the HTML file since it is composed of a single file with no external file dependencies, how neat is that! The process of generating a real-time HTML report is very similar to the process of creating a static report. Only `--real-time-html` is needed to make it real-time. # goaccess access.log -o /usr/share/nginx/html/your_site/report.html --real-time-html To view the report you can navigate to `http://your_site/report.html`. By default, GoAccess will use the host name of the generated report. Optionally, you can specify the URL to which the client's browser will connect to. See [FAQ](https://goaccess.io/faq) for a more detailed example. # goaccess access.log -o report.html --real-time-html --ws-url=goaccess.io By default, GoAccess listens on port 7890, to use a different port other than 7890, you can specify it as (make sure the port is opened): # goaccess access.log -o report.html --real-time-html --port=9870 And to bind the WebSocket server to a different address other than 0.0.0.0, you can specify it as: # goaccess access.log -o report.html --real-time-html --addr=127.0.0.1 **Note**: To output real time data over a TLS/SSL connection, you need to use `--ssl-cert=` and `--ssl-key=`. ### Filtering ### #### Working with dates #### Another useful pipe would be filtering dates out of the web log The following will get all HTTP requests starting on `05/Dec/2010` until the end of the file. # sed -n '/05\/Dec\/2010/,$ p' access.log | goaccess -a - or using relative dates such as yesterdays or tomorrows day: # sed -n '/'$(date '+%d\/%b\/%Y' -d '1 week ago')'/,$ p' access.log | goaccess -a - If we want to parse only a certain time-frame from DATE a to DATE b, we can do: # sed -n '/5\/Nov\/2010/,/5\/Dec\/2010/ p' access.log | goaccess -a - If we want to preserve only certain amount of data and recycle storage, we can keep only a certain number of days. For instance to keep & show the last 5 days: # goaccess access.log --keep-last=5 #### Virtual hosts #### Assuming your log contains the virtual host field. For instance: vhost.io:80 8.8.4.4 - - [02/Mar/2016:08:14:04 -0600] "GET /shop HTTP/1.1" 200 615 "-" "Googlebot-Image/1.0" And you would like to append the virtual host to the request in order to see which virtual host the top urls belong to: awk '$8=$1$8' access.log | goaccess -a - To do the same, but also use real-time filtering and parsing: tail -f access.log | unbuffer -p awk '$8=$1$8' | goaccess -a - To exclude a list of virtual hosts you can do the following: # grep -v "`cat exclude_vhost_list_file`" vhost_access.log | goaccess - #### Files, status codes and bots #### To parse specific pages, e.g., page views, `html`, `htm`, `php`, etc. within a request: # awk '$7~/\.html|\.htm|\.php/' access.log | goaccess - Note, `$7` is the request field for the common and combined log format, (without Virtual Host), if your log includes Virtual Host, then you probably want to use `$8` instead. It's best to check which field you are shooting for, e.g.: # tail -10 access.log | awk '{print $8}' Or to parse a specific status code, e.g., 500 (Internal Server Error): # awk '$9~/500/' access.log | goaccess - Or multiple status codes, e.g., all 3xx and 5xx: # tail -f -n +0 access.log | awk '$9~/3[0-9]{2}|5[0-9]{2}/' | goaccess -o out.html - And to get an estimated overview of how many bots (crawlers) are hitting your server: # tail -F -n +0 access.log | grep -i --line-buffered 'bot' | goaccess - ### Tips ### Also, it is worth pointing out that if we want to run GoAccess at lower priority, we can run it as: # nice -n 19 goaccess -f access.log -a and if you don't want to install it on your server, you can still run it from your local machine! # ssh -n root@server 'tail -f /var/log/apache2/access.log' | goaccess - --log-format=COMBINED **Note:** SSH requires `-n` so GoAccess can read from stdin. Also, make sure to use SSH keys for authentication as it won't work if a passphrase is required. #### Troubleshooting #### We receive many questions and issues that have been answered previously. * Date/time matching problems? Check that your log format and the system locale in which you run GoAccess match. See [#1571](https://github.com/allinurl/goaccess/issues/1571#issuecomment-543186858) * Problems with pattern matching? Spaces are often a problem, see for instance [#136](https://github.com/allinurl/goaccess/issues/136), [#1579](https://github.com/allinurl/goaccess/issues/1579) * Other issues matching log entries: See [>200 closed issues regarding log/date/time formats](https://github.com/allinurl/goaccess/issues?q=is%3Aissue+is%3Aclosed+label%3A%22log%2Fdate%2Ftime+format%22) * Problems with log processing? See [>111 issues regarding log processing](https://github.com/allinurl/goaccess/issues?q=is%3Aissue+is%3Aclosed+label%3Alog-processing) #### Incremental log processing #### GoAccess has the ability to process logs incrementally through its internal storage and dump its data to disk. It works in the following way: 1. A dataset must be persisted first with `--persist`, then the same dataset can be loaded with. 2. `--restore`. If new data is passed (piped or through a log file), it will append it to the original dataset. ##### NOTES ##### GoAccess keeps track of inodes of all the files processed (assuming files will stay on the same partition), in addition, it extracts a snippet of data from the log along with the last line parsed of each file and the timestamp of the last line parsed. e.g., `inode:29627417|line:20012|ts:20171231235059` First, it compares if the snippet matches the log being parsed, if it does, it assumes the log hasn't changed drastically, e.g., hasn't been truncated. If the inode does not match the current file, it parses all lines. If the current file matches the inode, it then reads the remaining lines and updates the count of lines parsed and the timestamp. As an extra precaution, it won't parse log lines with a timestamp ≤ than the one stored. Piped data works based off the timestamp of the last line read. For instance, it will parse and discard all incoming entries until it finds a timestamp >= than the one stored. ##### Examples ##### // last month access log # goaccess access.log.1 --persist then, load it with // append this month access log, and preserve new data # goaccess access.log --restore --persist To read persisted data only (without parsing new data) # goaccess --restore ## Contributing ## Any help on GoAccess is welcome. The most helpful way is to try it out and give feedback. Feel free to use the GitHub issue tracker and pull requests to discuss and submit code changes. You can contribute to our translations by editing the .po files direct on GitHub or using the visual interface [inlang.com](https://inlang.com/editor/github.com/allinurl/goaccess) Enjoy! ================================================ FILE: SECURITY.md ================================================ # Security Policy Found a security issue in [GoAccess](https://github.com/allinurl/goaccess)? Read on. ## Reporting a Vulnerability GoAccess takes all security bugs seriously. Thank you for improving the security of `goaccess`. I appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions. Vulnerabilities should be reported to [hello@goaccess.io](mailto:hello@goaccess.io) which is a private, maintainer-only email address. When I receive a security bug report, I will work on the fix and prepare a release including the following steps: * Confirm the problem and determine the affected versions. * Audit the code to find any potential similar problems. ## Comments on this Policy If you have suggestions on how this process could be improved please submit a pull request. When reporting an issue, where possible, please provide the following (if possible): * Commit version where the issue was introduced. * A proof of concept (plaintext; or ideally send a patch to same email address) * Steps to reproduce * Your recommended fixes, if any. > Note: Please do not open public issues for security issues, as GitHub does > not provide facility for private issues, and deleting the issue makes it hard > to triage/respond back to the reporter. ================================================ FILE: TODO ================================================ Copyright (C) 2009-2026 6erardo Orellana For a more comprehensive list of to-do items, please refer to the GitHub site. https://github.com/allinurl/goaccess/issues or visit https://goaccess.io/faq#todo If you are interested in working on any of the items listed in there, email goaccess@prosoftcorp.com or better, open a new issue: ================================================ FILE: build-dynamic.sh ================================================ #!/usr/bin/env sh # Build dynamic linked binaries on Debian. set -o nounset ## set -u : exit the script if you try to use an uninitialised variable set -o errexit ## set -e : exit the script if any statement returns a non-true return value # should be either of "mmdb" or "legacy" geoip=${1:-"mmdb"} autoreconf -fi > /dev/null 2>&1 ./configure CFLAGS=-Werror --enable-utf8 --with-openssl --with-getline --enable-geoip="$geoip" >/dev/null make -j > /dev/null cat goaccess ================================================ FILE: config/browsers.list ================================================ # List of browsers and their categories # e.g., WORD delimited by tab(s) TYPE # TYPE can be any type and it's not limited to the ones below. # # **IMPORTANT NOTE**: # --------------------- # The SIZE of the list is proportional to the run time. # Thus, the longer the list, the more time GoAccess will take to parse it. # # Also, you should note that the higher the browser/item is on the list, the # faster the parsing will be. # # The list needs to be specified using --browsers-file=. This file is not # parsed by default. # # The items below are sample crawlers, adjust as needed. Chef Client Crawlers Abonti Crawlers SISTRIX Crawlers DotBot Crawlers Speedy Spider Crawlers Sosospider Crawlers BPImageWalker Crawlers DoCoMo Crawlers GSLFbot Crawlers YodaoBot Crawlers AddThis Crawlers Purebot Crawlers CCBot Crawlers findlinks Crawlers ichiro Crawlers Linguee Bot Crawlers Gigabot Crawlers BacklinkCrawler Crawlers distilator Crawlers Aboundex Crawlers UnwindFetchor Crawlers SBIder Crawlers TestNutch Crawlers DomainCrawler Crawlers NextGenSearchBot Crawlers SEOENGWorldBot Crawlers Cityreview Crawlers PagePeeker Crawlers JS-Kit Crawlers ScreenerBot Crawlers ShowyouBot Crawlers SolomonoBot Crawlers Domnutch Crawlers MaxPoint Crawlers NCBot Crawlers TosCrawler Crawlers Updownerbot Crawlers OpenWebSpider Crawlers WordPress Crawlers PEAR Crawlers ZumBot Crawlers YisouSpider Crawlers W3C Crawlers vcheck Crawlers PercolateCrawler Crawlers NING Crawlers gvfs Crawlers CatchBot Crawlers Combine Crawlers A6-Indexer Crawlers Altresium Crawlers Comodo Crawlers crawler4j Crawlers Cricket Crawlers EC2LinkFinder Crawlers envolk Crawlers GeoHasher Crawlers HTMLParser Crawlers MLBot Crawlers Jaxified Crawlers LinkWalker Crawlers nutch Crawlers PostRank Crawlers keybase-proofs Crawlers CommonCrawler Crawlers X-CAD-SE Crawlers Safeassign Crawlers Nmap Crawlers sqlmap Crawlers Jorgee Crawlers PxBroker Crawlers Seekport Crawlers adscanner Crawlers AfD-Verbotsverfahren_JETZT! Crawlers DuckDuckGo-favicons-Bot Crawlers bingbot Crawlers PetalBot Crawlers Discordbot Crawlers ZoominfoBot Crawlers Googlebot Crawlers AhrefsBot Crawlers SemrushBot Crawlers Adsbot Crawlers BLEXBot Crawlers NetcraftSurveyAgent Crawlers Netcraft Web Server Survey Crawlers masscan Crawlers MJ12bot Crawlers Pandalytics Crawlers YandexBot Crawlers Nimbostratus-Bot Crawlers SeznamBot Crawlers AppleBot Crawlers Vienna Feeds Windows-RSS-Platform Feeds newsbeuter Feeds Wrangler Feeds Fever Feeds Tiny Feeds FreshRSS Feeds KrISS Feeds SimplePie Feeds Feedsubs Feeds UniversalFeedParser Feeds ================================================ FILE: config/goaccess.conf ================================================ ###################################### # Time Format Options (required) ###################################### # # The hour (24-hour clock) [00,23]; leading zeros are permitted but not required. # The minute [00,59]; leading zeros are permitted but not required. # The seconds [00,60]; leading zeros are permitted but not required. # See `man strftime` for more details # # The following time format works with any of the # Apache/NGINX's log formats below. # #time-format %H:%M:%S # # Google Cloud Storage or # The time in microseconds since the Unix epoch. # #time-format %f # Squid native log format # #time-format %s ###################################### # Date Format Options (required) ###################################### # # The date-format variable followed by a space, specifies # the log format date containing any combination of regular # characters and special format specifiers. They all begin with a # percentage (%) sign. See `man strftime` # # The following date format works with any of the # Apache/NGINX's log formats below. # #date-format %d/%b/%Y # # AWS | Amazon CloudFront (Download Distribution) # AWS | Elastic Load Balancing # W3C (IIS) # #date-format %Y-%m-%d # # Google Cloud Storage or # The time in microseconds since the Unix epoch. # #date-format %f # Squid native log format # Caddy # #date-format %s ###################################### # Date/Time Format Option ###################################### # # The datetime-format variable followed by a space, specifies # the log format date and time containing any combination of regular # characters and special format specifiers. They all begin with a # percentage (%) sign. See `man strftime` # # This gives the ability to get the timezone from a request and # convert it to another timezone for output. See --tz= in # the man page. # #datetime-format %d/%b/%Y:%H:%M:%S %z ###################################### # Log Format Options (required) ###################################### # # The log-format variable followed by a space or \t for # tab-delimited, specifies the log format string. # # NOTE: If the time/date is a timestamp in seconds or microseconds # %x must be used instead of %d & %t to represent the date & time. # NCSA Combined Log Format #log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u" # NCSA Combined Log Format with Virtual Host #log-format %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" # Common Log Format (CLF) #log-format %h %^[%d:%t %^] "%r" %s %b # Common Log Format (CLF) with Virtual Host #log-format %v:%^ %h %^[%d:%t %^] "%r" %s %b # W3C #log-format %d %t %h %^ %^ %^ %^ %r %^ %s %b %^ %^ %u %R # Squid native log format #log-format %^ %^ %^ %v %^: %x.%^ %~%L %h %^/%s %b %m %U # AWS | Amazon CloudFront (Download Distribution) #log-format %d\t%t\t%^\t%b\t%h\t%m\t%^\t%r\t%s\t%R\t%u\t%^ # Google Cloud Storage #log-format "%x","%h",%^,%^,"%m","%U","%s",%^,"%b","%D",%^,"%R","%u" # AWS | Elastic Load Balancing #log-format %dT%t.%^ %^ %h:%^ %^ %T %^ %^ %^ %s %^ %b "%r" "%u" # AWSS3 | Amazon Simple Storage Service (S3) #log-format %^[%d:%t %^] %h %^"%r" %s %^ %b %^ %L %^ "%R" "%u" # Virtualmin Log Format with Virtual Host #log-format %h %^ %v %^[%d:%t %^] "%r" %s %b "%R" "%u" # Kubernetes Nginx Ingress Log Format #log-format %^ %^ [%h] %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u" %^ %^ [%v] %^:%^ %^ %T %^ %^ # CADDY JSON Structured #log-format {"ts":"%x.%^","request":{"client_ip":"%h","proto":"%H","method":"%m","host":"%v","uri":"%U","headers":{"User-Agent":["%u"],"Referer":["%R"]},"tls":{"cipher_suite":"%k","proto": "%K"}},"duration": "%T","size": "%b","status": "%s","resp_headers":{"Content-Type":["%M"]}} # Traefik CLF flavor #log-format %h - %e [%d:%t %^] "%r" %s %b "%R" "%u" %^ "%v" "%U" %Lms # In addition to specifying the raw log/date/time formats, for # simplicity, any of the following predefined log format names can be # supplied to the log/date/time-format variables. GoAccess can also # handle one predefined name in one variable and another predefined # name in another variable. # #log-format COMBINED #log-format VCOMBINED #log-format COMMON #log-format VCOMMON #log-format W3C #log-format SQUID #log-format CLOUDFRONT #log-format CLOUDSTORAGE #log-format AWSELB #log-format AWSS3 #log-format CADDY #log-format TRAEFIKCLF ###################################### # UI Options ###################################### # Choose among color schemes # 1 : Monochrome # 2 : Green # 3 : Monokai (if 256-colors supported) # #color-scheme 3 # Prompt log/date configuration window on program start. # config-dialog false # Color highlight active panel. # hl-header true # Specify a custom CSS file in the HTML report. # #html-custom-css /path/file.css # Specify a custom JS file in the HTML report. # #html-custom-js /path/file.js # Set default HTML preferences. # # NOTE: A valid JSON object is required. # DO NOT USE A MULTILINE JSON OBJECT. # The parser will only parse the value next to `html-prefs` (single line) # It allows the ability to customize each panel plot. See example below. # #html-prefs {"theme":"bright","perPage":5,"layout":"horizontal","showTables":true,"visitors":{"plot":{"chartType":"bar"}}} # Set HTML report page title and header. # #html-report-title My Awesome Web Stats # Format JSON output using tabs and newlines. # json-pretty-print false # Turn off colored output. This is the default output on # terminals that do not support colors. # true : for no color output # false : use color-scheme # no-color false # Don't write column names in the terminal output. By default, it displays # column names for each available metric in every panel. # no-column-names false # Disable summary metrics on the CSV output. # no-csv-summary false # Disable progress metrics. # no-progress false # Disable scrolling through panels on TAB. # no-tab-scroll false # Disable progress metrics and parsing spinner. # #no-parsing-spinner true # Do not show the last updated field displayed in the HTML generated report. # #no-html-last-updated true # Outputs the report date/time data in the given timezone. Note that it # uses the canonical timezone name. See --datetime-format in order to # properly specify a timezone in the date/time format. # #tz Europe/Berlin # Enable mouse support on main dashboard. # with-mouse false # Maximum number of items to show per panel. # Note: Only the CSV and JSON outputs allow a maximum greater than the # default value of 366. # #max-items 366 # Custom colors for the terminal output # Tailor GoAccess to suit your own tastes. # # Color Syntax: # DEFINITION space/tab colorFG#:colorBG# [[attributes,] PANEL] # # FG# = foreground color number [-1...255] (-1 = default terminal color) # BG# = background color number [-1...255] (-1 = default terminal color) # # Optionally: # # It is possible to apply color attributes, such as: # bold,underline,normal,reverse,blink. # Multiple attributes are comma separated # # If desired, it is possible to apply custom colors per panel, that is, a # metric in the REQUESTS panel can be of color A, while the same metric in the # BROWSERS panel can be of color B. # # The following is a 256 color scheme (hybrid palette) # #color COLOR_MTRC_HITS color110:color-1 #color COLOR_MTRC_VISITORS color173:color-1 #color COLOR_MTRC_DATA color221:color-1 #color COLOR_MTRC_BW color167:color-1 #color COLOR_MTRC_AVGTS color143:color-1 #color COLOR_MTRC_CUMTS color247:color-1 #color COLOR_MTRC_MAXTS color186:color-1 #color COLOR_MTRC_PROT color109:color-1 #color COLOR_MTRC_MTHD color139:color-1 #color COLOR_MTRC_HITS_PERC color186:color-1 #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 VISITORS #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 OS #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 BROWSERS #color COLOR_MTRC_HITS_PERC_MAX color139:color-1 VISIT_TIMES #color COLOR_MTRC_VISITORS_PERC color186:color-1 #color COLOR_MTRC_VISITORS_PERC_MAX color139:color-1 #color COLOR_MTRC_BW_PERC color186:color-1 #color COLOR_MTRC_BW_PERC_MAX color139:color-1 #color COLOR_PANEL_COLS color243:color-1 #color COLOR_BARS color240:color-1 #color COLOR_SUBBARS color250:color-1 #color COLOR_CHART_AXIS color241:color-1 #color COLOR_CHART_VALUES color248:color-1 #color COLOR_ERROR color231:color167 #color COLOR_SELECTED color7:color167 #color COLOR_PANEL_ACTIVE color7:color237 #color COLOR_PANEL_HEADER color250:color235 #color COLOR_PANEL_DESC color242:color-1 #color COLOR_OVERALL_LBLS color243:color-1 #color COLOR_OVERALL_VALS color167:color-1 #color COLOR_OVERALL_PATH color186:color-1 #color COLOR_ACTIVE_LABEL color139:color235 bold underline #color COLOR_BG color250:color-1 #color COLOR_DEFAULT color243:color-1 #color COLOR_PROGRESS color7:color110 ###################################### # Server Options ###################################### # Specify IP address to bind server to. # #addr 0.0.0.0 # Run GoAccess as daemon (if --real-time-html enabled). # #daemonize false # Ensure clients send the specified origin header upon the WebSocket # handshake. # #origin http://example.org # The port to which the connection is being attempted to connect. # By default GoAccess' WebSocket server listens on port 7890 # See man page or http://gwsocket.io for details. # #port 7890 # Write the PID to a file when used along the daemonize option. # #pid-file /var/run/goaccess.pid # Enable real-time HTML output. # #real-time-html true # Path to TLS/SSL certificate. # Note that ssl-cert and ssl-key need to be used to enable TLS/SSL. # #ssl-cert /path/ssl/domain.crt # Path to TLS/SSL private key. # Note that ssl-cert and ssl-key need to be used to enable TLS/SSL. # #ssl-key /path/ssl/domain.key # URL to which the WebSocket server responds. This is the URL supplied # to the WebSocket constructor on the client side. # # Optionally, it is possible to specify the WebSocket URI scheme, such as ws:// # or wss:// for unencrypted and encrypted connections. # e.g., ws-url wss://goaccess.io # # If GoAccess is running behind a proxy, you could set the client side # to connect to a different port by specifying the host followed by a # colon and the port. # e.g., ws-url goaccess.io:9999 # # By default, it will attempt to connect to localhost. If GoAccess is # running on a remote server, the host of the remote server should be # specified here. Also, make sure it is a valid host and NOT an http # address. # #ws-url goaccess.io # Path to read named pipe (FIFO). # #fifo-in /tmp/wspipein.fifo # Path to write named pipe (FIFO). # #fifo-out /tmp/wspipeout.fifo ## WebSocket Authentication # See man page for more details. # # Enables WebSocket authentication using a JSON Web Token (JWT). Optionally, a # secret key can be provided for verification. # #ws-auth= # Time after which the JWT expires (only for local generated JWTs). # #ws-auth-expire= # URL to fetch the initial JWT. e.g., https://site.com/api/get-auth-token # #ws-auth-url= # URL to fetch a new JWT when initial expires. e.g., # https://site.com/api/refresh-token # #ws-auth-refresh-url= ###################################### # File Options ###################################### # Specify the path to the input log file. If set, it will take # priority over -f from the command line. # #log-file /var/log/apache2/access.log # Send all debug messages to the specified file. # #debug-file debug.log # Specify a custom configuration file to use. If set, it will take # priority over the global configuration file (if any). # #config-file # Log invalid requests to the specified file. # #invalid-requests # Do not load the global configuration file. # #no-global-config false ###################################### # Parse Options ###################################### # Enable a list of user-agents by host. For faster parsing, do not # enable this flag. # agent-list false # Enable IP resolver on HTML|JSON|CSV output. # with-output-resolver false # Exclude an IPv4 or IPv6 from being counted. # Ranges can be included as well using a dash in between # the IPs (start-end). # #exclude-ip 127.0.0.1 #exclude-ip 192.168.0.1-192.168.0.100 #exclude-ip ::1 #exclude-ip 0:0:0:0:0:ffff:808:804-0:0:0:0:0:ffff:808:808 # Include HTTP request method if found. This will create a # request key containing the request method + the actual request. # # [default: yes] # http-method yes # Include HTTP request protocol if found. This will create a # request key containing the request protocol + the actual request. # # [default: yes] # http-protocol yes # Write output to stdout given one of the following files and the # corresponding extension for the output format: # # /path/file.csv - Comma-separated values (CSV) # /path/file.json - JSON (JavaScript Object Notation) # /path/file.html - HTML # # output /path/file.html # Ignore request's query string. # i.e., www.google.com/page.htm?query => www.google.com/page.htm # # Note: Removing the query string can greatly decrease memory # consumption, especially on timestamped requests. # no-query-string false # Disable IP resolver on terminal output. # no-term-resolver false # Treat non-standard status code 444 as 404. # 444-as-404 false # Add 4xx client errors to the unique visitors count. # 4xx-to-unique-count false # IP address anonymization # The IP anonymization option sets the last octet of IPv4 user IP addresses and # the last 80 bits of IPv6 addresses to zeros. # e.g., 192.168.20.100 => 192.168.20.0 # e.g., 2a03:2880:2110:df07:face:b00c::1 => 2a03:2880:2110:df07:: # #anonymize-ip false # Include static files that contain a query string in the static files # panel. # e.g., /fonts/fontawesome-webfont.woff?v=4.0.3 # all-static-files false # Include an additional delimited list of browsers/crawlers/feeds etc. # See config/browsers.list for an example or # https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list # #browsers-file # Date specificity. Possible values: `date` (default), or `hr` or `min`. # #date-spec hr|min # Decode double-encoded values. # double-decode false # Enable parsing/displaying the given panel. # #enable-panel VISITORS #enable-panel REQUESTS #enable-panel REQUESTS_STATIC #enable-panel NOT_FOUND #enable-panel HOSTS #enable-panel OS #enable-panel BROWSERS #enable-panel VISIT_TIMES #enable-panel VIRTUAL_HOSTS #enable-panel REFERRERS #enable-panel REFERRING_SITES #enable-panel KEYPHRASES #enable-panel STATUS_CODES #enable-panel REMOTE_USER #enable-panel CACHE_STATUS #enable-panel GEO_LOCATION #enable-panel ASN #enable-panel MIME_TYPE #enable-panel TLS_TYPE # Hide a referrer but still count it. Wild cards are allowed. i.e., *.bing.com # #hide-referrer *.google.com #hide-referrer bing.com # Hour specificity. Possible values: `hr` (default), or `min` (tenth # of a minute). # #hour-spec min # Ignore crawlers from being counted. # This will ignore robots listed under browsers.c # Note that it will count them towards the total # number of requests, but excluded from any of the panels. # ignore-crawlers false # Parse and display crawlers only. # This will ignore all hosts except robots listed under browsers.c # Note that it will count them towards the total # number of requests, but excluded from any of the panels. # crawlers-only false # Unknown browsers and OS are considered as crawlers # unknowns-as-crawlers false # Ignore static file requests. # req : Only ignore request from valid requests # panels : Ignore request from panels. # Note that it will count them towards the total number of requests # ignore-statics req # Ignore parsing and displaying the given panel. # #ignore-panel VISITORS #ignore-panel REQUESTS #ignore-panel REQUESTS_STATIC #ignore-panel NOT_FOUND #ignore-panel HOSTS #ignore-panel OS #ignore-panel BROWSERS #ignore-panel VISIT_TIMES #ignore-panel VIRTUAL_HOSTS ignore-panel REFERRERS #ignore-panel REFERRING_SITES ignore-panel KEYPHRASES #ignore-panel STATUS_CODES #ignore-panel REMOTE_USER #ignore-panel CACHE_STATUS #ignore-panel GEO_LOCATION #ignore-panel ASN #ignore-panel MIME_TYPE #ignore-panel TLS_TYPE # Ignore referrers from being counted. # This supports wild cards. For instance, # '*' matches 0 or more characters (including spaces) # '?' matches exactly one character # #ignore-referrer *.domain.com #ignore-referrer ww?.domain.* # Ignore parsing and displaying one or multiple status code(s) # #ignore-status 400 #ignore-status 502 # Keep the last specified number of days in storage. This will recycle the # storage tables. e.g., keep & show only the last 7 days. # # keep-last 7 # Disable client IP validation. Useful if IP addresses have been # obfuscated before being logged. # # no-ip-validation true # Number of lines from the access log to test against the provided # log/date/time format. By default, the parser is set to test 10 # lines. If set to 0, the parser won't test any lines and will parse # the whole access log. # #num-tests 10 # Parse log and exit without outputting data. # #process-and-exit false # Display real OS names. e.g, Windows XP, Snow Leopard. # real-os true # Sort panel on initial load. # Sort options are separated by comma. # Options are in the form: PANEL,METRIC,ORDER # # Available metrics: # BY_HITS - Sort by hits # BY_VISITORS - Sort by unique visitors # BY_DATA - Sort by data # BY_BW - Sort by bandwidth # BY_AVGTS - Sort by average time served # BY_CUMTS - Sort by cumulative time served # BY_MAXTS - Sort by maximum time served # BY_PROT - Sort by http protocol # BY_MTHD - Sort by http method # Available orders: # ASC # DESC # #sort-panel VISITORS,BY_DATA,ASC #sort-panel REQUESTS,BY_HITS,ASC #sort-panel REQUESTS_STATIC,BY_HITS,ASC #sort-panel NOT_FOUND,BY_HITS,ASC #sort-panel HOSTS,BY_HITS,ASC #sort-panel OS,BY_HITS,ASC #sort-panel BROWSERS,BY_HITS,ASC #sort-panel VISIT_TIMES,BY_DATA,DESC #sort-panel VIRTUAL_HOSTS,BY_HITS,ASC #sort-panel REFERRERS,BY_HITS,ASC #sort-panel REFERRING_SITES,BY_HITS,ASC #sort-panel KEYPHRASES,BY_HITS,ASC #sort-panel STATUS_CODES,BY_HITS,ASC #sort-panel REMOTE_USER,BY_HITS,ASC #sort-panel CACHE_STATUS,BY_HITS,ASC #sort-panel GEO_LOCATION,BY_HITS,ASC #sort-panel MIME_TYPE,BY_HITS,ASC #sort-panel TLS_TYPE,BY_HITS,ASC # Consider the following extensions as static files # The actual '.' is required and extensions are case sensitive # For a full list, uncomment the less common static extensions below. # static-file .css static-file .js static-file .jpg static-file .png static-file .gif static-file .ico static-file .jpeg static-file .pdf static-file .csv static-file .mpeg static-file .mpg static-file .swf static-file .woff static-file .woff2 static-file .xls static-file .xlsx static-file .doc static-file .docx static-file .ppt static-file .pptx static-file .txt static-file .zip static-file .ogg static-file .mp3 static-file .mp4 static-file .exe static-file .iso static-file .gz static-file .rar static-file .svg static-file .bmp static-file .tar static-file .tgz static-file .tiff static-file .tif static-file .ttf static-file .flv static-file .dmg static-file .xz static-file .zst #static-file .less #static-file .ac3 #static-file .avi #static-file .bz2 #static-file .class #static-file .cue #static-file .dae #static-file .dat #static-file .dts #static-file .ejs #static-file .eot #static-file .eps #static-file .img #static-file .jar #static-file .map #static-file .mid #static-file .midi #static-file .ogv #static-file .webm #static-file .mkv #static-file .odp #static-file .ods #static-file .odt #static-file .otf #static-file .pict #static-file .pls #static-file .ps #static-file .qt #static-file .rm #static-file .svgz #static-file .wav #static-file .webp ###################################### # GeoIP Options # Only if configured with --enable-geoip ###################################### # To feed a database either through GeoIP Legacy or GeoIP2, you need to use the # geoip-database flag below. # # === GeoIP Legacy # Legacy GeoIP has been discontinued. If your GNU+Linux distribution does not ship # with the legacy databases, you may still be able to find them through # different sources. Make sure to download the .dat files. # # Distributed with Creative Commons Attribution-ShareAlike 4.0 International License. # https://mailfud.org/geoip-legacy/ # IPv4 Country database: # Download the GeoIP.dat.gz # gunzip GeoIP.dat.gz # # IPv4 City database: # Download the GeoIPCity.dat.gz # gunzip GeoIPCity.dat.gz # Standard GeoIP database for less memory usage (GeoIP Legacy). # #std-geoip false # === GeoIP2 # For GeoIP2 databases, you can use DB-IP Lite databases. # DB-IP is licensed under a Creative Commons Attribution 4.0 International License. # https://db-ip.com/db/lite.php # Or you can download them from MaxMind # https://dev.maxmind.com/geoip/geoip2/geolite2/ # For GeoIP2 City database: # Download the GeoLite2-City.mmdb.gz # gunzip GeoLite2-City.mmdb.gz # # For GeoIP2 Country database: # Download the GeoLite2-Country.mmdb.gz # gunzip GeoLite2-Country.mmdb.gz # #geoip-database /usr/local/share/GeoIP/GeoLiteCity.dat ###################################### # Persistence Options ###################################### # Path where the persisted database files are stored on disk. # The default value is the /tmp directory. #db-path /tmp # Persist parsed data into disk. #persist true # Load previously stored data from disk. # Database files need to exist. See `persist`. #restore true ================================================ FILE: config/podcast.list ================================================ # vim: set noexpandtab: #1 This file is a user agent list of various podcast-related agents (but not #2 limited to). It was distilled from the user agents of a web page which hosts #3 a WordPress blog and a podcast. #4 \author Bernhard R. Fischer, #5 \date 2019/09/26 AntennaPod Podcasts AppleCoreMedia Mediaplayer atc Podcasts BacklinkCrawler Crawlers Baiduspider Crawlers Bullhorn Server PodCrawlers Castbox Podcasts CastBox Podcasts Castro Podcasts CCBot Crawlers com.evolve.podcast Podcasts cortex Facebook ExoPlayerLib Mediaplayer facebookexternalhit Facebook fyyd image poller PodCrawlers fyyd-poll PodCrawlers icatcher Podcasts iCatcher! Podcasts iTMS PodCrawlers itunesstored PodCrawlers Kodi Mediaplayer Lavf Mediaplayer LCC Crawlers Luminary Podcasts Mediatoolkitbot Crawlers mindUpBot Crawlers msnbot Crawlers NSPlayer Mediaplayer Overcast Podcasts Photon Crawlers Player FM Podcasts PlayerFM Podcasts Plex Mediaplayer Podbean Podcasts podcast Podcasts Podcast Podcasts PodcastRepublic Podcasts Podcasts Podcasts Podchaser PodCrawlers Podchaser-Parser PodCrawlers Podnews.net PodCrawlers PodParadise PodCrawlers Procast Podcasts ProCast Podcasts Procast (iOS) Podcasts ProcastProCast Podcasts radio.at PodCrawlers RadioPublic PodCrawlers RadioPublicImageResizer PodCrawlers RSSRadio Podcasts Sonos Mediaplayer Spotify PodCrawlers stagefright Mediaplayer Stitcher PodCrawlers UniversalFeedParser Feeds WinampMPEG Mediaplayer XING FeedReader Feeds XING-contenttabreceiver Feeds ================================================ FILE: configure.ac ================================================ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([goaccess],[1.10.1],[hello@goaccess.io],[],[https://goaccess.io]) AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_SRCDIR([src/goaccess.c]) AC_CONFIG_HEADERS([src/config.h]) # Use empty CFLAGS by default so autoconf does not add # CFLAGS="-O2 -g" # NOTE: Needs to go after AC_INIT and before AC_PROG_CC to select an # empty default instead. : ${CFLAGS=""} # Prefer host default compiler AC_PROG_CC([cc gcc clang]) AM_PROG_CC_C_O # Check for programs AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.19]) # Fix `undefined reference to `libintl_gettext'` on docker: AC_CHECK_LIB([intl], [libintl_dgettext]) # Fix undefined reference to dgettext on NetBSD AC_CHECK_LIB([intl], [dgettext]) # pthread AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR([pthread is missing])]) CFLAGS="$CFLAGS -pthread" # DEBUG AC_ARG_ENABLE([debug],[AS_HELP_STRING([--enable-debug],[Create a debug build. Default is disabled])],[debug="$enableval"],[debug=no]) if test "$debug" = "yes"; then AC_DEFINE([_DEBUG], 1, [Debug option]) fi AM_CONDITIONAL([DEBUG], [test "x$debug" = "xyes"]) # Handle rdynamic only on systems using GNU ld AC_CANONICAL_HOST AC_MSG_CHECKING([whether to build with rdynamic for GNU ld]) with_rdyanimc=yes case "$host_os" in *darwin*|*cygwin*|*aix*|*mingw*) with_rdyanimc=no ;; esac AC_MSG_RESULT([$with_rdyanimc]) AM_CONDITIONAL([WITH_RDYNAMIC], [test "x$with_rdyanimc" = "xyes"]) # Add ASAN AC_CANONICAL_HOST AC_ARG_ENABLE([asan], [AS_HELP_STRING([--enable-asan], [Enable address sanitizer])], [with_asan=$enableval], [with_asan=no]) AC_MSG_CHECKING([whether to build with address sanitizer]) case "$host_os" in *cygwin*|*aix*|*mingw*) with_asan=no ;; esac AC_MSG_RESULT([$with_asan]) AM_CONDITIONAL([WITH_ASAN], [test "x$with_asan" = "xyes"]) # Check for libc implementation on NetBSD AC_CHECK_HEADERS([sha.h sha1.h]) AC_CHECK_FUNCS([SHA1Init]) AM_CONDITIONAL([USE_SHA1], [test "x$ac_cv_func_SHA1Init" != "xyes"]) # Build with OpenSSL AC_ARG_WITH([openssl],[AS_HELP_STRING([--with-openssl],[Build with OpenSSL support. Default is disabled])],[openssl="$withval"],[openssl="no"]) if test "$openssl" = 'yes'; then AC_CHECK_LIB([ssl], [SSL_CTX_new],,[AC_MSG_ERROR([ssl library missing])]) AC_CHECK_LIB([crypto], [CRYPTO_free],,[AC_MSG_ERROR([crypto library missing])]) AC_CHECK_LIB([ssl], [SSL_CIPHER_standard_name], [AC_DEFINE([HAVE_CIPHER_STD_NAME], 1, [HAVE_CIPHER_STD_NAME])]) fi AM_CONDITIONAL([WITH_SSL], [test "x$with_openssl" = "xyes"]) # Build with zlib AC_ARG_WITH([zlib], [AS_HELP_STRING([--with-zlib], [Build with zlib support for reading gzipped logs. Default is disabled])], [zlib="$withval"], [zlib="no"]) if test "$zlib" = 'yes'; then AC_CHECK_LIB([z], [gzopen], [], [AC_MSG_ERROR([zlib library missing])]) AC_CHECK_HEADERS([zlib.h], [], [AC_MSG_ERROR([zlib header missing])]) AC_DEFINE([HAVE_ZLIB], 1, [Build with zlib support]) fi AM_CONDITIONAL([WITH_ZLIB], [test "x$zlib" = "xyes"]) # GeoIP AC_ARG_ENABLE([geoip],[AS_HELP_STRING([--enable-geoip],[Enable GeoIP country lookup. Supported types: mmdb, legacy. Default is disabled])],[geoip="$enableval"],[geoip=no]) geolocation="N/A" if test "$geoip" = "mmdb"; then AC_CHECK_LIB([maxminddb], [MMDB_open], [], [AC_MSG_ERROR([ *** Missing development files for libmaxminddb library. ])]) geolocation="GeoIP2" AC_DEFINE([HAVE_GEOLOCATION], 1, [Build using GeoIP.]) elif test "$geoip" = "legacy"; then AC_CHECK_LIB([GeoIP], [GeoIP_new], [], [AC_MSG_ERROR([ *** Missing development files for the GeoIP library ])]) geolocation="GeoIP Legacy" AC_DEFINE([HAVE_GEOLOCATION], 1, [Build using GeoIP.]) elif test "$geoip" != "no"; then AC_MSG_ERROR([*** Invalid argument for GeoIP: $geoip]) fi AM_CONDITIONAL([GEOIP_LEGACY], [test "x$geoip" = "xlegacy"]) AM_CONDITIONAL([GEOIP_MMDB], [test "x$geoip" = "xmmdb"]) # GNU getline / POSIX.1-2008 AC_ARG_WITH([getline],[AS_HELP_STRING([--with-getline],[Build using dynamic line buffer. Default is disabled])],[with_getline=$withval],[with_getline=no]) if test "$with_getline" = "yes"; then AC_DEFINE([WITH_GETLINE], 1, [Build using GNU getline.]) fi # UTF8 AC_ARG_ENABLE([utf8],[AS_HELP_STRING([--enable-utf8],[Enable ncurses library that handles wide characters. Default is disabled])],[utf8="$enableval"],[utf8=no]) if test "$utf8" = "yes"; then libncursesw=ncursesw # Simply called libncurses on OS X case "$host_os" in *darwin*) libncursesw=ncurses ;; esac AC_CHECK_LIB([$libncursesw], [mvaddwstr], [], [AC_MSG_ERROR([*** Missing development libraries for ncursesw])]) AC_SEARCH_LIBS([tputs], [tinfow], ,[AC_MSG_ERROR([Cannot find a library providing tputs])]) AC_DEFINE([HAVE_LIBNCURSESW], [1], ["ncursesw is present."]) have_ncurses="yes" AC_CHECK_HEADERS([ncursesw/ncurses.h],[have_ncurses=yes], [], [ #ifdef HAVE_NCURSESW_NCURSES_H #include #endif ]) AC_CHECK_HEADERS([ncurses.h],[have_ncurses=yes], [], [ #ifdef HAVE_NCURSES_H #include #endif ]) if test "$have_ncurses" != "yes"; then AC_MSG_ERROR([Missing ncursesw header file]) fi else AC_CHECK_LIB([ncurses], [refresh], [], [AC_CHECK_LIB([curses], [refresh], [], [AC_MSG_ERROR([*** Missing development libraries for ncurses])])]) AC_SEARCH_LIBS([tputs], [tinfo], ,[AC_MSG_ERROR([Cannot find a library providing tputs])]) have_ncurses="yes" AC_CHECK_HEADERS([ncurses/ncurses.h],[have_ncurses=yes], [], [ #ifdef HAVE_NCURSES_NCURSES_H #include #endif ]) AC_CHECK_HEADERS([ncurses.h],[have_ncurses=yes], [], [ #ifdef HAVE_NCURSES_H #include #endif ]) AC_CHECK_HEADERS([curses.h],[have_ncurses=yes], [], [ #ifdef HAVE_CURSES_H #include #endif ]) if test "$have_ncurses" != "yes"; then AC_MSG_ERROR([Missing ncurses header file]) fi fi # Default Hash storage="In-Memory with On-Disk Persistent Storage" HAS_SEDTR=no AC_CHECK_PROG([SED_CHECK],[sed],[yes],[no]) if test x"$SED_CHECK" = x"yes" ; then AC_CHECK_PROG([TR_CHECK],[tr],[yes],[no]) if test x"$TR_CHECK" = x"yes" ; then HAS_SEDTR=yes fi fi AM_CONDITIONAL([HAS_SEDTR], [test "x$HAS_SEDTR" = xyes]) # detect Cygwin or MinGW and use mmap family replacements USE_MMAP=no case $host in *-*-mingw32* | *-*-cygwin* | *-*-windows*) USE_MMAP=yes AC_MSG_NOTICE([using custom mmap for Cygwin/MinGW]) ;; esac AM_CONDITIONAL([USE_MMAP], [test "x$USE_MMAP" = xyes]) # Solaris AC_CHECK_LIB([nsl], [gethostbyname]) AC_CHECK_LIB([socket], [socket]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h]) AC_CHECK_HEADERS([fcntl.h]) AC_CHECK_HEADERS([inttypes.h]) AC_CHECK_HEADERS([limits.h]) AC_CHECK_HEADERS([locale.h]) AC_CHECK_HEADERS([netdb.h]) AC_CHECK_HEADERS([netinet/in.h]) AC_CHECK_HEADERS([stddef.h]) AC_CHECK_HEADERS([stdint.h]) AC_CHECK_HEADERS([stdlib.h]) AC_CHECK_HEADERS([string.h]) AC_CHECK_HEADERS([strings.h]) AC_CHECK_HEADERS([sys/socket.h]) AC_CHECK_HEADERS([sys/time.h]) AC_CHECK_HEADERS([unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_CHECK_TYPES([ptrdiff_t]) AC_STRUCT_TM AC_TYPE_INT64_T AC_TYPE_INT8_T AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_TYPE_UINT32_T AC_TYPE_UINT64_T AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_FSEEKO AC_FUNC_MEMCMP AC_FUNC_MKTIME AC_FUNC_STAT AC_FUNC_STRFTIME AC_FUNC_STRTOD AC_CHECK_FUNCS([floor]) AC_CHECK_FUNCS([gethostbyaddr]) AC_CHECK_FUNCS([gethostbyname]) AC_CHECK_FUNCS([gettimeofday]) AC_CHECK_FUNCS([malloc]) AC_CHECK_FUNCS([memmove]) AC_CHECK_FUNCS([memset]) AC_CHECK_FUNCS([mkfifo]) AC_CHECK_FUNCS([poll]) AC_CHECK_FUNCS([realloc]) AC_CHECK_FUNCS([realpath]) AC_CHECK_FUNCS([regcomp]) AC_CHECK_FUNCS([setlocale]) AC_CHECK_FUNCS([socket]) AC_CHECK_FUNCS([strcasecmp]) AC_CHECK_FUNCS([strchr]) AC_CHECK_FUNCS([strcspn]) AC_CHECK_FUNCS([strdup]) AC_CHECK_FUNCS([strerror]) AC_CHECK_FUNCS([strncasecmp]) AC_CHECK_FUNCS([strpbrk]) AC_CHECK_FUNCS([strrchr]) AC_CHECK_FUNCS([strspn]) AC_CHECK_FUNCS([strstr]) AC_CHECK_FUNCS([strtol]) AC_CHECK_FUNCS([strtoull]) AC_CHECK_FUNCS([timegm]) AC_CONFIG_FILES([Makefile po/Makefile.in]) AC_OUTPUT cat << EOF Your build configuration: Prefix : $prefix Package : $PACKAGE_NAME Version : $VERSION Compiler flags : $CFLAGS Linker flags : $LIBS $LDFLAGS UTF-8 support : $utf8 Dynamic buffer : $with_getline ASan : $with_asan Geolocation : $geolocation Storage method : $storage TLS/SSL : $openssl zlib support : $zlib Bugs : $PACKAGE_BUGREPORT EOF ================================================ FILE: docker-compose/README.md ================================================ # Docker-compose configuration Here are two docker-compose configurations for goaccess which combine a static site with a real-time report of goaccess. The directories used are: - `configs` - for the nginx and goaccess configuration - `public` - the files served by nginx - put your static site here - `logs` - nginx logs - there is no log rotation in place! There are two flavors of the docker-compose files and the goaccess files: - `*.vanilla.*` which need you to take care of the TLS certificates - `*.traefik.*` using traefik for TLS and domain routing ## Vanilla For the vanilla version, you'll have to do the following: - put the TLS certificates into `configs/certs`, following the naming scheme in `goaccess.vanilla.conf` - route requests for the static webpage to port `8080` ## Traefik The traefik version is setup to make it easier to do the routing. You don't need to take care of the TLS certificates, and the goaccess websocket gets its own subdomain. To put it all together, the following environment is needed: - traefik configured according to [Traefik-101](https://ineiti.ch/posts/traefik-101/traefik-101/) - DNS configuration for two domain names pointing to your server's IP: - `yourdomain` for the static pages, e.g., a blog-post using [Hugo](https://gohugo.io/) - `goaccess.yourdomain` for the stats with goaccess ================================================ FILE: docker-compose/configs/goaccess.traefik.conf ================================================ tz Europe/Zurich time-format %H:%M:%S date-format %Y-%m-%d log-format COMBINED log-file /srv/logs/access.log output /srv/report/report.html real-time-html true ws-url wss://goaccess.yourdomain port 443 ================================================ FILE: docker-compose/configs/goaccess.vanilla.conf ================================================ tz Europe/Zurich time-format %H:%M:%S date-format %Y-%m-%d log-format COMBINED log-file /srv/logs/access.log output /srv/report/report.html real-time-html true ws-url wss://yourdomain ssl-cert /srv/certs/yourdomain.crt ssl-key /srv/certs/yourdomain.key ================================================ FILE: docker-compose/configs/nginx.conf ================================================ user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; } ================================================ FILE: docker-compose/docker-compose.traefik.yaml ================================================ services: web: image: nginx volumes: - ./logs:/var/log/nginx - ./configs/nginx.conf:/etc/nginx/nginx.conf - ./public:/usr/share/nginx/html labels: - "traefik.enable=true" - "fqdn=yourdomain" networks: - traefik goaccess: image: allinurl/goaccess container_name: goaccess volumes: - ./configs/goaccess.traefik.conf:/srv/config/goaccess.conf - ./logs:/srv/logs - ./public:/srv/report command: ["--no-global-config", "--config-file=/srv/config/goaccess.conf"] labels: - "traefik.enable=true" - "fqdn=goaccess.yourdomain" - "traefik.http.services.yourdomain-goaccess.loadbalancer.server.port=443" restart: unless-stopped networks: - traefik networks: traefik: external: name: traefik_traefik ================================================ FILE: docker-compose/docker-compose.vanilla.yaml ================================================ services: web: image: nginx ports: - 8080:80 volumes: - ./logs:/var/log/nginx - ./configs/nginx.conf:/etc/nginx/nginx.conf - ./public:/usr/share/nginx/html goaccess: image: allinurl/goaccess ports: - 7890:7890 volumes: - ./configs/goaccess.vanilla.conf:/srv/config/goaccess.conf - ./logs:/srv/logs - ./public:/srv/report - ./configs/certs:/srv/certs command: ["--no-global-config", "--config-file=/srv/config/goaccess.conf"] restart: unless-stopped ================================================ FILE: goaccess.1 ================================================ .TH goaccess 1 "FEB 2026" GNU+Linux "User Manuals" .SH NAME goaccess \- fast web log analyzer and interactive viewer. .SH SYNOPSIS .LP .B goaccess [filename] [options...] [-c][-M][-H][-q][-d][...] .SH DESCRIPTION .B goaccess is an open source, real-time log analyzer and interactive viewer that runs in a .I terminal on *nix systems or directly in your .I browser. Designed with system administrators, DevOps engineers, and security professionals in mind, it delivers fast, actionable HTTP statistics and visual server reports on the fly. GoAccess parses your web server logs in real time and presents the data directly in the terminal or via a live HTML dashboard, making it easy to monitor traffic, detect anomalies, and troubleshoot issues instantly. .IP "General Statistics:" This panel gives a summary of several metrics, such as the number of valid and invalid requests, time taken to analyze the dataset, unique visitors, requested files, static files (CSS, ICO, JPG, etc) HTTP referrers, 404s, size of the parsed log file and bandwidth consumption. .IP "Unique visitors" This panel shows metrics such as hits, unique visitors and cumulative bandwidth per date. HTTP requests containing the same IP, the same date, and the same user agent are considered a unique visitor. By default, it includes web crawlers/spiders. .IP Optionally, date specificity can be set to the hour level using .I --date-spec=hr which will display dates such as 05/Jun/2016:16, or to the minute level producing 05/Jun/2016:16:59. This is great if you want to track your daily traffic at the hour or minute level. .IP "Requested files" This panel displays the most requested (non-static) files on your web server. It shows hits, unique visitors, and percentage, along with the cumulative bandwidth, protocol, and the request method used. .IP "Requested static files" Lists the most frequently static files such as: JPG, CSS, SWF, JS, GIF, and PNG file types, along with the same metrics as the last panel. Additional static files can be added to the configuration file. .IP "404 or Not Found" Displays the same metrics as the previous request panels, however, its data contains all pages that were not found on the server, or commonly known as 404 status code. .IP "Hosts" This panel has detailed information on the hosts themselves. This is great for spotting aggressive crawlers and identifying who's eating your bandwidth. Expanding the panel can display more information such as host's reverse DNS lookup result, country of origin and city. If the .I -a argument is enabled, a list of user agents can be displayed by selecting the desired IP address, and then pressing ENTER. .IP "Operating Systems" This panel will report which operating system the host used when it hit the server. It attempts to provide the most specific version of each operating system. .IP "Browsers" This panel will report which browser the host used when it hit the server. It attempts to provide the most specific version of each browser. .IP "Visit Times" This panel will display an hourly report. This option displays 24 data points, one for each hour of the day. .IP Optionally, hour specificity can be set to the tenth of an hour level using .I --hour-spec=min which will display hours as 16:4 This is great if you want to spot peaks of traffic on your server. .IP "Virtual Hosts" This panel will display all the different virtual hosts parsed from the access log. This panel is displayed if .I %v is used within the log-format string. .IP "Referrers URLs" If the host in question accessed the site via another resource, or was linked/diverted to you from another host, the URL they were referred from will be provided in this panel. See `--ignore-panel` in your configuration file to enable it. .I disabled by default. .IP "Referring Sites" This panel will display only the host part but not the whole URL. The URL where the request came from. .IP "Keyphrases" It reports keyphrases used on Google search, Google cache, and Google translate that have lead to your web server. At present, it only supports Google search queries via HTTP. See `--ignore-panel` in your configuration file to enable it. .I disabled by default. .IP "Geo Location" Determines where an IP address is geographically located. Statistics are broken down by continent and country, and when city-level GeoIP data is available it also lists the individual cities for each hit. It needs to be compiled with GeoLocation support. .IP "HTTP Status Codes" The values of the numeric status code to HTTP requests. .IP "ASN" This panel displays ASN (Autonomous System Numbers) data for GeoIP2 and legacy databases. Great for detecting malicious traffic and blocking accordingly. .IP "Remote User (HTTP authentication)" This is the userid of the person requesting the document as determined by HTTP authentication. If the document is not password protected, this part will be "-" just like the previous one. This panel is not enabled unless .I %e is given within the log-format variable. .IP "Cache Status" If you are using caching on your server, you may be at the point where you want to know if your request is being cached and served from the cache. This panel shows the cache status of the object the server served. This panel is not enabled unless .I %C is given within the log-format variable. The status can be either `MISS`, `BYPASS`, `EXPIRED`, `STALE`, `UPDATING`, `REVALIDATED` or `HIT` .IP "MIME Types" This panel specifies Media Types (formerly known as MIME types) and Media Subtypes which will be assigned and listed underneath. This panel is not enabled unless .I %M is given within the log-format variable. See https://www.iana.org/assignments/media-types/media-types.xhtml for more details. .IP "Encryption Settings" This panel shows the SSL/TLS protocol used along the Cipher Suites. This panel is not enabled unless .I %K is given within the log-format variable. .P GoAccess panels can be reordered and their subitems expanded or collapsed from the terminal interface, keeping the most important metrics front and center. Chart metrics and scales are also adjustable on the fly via the interactive menu described below. .P .I NOTE: Optionally and if configured, all panels can display the average time taken to serve the request. .SH STORAGE .P There are three storage options that can be used with GoAccess. Choosing one will depend on your environment and needs. .TP Default Hash Tables In-memory storage provides better performance at the cost of limiting the dataset size to the amount of available physical memory. GoAccess uses in-memory hash tables. It has very good memory usage and pretty good performance. This storage has support for on-disk persistence. .SH CONFIGURATION .P Multiple options can be used to configure GoAccess. For a complete up-to-date list of configure options, run .I ./configure --help .TP \fB\-\-enable-debug Compile with debugging symbols and turn off compiler optimizations. .TP \fB\-\-enable-utf8 Compile with wide character support. Ncursesw is required. .TP \fB\-\-enable-geoip= Compile with GeoLocation support. MaxMind's GeoIP is required. .I legacy will utilize the original GeoIP databases. .I mmdb will utilize the enhanced GeoIP2 databases. .TP \fB\-\-with-getline Dynamically expands line buffer in order to parse full line requests instead of using a fixed size buffer of 4096. .TP \fB\-\-with-zlib Build with zlib support for reading gzipped logs. Disabled by default. .TP \fB\-\-with-openssl Compile GoAccess with OpenSSL support for its WebSocket server. \fB\-\-with-zlib Enables optional zlib support to allow parsing of compressed log files (e.g., .gz) directly without manual decompression. .SH OPTIONS .P The following options can be supplied to the command or specified in the configuration file. If specified in the configuration file, long options need to be used without prepending -- and without using the equal sign =. .SS LOG/DATE/TIME FORMAT .TP \fB\-\-time-format= The time-format variable followed by a space, specifies the log format time containing either a name of a predefined format (see options below) or any combination of regular characters and special format specifiers. .IP They all begin with a percentage (%) sign. See `man strftime`. .I %T or %H:%M:%S. .IP Note that if a timestamp is given in microseconds, .I %f must be used as time-format. If the timestamp is given in milliseconds .I %* must be used as time-format. .TP \fB\-\-date-format= The date-format variable followed by a space, specifies the log format time containing either a name of a predefined format (see options below) or any combination of regular characters and special format specifiers. .IP They all begin with a percentage (%) sign. See `man strftime`. .I %Y-%m-%d. .IP Note that if a timestamp is given in microseconds, .I %f must be used as date-format. If the timestamp is given in milliseconds .I %* must be used as date-format. .TP \fB\-\-datetime-format= The date and time format combines the two variables into a single option. This gives the ability to get the timezone from a request and convert it to another timezone for output. See .I --tz= .IP They all begin with a percentage (%) sign. See `man strftime`. e.g., .I %d/%b/%Y:%H:%M:%S %z. .IP Note that if --datetime-format is used, .I %x must be passed in the log-format variable to represent the date and time field. .TP \fB\-\-log-format= The log-format variable followed by a space or .I \\\\t for tab-delimited, specifies the log format string. Note that if there are spaces within the format, the string needs to be enclosed in single/double quotes. Inner quotes need to be escaped. .IP In addition to specifying the raw log/date/time formats, for simplicity, any of the following predefined log format names can be supplied to the log/date/time-format variables. GoAccess can also handle one predefined name in one variable and another predefined name in another variable. .IP COMBINED - Combined Log Format, VCOMBINED - Combined Log Format with Virtual Host, COMMON - Common Log Format, VCOMMON - Common Log Format with Virtual Host, W3C - W3C Extended Log File Format, SQUID - Native Squid Log Format, CLOUDFRONT - Amazon CloudFront Web Distribution, CLOUDSTORAGE - Google Cloud Storage, AWSELB - Amazon Elastic Load Balancing, AWSS3 - Amazon Simple Storage Service (S3) AWSALB - Amazon Application Load Balancer CADDY - Caddy's JSON Structured format (local/info format) TRAEFIKCLF - Traefik's CLF flavor .IP .I Note: Generally, you need quotes around values that include white spaces, commas, pipes, quotes, and/or brackets. Inner quotes must be escaped. .IP .I Note: Piping data into GoAccess won't prompt a log/date/time configuration dialog, you will need to previously define it in your configuration file or in the command line. .IP .I Note: The default GoAccess format for CADDY is the 'local/info' format. Nevertheless, if needed, you have the option to utilize a custom GoAccess log format to match your particular configuration. .SS USER INTERFACE OPTIONS .TP \fB\-c \-\-config-dialog Prompt log/time/date configuration window on program start. Only when curses is initialized. .TP \fB\-i \-\-hl-header Color highlight active terminal panel. .TP \fB\-m \-\-with-mouse Enable mouse support on main terminal dashboard. .TP \fB\-\-\-color= Specify custom colors for the terminal output. .I Color Syntax DEFINITION space/tab colorFG#:colorBG# [attributes,PANEL] FG# = foreground color [-1...255] (-1 = default term color) BG# = background color [-1...255] (-1 = default term color) Optionally, it is possible to apply color attributes (multiple attributes are comma separated), such as: .I bold, .I underline, .I normal, .I reverse, .I blink If desired, it is possible to apply custom colors per panel, that is, a metric in the REQUESTS panel can be of color A, while the same metric in the BROWSERS panel can be of color B. .I Available color definitions: COLOR_MTRC_HITS COLOR_MTRC_VISITORS COLOR_MTRC_DATA COLOR_MTRC_BW COLOR_MTRC_AVGTS COLOR_MTRC_CUMTS COLOR_MTRC_MAXTS COLOR_MTRC_PROT COLOR_MTRC_MTHD COLOR_MTRC_HITS_PERC COLOR_MTRC_HITS_PERC_MAX COLOR_MTRC_VISITORS_PERC COLOR_MTRC_VISITORS_PERC_MAX COLOR_PANEL_COLS COLOR_BARS COLOR_ERROR COLOR_SELECTED COLOR_PANEL_ACTIVE COLOR_PANEL_HEADER COLOR_PANEL_DESC COLOR_OVERALL_LBLS COLOR_OVERALL_VALS COLOR_OVERALL_PATH COLOR_ACTIVE_LABEL COLOR_BG COLOR_DEFAULT COLOR_PROGRESS See configuration file for a sample color scheme. .TP \fB\-\-color-scheme=<1|2|3> Choose among color schemes. .I 1 for the default grey scheme. .I 2 for the green scheme. .I 3 for the Monokai scheme (shown only if terminal supports 256 colors). .TP \fB\-\-crawlers-only Parse and display only crawlers (bots). .TP \fB\-\-html-custom-css= Specifies a custom CSS file path to load in the HTML report. .TP \fB\-\-html-custom-js= Specifies a custom JS file path to load in the HTML report. .TP \fB\-\-html-report-title= Set HTML report page title and header. .TP \fB\-\-html-refresh=<secs> Refresh the HTML report every X seconds. The value has to be between 1 and 60 seconds. The default is set to refresh the HTML report every 1 second. .TP \fB\-\-html-prefs=<JSON> Set HTML report default preferences. Supply a valid JSON object containing the HTML preferences. It allows the ability to customize each panel plot. See example below. .IP .I Note: The JSON object passed needs to be a one line JSON string. For instance, .IP .nf \-\-html-prefs='{"theme":"bright","perPage":5,"layout":"horizontal","showTables":true,"visitors":{"plot":{"chartType":"bar"}}}' .fi .TP \fB\-\-json-pretty-print Format JSON output using tabs and newlines. .IP .I Note: This is not recommended when outputting a real-time HTML report since the WebSocket payload will much much larger. .TP \fB\-\-max-items=<number> The maximum number of items to display per panel. The maximum can be a number between 1 and n. .IP .I Note: Only the CSV and JSON output allow a maximum number greater than the default value of 366 (or 50 in the real-time HTML output) items per panel. .TP \fB\-\-no-color Turn off colored output. This is the default output on terminals that do not support colors. .TP \fB\-\-no-csv-summary Disable summary metrics on the CSV output. .TP \fB\-\-no-progress Disable progress metrics [total requests/requests per second]. .TP \fB\-\-no-tab-scroll Disable scrolling through panels when TAB is pressed or when a panel is selected using a numeric key. .TP \fB\-\-no-html-last-updated Do not show the last updated field displayed in the HTML generated report. .TP \fB\-\-no-parsing-spinner Do now show the progress metrics and parsing spinner. .TP \fB\-\-tz=<timezone> Outputs the report date/time data in the given timezone. Note that it uses the canonical timezone name. e.g., .I Europe/Berlin or .I America/Chicago or .I Africa/Cairo If an invalid timezone name is given, the output will be in GMT. See .I --datetime-format in order to properly specify a timezone in the date/time format. .SS SERVER OPTIONS .P .I Note This is just a WebSocket server to provide the raw real-time data. It is not a WebServer itself. To access your reports html file, you will still need your own HTTP server, place the generated report in it's document root dir and open the html file in your browser. The browser will then open another WebSocket-connection to the ws-server you may setup here, to keep the dashboard up-to-date. .TP \fB\-\-addr Specify IP address to bind the server to. Otherwise it binds to 0.0.0.0. .IP Usually there is no need to specify the address, unless you intentionally would like to bind the server to a different address within your server. .TP \fB\-\-daemonize Run GoAccess as daemon (only if \fB\-\-real-time-html enabled). .IP Note: It's important to make use of absolute paths across GoAccess' configuration. .TP \fB\-\-user-name=<username> Run GoAccess as the specified user. .IP Note: It's important to ensure the user or the users' group can access the input and output files as well as any other files needed. Other groups the user belongs to will be ignored. As such it's advised to run GoAccess behind a SSL proxy as it's unlikely this user can access the SSL certificates. .TP \fB\-\-origin=<url> Ensure clients send the specified origin header upon the WebSocket handshake. .TP \fB\-\-pid-file=<path/goaccess.pid> Write the daemon PID to a file when used along the --daemonize option. .TP \fB\-\-port=<port> Specify the port to use. By default GoAccess' WebSocket server listens on port 7890. .TP \fB\-\-real-time-html Enable real-time HTML output. .IP GoAccess uses its own WebSocket server to push the data from the server to the client. See http://gwsocket.io for more details how the WebSocket server works. .TP \fB\-\-ws-auth=<jwt[:secret]> | jwt:verify:secret\fR Enable WebSocket authentication using a JSON Web Token (JWT). This option supports two formats depending on whether the JWT is locally generated or externally fetched and verified: .IP \fB<jwt[:secret]>\fR: Specifies a static JWT for WebSocket authentication, with an optional secret for local generation or validation. If only "jwt" is provided (e.g., \fB\-\-ws-auth=jwt\fR), GoAccess generates a JWT using a secret sourced from the environment variable \fBGOACCESS_WSAUTH_SECRET\fR or a default HS256-compatible secret if unset. If a secret is included (e.g., \fB\-\-ws-auth=jwt:mysecret\fR), it's used directly as the HS256 signing key or read from a file if the value is a valid path (e.g., \fB\-\-ws-auth=jwt:/path/to/secret.key\fR). .IP \fBjwt:verify:secret\fR: Enables verification of an externally fetched JWT (e.g., via \fB\-\-ws-auth-url\fR). The "verify" keyword indicates that the JWT is provided by an external source, and the secret must be specified for validation. The secret can be a direct HS256 key (e.g., \fB\-\-ws-auth=jwt:verify:mysecret\fR), a file path (e.g., \fB\-\-ws-auth=jwt:verify:/path/to/secret.key\fR), or an environment variable name (e.g., \fB\-\-ws-auth=jwt:verify:$JWT_SECRET\fR). This format is required when using \fB\-\-ws-auth-url\fR and optionally \fB\-\-ws-auth-refresh-url\fR to fetch and verify JWTs from external endpoints. .IP When this option is used, the HTML report will not bootstrap the initial parsed data. Instead, it will only display the report if authentication succeeds, ensuring secure access to real-time data. .IP The system processes this option as follows: .IP For \fB<jwt[:secret]>\fR: If no secret is provided, GoAccess generates a JWT locally using the \fBGOACCESS_WSAUTH_SECRET\fR environment variable or a default secret. If a secret is specified, it's used to sign the JWT (either directly or from a file). .IP For \fBjwt:verify:secret\fR: The secret is mandatory and used to verify externally fetched JWTs. It must match the signing key used by the external authentication server (e.g., at \fB\-\-ws-auth-url\fR). .IP Requires to build GoAccess with .I --with-openssl. .TP \fB\-\-ws-auth-expire=<secs> Set the time after which the JWT expires. Defaults to 8 hours (28800 seconds) if not specified. .IP .I Only available for locally generated JWT. .IP Users can specify the expiration time in various formats. The value is converted to seconds for JWT expiration validation. Supported formats: .RS .IP \(bu 4 "3600" -> 3600 seconds .IP \(bu 4 "120s" -> 2 minutes .IP \(bu 4 "24h" -> 24 hours = 86,400 seconds .IP \(bu 4 "10m" -> 10 minutes = 600 seconds .IP \(bu 4 "10d" -> 10 days = 864,000 seconds .RE .IP The expiration time controls how long the JWT remains valid after issuance, ensuring secure WebSocket connections. .TP \fB\-\-ws-auth-url=<url> Specifies the URL where GoAccess fetches the initial JWT to authenticate the WebSocket connection. .IP When this option is used, GoAccess sends a GET request to the specified URL to fetch an initial JWT. The response must be a JSON object containing \fBstatus\fR, \fBaccess_token\fR, \fBrefresh_token\fR, and \fBexpires_in\fR fields. .IP Example: \fB\-\-ws-auth-url=https://site.com/api/get-auth-token\fR .IP When fetching the token, GoAccess uses .I { credentials: 'include' } as part of the request to securely retrieve the access token based on the user’s existing authentication session in your system, ensuring token retrieval is safe as long as your users are authenticated. .IP This option allows you to integrate your existing authentication system with the GoAccess dashboard, using token retrieval endpoints. .TP \fB\-\-ws-auth-refresh-url=<url> Specifies the URL where GoAccess fetches a new JWT when the current one is about to expire. .IP GoAccess proactively refreshes the JWT 60 seconds before expiration by sending a POST request with the refresh_token to this URL. If not provided, it defaults to the same URL as \fB\-\-ws-auth-url\fR. .IP Example: \fB\-\-ws-auth-refresh-url=https://site.com/api/refresh-token\fR .IP The response format should match that of the initial authentication URL. .SS "WebSocket Authentication Flow" .IP GoAccess offers flexible authentication options, supporting both stateless and stateful approaches. In the stateless approach, the refresh token is obtained without cookies or CSRF protection; your backend validates the refresh token’s signature and issues a new access token. Alternatively, the stateful approach allows the initial fetch to issue JWTs along with a `csrf_token`, which is stored in the session. The subsequent refresh request (POST) then performs a CSRF check, requiring the `X-CSRF-TOKEN` header to match the session’s token. .IP \fBInitial Authentication:\fR .RS .IP \(bu 4 When started with \fB\-\-ws-auth-url=<url>\fR, GoAccess sends a GET request to fetch an initial JWT. .IP \(bu 4 The expected successful response format: .IP { "status" : "success", "access_token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "csrf_token" : "3RRjNeR4RTXHmrV1cECkyUmmKeRxm4lzkI0eq41o", "refresh_token" : "refresh123xyz", "expires_in" : 3600 } .IP \(bu 4 If authentication fails, the endpoint should return: .IP { "status": "error", "message": "User not authenticated" } .RE .IP \fBToken Refreshing:\fR .RS .IP \(bu 4 GoAccess refreshes the JWT 60 seconds before expiration by sending a POST request to the specified URL (defaults to \fB--ws-auth-url\fR if \fB--ws-auth-refresh-url\fR is not set): .IP { "refresh_token": "refresh123xyz" } .IP GoAccess supports both stateless and stateful authentication. For stateless, no cookies or CSRF are required; your backend validates the refresh token signature. For stateful, include a \fBcsrf_token\fR in the initial response; GoAccess sends it as \fBX-CSRF-TOKEN\fR in the refresh request, which your backend must validate against the session. .RE .IP \fBPeriodic Token Validation:\fR .RS .IP \(bu 4 After refreshing, GoAccess confirms the updated JWT’s validity with the WebSocket server by sending: .IP { "action": "validate_token", "token": "current-jwt" } .RE .IP \fBImportant Note:\fR For these options to function, you must specify \fB\-\-ws-auth=jwt:verify:<secret>\fR where <secret> can be: .RS .IP \(bu 4 A path to a file containing the secret key (e.g., /path/to/secret.key) .IP \(bu 4 An environment variable name that holds the secret (e.g., $JWT_SECRET) .IP \(bu 4 The actual HS256 secret key as a string (e.g., mysecretkey123) .RE .IP Example: \fB\-\-ws-auth=jwt:verify:/path/to/secret.key\fR .TP \fB\-\-ws-url=<[scheme://]url[:port]> URL to which the WebSocket server responds. This is the URL supplied to the WebSocket constructor on the client side. .IP Optionally, it is possible to specify the WebSocket URI scheme, such as .I ws:// or .I wss:// for unencrypted and encrypted connections. e.g., .I wss://goaccess.io .IP If GoAccess is running behind a proxy, you could set the client side to connect to a different port by specifying the host followed by a colon and the port. e.g., .I goaccess.io:9999 .IP By default, it will attempt to connect to the generated report's hostname. If GoAccess is running on a remote server, the host of the remote server should be specified here. Also, make sure it is a valid host and NOT an http address. .TP \fB\-\-ping-interval=<secs> Enable WebSocket ping with specified interval in seconds. This helps prevent idle connections getting disconnected. .TP \fB\-\-fifo-in=<path/file> Creates a named pipe (FIFO) that reads from on the given path/file. .TP \fB\-\-fifo-out=<path/file> Creates a named pipe (FIFO) that writes to the given path/file. .TP \fB\-\-ssl-cert=<cert.crt> Path to TLS/SSL certificate. In order to enable TLS/SSL support, GoAccess requires that \-\-ssl-cert and \-\-ssl-key are used. Only if configured using --with-openssl .TP \fB\-\-ssl-key=<priv.key> Path to TLS/SSL private key. In order to enable TLS/SSL support, GoAccess requires that \-\-ssl-cert and \-\-ssl-key are used. Only if configured using --with-openssl .SS FILE OPTIONS .TP \fB\- The log file to parse is read from stdin. .TP \fB\-f \-\-log-file=<logfile> Specify the path to the input log file. If set in the config file, it will take priority over -f from the command line. .TP \fB\-S \-\-log-size=<bytes> Specify the log size in bytes. This is useful when piping in logs for processing in which the log size can be explicitly set. .TP \fB\-l \-\-debug-file=<debugfile> Send all debug messages to the specified file. .TP \fB\-p \-\-config-file=<configfile> Specify a custom configuration file to use. If set, it will take priority over the global configuration file (if any). .TP \fB\-\-external-assets Output HTML assets to external JS/CSS files. Great if you are setting up Content Security Policy (CSP). This will create two separate files, .I goaccess.js and .I goaccess.css , in the same directory as your report.html file. .TP \fB\-\-invalid-requests=<filename> Log invalid requests to the specified file. .TP \fB\-\-unknowns-log=<filename> Log unknown browsers and OSs to the specified file. .TP \fB\-\-no-global-config Do not load the global configuration file. This directory should normally be /usr/local/etc, unless specified with .I --sysconfdir=/dir. See --dcf option for finding the default configuration file. .SS PARSE OPTIONS .TP \fB\-a \-\-agent-list Enable a list of user-agents by host. For faster parsing, do not enable this flag. .TP \fB\-d \-\-with-output-resolver Enable IP resolver on HTML|JSON output. .TP \fB\-e \-\-exclude-ip=<IP|IP-range> Exclude an IPv4 or IPv6 from being counted. Applicable solely during access log data processing, it does not exclude persisted data. Ranges can be included as well using a dash in between the IPs (start-end). .IP .I Examples: exclude-ip 127.0.0.1 exclude-ip 192.168.0.1-192.168.0.100 exclude-ip ::1 exclude-ip 0:0:0:0:0:ffff:808:804-0:0:0:0:0:ffff:808:808 .TP \fB\-j \-\-jobs=<1-6> This specifies the number of parallel processing threads to be used during the execution of the program. It determines the degree of concurrency when analyzing log data, allowing for parallel processing of multiple tasks simultaneously. It defaults to 1 thread. It's common to set the number of jobs based on the available hardware resources, such as the number of CPU cores. .TP \fB\-H \-\-http-protocol=<yes|no> Set/unset HTTP request protocol. This will create a request key containing the request protocol + the actual request. .TP \fB\-M \-\-http-method=<yes|no> Set/unset HTTP request method. This will create a request key containing the request method + the actual request. .TP \fB\-o \-\-output=<path/file.[json|csv|html]> Write output to stdout given one of the following files and the corresponding extension for the output format: .IP /path/file.csv - Comma-separated values (CSV) /path/file.json - JSON (JavaScript Object Notation) /path/file.html - HTML .TP \fB\-q \-\-no-query-string Ignore request's query string. i.e., www.google.com/page.htm?query => www.google.com/page.htm. .IP .I Note: Removing the query string can greatly decrease memory consumption, especially on timestamped requests. .TP \fB\-r \-\-no-term-resolver Disable IP resolver on terminal output. .TP \fB\-\-444-as-404 Treat non-standard status code 444 as 404. .TP \fB\-\-4xx-to-unique-count Add 4xx client errors to the unique visitors count. .TP \fB\-\-anonymize-ip Anonymize the client IP address. The IP anonymization option sets the last octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to zeros. e.g., 192.168.20.100 => 192.168.20.0 e.g., 2a03:2880:2110:df07:face:b00c::1 => 2a03:2880:2110:df07:: .IP .I Note: This deactivates -a. .TP \fB\-\-chunk-size=<256-32768> This determines the number of lines that form a chunk. This parameter influences the size of the data processed concurrently by each thread, allowing for parallelization of the file reading and processing tasks. The value of chunk-size affects the efficiency of the parallel processing and can be adjusted based on factors such as system resources and the characteristics of the input data. .IP Low Values: If chunk-size is set too low, it might result in inefficient processing. For instance, if each chunk contains a very small number of lines, the overhead of managing and coordinating parallel processing might outweigh the benefits. .IP Large Values: Conversely, if chunk-size is set too high, it could lead to resource exhaustion. Each chunk represents a portion of data that a thread processes in parallel. Setting chunk-size to an excessively large value might cause memory issues, particularly if there are many parallel threads running simultaneously. .TP \fB\-\-anonymize-level Specifies the anonymization levels: 1 => default, 2 => strong, 3 => pedantic. .TS allbox; lb lb lb lb l l l l. Bits-hidden Level 1 Level 2 Level 3 T{ .BR IPv4 T} 8 16 24 T{ .BR IPv6 T} 64 80 96 .TE .TP \fB\-\-all-static-files Include static files that contain a query string. e.g., /fonts/fontawesome-webfont.woff?v=4.0.3 .TP \fB\-\-browsers-file=<path> By default GoAccess parses an "essential/basic" curated list of browsers & crawlers. If you need to add additional browsers, use this option. Include an additional delimited list of browsers/crawlers/feeds etc. See config/browsers.list for an example or https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list .TP \fB\-\-date-spec=<date|hr|min> Set the date specificity to either date (default), hr to display hours or min to display minutes appended to the date. .IP This is used in the visitors panel. It's useful for tracking visitors at the hour level. For instance, an hour specificity would yield to display traffic as 18/Dec/2010:19 or minute specificity 18/Dec/2010:19:59. .TP \fB\-\-double-decode Decode double-encoded values. This includes, user-agent, request, and referrer. .TP \fB\-\-enable-panel=<PANEL> Enable parsing and displaying the given panel. .IP .I Available panels: VISITORS REQUESTS REQUESTS_STATIC NOT_FOUND HOSTS OS BROWSERS VISIT_TIMES VIRTUAL_HOSTS REFERRERS REFERRING_SITES KEYPHRASES STATUS_CODES REMOTE_USER CACHE_STATUS GEO_LOCATION MIME_TYPE TLS_TYPE .TP \fB\-\-fname-as-vhost=<regex> Use log filename(s) as virtual host(s). POSIX regex is passed to extract the virtual host from the filename. e.g., .I --fname-as-vhost='[a-z]*\.[a-z]*' can be used to extract awesome.com.log => awesome.com. .TP \fB\-\-hide-referrer=<NEEDLE> Hide a referrer but still count it. Wild cards are allowed in the needle. i.e., *.bing.com. .TP \fB\-\-hour-spec=<hr|min> Set the time specificity to either hour (default) or min to display the tenth of an hour appended to the hour. .IP This is used in the time distribution panel. It's useful for tracking peaks of traffic on your server at specific times. .TP \fB\-\-ignore-crawlers Ignore crawlers from being counted. .TP \fB\-\-unknowns-as-crawlers Classify unknown OS and browsers as crawlers. .TP \fB\-\-ignore-panel=<PANEL> Ignore parsing and displaying the given panel. .IP .I Available panels: VISITORS REQUESTS REQUESTS_STATIC NOT_FOUND HOSTS OS BROWSERS VISIT_TIMES VIRTUAL_HOSTS REFERRERS REFERRING_SITES KEYPHRASES STATUS_CODES REMOTE_USER CACHE_STATUS GEO_LOCATION MIME_TYPE TLS_TYPE .TP \fB\-\-ignore-referrer=<referrer> Ignore referrers from being counted. Wildcards allowed. e.g., .I *.domain.com .I ww?.domain.* .TP \fB\-\-ignore-statics=<req|panel> Ignore static file requests. .I req Only ignore request from valid requests .I panels Ignore request from panels. Note that it will count them towards the total number of requests .TP \fB\-\-ignore-status=<CODE> Ignore parsing and displaying one or multiple status code(s). For multiple status codes, use this option multiple times. .TP \fB\-\-keep-last=<num_days> Keep the last specified number of days in storage. This will recycle the storage tables. e.g., keep & show only the last 7 days. .TP \fB\-\-no-ip-validation Disable client IP validation. Useful if IP addresses have been obfuscated before being logged. The log still needs to contain a placeholder for .I %h usually it's a resolved IP. e.g. .I ord37s19-in-f14.1e100.net. .TP \fB\-\-no-strict-status Disable HTTP status code validation. Some servers would record this value only if a connection was established to the target and the target sent a response. Otherwise, it could be recorded as -. .TP \fB\-\-num-tests=<number> Number of lines from the access log to test against the provided log/date/time format. By default, the parser is set to test 10 lines. If set to 0, the parser won't test any lines and will parse the whole access log. If a line matches the given log/date/time format before it reaches .I <number>, the parser will consider the log to be valid, otherwise GoAccess will return EXIT_FAILURE and display the relevant error messages. .TP \fB\-\-process-and-exit Parse log and exit without outputting data. Useful if we are looking to only add new data to the on-disk database without outputting to a file or a terminal. .TP \fB\-\-real-os Display real OS names. e.g, Windows XP, Snow Leopard. .TP \fB\-\-sort-panel=<PANEL,FIELD,ORDER> Sort panel on initial load. Sort options are separated by comma. Options are in the form: PANEL,METRIC,ORDER .IP .I Available metrics: BY_HITS - Sort by hits BY_VISITORS - Sort by unique visitors BY_DATA - Sort by data BY_BW - Sort by bandwidth BY_AVGTS - Sort by average time served BY_CUMTS - Sort by cumulative time served BY_MAXTS - Sort by maximum time served BY_PROT - Sort by http protocol BY_MTHD - Sort by http method .IP .I Available orders: ASC DESC .TP \fB\-\-static-file=<extension> Add static file extension. e.g.: .I .mp3 Extensions are case sensitive. .SS GEOLOCATION OPTIONS .TP \fB\-g \-\-std-geoip Standard GeoIP database for less memory usage. .TP \fB\-\-geoip-database=<geofile> Specify path to GeoIP database file. i.e., GeoLiteCity.dat. If using GeoIP2, you will need to download the GeoLite2 City or Country database from MaxMind.com and use the option --geoip-database to specify the database. You can also get updated database files for GeoIP legacy, you can find these as GeoLite Legacy Databases from MaxMind.com. IPv4 and IPv6 files are supported as well. For updated DB URLs, please see the default GoAccess configuration file. .I Note: --geoip-city-data is an alias of --geoip-database. .SS OTHER OPTIONS .TP \fB\-h \-\-help The help. .TP \fB\-s \-\-storage Display current storage method. i.e., B+ Tree, Hash. .TP \fB\-V \-\-version Display version information and exit. .TP \fB\-\-dcf Display the path of the default config file when `-p` is not used. .SS PERSISTENCE STORAGE OPTIONS .TP \fB\-\-persist Persist parsed data into disk. If database files exist, files will be overwritten. This should be set to the first dataset. See examples below. .TP \fB\-\-restore Load previously stored data from disk. If reading persisted data only, the database files need to exist. See .I --persist and examples below. .TP \fB\-\-db-path=<dir> Path where the on-disk database files are stored. The default value is the .I /tmp directory. .SH CUSTOM LOG/DATE FORMAT GoAccess can parse virtually any web log format. .P Predefined options include, Common Log Format (CLF), Combined Log Format (XLF/ELF), including virtual host, Amazon CloudFront (Download Distribution), Google Cloud Storage and W3C format (IIS). .P GoAccess allows any custom format string as well. .P There are two ways to configure the log format. The easiest is to run GoAccess with .I -c to prompt a configuration window. Otherwise, it can be configured under ~/.goaccessrc or the %sysconfdir%. .IP "time-format" The .I time-format variable followed by a space, specifies the log format time containing any combination of regular characters and special format specifiers. They all begin with a percentage (%) sign. See `man strftime`. .I %T or %H:%M:%S. .IP .I Note: If a timestamp is given in microseconds, .I %f must be used as .I time-format or .I %* if the timestamp is given in milliseconds. .IP "date-format" The .I date-format variable followed by a space, specifies the log format date containing any combination of regular characters and special format specifiers. They all begin with a percentage (%) sign. See `man strftime`. e.g., .I %Y-%m-%d. .IP .I Note: If a timestamp is given in microseconds, .I %f must be used as .I date-format or .I %* if the timestamp is given in milliseconds. .IP "log-format" The .I log-format variable followed by a space or .I \\\\t , specifies the log format string. .IP %x A date and time field matching the .I time-format and .I date-format variables. This is used when given a timestamp or the date & time are concatenated as a single string (e.g., 1501647332 or 20170801235000) instead of the date and time being in two separated variables. .IP %t time field matching the .I time-format variable. .IP %d date field matching the .I date-format variable. .IP %v The canonical Server Name of the server serving the request (Virtual Host). .IP %e This is the userid of the person requesting the document as determined by HTTP authentication. .IP %C The cache status of the object the server served. .IP %h host (the client IP address, either IPv4 or IPv6) .IP %r The request line from the client. This requires specific delimiters around the request (as single quotes, double quotes, or anything else) to be parsable. If not, we have to use a combination of special format specifiers as %m %U %H. .IP %q The query string. .IP %m The request method. .IP %U The URL path requested. .I Note: If the query string is in %U, there is no need to use .I %q. However, if the URL path, does not include any query string, you may use .I %q and the query string will be appended to the request. .IP %H The request protocol. .IP %s The status code that the server sends back to the client. .IP %b The size of the object returned to the client. .IP %R The "Referrer" HTTP request header. .IP %u The user-agent HTTP request header. .IP %K The TLS encryption settings chosen for the connection. (In Apache LogFormat: %{SSL_PROTOCOL}x) .IP %k The TLS encryption settings chosen for the connection. (In Apache LogFormat: %{SSL_CIPHER}x) .IP %M The MIME-type of the requested resource. (In Apache LogFormat: %{Content-Type}o) .IP %D The time taken to serve the request, in microseconds as a decimal number. .IP %T The time taken to serve the request, in seconds with milliseconds resolution. .IP %L The time taken to serve the request, in milliseconds as a decimal number. .IP %n The time taken to serve the request, in nanoseconds. .IP %^ Ignore this field. .IP %~ Move forward through the log string until a non-space (!isspace) char is found. .IP ~h The host (the client IP address, either IPv4 or IPv6) in a X-Forwarded-For (XFF) field. It uses a special specifier which consists of a tilde before the host specifier, followed by the character(s) that delimit the XFF field, which are enclosed by curly braces. i.e., "~h{, } For example, "~h{, }" is used in order to parse "11.25.11.53, 17.68.33.17" field which is delimited by a comma and a space (enclosed by double quotes). .TS allbox; lb lb l l. XFF field specifier T{ .BR \[dq]192.1.2.3, \~192.68.33.17,\~192.1.1.2\[dq] T} \[dq]~h{, }\[dq] T{ .BR \[dq]192.1.2.12\[dq],\~\[dq]192.68.33.17\[dq] T} ~h{\[dq], } T{ .BR 192.1.2.12,\~192.68.33.17 T} ~h{, } T{ .BR 192.1.2.14\~192.68.33.17\~192.1.1.2 T} ~h{ } .TE .P .I Note: In order to get the average, cumulative and maximum time served in GoAccess, you will need to start logging response times in your web server. In Nginx you can add .I $request_time to your log format, or .I %D in Apache. .P .I Important: If multiple time served specifiers are used at the same time, the first option specified in the format string will take priority over the other specifiers. .P GoAccess .I requires the following fields: .IP .I %h a valid IPv4/6 .IP .I %d a valid date .IP .I %r the request .SH INTERACTIVE MENU .IP "F1 or h" Main help. .IP "F5" Redraw main window. .IP "q" Quit the program, current window or collapse active module .IP "o or ENTER" Expand selected module or open window .IP "+" Expand the selected item's children when a module is already expanded. .IP "-" Collapse the selected item's children when a module is already expanded. .IP "0-9 and Shift + 0" Set selected module to active .IP "p" Reorder the dashboard panels interactively (press `p` or `P`). .IP "j" Scroll down within expanded module .IP "k" Scroll up within expanded module .IP "c" Set or change scheme color. .IP "r" Toggle reverse order of chart bars for the active module. .IP "m" Cycle chart metric forward for the active module (hits, visitors, bandwidth). .IP "M" Cycle chart metric backward for the active module. .IP "l" Toggle logarithmic scale for chart bars in the active module. .IP "TAB" Forward iteration of modules. Starts from current active module. .IP "SHIFT + TAB" Backward iteration of modules. Starts from current active module. .IP "^f" Scroll forward one screen within an active module. .IP "^b" Scroll backward one screen within an active module. .IP "s" Sort options for active module .IP "/" Search across all modules (regex allowed) .IP "n" Find the position of the next occurrence across all modules. .IP "g" Move to the first item or top of screen. .IP "G" Move to the last item or bottom of screen. .SH EXAMPLES .I Note: Piping data into GoAccess won't prompt a log/date/time configuration dialog, you will need to previously define it in your configuration file or in the command line. .SS DIFFERENT OUTPUTS .P To output to a terminal and generate an interactive report: .IP # goaccess access.log .P To generate an HTML report: .IP # goaccess access.log -a -o report.html .P To generate a JSON report: .IP # goaccess access.log -a -d -o report.json .P To generate a CSV file: .IP # goaccess access.log --no-csv-summary -o report.csv .P GoAccess also allows real-time monitoring from stdin: .IP # tail -f access.log | goaccess - .P To filter while keeping the pipe open for real-time analysis: .IP # tail -f access.log | grep -i --line-buffered 'firefox' | goaccess --log-format=COMBINED - .P Parse from the beginning of the file while maintaining the pipe: .IP # tail -f -n +0 access.log | grep -i --line-buffered 'firefox' | goaccess --log-format=COMBINED -o report.html --real-time-html - .P Convert log date timezone to Europe/Berlin: .IP # goaccess access.log --log-format='%h %^[%x] "%r" %s %b "%R" "%u"' --datetime-format='%d/%b/%Y:%H:%M:%S %z' --tz=Europe/Berlin --date-spec=min .SS MULTIPLE LOG FILES .P Parse multiple logs by passing them to the command line: .IP # goaccess access.log access.log.1 .P Parse from a pipe while also reading regular files (append \fB-\fR for stdin): .IP # cat access.log.2 | goaccess access.log access.log.1 - .P .I Note that the single dash is appended to the command line to let GoAccess know that it should read from the pipe. .P Process all compressed log files plus the current log: .IP # zcat access.log.*.gz | goaccess access.log - .P .I Note: On macOS, use \fBgunzip -c\fR instead of \fBzcat\fR. .I Note: If GoAccess was built with \fB--with-zlib\fR, it can parse \fB.gz\fR files directly without external decompression: .IP # goaccess access.log access.log.1.gz access.log.2.gz .SS REAL-TIME HTML OUTPUT .P Generate a real-time HTML report: .IP # goaccess access.log -o /usr/share/nginx/html/site/report.html --real-time-html .P Specify the WebSocket URL explicitly: .IP # goaccess access.log -o report.html --real-time-html --ws-url=goaccess.io .P Use a custom port: .IP # goaccess access.log -o report.html --real-time-html --port=9870 .P Bind WebSocket to a specific address: .IP # goaccess access.log -o report.html --real-time-html --addr=127.0.0.1 .P .I Note: For TLS/SSL real-time output, use \fB--ssl-cert=<cert.crt>\fR and \fB--ssl-key=<priv.key>\fR. If GoAccess is running behind a reverse proxy, set the WebSocket URL to include the proxy path and port, e.g.: .IP # goaccess access.log -o report.html --real-time-html --ws-url=goaccess.io:8080/ws .SS WORKING WITH DATES .P All requests from a specific date to end of file: .IP # sed -n '/05\/Dec\/2010/,$ p' access.log | goaccess -a - .P Using a relative date (one week ago): .IP # sed -n '/'$(date '+%d\/%b\/%Y' -d '1 week ago')'/,$ p' access.log | goaccess -a - .P Parse a specific date range: .IP # sed -n '/5\/Nov\/2010/,/5\/Dec\/2010/ p' access.log | goaccess -a - .P Keep only the last 5 days of data: .IP # goaccess access.log --keep-last=5 .SS VIRTUAL HOSTS .P Use \fB--concat-vhost-req\fR to prepend the virtual host or server block (%v) to the request field. .P Append virtual host manually: .IP # awk '$8=$1$8' access.log | goaccess -a - .P Exclude a list of virtual hosts: .IP # grep -v "`cat exclude_vhost_list_file`" vhost_access.log | goaccess - .SS FILES, STATUS CODES & BOTS .P Parse only specific page types (html, htm, php): .IP # awk '$7~/\.html|\.htm|\.php/' access.log | goaccess - .P Parse page views without extensions: .IP # awk '$7!~/\..*$/' access.log | goaccess - .P Filter by a single status code (e.g., 500): .IP # awk '$9~/500/' access.log | goaccess - .P Filter by multiple status codes (3xx or 5xx): .IP # tail -f -n +0 access.log | awk '$9~/3[0-9]{2}|5[0-9]{2}/' | goaccess -o out.html - .P Estimate bot traffic: .IP # tail -F -n +0 access.log | grep -i --line-buffered 'bot' | goaccess - .SS SERVER .P Run GoAccess at lower CPU priority: .IP # nice -n 19 goaccess -f access.log -a .P Pipe logs from a remote server: .IP # ssh -n root@server 'tail -f /var/log/apache2/access.log' | goaccess - .P .I Note: SSH requires \fB-n\fR so GoAccess can read from stdin. Use SSH keys for authentication. .SS INCREMENTAL LOG PROCESSING .P GoAccess can process logs incrementally by persisting data to disk, then restoring it and appending new data. GoAccess tracks inodes, the last line parsed, and the last timestamp per file. .P .I Note: If the inode doesn't match, all lines are parsed. If it matches, remaining lines are read and the count/timestamp updated. Log lines with a timestamp ≤ the stored timestamp are skipped. Piped data works off the timestamp of the last line read. .P .I Warning: Piped data may produce duplicate entries since multiple consecutive lines can share the same timestamp. Best practice is to parse directly with GoAccess rather than piping for incremental processing. .P Persist last month's log: .IP # goaccess access.log.1 --persist .P Append this month's log and preserve: .IP # goaccess access.log --restore --persist .P Read persisted data only: .IP # goaccess --restore .P NOTES GoAccess keeps track of inodes of all the files processed (assuming files will stay on the same partition), in addition, it extracts a snippet of data from the log along with the last line parsed of each file and the timestamp of the last line parsed. e.g., inode:29627417|line:20012|ts:20171231235059 First it compares if the snippet matches the log being parsed, if it does, it assumes the log hasn't changed dramatically, e.g., hasn't been truncated. If the inode does not match the current file, it parses all lines. If the current file matches the inode, it then reads the remaining lines and updates the count of lines parsed and the timestamp. As an extra precaution, it won't parse log lines with a timestamp ≤ than the one stored. Piped data works based off the timestamp of the last line read. For instance, it will parse and discard all incoming entries until it finds a timestamp >= than the one stored. .P For instance: .IP // last month access log .br # goaccess access.log.1 --persist .P then, load it with .IP // append this month access log, and preserve new data .br # goaccess access.log --restore --persist .P To read persisted data only (without parsing new data) .IP # goaccess --restore .P .SH NOTES Each active panel has a total of 366 items or 50 in the real-time HTML report. The number of items is customizable using .I max-items Note that HTML, CSV and JSON output allow a maximum number greater than the default value of 366 items per panel. .P A hit is a request (line in the access log), e.g., 10 requests = 10 hits. HTTP requests with the same IP, date, and user agent are considered a unique visit. .P If you want to enable dual-stack support, please use .I --addr=:: instead of the default .I --addr=0.0.0.0. .P The generated report will attempt to reconnect to the WebSocket server after 1 second with exponential backoff. It will attempt to connect 20 times. .SH BUGS If you think you have found a bug, please send me an email to .I goaccess@prosoftcorp.com or use the issue tracker in https://github.com/allinurl/goaccess/issues .SH AUTHOR Gerardo Orellana <hello@goaccess.io> For more details about it, or new releases, please visit https://goaccess.io ================================================ FILE: inlang.config.js ================================================ // init the inlang.config /** * @type {import("@inlang/core/config").DefineConfig} */ export async function defineConfig(env) { // importing plugin from local file for testing purposes const plugin = await env.$import( "https://cdn.jsdelivr.net/gh/jannesblobel/inlang-plugin-po@1/dist/index.js" ); const pluginConfig = { // language mean the name of you file pathPattern: "./po/{language}.po", referenceResourcePath: "./po/goaccess.pot", }; return { // if your project use a pot file use the pot as the reference Language // !! do not add the pot file in the Languages array /** * @example * example files: en.pot, de.po, es.po, fr.po * referenceLanguage: "en", languages: ["de","es","fr"], */ referenceLanguage: "en", languages: await getLanguages(env), readResources: (args) => plugin.readResources({ ...args, ...env, pluginConfig }), writeResources: (args) => plugin.writeResources({ ...args, ...env, pluginConfig }), }; } /** * Automatically derives the languages in this repository. */ async function getLanguages(env) { const files = await env.$fs.readdir("./po"); // files that end with .json // remove the .json extension to only get language name const languages = files .filter((name) => name.endsWith(".po")) .map((name) => name.replace(".po", "")); return languages; } ================================================ FILE: po/LINGUAS ================================================ de es fr ja ka ko sv zh_CN pt_BR ru uk it ================================================ FILE: po/Makevars ================================================ # Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. AM_CPPFLAGS = -I. -I$(srcdir) # These options get passed to xgettext. XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Free Software Foundation, Inc. # This tells whether or not to prepend "GNU " prefix to the package # name that gets inserted into the header of the $(DOMAIN).pot file. # Possible values are "yes", "no", or empty. If it is empty, try to # detect it automatically by scanning the files in $(top_srcdir) for # "GNU packagename" string. PACKAGE_GNU = # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = hello@goaccess.io # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = # This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' # context. Possible values are "yes" and "no". Set this to yes if the # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no # These options get passed to msgmerge. # Useful options are in particular: # --previous to keep previous msgids of translated messages, # --quiet to reduce the verbosity. MSGMERGE_OPTIONS = # These options get passed to msginit. # If you want to disable line wrapping when writing PO files, add # --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and # MSGINIT_OPTIONS. MSGINIT_OPTIONS = # This tells whether or not to regenerate a PO file when $(DOMAIN).pot # has changed. Possible values are "yes" and "no". Set this to no if # the POT file is checked in the repository and the version control # program ignores timestamps. PO_DEPENDS_ON_POT = yes # This tells whether or not to forcibly update $(DOMAIN).pot and # regenerate PO files on "make dist". Possible values are "yes" and # "no". Set this to no if the POT file and PO files are maintained # externally. DIST_DEPENDS_ON_UPDATE_PO = yes ================================================ FILE: po/POTFILES.in ================================================ # List of source files which contain translatable strings. src/labels.h ================================================ FILE: po/de.po ================================================ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2019-05-05 16:03+0200\n" "Last-Translator: Axel Wehner <mail@axelwehner.de>\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.2.1\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/labels.h:45 msgid "en" msgstr "de" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Kachel öffnen" #: src/labels.h:49 msgid "Help" msgstr "Hilfe" #: src/labels.h:50 msgid "Quit" msgstr "Schließen" #: src/labels.h:51 msgid "Total" msgstr "Gesamt" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] Aufsteigend [ ] Absteigend" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] Aufsteigend [x] Absteigend" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Aktive Kachel: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] GoAccess schließen" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Hilfe [Eingabe] Kachel öffnen" #: src/labels.h:61 msgid "Dashboard" msgstr "Übersicht" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Übersicht – Analysierte Anfragen gesamt" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Analysierte Anfragen gesamt" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Tx. Menge" #: src/labels.h:66 msgid "Date/Time" msgstr "Datum/Zeit" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Ausgeschl. IP-Treffer" #: src/labels.h:68 msgid "Failed Requests" msgstr "Fehlgeschlagene Anfragen" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "Loggen der Übertragungszeit " #: src/labels.h:70 msgid "Log Size" msgstr "Log-Größe" #: src/labels.h:71 msgid "Log Source" msgstr "Log-Quelle" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Verweise" #: src/labels.h:73 msgid "Total Requests" msgstr "Anfragen gesamt" #: src/labels.h:74 msgid "Static Files" msgstr "Statische Dateien" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Nicht gefunden" #: src/labels.h:76 msgid "Requested Files" msgstr "Angefragte Dateien" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Eindeutige Besucher" #: src/labels.h:78 msgid "Valid Requests" msgstr "Gültige Anfragen" #: src/labels.h:81 msgid "Hits" msgstr "Zugriffe" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Besucher" #: src/labels.h:84 msgid "Vis." msgstr "Bes." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" # T.S. = Time Serve (The time taken to serve the request) # Vz = Verarbeitungszeit # Wer hier Rat weiß, bitte verfeinern. #: src/labels.h:88 #, fuzzy msgid "Avg. T.S." msgstr "Durchschn. Vz." #: src/labels.h:89 #, fuzzy msgid "Cum. T.S." msgstr "Kum. Vz." #: src/labels.h:90 #, fuzzy msgid "Max. T.S." msgstr "Max. Vz." #: src/labels.h:91 msgid "Method" msgstr "Methode" #: src/labels.h:92 msgid "Mtd" msgstr "Meth" #: src/labels.h:93 msgid "Protocol" msgstr "Protokoll" #: src/labels.h:94 msgid "Proto" msgstr "Prot" #: src/labels.h:95 msgid "City" msgstr "Stadt" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "ASN" #: src/labels.h:97 msgid "Country" msgstr "Land" #: src/labels.h:98 msgid "Hostname" msgstr "Hostname" #: src/labels.h:99 msgid "Data" msgstr "Daten" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Zugriffe/Besucher" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Eindeutige Besucher pro Tag" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Eindeutige Besucher pro Tag – inklusive Spiders/Bots" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "" "Zugriffe mit derselben IP, Datum und User-Agent sind ein eindeutiger Besuch." #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Angefragte Dateien (URLs)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Häufigste Anfragen sortiert nach Zugriffen [, avgts, cumts, maxts, mthd, " "proto]" #: src/labels.h:118 msgid "Requests" msgstr "Anfragen" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Statische Anfragen" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Häufigste statische Anfragen sortiert nach Zugriffen [, avgts, cumts, maxts, " "mthd, proto]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Zeitverteilung" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Daten sortiert nach Stunde [, avgts, cumts, maxts]" #: src/labels.h:132 msgid "Time" msgstr "Zeit" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Virtuelle Hosts" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Daten sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Entfernter Nutzer (HTTP-Authentifizierung)" #: src/labels.h:146 msgid "Remote User" msgstr "Entfernter Nutzer" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "Cache-Status des übertragenen Objekts" #: src/labels.h:153 msgid "Cache Status" msgstr "Cache-Status" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "Nicht gefundene URLs (404er)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Häufigste nicht gefundene URLs sortiert nach Zugriffen [, avgts, cumts, " "maxts, mthd, proto]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Besucher-Hostnamen und -IPs" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "Häufigste Besucher-Hosts sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:167 msgid "Hosts" msgstr "Hosts" #: src/labels.h:170 msgid "Operating Systems" msgstr "Betriebssysteme" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "Häufigste Betriebssysteme sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:174 msgid "OS" msgstr "OS" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Browser" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "Häufigste Browser sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "Verweis-URLs" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Häufigste ausgehende Verweise sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Verweisende Seiten" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "Häufigste eingehende Verweise sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Schlüsselwörter von Googles Suchmaschine" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "Häufigste Schlüsselwörter sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Schlüsselwörter" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Geo-Standort" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "Kontinent > Land sortiert nach eindeutigen Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "Autonome Systemnummern / Organisationen (ASNs)" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "HTTP-Statuscodes" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "Häufigste HTTP-Status-Codes sortiert nach Zugriffen [, avgts, cumts, maxts]" #: src/labels.h:223 msgid "Status Codes" msgstr "Statuscodes" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIME-Typen" #: src/labels.h:228 msgid "File types shipped out" msgstr "Versendete Dateitypen" #: src/labels.h:233 msgid "Encryption settings" msgstr "Verschlüsselungsoptionen" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "TLS-Version und gewählter Algorithmus" #: src/labels.h:237 msgid "TLS Settings" msgstr "TLS-Optionen" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] Groß- und Kleinschreibung" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] Groß- und Kleinschreibung" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "" "Regex erlaubt – ^g zum Abbrechen – TAB zum Wechseln zwischen Groß-/" "Kleinschreibung" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Finde Muster in allen Ansichten" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Log-Format Konfiguration" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[LEERTASTE] auswählen – [EINGABE] weiter – [q] schließen" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Log-Format – [c] zum Hinzufügen/Bearbeiten des Formats" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Datumsformat – [d] zum Hinzufügen/Bearbeiten des Formats" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Zeitformat – [t] zum Hinzufügen/Bearbeiten des Formats" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[HOCH/RUNTER] zum Scrollen – [q] zum Schließen des Fensters" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "User-Agents für %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Schema-Konfiguration" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[EINGABE] Schema verwenden – [q] schließen" #: src/labels.h:277 msgid "Sort active module by" msgstr "Aktives Modul sortieren nach" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[EINGABE] auswählen – [TAB] sortieren – [q] schließen" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "GoAccess' schnelle Hilfe" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[HOCH/RUNTER] zum Scrollen – [q] zum Schließen" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "Arbeitsspeicherintern mit persistentem Festplattenspeicher" #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Formatfehler – prüfen Sie das Log-/Datums-/Zeitformat" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Es wurde kein Datumsformat in der Konfigurationsdatei gefunden." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Es wurde kein Log-Format in der Konfigurationsdatei gefunden." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Es wurde kein Zeitformat in der Konfigurationsdatei gefunden." #: src/labels.h:303 msgid "No default config file found." msgstr "Keine Standard-Konfigurationsdatei gefunden." #: src/labels.h:305 msgid "You may specify one with" msgstr "Sie übergeben eine mit" #: src/labels.h:307 msgid "producing the following errors" msgstr "führen zu folgenden Fehlern" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "%1$d Zeilen analysiert" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Bitte melden Sie den Vorfall und erstatten Sie Bericht auf GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Wählen Sie ein Zeitformat." #: src/labels.h:315 msgid "Select a date format." msgstr "Wählen Sie ein Datumsformat." #: src/labels.h:317 msgid "Select a log format." msgstr "Wählen Sie ein Log-Format." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "Kachel „'%1$s'“ ist deaktiviert" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "Keine Eingabedaten übergeben und keine wiederherzustellende Daten" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Für mehr Details besuche" #: src/labels.h:331 msgid "Last Updated" msgstr "Zuletzt aktualisiert" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket-Server bereit, um neue Client-Verbindungen anzunehmen" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Dem Befehl können auch folgende Optionen mitgegeben werden" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Beispiele können gefunden werden über" #: src/labels.h:341 msgid "Server Statistics" msgstr "Serverstatistik" #: src/labels.h:343 msgid "Theme" msgstr "Design (Theme)" #: src/labels.h:345 msgid "Dark Gray" msgstr "Dunkelgrau (Dark Gray)" #: src/labels.h:347 msgid "Bright" msgstr "Hell (Bright)" #: src/labels.h:349 msgid "Dark Blue" msgstr "Dunkelblau (Dark Blue)" #: src/labels.h:351 msgid "Dark Purple" msgstr "Dunkelviolett (Dark Purple)" #: src/labels.h:353 msgid "Panels" msgstr "Kacheln" #: src/labels.h:355 msgid "Items per Page" msgstr "Einträge pro Seite" #: src/labels.h:357 msgid "Tables" msgstr "Tabellen" #: src/labels.h:359 msgid "Display Tables" msgstr "Zeige Tabellen" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Auf kleinen Geräten automatisch verstecken" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Tabellen auf kleinen Bildschirmen automatisch verstecken" #: src/labels.h:365 msgid "Toggle Panel" msgstr "Kachel umschalten" #: src/labels.h:367 msgid "Layout" msgstr "Layout" #: src/labels.h:369 msgid "Horizontal" msgstr "Horizontal" #: src/labels.h:371 msgid "Vertical" msgstr "Vertikal" #: src/labels.h:373 msgid "WideScreen" msgstr "Breitbild" #: src/labels.h:375 msgid "File Options" msgstr "Dateioptionen" #: src/labels.h:377 msgid "Export as JSON" msgstr "Als JSON exportieren" #: src/labels.h:379 msgid "Panel Options" msgstr "Kachel-Optionen" #: src/labels.h:381 msgid "Previous" msgstr "Vorherige" #: src/labels.h:383 msgid "Next" msgstr "Nächste" #: src/labels.h:385 msgid "First" msgstr "Erste" #: src/labels.h:387 msgid "Last" msgstr "Letzte" #: src/labels.h:389 msgid "Chart Options" msgstr "Diagrammoptionen" #: src/labels.h:391 msgid "Chart" msgstr "Diagramm" #: src/labels.h:393 msgid "Type" msgstr "Typ" #: src/labels.h:395 msgid "Area Spline" msgstr "Spline-Kurve" #: src/labels.h:397 msgid "Bar" msgstr "Balken" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Plot-Metrik" #: src/labels.h:405 msgid "Table Columns" msgstr "Tabellenspalten" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx informativ" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Erfolg" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Umleitung" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Client-Fehler" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Serverfehler" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "" "100 – weitermachen: Der Server hat den ersten Teil der Anfrage erhalten" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 – Protokollwechsel: Client gebeten, die Protokolle zu wechseln" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 – OK: Die vom Client gesendete Anfrage war erfolgreich" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 –eErstellt: Die Anforderung wurde erfüllt und angelegt" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 – akzeptiert: Die Anfrage wurde zur Bearbeitung angenommen" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 – nicht autorisierte Informationen: Antwort eines Dritten" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 – kein Inhalt: Die Anfrage hat keinen Inhalt zurückgegeben" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 – Inhalt zurücksetzen: Der Server hat den Client gebeten, das Dokument " "zurückzusetzen" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 – Teilinhalt: Der partielle GET war erfolgreich" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 – Mehrfach-Status: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - bereits gemeldet: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 – Mehrfachauswahl: mehrere Optionen für die Ressource" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 – dauerhaft verschoben: Ressource wurde dauerhaft verschoben" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 – vorübergehend verschoben (Umleitung)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 – siehe anderes Dokument: Die Antwort ist unter einem anderen URI" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 – nicht geändert: Die Ressource wurde nicht verändert" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 – Proxy verwenden: Zugriff nur über den Proxy möglich" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 – temporäre Umleitung: Ressource vorübergehend verschoben" #: src/labels.h:462 #, fuzzy msgid "308 - Permanent Redirect" msgstr "402 – dauerhafte Umleitung" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 – fehlerhafte Anfrage: Die Syntax der Anfrage ist ungültig" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "" "401 – nicht autorisiert: Anforderung erfordert Benutzerauthentifizierung" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 – Zahlung erforderlich" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 – verboten: Der Server weigert sich, darauf zu reagieren" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "" "404 – nicht gefunden: Angefragte Ressource konnte nicht gefunden werden" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 – Methode nicht erlaubt: Anforderungsmethode nicht unterstützt" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 – nicht zulässig" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 – Proxy-Authentifizierung erforderlich" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "" "408 – Zeitüberschreitung der Anfrage: Zeitüberschreitung des Server beim " "Warten auf die Anfrage" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 – Konflikt: Konflikt in der Anfrage" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 – verschwunden: Angeforderte Ressource ist nicht mehr verfügbar" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 – erforderliche Länge: ungültige Inhaltslänge" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "" "412 – Vorbedingung fehlgeschlagen: Server erfüllt nicht die Voraussetzungen" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 – Nutzdaten zu groß" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 – Anfrage-URI zu lang" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "" "415 – nicht unterstützter Medientyp: Der Medientyp wird nicht unterstützt" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 – angeforderter Bereich nicht erfüllbar: Dieser Teil kann nicht " "geliefert werden" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 – Erwartung fehlgeschlagen" #: src/labels.h:500 #, fuzzy msgid "418 - I'm a teapot" msgstr "418 – Ich bin ein Teekännchen" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 – fehlgesteuerte Anfrage" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "" "422 – nicht verarbeitbare Entität aufgrund von semantischen Fehlern: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 – die Ressource, auf die zugegriffen wird, ist gesperrt" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 – fehlgeschlagene Abhängigkeit: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "" "426 – Upgrade erforderlich: Der Client sollte zu einem anderen Protokoll " "wechseln" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 – erforderliche Vorraussetzung" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 – zu viele Anfragen: Der Benutzer hat zu viele Anfragen gesendet" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 – Header-Felder der Anfrage zu groß" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "" "408 – Zeitüberschreitung der Anfrage: Zeitüberschreitung des Server beim " "Warten auf die Anfrage" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 – aus rechtlichen Gründen nicht verfügbar" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 – (Nginx) Verbindung geschlossen, ohne Header zu senden" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 – (Nginx) Anfrage-Kopf zu groß" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 – (Nginx) SSL-Client-Zertifikatsfehler" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 – (Nginx) Client hat kein Zertifikat zur Verfügung gestellt" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 – (Nginx) HTTP-Anfrage an HTTPS-Port gesendet" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "" "499 – (Nginx) Verbindung vom Client während der Bearbeitung der Anfrage " "geschlossen" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 – interner Serverfehler" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 – nicht implementiert" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "" "502 – Fehlerhaftes Gateway: Eine ungültige Antwort vom Upstream erhalten" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 – Dienst nicht verfügbar: Der Server ist zurzeit nicht ansprechbar" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 – Gateway-Zeitüberschreitung: Der Upstream-Server konnte keine Anfrage " "senden" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 – HTTP-Version wird nicht unterstützt" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 – CloudFlare – der Webserver gibt einen unbekannten Fehler zurück" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 – CloudFlare – Webserver ist ausgefallen" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 – CloudFlare – Zeitüberschreitung der Verbindung" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 – CloudFlare – Herkunft ist unerreichbar" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 – CloudFlare – Zeitüberschreitung aufgetreten" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "" "401 – nicht autorisiert: Anforderung erfordert Benutzerauthentifizierung" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 #, fuzzy msgid "Settings" msgstr "TLS-Optionen" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Verweise" ================================================ FILE: po/es.po ================================================ msgid "" msgstr "" "Project-Id-Version: Goaccess\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2017-08-04 13:00-0300\n" "Last-Translator: Enrique Becerra <kabeza@gmail.com>\n" "Language-Team: \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" #: src/labels.h:45 msgid "en" msgstr "es" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Exp. Panel" #: src/labels.h:49 msgid "Help" msgstr "Ayuda" #: src/labels.h:50 msgid "Quit" msgstr "Salir" #: src/labels.h:51 msgid "Total" msgstr "Total" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] ASC [ ] DESC" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] ASC [x] DESC" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Panel Activo: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q]Salir GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Ayuda [Enter] Exp. Panel" #: src/labels.h:61 msgid "Dashboard" msgstr "Panel de Control" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Panel de Control - Peticiones Analizadas En General" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Peticiones Analizadas en General" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "" #: src/labels.h:66 msgid "Date/Time" msgstr "Fecha/Hora" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Accesos IP Excl." #: src/labels.h:68 msgid "Failed Requests" msgstr "Peticiones Fallidas" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "" #: src/labels.h:70 msgid "Log Size" msgstr "Tamaño Log" #: src/labels.h:71 msgid "Log Source" msgstr "Origen de Log" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Referidos" #: src/labels.h:73 msgid "Total Requests" msgstr "Peticiones Totales" #: src/labels.h:74 msgid "Static Files" msgstr "Archivos Estaticos" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "No Encontrado" #: src/labels.h:76 #, fuzzy msgid "Requested Files" msgstr "Archivos Requeridos (URLs)" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Visitantes Unicos" #: src/labels.h:78 msgid "Valid Requests" msgstr "Peticiones Validas" #: src/labels.h:81 msgid "Hits" msgstr "Hits" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Visitantes" #: src/labels.h:84 msgid "Vis." msgstr "Vis." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Prom. T.S." #: src/labels.h:89 msgid "Cum. T.S." msgstr "Cum. T.S." #: src/labels.h:90 msgid "Max. T.S." msgstr "Max. T.S." #: src/labels.h:91 msgid "Method" msgstr "Metodo" #: src/labels.h:92 msgid "Mtd" msgstr "Mtd" #: src/labels.h:93 msgid "Protocol" msgstr "Protocolo" #: src/labels.h:94 msgid "Proto" msgstr "Proto" #: src/labels.h:95 msgid "City" msgstr "Ciudad" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "Pais" #: src/labels.h:98 msgid "Hostname" msgstr "Hostname" #: src/labels.h:99 msgid "Data" msgstr "Datos" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Hits/Visitas" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Visitantes unicos por dia" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Visitantes unicos por dia - Incluyendo M.Busqueda" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "Hits con el mismo IP, fecha y agente son unica visita" #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Archivos Requeridos (URLs)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "Peticiones Top ordenadas por hits [, avgts, cumts, maxts, mthd, proto]" #: src/labels.h:118 msgid "Requests" msgstr "Peticiones" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Peticiones Estaticas" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Peticiones estaticas top ordenadas por hits [, avgts, cumts, maxts, mthd, " "proto]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Distribucion Horaria" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Datos ordenados por hora [, avgts, cumts, maxts]" #: src/labels.h:132 msgid "Time" msgstr "Hora" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Hosts Virtuales" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Datos ordenados por hits [, avgts, cumts, maxts]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Usuario Remoto (Autenticacion HTTP)" #: src/labels.h:146 msgid "Remote User" msgstr "Usuario Remoto" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "" #: src/labels.h:153 msgid "Cache Status" msgstr "Estado de Caché" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "URLs no encontradas (404)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "URLs no encontradas top ordenadas por hits [, avgts, cumts, maxts, mthd, " "proto]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Hosts e IPs de los Visitantes" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "Hosts de visitante top ordenado por hits [, avgts, cumts, maxts]" #: src/labels.h:167 msgid "Hosts" msgstr "Hosts" #: src/labels.h:170 msgid "Operating Systems" msgstr "Sistemas Operativos" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "Sistemas Operativos top ordenados por hits [, avgts, cumts, maxts]" #: src/labels.h:174 msgid "OS" msgstr "SO" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Navegadores" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "Navegadores top ordenados por hits [, avgts, cumts, maxts]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "URLs Referidos" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "Peticiones top de referidos ordenadas por hits [, avgts, cumts, maxts]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Sitios Referidos" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "Sitios Referidos top ordenados por hits [, avgts, cumts, maxts]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Frases de busqueda de motor de busqueda Google" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "Frases de busqueda top ordenadas por hits [, avgts, cumts, maxts]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Frases Clave" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Geo Localizacion" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "Continente > Pais ordenado por hits unicos [, avgts, cumts, maxts]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "Codigos de Estado HTTP" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "Codigos de Estado HTTP top ordenados por hits [, avgts, cumts, maxts]" #: src/labels.h:223 msgid "Status Codes" msgstr "Codigos de Estado" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "" #: src/labels.h:228 msgid "File types shipped out" msgstr "" #: src/labels.h:233 msgid "Encryption settings" msgstr "" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "" #: src/labels.h:237 msgid "TLS Settings" msgstr "" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] distinguir mayusculas" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] distinguir mayusculas" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Permitido Regex - ^g para cancelar - TAB cambiar case" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Encontrar patron en todas las vistas" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Configuracion de Formato de Log" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[ESPACIO] para alternar - [ENTER] para proceder - [q] para salir" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Formato de Log - [c] para agregar/editar formato" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Formato de Fecha - [d] para agregar/editar formato" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Formato de Hora - [t] para agregar/editar formato" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[ARRIBA/ABAJO] para scrollear - [q] para cerrar ventana" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "Agentes de Usuario para %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Configuracion de Esquema" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] para usar esquema - [q]Salir" #: src/labels.h:277 msgid "Sort active module by" msgstr "Ordenar modulo activo por" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] seleccionar - [TAB] ordenar - [q]Salir" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "Ayuda Rapida de GoAccess" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[ARRIBA/ABAJO] para scrollear - [q] para salir" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "" #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Errores de Formato - Verifique su formato de log/fecha/hora" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "No se encontro formato de fecha en su archivo de configuracion" #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "No se encontro formato de log en su archivo de configuracion" #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "No se encontro formato de hora en su archivo de configuracion" #: src/labels.h:303 msgid "No default config file found." msgstr "No se encontro archivo de configuracion por defecto." #: src/labels.h:305 msgid "You may specify one with" msgstr "Ud. puede especificar un ancho" #: src/labels.h:307 msgid "producing the following errors" msgstr "produciendo los siguientes errores" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Analizadas %1$d lineas" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Por favor avise abriendo un issue en GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Elija un formato de hora." #: src/labels.h:315 msgid "Select a date format." msgstr "Elija un formato de fecha." #: src/labels.h:317 msgid "Select a log format." msgstr "Elija un formato de log." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' panel esta desactivado" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Para mas detalles visite" #: src/labels.h:331 msgid "Last Updated" msgstr "Ultima actualizacion" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "Servidor WebSocket listo para aceptar nuevas conexiones de clientes" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Las siguientes opciones pueden ser ademas suplirse en el comando" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Ejemplos pueden encontrarse ejecutando" #: src/labels.h:341 msgid "Server Statistics" msgstr "Estadisticas de Servidor" #: src/labels.h:343 msgid "Theme" msgstr "Skin" #: src/labels.h:345 msgid "Dark Gray" msgstr "Gris Oscuro" #: src/labels.h:347 msgid "Bright" msgstr "Clara" #: src/labels.h:349 msgid "Dark Blue" msgstr "Azul Oscuro" #: src/labels.h:351 #, fuzzy msgid "Dark Purple" msgstr "Morado Oscuro" #: src/labels.h:353 msgid "Panels" msgstr "Paneles" #: src/labels.h:355 msgid "Items per Page" msgstr "Items por pagina" #: src/labels.h:357 msgid "Tables" msgstr "Tablas" #: src/labels.h:359 msgid "Display Tables" msgstr "Mostrar Tablas" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Auto-ocultar en Pequeños Dispositivos" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Automaticamente ocultar tablas en pequeños dispositivos" #: src/labels.h:365 msgid "Toggle Panel" msgstr "" #: src/labels.h:367 msgid "Layout" msgstr "Diseño" #: src/labels.h:369 msgid "Horizontal" msgstr "Horizontal" #: src/labels.h:371 msgid "Vertical" msgstr "Vertical" #: src/labels.h:373 msgid "WideScreen" msgstr "Panorama" #: src/labels.h:375 msgid "File Options" msgstr "Opciones de Archivo" #: src/labels.h:377 msgid "Export as JSON" msgstr "Exportar como JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Opciones de Panel" #: src/labels.h:381 msgid "Previous" msgstr "Anterior" #: src/labels.h:383 msgid "Next" msgstr "Siguiente" #: src/labels.h:385 msgid "First" msgstr "Primero" #: src/labels.h:387 msgid "Last" msgstr "Ultimo" #: src/labels.h:389 msgid "Chart Options" msgstr "Opciones de Grafico" #: src/labels.h:391 msgid "Chart" msgstr "Grafico" #: src/labels.h:393 msgid "Type" msgstr "Tipo" #: src/labels.h:395 msgid "Area Spline" msgstr "Area Ranura" #: src/labels.h:397 msgid "Bar" msgstr "Bar" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Trazado" #: src/labels.h:405 msgid "Table Columns" msgstr "Columnas de Tabla" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Informativo" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Exito" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Redireccion" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Errores de Cliente" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Errores de Servidor" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - Continuar: Servidor recibio la parte inicial de la peticion" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - Cambiando Protocolos: Cliente pidio cambiar protocolos" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: La peticion enviada por el cliente fue exitosa" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Creada: La peticion ha sido completada y creada" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Aceptada: La peticion fue aceptada para procesar" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - No-autoritario Informativo: Respuesta de una 3er. parte" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - Sin Contenido: Peticion no retorno ningun contenido" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 - Resetear Contenido: Servidor pidio al cliente resetear el documento" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Contenido Parcial: el GET parcial fue exitoso" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Multi-Estado: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Ya Reportado: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Multiples Opciones: Multiples opciones para el recurso" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Movido Permanente: Recurso ha sido permanentemente movido" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Movido Temporalmente (redireccion)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - Ver Otro Documento: La respuesta es en una URI diferente" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - No Modificado: Recurso no ha sido modificado" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Usar Proxy: Puede ser accedido solo a traves de proxy" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Redireccion Temporal: Recurso movido temporalmente" #: src/labels.h:462 #, fuzzy msgid "308 - Permanent Redirect" msgstr "402 - Pago Requerido" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Peticion Mala: La sintaxis de la peticion es invalida" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Sin Autorizacion: Peticion necesita autenticacion de usuario" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Pago Requerido" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Prohibido: Servidor esta rechazando respuesta" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - No Encontrado: Peticion de recurso no pudo encontrarse" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Metodo No Permitido: Metodo de Peticion no soportado" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - No Aceptable" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Autenticacion de Proxy Requerida" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - Timeout de Peticion: Tiempo agotado de espera para la solicitud" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflicto: Conflicto en la peticion" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Fue: Recurso requerido no esta mas disponible" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Longitud Requerida: Content-Length Invalido" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - Precondicion Fallida: Servidor no cumple precondiciones" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Carga Util Demasiado larga" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - Request-URI demasiado larga" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Tipo de medios no soportado: El tipo de medios no es soportado" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "416 - Rango requerido no satisfacible: No puede proveer esa porcion" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Expectativa Fallida" #: src/labels.h:500 #, fuzzy msgid "418 - I'm a teapot" msgstr "418 - Soy una tetera" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Peticion mal dirigida" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Peticion fue imposible seguirla debido a errores semánticos" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - El recurso al que se está teniendo acceso está bloqueado" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - La solicitud falló debido a una falla en la solicitud previa" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - El cliente debería cambiarse a TLS/1.0" #: src/labels.h:516 #, fuzzy msgid "428 - Precondition Required" msgstr "402 - Pago Requerido" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - Hay muchas conexiones desde esta dirección de internet" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 #, fuzzy msgid "431 - Request Header Fields Too Large" msgstr "494 - (Nginx) Cabecera de Peticion demasiada larga" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "408 - Timeout de Peticion: Tiempo agotado de espera para la solicitud" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Conexion cerrada sin enviar cabeceras" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) Cabecera de Peticion demasiada larga" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) Cliente SSL certificado erroneo" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) Client no proveyo certificado" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) Peticion HTTP enviada a puerto HTTPS" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) Conexion cerrada por cliente mientras procesaba peticion" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Error Interno de Servidor" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - No Implementado" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - Entrada Erronea: Recibio respuesta invalida" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "" "503 - Servicio no disponible: El servidor actualmente no esta disponible" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 - Timeout de Gateway: El servidor upstream fallo al enviar peticion" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - Version HTTP no soportada" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - El servidor esta retornando un error desconocido" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Servidor Web caido" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - Tiempo de espera de conexion agotado " #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - Origen es inaccesible" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - Ocurrio cese de tiempo" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "401 - Sin Autorizacion: Peticion necesita autenticacion de usuario" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 msgid "Settings" msgstr "" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Referidos" ================================================ FILE: po/fr.po ================================================ msgid "" msgstr "" "Project-Id-Version: goaccess 1.4\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2020-07-10 11:44+0200\n" "Last-Translator: Coban L. <coban.lebret@nfrance.com>\n" "Language-Team: français\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/labels.h:45 msgid "en" msgstr "fr" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Dév. Panneau" #: src/labels.h:49 msgid "Help" msgstr "Aide" #: src/labels.h:50 msgid "Quit" msgstr "Quitter" #: src/labels.h:51 msgid "Total" msgstr "Total" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] ASC [ ] DESC" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] ASC [x] DESC" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Panneau Actif: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q]uitter GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Aide [Enter] Dév. Panneau" #: src/labels.h:61 msgid "Dashboard" msgstr "Tableau de bord" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Tableau de bord - Requêtes analysées, vue d'ensemble" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Requêtes analysées, vue d'ensemble" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Tx. Montant" #: src/labels.h:66 msgid "Date/Time" msgstr "Date/Heure" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Excl. IP Hits" #: src/labels.h:68 msgid "Failed Requests" msgstr "Requêtes échouées" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "" #: src/labels.h:70 msgid "Log Size" msgstr "Taille log" #: src/labels.h:71 msgid "Log Source" msgstr "Fichier log" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Origine" #: src/labels.h:73 msgid "Total Requests" msgstr "Requêtes totales" #: src/labels.h:74 msgid "Static Files" msgstr "Fichiers statiques" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Non Trouvé" #: src/labels.h:76 #, fuzzy msgid "Requested Files" msgstr "Fichiers demandés (URLs)" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Visiteurs uniques" #: src/labels.h:78 msgid "Valid Requests" msgstr "Requêtes valides" #: src/labels.h:81 msgid "Hits" msgstr "Hits" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Visiteurs" #: src/labels.h:84 msgid "Vis." msgstr "Vis." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Avg. T.S." #: src/labels.h:89 msgid "Cum. T.S." msgstr "Cum. T.S." #: src/labels.h:90 msgid "Max. T.S." msgstr "Max. T.S." #: src/labels.h:91 msgid "Method" msgstr "Méthode" #: src/labels.h:92 msgid "Mtd" msgstr "Mtd" #: src/labels.h:93 msgid "Protocol" msgstr "Protocole" #: src/labels.h:94 msgid "Proto" msgstr "Proto" #: src/labels.h:95 msgid "City" msgstr "Ville" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "Pays" #: src/labels.h:98 msgid "Hostname" msgstr "Nom d'hôte" #: src/labels.h:99 msgid "Data" msgstr "Données" #: src/labels.h:101 #, fuzzy msgid "Hits/Visitors" msgstr "Visiteurs" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Visiteurs uniques par jour" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Visiteurs uniques/jour - Y compris bots" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "" "Les hits depuis la même IP, date et user-agent comptent comme visite unique" #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Fichiers demandés (URLs)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "Top des requêtes triées par hits [, avgts, cumts, maxts, mthd, proto]" #: src/labels.h:118 msgid "Requests" msgstr "Requêtes" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Requêtes statiques" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Top des requêtes statiques trié par hits [, avgts, cumts, maxts, mthd, proto]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Distribution temporelle" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Données triées par heure [, avgts, cumts, maxts]" #: src/labels.h:132 msgid "Time" msgstr "Temps" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Hôtes virtuels" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Données triées par hits [, avgts, cumts, maxts]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Utilisateur distant (authentification HTTP)" #: src/labels.h:146 msgid "Remote User" msgstr "Remote Utilisateur" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "L'état du cache de l'objet servi" #: src/labels.h:153 msgid "Cache Status" msgstr "Etat du cache" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "URLs Non trouvées (404s)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Top des URLs non trouvées trié par hits [, avgts, cumts, maxts, mthd, proto]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Nom de machine et IPs des visiteurs" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "Top des visiteurs trié par hits [, avgts, cumts, maxts]" #: src/labels.h:167 msgid "Hosts" msgstr "Hôtes" #: src/labels.h:170 msgid "Operating Systems" msgstr "Systèmes d'exploitation" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "Top des systèmes d'exploitation trié par hits [, avgts, cumts, maxts]" #: src/labels.h:174 msgid "OS" msgstr "SE" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Navigateurs" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "Top des Navigateurs trié par hits [, avgts, cumts, maxts]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "URLs d'origine" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "Top des URLs d'origine trié par hits [, avgts, cumts, maxts]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Sites d'origine" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "Top des sites d'origine trié par hits [, avgts, cumts, maxts]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Mot-clés du moteur de recherche Google" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "Top des Mot-clés trié par hits [, avgts, cumts, maxts]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Mot-clés" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Géo Localisation" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "Continent > Pays trié par hits unique [, avgts, cumts, maxts]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "Status HTTP" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "Top des status HTTP trié par hits [, avgts, cumts, maxts]" #: src/labels.h:223 msgid "Status Codes" msgstr "Status HTTP" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "" #: src/labels.h:228 msgid "File types shipped out" msgstr "" #: src/labels.h:233 msgid "Encryption settings" msgstr "" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "" #: src/labels.h:237 msgid "TLS Settings" msgstr "" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] sensible à la casse" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] sensible à la casse" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Regex OK - ^g pour annuler - TAB pour changer la casse" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Trouver tous les motifs dans toutes les vues" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Configuration format des logs" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[SPACE] pour basculer - [ENTREE] pour procéder - [q] pour quitter" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Format des logs - [c] pour ajouter/éditer le format" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Format de la date - [d] pour ajouter/éditer le format" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Format temporel - [t] pour ajouter/éditer le format" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[HAUT/BAS] pour faire défiler - [q] pour fermer la fenêtre" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "User Agents pour %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Configuration programme" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTREE] pour utiliser le programme - [q]uitter" #: src/labels.h:277 msgid "Sort active module by" msgstr "Trier le module actif par" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTREE] sélectionner - [TAB] trier - [q]uitter" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "GoAccess aide rapide" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[HAUT/BAS] pour faire défiler - [q] pour quitter" #: src/labels.h:289 #, fuzzy msgid "In-Memory with On-Disk Persistent Storage." msgstr "En mémoire avec le stockage de disque persistant." #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Erreurs de format - Vérifiez votre format de journal / date / heure" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Aucun format de date n'a été trouvé sur votre fichier conf." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Aucun format de journal n'a été trouvé sur votre fichier conf." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Aucun format de journal n'a été trouvé sur votre fichier conf." #: src/labels.h:303 msgid "No default config file found." msgstr "Aucun fichier de configuration par défaut trouvé." #: src/labels.h:305 msgid "You may specify one with" msgstr "Vous pouvez en préciser un avec" #: src/labels.h:307 msgid "producing the following errors" msgstr "produisant les erreurs suivantes" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Analysé %1$d lignes" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Si vous plaît, rapporter cela en ouvrant un probleme sur GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Sélectionner un format temporel." #: src/labels.h:315 msgid "Select a date format." msgstr "Sélectionner un format de date." #: src/labels.h:317 msgid "Select a log format." msgstr "Sélectionner un format de log." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' panneau désactivé" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Pour plus de détails, visitez" #: src/labels.h:331 msgid "Last Updated" msgstr "Dernière mise à jour" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket serveur prêt à accepter les nouvelles connexions client" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Les options suivantes peuvent également être fournies à la commande" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Des exemples peuvent être trouvés en cours d'exécution" #: src/labels.h:341 msgid "Server Statistics" msgstr "Statistiques du serveur" #: src/labels.h:343 msgid "Theme" msgstr "Thème" #: src/labels.h:345 msgid "Dark Gray" msgstr "Gris foncé" #: src/labels.h:347 msgid "Bright" msgstr "Brillant" #: src/labels.h:349 msgid "Dark Blue" msgstr "Bleu foncé" #: src/labels.h:351 #, fuzzy msgid "Dark Purple" msgstr "Violet foncé" #: src/labels.h:353 msgid "Panels" msgstr "Panneaux" #: src/labels.h:355 msgid "Items per Page" msgstr "Objets par page" #: src/labels.h:357 msgid "Tables" msgstr "Tableaux" #: src/labels.h:359 msgid "Display Tables" msgstr "Afficher les tableaux" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Masquage-auto/Petits appareils" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "" "Masquer automatiquement les tableaux sur les appareils avec un petit écran" #: src/labels.h:365 msgid "Toggle Panel" msgstr "" #: src/labels.h:367 msgid "Layout" msgstr "Disposition" #: src/labels.h:369 msgid "Horizontal" msgstr "Horizontal" #: src/labels.h:371 msgid "Vertical" msgstr "Verticale" #: src/labels.h:373 msgid "WideScreen" msgstr "Grand écran" #: src/labels.h:375 msgid "File Options" msgstr "Options de fichier" #: src/labels.h:377 msgid "Export as JSON" msgstr "Exporter en tant que JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Options du panneau" #: src/labels.h:381 msgid "Previous" msgstr "Précédent" #: src/labels.h:383 msgid "Next" msgstr "Suivant" #: src/labels.h:385 msgid "First" msgstr "Premier" #: src/labels.h:387 msgid "Last" msgstr "Dernier" #: src/labels.h:389 msgid "Chart Options" msgstr "Options du graphique" #: src/labels.h:391 msgid "Chart" msgstr "Graphique" #: src/labels.h:393 msgid "Type" msgstr "Type" #: src/labels.h:395 msgid "Area Spline" msgstr "Courbe vectorielle" #: src/labels.h:397 msgid "Bar" msgstr "Barre" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Tracé métrique" #: src/labels.h:405 msgid "Table Columns" msgstr "Colonnes de tableau" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Informationnel" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Succès" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Redirection" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Erreurs Client" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Erreurs Serveur" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - Continue: Le serveur a reçu la partie initiale de la requête" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "" "101 - Echange de Protocoles: Le client a demandé à changer de protocole" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: La requête envoyée par le client a réussie" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Created: La requête a été aboutie et créée" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Accepté: La requête a été acceptée pour être traité" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Information sans autorité: Réponse d'un tiers" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - Aucun contenu: La requête ne renvoie aucun contenu" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 - Contenu réinitialisé: Le serveur a demandé au client de réinitialiser " "le document" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Contenu partiel: Le GET partiel a réussi" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Status-multiples: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Déjà signalé: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Choix multiples: Options multiples pour la ressource" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "" "301 - Déplacement permanent: La ressource a été déplacée de façon permanente" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Temporairement déplacé (redirigé)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - Voir autre document: La réponse se situe sur une URI différente" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Non modifié: La ressource n'a pas été modifiée" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Utiliser un Proxy : Accessible seulement depuis le proxy" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Redirection temporaire: Ressource temporairement déplacée" #: src/labels.h:462 #, fuzzy msgid "308 - Permanent Redirect" msgstr "402 - Paiement requis" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Mauvaise requête: Syntaxe de la requête invalide" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "" "401 - Non autorisé: La requête nécessite une authentification utilisateur" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Paiement requis" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Interdit: Le serveur refuse d'y répondre" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Non trouvé: La ressource demandée ne peut pas être trouvée" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Méthode non autorisée: Méthode de requête non supportée" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - Pas Acceptable" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Authentification au proxy requise" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "" "408 - Requête expirée: Délai d'attente du serveur dépassé pour la requête" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflit: Conflit dans la requête" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Disparue: La ressource demandée n'est plus disponible" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Longueur requise: Longueur du contenu invalide" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - Pré-requis échoué: Le serveur ne rempli pas les pré-requis" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Charge utile trop importante" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - URI requête trop longue" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Type de média non supporté : Type de media non pris en charge" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 - Plage de requête non satisfaisante: ne peut pas fournir cette partie" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Attente échouée" #: src/labels.h:500 #, fuzzy msgid "418 - I'm a teapot" msgstr "418 - Je suis une théière" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Requête mal orientée" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Entité non traitable à cause des erreurs sémantiques: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - L'accès à la ressource est verrouillé" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - Dépendance échouée: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "" "426 - Amélioration requise: Le client devrait changer pour un protocole " "différent" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - Condition préalable requise" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 : Trop de requêtes: L'utilisateur a envoyé trop de requêtes" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - Le champ en-tête de requête est trop large" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "" "408 - Requête expirée: Délai d'attente du serveur dépassé pour la requête" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - Indisponible pour des raisons légales" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Connexion fermée sans envoyer d'en-têtes" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) En-tête de requête trop large" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) Erreur de certificat SSL client" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) Le client ne fournit pas de certificat" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) Requête HTTP envoyée sur le port HTTPS" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "" "499 - (Nginx) Connexion fermée par le client durant le traitement de la " "requête" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Erreur serveur interne" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - Non implémenté" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - Mauvaise passerelle: Réponse invalide reçue en amont" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Service indisponible: Le serveur est actuellement indisponible" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 - Attente passerelle dépassé: l'envoi de la requête en amont par le " "serveur a échoué" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - Version HTTP non supportée" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Le serveur Web renvoi une erreur inconnue" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Serveur Web en panne" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - Délai de connexion dépassé" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - L'Origin n'est pas joignable" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - Un dépassement du délai s'est produit" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "" "401 - Non autorisé: La requête nécessite une authentification utilisateur" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 msgid "Settings" msgstr "" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Origine" ================================================ FILE: po/goaccess.pot ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the goaccess package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: goaccess 1.10.1\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/labels.h:45 msgid "en" msgstr "" #: src/labels.h:48 msgid "Exp. Panel" msgstr "" #: src/labels.h:49 msgid "Help" msgstr "" #: src/labels.h:50 msgid "Quit" msgstr "" #: src/labels.h:51 msgid "Total" msgstr "" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "" #: src/labels.h:61 msgid "Dashboard" msgstr "" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "" #: src/labels.h:66 msgid "Date/Time" msgstr "" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "" #: src/labels.h:68 msgid "Failed Requests" msgstr "" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "" #: src/labels.h:70 msgid "Log Size" msgstr "" #: src/labels.h:71 msgid "Log Source" msgstr "" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "" #: src/labels.h:73 msgid "Total Requests" msgstr "" #: src/labels.h:74 msgid "Static Files" msgstr "" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "" #: src/labels.h:76 msgid "Requested Files" msgstr "" #: src/labels.h:77 msgid "Unique Visitors" msgstr "" #: src/labels.h:78 msgid "Valid Requests" msgstr "" #: src/labels.h:81 msgid "Hits" msgstr "" #: src/labels.h:82 msgid "h%" msgstr "" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "" #: src/labels.h:84 msgid "Vis." msgstr "" #: src/labels.h:85 msgid "v%" msgstr "" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "" #: src/labels.h:89 msgid "Cum. T.S." msgstr "" #: src/labels.h:90 msgid "Max. T.S." msgstr "" #: src/labels.h:91 msgid "Method" msgstr "" #: src/labels.h:92 msgid "Mtd" msgstr "" #: src/labels.h:93 msgid "Protocol" msgstr "" #: src/labels.h:94 msgid "Proto" msgstr "" #: src/labels.h:95 msgid "City" msgstr "" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "" #: src/labels.h:98 msgid "Hostname" msgstr "" #: src/labels.h:99 msgid "Data" msgstr "" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "" #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" #: src/labels.h:118 msgid "Requests" msgstr "" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" #: src/labels.h:128 msgid "Time Distribution" msgstr "" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:132 msgid "Time" msgstr "" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "" #: src/labels.h:146 msgid "Remote User" msgstr "" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "" #: src/labels.h:153 msgid "Cache Status" msgstr "" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:167 msgid "Hosts" msgstr "" #: src/labels.h:170 msgid "Operating Systems" msgstr "" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:174 msgid "OS" msgstr "" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:184 msgid "Referrer URLs" msgstr "" #: src/labels.h:186 msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:202 msgid "Keyphrases" msgstr "" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" #: src/labels.h:223 msgid "Status Codes" msgstr "" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "" #: src/labels.h:228 msgid "File types shipped out" msgstr "" #: src/labels.h:233 msgid "Encryption settings" msgstr "" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "" #: src/labels.h:237 msgid "TLS Settings" msgstr "" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "" #: src/labels.h:277 msgid "Sort active module by" msgstr "" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "" #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "" #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "" #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "" #: src/labels.h:303 msgid "No default config file found." msgstr "" #: src/labels.h:305 msgid "You may specify one with" msgstr "" #: src/labels.h:307 msgid "producing the following errors" msgstr "" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "" #: src/labels.h:313 msgid "Select a time format." msgstr "" #: src/labels.h:315 msgid "Select a date format." msgstr "" #: src/labels.h:317 msgid "Select a log format." msgstr "" #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "" #: src/labels.h:331 msgid "Last Updated" msgstr "" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "" #: src/labels.h:341 msgid "Server Statistics" msgstr "" #: src/labels.h:343 msgid "Theme" msgstr "" #: src/labels.h:345 msgid "Dark Gray" msgstr "" #: src/labels.h:347 msgid "Bright" msgstr "" #: src/labels.h:349 msgid "Dark Blue" msgstr "" #: src/labels.h:351 msgid "Dark Purple" msgstr "" #: src/labels.h:353 msgid "Panels" msgstr "" #: src/labels.h:355 msgid "Items per Page" msgstr "" #: src/labels.h:357 msgid "Tables" msgstr "" #: src/labels.h:359 msgid "Display Tables" msgstr "" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "" #: src/labels.h:365 msgid "Toggle Panel" msgstr "" #: src/labels.h:367 msgid "Layout" msgstr "" #: src/labels.h:369 msgid "Horizontal" msgstr "" #: src/labels.h:371 msgid "Vertical" msgstr "" #: src/labels.h:373 msgid "WideScreen" msgstr "" #: src/labels.h:375 msgid "File Options" msgstr "" #: src/labels.h:377 msgid "Export as JSON" msgstr "" #: src/labels.h:379 msgid "Panel Options" msgstr "" #: src/labels.h:381 msgid "Previous" msgstr "" #: src/labels.h:383 msgid "Next" msgstr "" #: src/labels.h:385 msgid "First" msgstr "" #: src/labels.h:387 msgid "Last" msgstr "" #: src/labels.h:389 msgid "Chart Options" msgstr "" #: src/labels.h:391 msgid "Chart" msgstr "" #: src/labels.h:393 msgid "Type" msgstr "" #: src/labels.h:395 msgid "Area Spline" msgstr "" #: src/labels.h:397 msgid "Bar" msgstr "" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "" #: src/labels.h:405 msgid "Table Columns" msgstr "" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "" #: src/labels.h:413 msgid "2xx Success" msgstr "" #: src/labels.h:415 msgid "3xx Redirection" msgstr "" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "" #: src/labels.h:462 msgid "308 - Permanent Redirect" msgstr "" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "" #: src/labels.h:500 msgid "418 - I'm a teapot" msgstr "" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 msgid "449 - Retry With: The server cannot honour the request" msgstr "" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 msgid "561 - Unauthorized: An error around authentication" msgstr "" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 msgid "Settings" msgstr "" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" ================================================ FILE: po/it.po ================================================ msgid "" msgstr "" "Project-Id-Version: Goaccess\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2017-08-04 13:00-0300\n" "Last-Translator: Mario Donnarumma <mario.donnarumma.97@gmail.com>\n" "Language-Team: \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" #: src/labels.h:45 msgid "en" msgstr "it" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Exp. Panel" #: src/labels.h:49 msgid "Help" msgstr "Aiuto" #: src/labels.h:50 msgid "Quit" msgstr "Esci" #: src/labels.h:51 msgid "Total" msgstr "Totale" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] ASC [ ] DESC" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] ASC [x] DESC" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Pannello Attivo: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] chiudi GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Aiuto [Enter] Exp. Panel" #: src/labels.h:61 msgid "Dashboard" msgstr "Pannello di Controllo" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Pannello di Controllo - Richieste Complessive Analizzate" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Richieste Complessive Analizzate" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Tx. Totale" #: src/labels.h:66 msgid "Date/Time" msgstr "Data/Ora" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Accessi IP Esclusi" #: src/labels.h:68 msgid "Failed Requests" msgstr "Richieste Fallite" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "Tempo Parsing Log" #: src/labels.h:70 msgid "Log Size" msgstr "Dimensioni Log" #: src/labels.h:71 msgid "Log Source" msgstr "Sorgente Log" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Referrer" #: src/labels.h:73 msgid "Total Requests" msgstr "Richieste Totali" #: src/labels.h:74 msgid "Static Files" msgstr "File Statici" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Non Trovato" #: src/labels.h:76 msgid "Requested Files" msgstr "File Richiesti" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Visitatori Unici" #: src/labels.h:78 msgid "Valid Requests" msgstr "Richieste Valide" #: src/labels.h:81 msgid "Hits" msgstr "Accessi" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Visitatori" #: src/labels.h:84 msgid "Vis." msgstr "Vis." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Media T.S." #: src/labels.h:89 msgid "Cum. T.S." msgstr "Cum. T.S." #: src/labels.h:90 msgid "Max. T.S." msgstr "Max. T.S." #: src/labels.h:91 msgid "Method" msgstr "Metodo" #: src/labels.h:92 msgid "Mtd" msgstr "Mtd" #: src/labels.h:93 msgid "Protocol" msgstr "Protocollo" #: src/labels.h:94 msgid "Proto" msgstr "Proto" #: src/labels.h:95 msgid "City" msgstr "Città" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "Paese" #: src/labels.h:98 msgid "Hostname" msgstr "Hostname" #: src/labels.h:99 msgid "Data" msgstr "Dati" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Acessi/Visitatori" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Visitatori unici al giorno" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Visitatori unici al giorno - Inclusi spider" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "Accessi con lo stesso IP, data e agent sono una visita unica." #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "File Richiesti (URL)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Principali richieste ordinate per accessi [, avgts, cumts, maxts, mthd, " "proto]" #: src/labels.h:118 msgid "Requests" msgstr "Richieste" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Richieste Statiche" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Principali richieste statiche ordinate per accessi [, avgts, cumts, maxts, " "mthd, proto]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Distribuzione Oraria" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Dati ordinati per ore [, avgts, cumts, maxts]" #: src/labels.h:132 msgid "Time" msgstr "Ora" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Host Virtuali" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Dati ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Utente Remoto (Autenticazione HTTP)" #: src/labels.h:146 msgid "Remote User" msgstr "Utente Remoto" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "Lo stato della cache dell'oggetto servito" #: src/labels.h:153 msgid "Cache Status" msgstr "Stato Della Cache" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "URL Non Trovati (404)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Principali URL non trovati ordinati per accesso [, avgts, cumts, maxts, " "mthd, proto]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Hostname e IP dei Visitatori" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "Principali host dei visitatori ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:167 msgid "Hosts" msgstr "Host" #: src/labels.h:170 msgid "Operating Systems" msgstr "Sistemi Operativi" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "Principali Sistemi Operativi ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:174 msgid "OS" msgstr "SO" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Browser" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "Principali Browser ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "URL Referrer" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Principali Referrer Richiesti ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Siti Referrer" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "Principali Siti Referrer ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Frasi chiave dal motore di ricerca di Google" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "Principali Frasi Chiave ordinate per accessi [, avgts, cumts, maxts]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Frasi Chiave" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Posizione Geografica" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "Continente > Paese ordinati per accessi unici [, avgts, cumts, maxts]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "Codici Di Stato HTTP" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "Principali Codici Di Stato HTTP ordinati per accessi [, avgts, cumts, maxts]" #: src/labels.h:223 msgid "Status Codes" msgstr "Codici Di Stato" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "Tipi MIME" #: src/labels.h:228 msgid "File types shipped out" msgstr "Tipi di file spediti" #: src/labels.h:233 msgid "Encryption settings" msgstr "Impostazioni di crittografia" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "Versione TLS e algoritmo scelto" #: src/labels.h:237 msgid "TLS Settings" msgstr "Impostazioni TLS" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] case sensitive" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] case sensitive" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Regex permesse - ^g per annullare - TAB cambia case" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Trova pattern in tutte le viste" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Configurazione Formato Log" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[SPAZIO] per alternare - [INVIO] per procedere - [q] per uscire" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Formato Log - [c] per aggiungere/modificare formato" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Formato Data - [d] per aggiungere/modificare formato" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Formato Ora - [t] per aggiungere/modificare formato" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[SU/GIU] per scorrere - [q] per chiudere la finestra" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "User Agent per %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Configurazione Schema" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[INVIO] per usare lo schema - [q] esci" #: src/labels.h:277 msgid "Sort active module by" msgstr "Ordina moduli attivi per" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[INVIO] seleziona - [TAB] ordina - [q] esci" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "Aiuto Rapido di GoAccess" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[SU/GIU] per scorrere - [q] per uscire" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "In Memoria con Archiviazione Persistente Su Disco." #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Errori Formato - Verifica il tuo formato di log/data/ora" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Nessun formato di data trovato nel tuo file di configurazione." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Nessun formato di log trovato nel tuo file di configurazione." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Nessun formato di ora trovato nel tuo file di configurazione." #: src/labels.h:303 msgid "No default config file found." msgstr "Nessuna file di configurazione predefinito trovato." #: src/labels.h:305 msgid "You may specify one with" msgstr "Puoi specificarne uno con" #: src/labels.h:307 msgid "producing the following errors" msgstr "producendo i seguenti errori" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Analizzate %1$d righe" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Per favore segnalalo aprendo un issue su GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Seleziona un formato di ora." #: src/labels.h:315 msgid "Select a date format." msgstr "Seleziona un formato di data." #: src/labels.h:317 msgid "Select a log format." msgstr "Seleziona un formato di log." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "il pannello '%1$s' è disattivato" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "Non sono stati forniti dati in input né ci sono dati da ripristinare." #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Per maggiori dettagli visita" #: src/labels.h:331 msgid "Last Updated" msgstr "Ultimo Aggiornamento" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "Server WebSocket pronto ad accettare nuove connessioni dai client" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Le seguenti opzioni possono anche essere fornite al comando" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Esempi possono trovati eseguendo" #: src/labels.h:341 msgid "Server Statistics" msgstr "Statistiche Server" #: src/labels.h:343 msgid "Theme" msgstr "Tema" #: src/labels.h:345 msgid "Dark Gray" msgstr "Grigio Scuro" #: src/labels.h:347 msgid "Bright" msgstr "Chiaro" #: src/labels.h:349 msgid "Dark Blue" msgstr "Blu Scuro" #: src/labels.h:351 msgid "Dark Purple" msgstr "Viola Scuro" #: src/labels.h:353 msgid "Panels" msgstr "Pannelli" #: src/labels.h:355 msgid "Items per Page" msgstr "Elementi per Pagina" #: src/labels.h:357 msgid "Tables" msgstr "Tabelle" #: src/labels.h:359 msgid "Display Tables" msgstr "Mostra Tabelle" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Nascondi su Schermi Piccoli" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Nascondi automaticamente le tabelle su Schermi Piccoli" #: src/labels.h:365 msgid "Toggle Panel" msgstr "" #: src/labels.h:367 msgid "Layout" msgstr "Layout" #: src/labels.h:369 msgid "Horizontal" msgstr "Orizzontale" #: src/labels.h:371 msgid "Vertical" msgstr "Verticale" #: src/labels.h:373 msgid "WideScreen" msgstr "Panoramico" #: src/labels.h:375 msgid "File Options" msgstr "Opzioni File" #: src/labels.h:377 msgid "Export as JSON" msgstr "Esporta come JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Opzioni Pannello" #: src/labels.h:381 msgid "Previous" msgstr "Precedente" #: src/labels.h:383 msgid "Next" msgstr "Successivo" #: src/labels.h:385 msgid "First" msgstr "Primo" #: src/labels.h:387 msgid "Last" msgstr "Ultimo" #: src/labels.h:389 msgid "Chart Options" msgstr "Opzioni Grafico" #: src/labels.h:391 msgid "Chart" msgstr "Grafico" #: src/labels.h:393 msgid "Type" msgstr "Tipo" #: src/labels.h:395 msgid "Area Spline" msgstr "Area Spline" #: src/labels.h:397 msgid "Bar" msgstr "Barre" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Metriche Grafico" #: src/labels.h:405 msgid "Table Columns" msgstr "Colonne Tabella" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Informativo" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Successo" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Reindirizzamento" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Errori Client" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Errori Server" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "" "100 - Continue: Il server ha ricevuto la parte iniziale della richiesta" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "" "101 - Switching Protocols: Il client ha richiesto di cambiare protocolli" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: La richiesta inviata dal client ha avuto successo" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Created: La richiesta è stata soddisfatta e creata" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Accepted: La richiesta è stata accettata per essere elaborata" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Non-authoritative Information: Risposta da terzi" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - No Content: La richiesta non ha restituito nessun contenuto" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 - Reset Content: Il server ha richiesto al client di ripristinare il " "documento" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Partial Content: La GET parziale ha avuto successo" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Multi-Status: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Already Reported: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Multiple Choices: Opzioni multiple per la risorsa" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Moved Permanently: La risorsa è stata spostata permanentemente" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Moved Temporarily (redirect)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - See Other Document: La risposta si trova ad un URI diverso" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Not Modified: La risorsa non è stata modificata" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Use Proxy: Può essere acceduta solo tramite proxy" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Temporary Redirect: Risorsa spostata temporaneamente" #: src/labels.h:462 msgid "308 - Permanent Redirect" msgstr "308 - Permanent Redirect" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Bad Request: La sintassi della richiesta non è valida" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Unauthorized: La richiesta richiede l'autenticazione dell'utente" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Payment Required" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Forbidden: Il server si sta rifiutando di rispondere" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Not Found: La risorsa richiesta non è stata trovata" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Method Not Allowed: Il metodo della richiesta non è supportato" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - Not Acceptable" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Proxy Authentication Required" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - Request Timeout: Il tempo per inviare la richiesta è scaduto" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflict: Conflitto nella richiesta" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Gone: La risorsa richiesta non è più disponibile" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Length Required: Content-Length non valido" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - Precondition Failed: Il server non soddisfa le precondizioni" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Payload Too Large" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - Request-URI Too Long" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Unsupported Media Type: Tipo media non supportato" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 - Requested Range Not Satisfiable: Impossibile fornire quel frammento" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Expectation Failed" #: src/labels.h:500 #, fuzzy msgid "418 - I'm a teapot" msgstr "418 - I’m a teapot" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Misdirected Request" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Unprocessable Entity" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - Locked" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - Failed Dependency: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "" "426 - Upgrade Required: Il cliente dovrebbe utilizzare un protocollo diverso" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "402 - Precondition Required" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - Too Many Requests: L'utente ha inviato troppe richieste" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - Request Header Fields Too Large" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "408 - Request Timeout: Il tempo per inviare la richiesta è scaduto" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - Unavailable For Legal Reasons" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Connection closed without sending any headers" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) Request Header Too Large" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL client certificate error" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) Client didn't provide certificate" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) HTTP request sent to HTTPS port" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) Connection closed by client while processing request" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Internal Server Error" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - Not Implemented" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - Bad Gateway: Risposta non valida dal server di upstream" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Service Unavailable: Il server non è attualmente disponibile" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 - Gateway Timeout: Il server di upstream non è riuscito ad inviare la " "richiesta" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTP Version Not Supported" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Web server is returning an unknown error" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Web server is down" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - Connection timed out" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - Origin is unreachable" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - A timeout occurred" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "401 - Unauthorized: La richiesta richiede l'autenticazione dell'utente" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 #, fuzzy msgid "Settings" msgstr "Impostazioni TLS" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Referrer" ================================================ FILE: po/ja.po ================================================ # Copyright © 2020 Kamino <67395018+err931@users.noreply.github.com> # Copyright © 2023, 2025 gemmaro <gemmaro.dev@gmail.com> msgid "" msgstr "" "Project-Id-Version: goaccess 1.3\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2025-04-28 21:05+0900\n" "Last-Translator: gemmaro <gemmaro.dev@gmail.com>\n" "Language-Team: Japanese\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/labels.h:45 msgid "en" msgstr "ja" #: src/labels.h:48 msgid "Exp. Panel" msgstr "詳細表示" #: src/labels.h:49 msgid "Help" msgstr "ヘルプ" #: src/labels.h:50 msgid "Quit" msgstr "終了" #: src/labels.h:51 msgid "Total" msgstr "合計" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] 昇順 [ ] 降順" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] 昇順 [x] 降順" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[表示中のパネル: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] GoAccessを閉じる" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] ヘルプ [Enter] 詳細表示" #: src/labels.h:61 msgid "Dashboard" msgstr "ダッシュボード" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "ダッシュボード - 解析済みリクエスト全体" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "解析済みリクエスト全体" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "データ転送量" #: src/labels.h:66 msgid "Date/Time" msgstr "日付/時刻" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "除外対象数" #: src/labels.h:68 msgid "Failed Requests" msgstr "無効リクエスト数" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "ログの解析時間" #: src/labels.h:70 msgid "Log Size" msgstr "ログファイルサイズ" #: src/labels.h:71 msgid "Log Source" msgstr "ログ取得元" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "リファラ数" #: src/labels.h:73 msgid "Total Requests" msgstr "合計リクエスト数" #: src/labels.h:74 msgid "Static Files" msgstr "静的ファイル数" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "404エラー数" #: src/labels.h:76 msgid "Requested Files" msgstr "要求されたファイル数" #: src/labels.h:77 msgid "Unique Visitors" msgstr "ユニークユーザー数" #: src/labels.h:78 msgid "Valid Requests" msgstr "有効リクエスト数" #: src/labels.h:81 msgid "Hits" msgstr "ヒット数" #: src/labels.h:82 msgid "h%" msgstr "ヒット率(%)" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "ユーザー数" #: src/labels.h:84 msgid "Vis." msgstr "ユーザー数" #: src/labels.h:85 msgid "v%" msgstr "訪問率(%)" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "平均処理時間" #: src/labels.h:89 msgid "Cum. T.S." msgstr "合計処理時間" #: src/labels.h:90 msgid "Max. T.S." msgstr "最大処理時間" #: src/labels.h:91 msgid "Method" msgstr "要求" #: src/labels.h:92 msgid "Mtd" msgstr "要求" #: src/labels.h:93 msgid "Protocol" msgstr "プロトコル" #: src/labels.h:94 msgid "Proto" msgstr "プロトコル" #: src/labels.h:95 msgid "City" msgstr "地域" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "ASN" #: src/labels.h:97 msgid "Country" msgstr "国名" #: src/labels.h:98 msgid "Hostname" msgstr "ホスト名" #: src/labels.h:99 msgid "Data" msgstr "データ" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "ヒット数/ユーザー数" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "一日あたりのユニークユーザー数" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "一日あたりのユニークユーザー数(クローラも含める)" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "" "IPアドレス、日付、ユーザーエージェントが全て同一だった場合、ユニークユーザー" "として扱われます。" #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "リクエストされたファイル(URL)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "上位のリクエスト [ヒット数、平均処理時間、合計処理時間、最大処理時間、メソッ" "ド、プロトコル]" #: src/labels.h:118 msgid "Requests" msgstr "リクエスト数" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "静的ファイルリクエスト数" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "上位の静的ファイルリクエスト [ヒット数、平均処理時間、合計処理時間、最大処理" "時間、メソッド、プロトコル]" #: src/labels.h:128 msgid "Time Distribution" msgstr "時間分布" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "上位のデータ [時刻、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:132 msgid "Time" msgstr "時刻" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "バーチャルホスト" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "上位のデータ [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "認証されたユーザー(HTTP認証)" #: src/labels.h:146 msgid "Remote User" msgstr "認証されたユーザー" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "サーブされるオブジェクトのキャッシュ状態" #: src/labels.h:153 msgid "Cache Status" msgstr "キャッシュの状態" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "404エラーが返されたURL" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "上位のnot foundなURL [ヒット数、平均処理時間、合計処理時間、最大処理時間、メ" "ソッド、プロトコル]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "ユーザーのホスト名とIPアドレス" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "上位のユーザーホスト [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:167 msgid "Hosts" msgstr "ホスト名" #: src/labels.h:170 msgid "Operating Systems" msgstr "オペレーティングシステム" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "上位のOS [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:174 msgid "OS" msgstr "OS" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "ブラウザ" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "上位のブラウザ [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:184 msgid "Referrer URLs" msgstr "リファラのURL" #: src/labels.h:186 msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "上位の要求元のリファラ [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "参照元サイト" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "上位の参照元サイト [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "キーフレーズ(Google検索から)" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "上位のキーフレーズ [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:202 msgid "Keyphrases" msgstr "キーフレーズ" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "位置情報" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "地理区分 > 国別 [ヒット数、平均処理時間、合計処理時間、最大処理時間]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "Autonomous System Numbers/Organizations (ASNs)" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "HTTPステータスコード" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "上位のHTTPステータスコード [ヒット数、平均処理時間、合計処理時間、最大処理時" "間]" #: src/labels.h:223 msgid "Status Codes" msgstr "ステータスコード" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIMEタイプ" #: src/labels.h:228 msgid "File types shipped out" msgstr "送出されたファイル種別" #: src/labels.h:233 msgid "Encryption settings" msgstr "暗号化設定" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "TLSのバージョンと選択されたアルゴリズム" #: src/labels.h:237 msgid "TLS Settings" msgstr "TLSの設定" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] 大文字と小文字を区別する" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] 大文字と小文字を区別する" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "正規表現が有効 - [^g] キャンセル - [TAB] 切り替え" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "すべてのビューでパターン検索を行う" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "ログ形式設定" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[SPACE] 切り替え - [ENTER] 決定 - [q] 終了" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "ログ形式 - [c] 追加/編集" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "日付形式 - [d] 追加/編集" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "時刻形式 - [t] 追加/編集" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[↑/↓] スクロール - [q] ウィンドウを閉じる" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "%1$s のユーザーエージェント" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "スキーム設定" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] スキーム選択 - [q] 終了" #: src/labels.h:277 msgid "Sort active module by" msgstr "選択したカラムで並び替え" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] 選択 - [TAB] ソート - [q] 終了" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "GoAccessクイックヘルプ" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[↑/↓] スクロール - [q] 終了" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "ディスク上の永続化ストレージ付きのインメモリ。" #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "" "解析に失敗しました - ログ/日付/時刻のフォーマット設定を確認してください" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "設定ファイル内で日付形式がセットされていません。" #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "設定ファイル内でログ形式がセットされていません。" #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "設定ファイル内で時刻形式がセットされていません。" #: src/labels.h:303 msgid "No default config file found." msgstr "デフォルトの設定ファイルが見つかりません。" #: src/labels.h:305 msgid "You may specify one with" msgstr "いずれか指定してください" #: src/labels.h:307 msgid "producing the following errors" msgstr "エラーが発生しました" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "解析済み: %1$d 行" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "GitHub上のIssueから問題を報告してください" #: src/labels.h:313 msgid "Select a time format." msgstr "時刻形式を選択します。" #: src/labels.h:315 msgid "Select a date format." msgstr "日付形式を選択します。" #: src/labels.h:317 msgid "Select a log format." msgstr "ログ形式を選択します。" #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' パネルは無効化されています" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "入力データが与えられておらず、復元データもありません。" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "ログインスタンスのためのメモリを割り当てられません。" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "与えられたログを見付けられません。" #: src/labels.h:329 msgid "For more details visit" msgstr "詳細はこちら" #: src/labels.h:331 msgid "Last Updated" msgstr "最終更新日時" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "クライアントからのWebSocket接続を待っています" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "次のオプションはコマンドで指定することもできます" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "実行例" #: src/labels.h:341 msgid "Server Statistics" msgstr "サーバー統計" #: src/labels.h:343 msgid "Theme" msgstr "テーマ" #: src/labels.h:345 msgid "Dark Gray" msgstr "ダークグレー" #: src/labels.h:347 msgid "Bright" msgstr "ライト" #: src/labels.h:349 msgid "Dark Blue" msgstr "ダークブルー" #: src/labels.h:351 msgid "Dark Purple" msgstr "ダークパープル" #: src/labels.h:353 msgid "Panels" msgstr "パネル" #: src/labels.h:355 msgid "Items per Page" msgstr "ページあたりの表示数" #: src/labels.h:357 msgid "Tables" msgstr "テーブル" #: src/labels.h:359 msgid "Display Tables" msgstr "テーブル表示" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "自動非表示設定(小型端末用)" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "画面が小さい場合に自動でテーブルを非表示にする" #: src/labels.h:365 msgid "Toggle Panel" msgstr "パネルを切り替える" #: src/labels.h:367 msgid "Layout" msgstr "レイアウト" #: src/labels.h:369 msgid "Horizontal" msgstr "水平" #: src/labels.h:371 msgid "Vertical" msgstr "垂直" #: src/labels.h:373 msgid "WideScreen" msgstr "ワイドスクリーン" #: src/labels.h:375 msgid "File Options" msgstr "ファイルオプション" #: src/labels.h:377 msgid "Export as JSON" msgstr "JSON形式でエクスポート" #: src/labels.h:379 msgid "Panel Options" msgstr "パネルオプション" #: src/labels.h:381 msgid "Previous" msgstr "前へ" #: src/labels.h:383 msgid "Next" msgstr "次へ" #: src/labels.h:385 msgid "First" msgstr "最初へ" #: src/labels.h:387 msgid "Last" msgstr "最後へ" #: src/labels.h:389 msgid "Chart Options" msgstr "グラフ設定" #: src/labels.h:391 msgid "Chart" msgstr "グラフ" #: src/labels.h:393 msgid "Type" msgstr "タイプ" #: src/labels.h:395 msgid "Area Spline" msgstr "平滑面グラフ" #: src/labels.h:397 msgid "Bar" msgstr "棒グラフ" #: src/labels.h:399 msgid "World Map" msgstr "世界地図" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "方位投影/地球儀" #: src/labels.h:403 msgid "Plot Metric" msgstr "表示するデータ" #: src/labels.h:405 msgid "Table Columns" msgstr "テーブルカラム" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "0xx 非公式のコード" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx 情報" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx 成功" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx リダイレクション" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx クライアントエラー" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx サーバーエラー" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "0 - Caddy: Unhandled - 構成されていない経路" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - 継続: リクエストヘッダーを受理しました" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "" "101 - プロトコル変更: HTTPヘッダーでリクエストされたプロトコルに切り替えます" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - 成功: リクエストに成功しました" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - 作成: リクエストが成功して新たなリソースの作成が完了しました" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - 受理: リクエストを受け取ったが処理されていません" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "" "203 - 認証されていない情報: リクエストを正常に処理しましたが、返される情報は" "別の送信元から来る可能性があります" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "" "204 - コンテンツ無し: リクエストを正常に処理しましたが、返すべき情報がありま" "せん" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 - リセット要求: クライアントに対してドキュメントビューのリセットを行うよ" "う要求しました" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - 部分応答: コンテンツの一部のみレスポンスを返しました" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - 複数ステータス: (WebDAV拡張) RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - 報告済み: (WebDAV拡張) RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "218 - This is fine: Apacheサーバーにおけるその他全てのエラー条件下" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - 選択が必要: リダイレクト先が複数指定されています" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - 恒久的な移動: リクエストされたリソースは完全に移動されました" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - 一時的な移動: リクエストされたリソースは一時的に移動されました" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "" "303 - 別コンテンツ: リクエストされたリソースは別のURLで提供されています" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - 更新無し: リクエストされたリソースは更新されていません" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "" "305 - プロキシ使用: リクエストされたリソースはプロキシを使用して取得できます" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - 一時的な移動: リクエストされたリソースは一時的に移動されました" #: src/labels.h:462 msgid "308 - Permanent Redirect" msgstr "308 - 恒久的なリダイレクト" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - 不正なリクエスト: リクエストを処理できません" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - 認証が必要: このリクエストを処理するには認証が必要です" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - 課金が必要なコンテンツ" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - アクセス禁止: このリクエストへのアクセスは禁止されています" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - リソース不明: リクエストされたリソースは存在しません" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "" "405 - 許可されていない: リクエストされたメソッドでのアクセスは禁止されていま" "す" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - リクエストを受理できません" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - プロキシ認証が必要です" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - タイムアウト: リクエストがタイムアウトしました" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - 衝突: リクエストが衝突しました" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - 消滅: リクエストされたリソースは完全に削除されました" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Content-Lengthヘッダーが必要です" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - サーバーに与えられた前提条件を満たしていません" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - ペイロードが長すぎます" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - リクエストされたURIが長すぎます" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - サポートされていないメディアタイプ" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 - リクエストされたContent-Lengthヘッダーの範囲がリソースより超過していま" "す" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - 拡張ステータスコードが使えません" #: src/labels.h:500 msgid "418 - I'm a teapot" msgstr "418 - 私はティーポットです" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "419 - Page Expired: Laravelフレームワークで、CSRFトークンがないとき" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "420 - Method Failure: Springフレームワークでメソッドが失敗したとき" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - 不明なリクエスト" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - (WebDAV拡張) 処理できないエンティティ" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - このリソースはロックされています" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - (WebDAV拡張) 依存関係でエラーが発生しました" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "" "426 - アップグレードが必要: プロトコルが古すぎてリクエストを処理できません" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - リクエストを条件付きにする必要があります" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - 過重リクエスト: 制限されたリクエスト数を超えたので処理できません" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" "430 - Request Header Fields Too Large: 特定の時間枠内で、URLがリクエストされ" "過ぎました" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - HTTPヘッダーが長すぎます" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "440 - Login Time-out: クライアントセッションの期限が切れました" #: src/labels.h:526 msgid "449 - Retry With: The server cannot honour the request" msgstr "449 - Retry With: サーバーはリクエストを承認できません" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" "450 - Blocked by Windows Parental Controls: Microsoftの拡張コードが示唆されま" "す" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - 法的理由により利用不可" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (nginx) 接続を遮断しました" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "460 - AWS Elastic Load Balancing: クライアントが接続を閉じました" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" "463 - AWS Elastic Load Balancing: ロードバランサが30以上のIPアドレスを受け取" "りました" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "464 - AWS Elastic Load Balancing: 非互換なプロトコルのバージョン" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (nginx) HTTPヘッダーが長すぎます" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (nginx) SSLクライアント証明書エラー" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (nginx) クライアントが証明書を提供しませんでした" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (nginx) HTTPリクエストをHTTPSポートに送信しました" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "498 - Invalid Token: 期限切れか別の理由で不当なトークン" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "" "499 - (nginx) リクエストを処理中にクライアントによって接続を閉じられました" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - 内部サーバーエラー" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - 実装されていません" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "" "502 - 不正なゲートウェイ: 上位サーバーから不正なレスポンスを受信しました" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - サービス利用不可: サーバーがダウンしました" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "504 - ゲートウェイタイムアウト: 上位サーバーがリクエストを返しません" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTPバージョンがサポートされていません" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "509 - Bandwidth Limit Exceeded: サーバーが大域を超過しました" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Webサーバーが未知のエラーを返しています" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Webサーバーがダウンしています" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - 接続がタイムアウトしました" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - Originに到達できません" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - タイムアウトが発生しました" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" "525 - SSL Handshake Failed: CloudflareがSSL/TLSハンドシェイクをネゴシエートで" "きませんでした" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" "526 - Invalid SSL Certificate: CloudflareがSSL証明書を検証できませんでした" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "527 - Railgun Error: 接続が中断されました" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "529 - Site is overloaded: サイトがリクエストを処理できません" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "530 - Site is frozen: サイトは非活性のため凍結されました" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" "540 - Temporarily Disabled: リクエストされたエンドポイントは一時的に無効に" "なっています" #: src/labels.h:588 msgid "561 - Unauthorized: An error around authentication" msgstr "561 - Unauthorized: 認証に関するエラー" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" "598 - Network read timeout error: 何らかのHTTPプロキシがネットワークの読み取" "り時の時間切れを発信しています" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" "599 - Network Connect Timeout Error: 何らかのHTTPプロキシで使われているエラー" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "783 - Unexpected Token: リクエストにJSONの構文エラーが含まれます" #: src/labels.h:598 msgid "Menu" msgstr "メニュー" #: src/labels.h:600 msgid "Settings" msgstr "設定" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "WebSocketの状態:接続済み" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "WebSocketの状態:切断済み" ================================================ FILE: po/ka.po ================================================ # Georgian translation for goaccess. # Copyright (C) 2026 goaccess's authors. # This file is distributed under the same license as the goaccess package. # Ekaterine Papava <papava.e@gtu.ge>, 2026. # msgid "" msgstr "" "Project-Id-Version: goaccess 1.9.4\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2025-03-28 18:05-0500\n" "PO-Revision-Date: 2026-02-20 14:35+0100\n" "Last-Translator: Ekaterine Papava <papava.e@gtu.ge>\n" "Language-Team: Georgian <(nothing)>\n" "Language: ka\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.8\n" #: src/labels.h:45 msgid "en" msgstr "en" #: src/labels.h:48 msgid "Exp. Panel" msgstr "ექსპ.პანელი" #: src/labels.h:49 msgid "Help" msgstr "დახმარება" #: src/labels.h:50 msgid "Quit" msgstr "გასვლა" #: src/labels.h:51 msgid "Total" msgstr "სულ" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] აღმ [ ] დაღმ" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] აღმ [x] დაღმ" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[აქტიური პანელი: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q]GoAccess-დან გასვლა" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] დახმარება [Enter] ექსპ. პანელი" #: src/labels.h:61 msgid "Dashboard" msgstr "სამუშაო დაფა" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "სამუშაო დაფა - გაანალიზებული მოთხოვნების შეჯამება" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "გაანალიზებული მოთხოვნების შეჯამება" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Tx. რაოდენობა" #: src/labels.h:66 msgid "Date/Time" msgstr "თარიღი / დრო" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "IP დამთხვ. ამოღ" #: src/labels.h:68 msgid "Failed Requests" msgstr "ჩავარდნილი მოთხოვნები" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "ჟურნალის დამუშავების დრო" #: src/labels.h:70 msgid "Log Size" msgstr "ჟურნალის ზომა" #: src/labels.h:71 msgid "Log Source" msgstr "ჟურნალის წყარო" #: src/labels.h:72 src/labels.h:187 msgid "Referrers" msgstr "მიმმართველები" #: src/labels.h:73 msgid "Total Requests" msgstr "მოთხოვნები ჯამში" #: src/labels.h:74 msgid "Static Files" msgstr "სტატიკური ფაილები" #: src/labels.h:75 src/labels.h:159 msgid "Not Found" msgstr "ვერ მოიძებნა" #: src/labels.h:76 msgid "Requested Files" msgstr "Მოთხოვნილი ფაილები" #: src/labels.h:77 msgid "Unique Visitors" msgstr "უნიკალური ვიზიტორები" #: src/labels.h:78 msgid "Valid Requests" msgstr "სწორი მოთხოვნები" #: src/labels.h:81 msgid "Hits" msgstr "მინიშნებები" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:110 msgid "Visitors" msgstr "ვიზიტორები" #: src/labels.h:84 msgid "Vis." msgstr "ვიზ." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "Avg. T.S." msgstr "საშ. T.S." #: src/labels.h:88 msgid "Cum. T.S." msgstr "კუმ. T.S." #: src/labels.h:89 msgid "Max. T.S." msgstr "მაქს. T.S." #: src/labels.h:90 msgid "Method" msgstr "მეთოდი" #: src/labels.h:91 msgid "Mtd" msgstr "მტდ" #: src/labels.h:92 msgid "Protocol" msgstr "პროტოკოლი" #: src/labels.h:93 msgid "Proto" msgstr "პროტო" #: src/labels.h:94 msgid "City" msgstr "ქალაქი" #: src/labels.h:95 src/labels.h:211 src/labels.h:215 msgid "ASN" msgstr "ASN" #: src/labels.h:96 msgid "Country" msgstr "ქვეყანა" #: src/labels.h:97 msgid "Hostname" msgstr "ჰოსტის სახელი" #: src/labels.h:98 msgid "Data" msgstr "მონაცემები" #: src/labels.h:100 msgid "Hits/Visitors" msgstr "დამთხვევები/ვიზიტორები" #: src/labels.h:104 msgid "Unique visitors per day" msgstr "უნიკალური ვიზიტორები დღეში" #: src/labels.h:106 msgid "Unique visitors per day - Including spiders" msgstr "უნიკალური ვიზიტორები დღეში - ობობების ჩათვლით" #: src/labels.h:108 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "დამთხვევები, რომლებსაც აქვთ იგივე IP, თარიღი და აგენტი, უნიკალურებია." #: src/labels.h:113 msgid "Requested Files (URLs)" msgstr "მოთხოვნილი ფაილები (URL-ები)" #: src/labels.h:115 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "დამთხვევის მიხედვით დალაგებული ყველაზე ხშირი მოთხოვნები [, avgts, cumts, " "maxts, mthd, proto]" #: src/labels.h:117 msgid "Requests" msgstr "მოთხოვნები" #: src/labels.h:120 src/labels.h:124 msgid "Static Requests" msgstr "სტატიკური მოთხოვნები" #: src/labels.h:122 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "დამთხვევის მიხედვით დალაგებული ყველაზე ხშირი სტატიკური მოთხოვნები [, avgts, " "cumts, maxts, mthd, proto]" #: src/labels.h:127 msgid "Time Distribution" msgstr "დროის განაწილება" #: src/labels.h:129 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "საათებით დალაგებული მონაცემები [, avgts, cumts, maxts]" #: src/labels.h:131 msgid "Time" msgstr "დრო" #: src/labels.h:134 src/labels.h:138 msgid "Virtual Hosts" msgstr "ვირტუალური ჰოსტები" #: src/labels.h:136 src/labels.h:143 src/labels.h:150 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "მონაცემები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, მაქსდრ]" #: src/labels.h:141 msgid "Remote User (HTTP authentication)" msgstr "დაშორებული მომხმარებელი (HTTP ავტორიზაცია)" #: src/labels.h:145 msgid "Remote User" msgstr "დაშორებული მომხმარებელი" #: src/labels.h:148 msgid "The cache status of the object served" msgstr "გადაცემული ობიექტის დაკეშვის სტატუსი" #: src/labels.h:152 msgid "Cache Status" msgstr "კეშის სტატუსი" #: src/labels.h:155 msgid "Not Found URLs (404s)" msgstr "ვერნაპოვნი URL-ები (404-ები)" #: src/labels.h:157 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "ყველაზე ხშირი არნაპოვნი URL-ები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, " "მაქსდრ]" #: src/labels.h:162 msgid "Visitor Hostnames and IPs" msgstr "ვიზიტორის ჰოსტის სახელები და IP-ები" #: src/labels.h:164 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "ყველაზე ხშირი ვიზიტორი ჰოსტები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, " "მაქსდრ]" #: src/labels.h:166 msgid "Hosts" msgstr "ჰოსტები" #: src/labels.h:169 msgid "Operating Systems" msgstr "ოპერაციული სისტემები" #: src/labels.h:171 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "ყველაზე ხშირი ოს-ები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, მაქსდრ]" #: src/labels.h:173 msgid "OS" msgstr "OS" #: src/labels.h:176 src/labels.h:180 msgid "Browsers" msgstr "ბრაუზერები" #: src/labels.h:178 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "" "ყველაზე ხშირი ბრაუზერები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, მაქსდრ]" #: src/labels.h:183 msgid "Referrer URLs" msgstr "მიმმართველი ბმულები" #: src/labels.h:185 msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "ყველაზე ხშირად მოთხოვნილი მითითებები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, " "მაქსდრ]" #: src/labels.h:190 src/labels.h:194 msgid "Referring Sites" msgstr "მომმართველი საიტები" #: src/labels.h:192 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "ყველაზე ხშირად მიმთითებელი საიტები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, " "მაქსდრ]" #: src/labels.h:197 msgid "Keyphrases from Google's search engine" msgstr "საკვანძო ფრაზები Google-ის საძოებო სისტემიდან" #: src/labels.h:199 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "ყველაზე ხშირად გამოყენებული საკვანძო ფრაზები, დალაგებული დამთხვევით [, " "საშდრ, კუმდრ, მაქსდრ]" #: src/labels.h:201 msgid "Keyphrases" msgstr "საკვანძო ფრაზები" #: src/labels.h:204 src/labels.h:208 msgid "Geo Location" msgstr "გეოლოკაცია" #: src/labels.h:206 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "კონტინენტი > ქვეყანა, დალაგებული უნიკალური დამთხვევით [, საშდრ, კუმდრ, " "მაქსდრ]" #: src/labels.h:213 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "ავტონომური სისტემის ნომრები/ორგანიზაციები (ASN-ები)" #: src/labels.h:218 msgid "HTTP Status Codes" msgstr "HTTP სტატუსის კოდები" #: src/labels.h:220 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "ყველაზე ხშირი HTTP სტატუსის კოდები, დალაგებული დამთხვევით [, საშდრ, კუმდრ, " "მაქსდრ]" #: src/labels.h:222 msgid "Status Codes" msgstr "სტატუსის კოდები" #: src/labels.h:225 src/labels.h:229 msgid "MIME Types" msgstr "MIME ტიპები" #: src/labels.h:227 msgid "File types shipped out" msgstr "გაგზავნილი ფაილის ტიპები" #: src/labels.h:232 msgid "Encryption settings" msgstr "დაშიფვრის პარამეტრები" #: src/labels.h:234 msgid "TLS version and picked algorithm" msgstr "TLS-ის ვერსია და არჩეული ალგორითმი" #: src/labels.h:236 msgid "TLS Settings" msgstr "TLS პარამეტრები" #: src/labels.h:240 msgid "[ ] case sensitive" msgstr "[ ] დიდი და პატარა ასოები განსხვავდება" #: src/labels.h:242 msgid "[x] case sensitive" msgstr "[x] დიდი და პატარა ასოები არ განსხვავდება" #: src/labels.h:244 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "" "რეგგამოსი დაშვებულია - ^g გასაუქმებლად - TAB დიდი და პატარა ასოების გადართვა" #: src/labels.h:246 msgid "Find pattern in all views" msgstr "ნიმუშის ძებნა ყველა ხედში" #: src/labels.h:250 msgid "Log Format Configuration" msgstr "ჟურნალის ფორმატის მორგება" #: src/labels.h:252 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[SPACE] გადასართავად - [ENTER] გასაგრძელებლად - [q] გასასვლელად" #: src/labels.h:254 msgid "Log Format - [c] to add/edit format" msgstr "ჟურნალის ფორმატი - [c] ფორმატის დასამატებლად/ჩასასწორებლად" #: src/labels.h:256 msgid "Date Format - [d] to add/edit format" msgstr "თარიღის ფორმატი - [d] ფორმატის დასამატებლად/ჩასასწორებლად" #: src/labels.h:258 msgid "Time Format - [t] to add/edit format" msgstr "დროის ფორმატი - [t] ფორმატის დასამატებლად/ჩასასწორებლად" #: src/labels.h:260 src/labels.h:264 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[მაღლა/დაბლა] გადასახვევად - [q] ფანჯრის დასახურად" #: src/labels.h:266 #, c-format msgid "User Agents for %1$s" msgstr "მომხმარებლის აგენტები %1$s-ისთვის" #: src/labels.h:270 msgid "Scheme Configuration" msgstr "სქემის კონფიგურაცია" #: src/labels.h:272 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] სქემის გამოსაყენებლად - [q]გასასვლელად" #: src/labels.h:276 msgid "Sort active module by" msgstr "აქტიური მოდულის დალაგების პირობა" #: src/labels.h:278 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] მონიშვნა - [TAB] დალაგება - [q]გასვლა" #: src/labels.h:282 msgid "GoAccess Quick Help" msgstr "GoAccess-ის სწრაფი დახმარება" #: src/labels.h:284 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[UP/DOWN] გადასახვევად - [q] გასასვლელად" #: src/labels.h:288 msgid "In-Memory with On-Disk Persistent Storage." msgstr "მეხსიერებაში მომუშავე მუდმივი საცავით დისკზე." #: src/labels.h:292 msgid "Format Errors - Verify your log/date/time format" msgstr "ფორმატის შეცდომები - გადაამოწმეთ თქვენი ჟურნალის/თარიღის/დროის ფორმატი" #: src/labels.h:294 msgid "No date format was found on your conf file." msgstr "თქვენს .conf ფაილში თარიღის ფორმატი აღმოჩენილი არაა." #: src/labels.h:296 msgid "No log format was found on your conf file." msgstr "თქვენს .conf ფაილში ჟურნალის ფორმატი აღმოჩენილი არაა." #: src/labels.h:298 msgid "No time format was found on your conf file." msgstr "თქვენს .conf ფაილში დროის ფორმატი აღმოჩენილი არაა." #: src/labels.h:300 msgid "No default config file found." msgstr "ნაგულისხმევი კონფიგურაციის ფაილი აღმოჩენილი არაა." #: src/labels.h:302 msgid "You may specify one with" msgstr "შეგიძლიათ, მიუთითოთ" #: src/labels.h:304 msgid "producing the following errors" msgstr "ყრის შემდეგ შეცდომებს" #: src/labels.h:306 #, c-format msgid "Parsed %1$d lines" msgstr "დამუშავებულია %1$d ხაზი" #: src/labels.h:308 msgid "Please report it by opening an issue on GitHub" msgstr "მოგვწერეთ ამის შესახებ GitHub-ზე პრობლემის გახსნით" #: src/labels.h:310 msgid "Select a time format." msgstr "აირჩიეთ დროის ფორმატი." #: src/labels.h:312 msgid "Select a date format." msgstr "აირჩიეთ თარიღის ფორმატი." #: src/labels.h:314 msgid "Select a log format." msgstr "აირჩიეთ ჟურნალის ფორმატი." #: src/labels.h:316 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' პანელი გათიშულია" #: src/labels.h:318 msgid "No input data was provided nor there's data to restore." msgstr "" "შესაყვანი მონაცემები მოწოდებული არაა და არც აღსადგენი მონაცემები არსებობს." #: src/labels.h:320 msgid "Unable to allocate memory for a log instance." msgstr "ჟურნალის გაშვებული ასლისთვის მეხსიერების გამოყოფა შეუძლებელია." #: src/labels.h:322 msgid "Unable to find the given log." msgstr "მითითებული ჟურნალის პოვნა შეუძლებელია." #: src/labels.h:326 msgid "For more details visit" msgstr "მეტი დეტალისთვის ეწვიეთ მისამართს" #: src/labels.h:328 msgid "Last Updated" msgstr "ბოლო განახლება" #: src/labels.h:330 msgid "WebSocket server ready to accept new client connections" msgstr "ვებსოკეტის სერვერი მზადაა ახალი კლიენტის კავშირების მისაღებად" #: src/labels.h:333 msgid "The following options can also be supplied to the command" msgstr "შემდეგი პარამეტრები შეგიძლიათ, გადასცეთ ბრძანებას" #: src/labels.h:335 msgid "Examples can be found by running" msgstr "მაგალითების პოვნა შეგიძლიათ ბრძანებით" #: src/labels.h:338 msgid "Server Statistics" msgstr "სერვერის სტატისტიკა" #: src/labels.h:340 msgid "Theme" msgstr "თემა" #: src/labels.h:342 msgid "Dark Gray" msgstr "მუქი ნაცრისფერი" #: src/labels.h:344 msgid "Bright" msgstr "კაშკაშა" #: src/labels.h:346 msgid "Dark Blue" msgstr "მუქი ლურჯი" #: src/labels.h:348 msgid "Dark Purple" msgstr "მუქი იისფერი" #: src/labels.h:350 msgid "Panels" msgstr "პანელები" #: src/labels.h:352 msgid "Items per Page" msgstr "ელემენტი გვერდზე" #: src/labels.h:354 msgid "Tables" msgstr "ცხრილები" #: src/labels.h:356 msgid "Display Tables" msgstr "ცხრილების ჩვენება" #: src/labels.h:358 msgid "Auto-Hide on Small Devices" msgstr "ავტოდამალვა პატარა მოწყობილობებზე" #: src/labels.h:360 msgid "Automatically hide tables on small screen devices" msgstr "ცხრილების ავტომატური დამალვა პატარა მოწყობილობებზე" #: src/labels.h:362 msgid "Toggle Panel" msgstr "პანელის გადართვა" #: src/labels.h:364 msgid "Layout" msgstr "განლაგება" #: src/labels.h:366 msgid "Horizontal" msgstr "ჰორიზონტალური" #: src/labels.h:368 msgid "Vertical" msgstr "ვერტიკალური" #: src/labels.h:370 msgid "WideScreen" msgstr "ფართო ეკრანი" #: src/labels.h:372 msgid "File Options" msgstr "ფაილის მორგება" #: src/labels.h:374 msgid "Export as JSON" msgstr "გატანა JSON-ში" #: src/labels.h:376 msgid "Panel Options" msgstr "პანელის მორგება" #: src/labels.h:378 msgid "Previous" msgstr "წინა" #: src/labels.h:380 msgid "Next" msgstr "შემდეგი" #: src/labels.h:382 msgid "First" msgstr "პირველი" #: src/labels.h:384 msgid "Last" msgstr "ბოლო" #: src/labels.h:386 msgid "Chart Options" msgstr "დიაგრამის მორგება" #: src/labels.h:388 msgid "Chart" msgstr "გრაფიკი" #: src/labels.h:390 msgid "Type" msgstr "ტიპი" #: src/labels.h:392 msgid "Area Spline" msgstr "არეს სპლაინი" #: src/labels.h:394 msgid "Bar" msgstr "ზოლი" #: src/labels.h:396 msgid "World Map" msgstr "მსოფლიო რუკა" #: src/labels.h:398 msgid "Azimuthal/Globe" msgstr "აზიმუტური/დედამიწა" #: src/labels.h:400 msgid "Plot Metric" msgstr "საზომი ერთეულები" #: src/labels.h:402 msgid "Table Columns" msgstr "ცხრილის სვეტები" #: src/labels.h:406 msgid "0xx Unofficial Codes" msgstr "0xx არაოფიციალური კოდები" #: src/labels.h:408 msgid "1xx Informational" msgstr "1xx საინფორმაცია" #: src/labels.h:410 msgid "2xx Success" msgstr "2xx წარმატება" #: src/labels.h:412 msgid "3xx Redirection" msgstr "3xx გადამისამართება" #: src/labels.h:414 msgid "4xx Client Errors" msgstr "4xx კლიენტის შეცდომები" #: src/labels.h:416 msgid "5xx Server Errors" msgstr "5xx სერვერის შეცდომები" #: src/labels.h:419 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "0 - Caddy: დაუმუშავებელია - მორგებული მარშრუტების გარეშე" #: src/labels.h:421 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - გაგრძელება: სერვერმა მოთხოვნის საწყისი ნაწილი მიიღო" #: src/labels.h:423 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - პროტოკოლების გადართვა: კლიენტმა პროტოკოლების გადართვა მოითხოვა" #: src/labels.h:425 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: კლიენტის მიერ გაგზავნილი მოთხოვნა წარმატებულია" #: src/labels.h:427 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - შეიქმნა: მოთხოვნა აღსრულდა და შეიქმნა" #: src/labels.h:429 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - მიღებულია: მოთხოვნა მიღებულია დასამუშავებლად" #: src/labels.h:431 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Non-authoritative Information: პასუხი მესამე პირისგან" #: src/labels.h:433 msgid "204 - No Content: Request did not return any content" msgstr "204 - No Content: მოთხოვნამ შემცველობა არ დააბრუნა" #: src/labels.h:435 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "205 - Reset Content: სერვერმა კლიენტს დოკუმენტის ჩამოყრა სთხოვა" #: src/labels.h:437 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Partial Content: ნაწილობრივი GET წარმატებულია" #: src/labels.h:439 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Multi-Status: WebDAV; RFC 4918" #: src/labels.h:441 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Already Reported: WebDAV; RFC 5842" #: src/labels.h:443 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "218 - This is fine: Apache servers. ყველაფრის ჩამჭერი შეცდომის პირობა" #: src/labels.h:445 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Multiple Choices: ერთზე მეტი არჩევანი რესურსისთვის" #: src/labels.h:447 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Moved Permanently: რესურსი სამუდამოდაა გადატანილი" #: src/labels.h:449 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - დროებით გადატანილი (გადამისამართება)" #: src/labels.h:451 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - See Other Document: პასუხი სხვა ბმულზეა" #: src/labels.h:453 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Not Modified: რესურსი არ შეცვლილა" #: src/labels.h:455 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "" "305 - Use Proxy: რესურსთან წვდომა, მხოლოდ, პროქსის გავლითაა შესაძლებელი" #: src/labels.h:457 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Temporary Redirect: რესურსი დროებით გადატანილია" #: src/labels.h:459 msgid "308 - Permanent Redirect" msgstr "308 - მუდმივი გადამისამართება" #: src/labels.h:461 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Bad Request: მოთხოვნის სინტაქსი არასწორია" #: src/labels.h:463 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Unauthorized: მოთხოვნას მომხმარებლის ავთენტიკაცია სჭირდება" #: src/labels.h:465 msgid "402 - Payment Required" msgstr "402 - აუცილებელია გადახდა" #: src/labels.h:467 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Forbidden: სერვერი უარს აცხადებს, პასუხი გამოაგზავნოს" #: src/labels.h:469 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Not Found: მოთხოვნილი რესურსის პოვნა შეუძლებელია" #: src/labels.h:471 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Method Not Allowed: მოთხოვნის მეთოდი მხარდაჭერილი არაა" #: src/labels.h:473 msgid "406 - Not Acceptable" msgstr "406 - მიუღებელია" #: src/labels.h:475 msgid "407 - Proxy Authentication Required" msgstr "407 - აუცილებელია პროქსის ავთენტიკაცია" #: src/labels.h:477 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - Request Timeout: მოთხოვნისთვის სერვერის მოლოდინის ვადა ამოიწურა" #: src/labels.h:479 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflict: კონფლიქტი მოთხოვნაში" #: src/labels.h:481 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Gone: მოთხოვნილი რესურსი ხელმისაწვდომი აღარაა" #: src/labels.h:483 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Length Required: არასწორი Content-Length" #: src/labels.h:485 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - Precondition Failed: სერვერი წინასწარ პირობებს არ აკმაყოფილებს" #: src/labels.h:487 msgid "413 - Payload Too Large" msgstr "413 - სასარგებლო დატვირთვა მეტისმეტად დიდია" #: src/labels.h:489 msgid "414 - Request-URI Too Long" msgstr "414 - მოთხოვნის-URI მეტისმეტად დიდია" #: src/labels.h:491 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Unsupported Media Type: მედიის ტიპი მხარდაჭერილი არაა" #: src/labels.h:493 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "416 - Requested Range Not Satisfiable: ამ ნაწილის მიწოდება სეუძლებელია" #: src/labels.h:495 msgid "417 - Expectation Failed" msgstr "417 - მოლოდინი ჩავარდა" #: src/labels.h:497 msgid "418 - I'm a teapot" msgstr "418 - ჩაიდანი ვარ" #: src/labels.h:499 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" "419 - Page Expired: ბიბლიოთეკა Laravel, როცა ტოკენი CSRF აღმოჩენილი არაა" #: src/labels.h:501 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "420 - Method Failure: Spring Framework როცა მეთოდი ჩავარდა" #: src/labels.h:503 msgid "421 - Misdirected Request" msgstr "421 - არასწორად გადამისამართებული მოთხოვნა" #: src/labels.h:505 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - არადამუშავებადი ჩანაწერი სემანტიკური შეცდომების გამო: WebDAV" #: src/labels.h:507 msgid "423 - The resource that is being accessed is locked" msgstr "423 - მოთხოვნილი რესურსი დაბლოკილია" #: src/labels.h:509 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - ჩავარდნილი დამოკიდებულება: WebDAV" #: src/labels.h:511 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - Upgrade Required: კლიენტი სხვა პროტოკოლზე უნდა გადაერთოს" #: src/labels.h:513 msgid "428 - Precondition Required" msgstr "428 - საჭიროა წინასწარი პირობა" #: src/labels.h:515 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "" "429 - Too Many Requests: მომხმარებელმა მეტისმეტად ბევრი მოთხოვნა გამოაგზავნა" #: src/labels.h:517 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" "430 - Request Header Fields Too Large: რაღაც პერიოდის განმავლობაში " "გამოთხოვილია მეტისმეტად ბევრი ბმული" #: src/labels.h:519 msgid "431 - Request Header Fields Too Large" msgstr "431 - მოთხოვნის თავსართის ველები მეტისმეტად დიდია" #: src/labels.h:521 msgid "440 - Login Time-out: The client's session has expired" msgstr "440 - შესვლის დრო ამოიწურა: კლიენტის სესიის ვადა ამოიწურა" #: src/labels.h:523 msgid "449 - Retry With: The server cannot honour the request" msgstr "449 - Retry With: სერვერი მოთხოვნას ყურადღებას ვერ მიაქცევს" #: src/labels.h:525 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" "450 - Blocked by Windows Parental Controls: მითითებულია Microsoft-ის " "გაფართოების კოდი" #: src/labels.h:527 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - ხელმიუწვდომელია იურიდიული მიზეზების გამო" #: src/labels.h:529 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) კავშირი დაიხურა თავსართების გაგზავნის გარეშე" #: src/labels.h:531 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "460 - AWS Elastic Load Balancing: კლიენტმა კავშირი დახურა " #: src/labels.h:533 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" "463 - AWS Elastic Load Balancing: დატვირთვის გამანაწილებელმა 30-ზე მეტი IP " "მისამართი მიიღო" #: src/labels.h:535 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "464 - AWS Elastic Load Balancing: შეუთავსებელი პროტოკოლის ვერსიები" #: src/labels.h:537 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) მოთხოვნის თავსართი მეტისმეტად დიდია" #: src/labels.h:539 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL კლიენტის სერტიფიკატის შეცდომა" #: src/labels.h:541 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) კლიენტს სერტიფიკატი არ მოუწოდებია" #: src/labels.h:543 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) გაგზავნილია HTTP მოთხოვნა HTTPS პორტზე" #: src/labels.h:545 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "498 - Invalid Token: ვადაამოწურული ან სხვა მიზეზით არასწორი ტოკენი" #: src/labels.h:547 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) კლიენტმა კავშირი მოთხოვნის დამუშავებისას დახურა" #: src/labels.h:549 msgid "500 - Internal Server Error" msgstr "500 - შიდა სერვერის შეცდომა" #: src/labels.h:551 msgid "501 - Not Implemented" msgstr "501 - განხორციელებული არაა" #: src/labels.h:553 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - Bad Gateway: აღმავლიდან მიღებული პასუხი არასწორია" #: src/labels.h:555 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Service Unavailable: ამჟამად სერვერი ხელმისაწვდომი არაა" #: src/labels.h:557 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "504 - Gateway Timeout: აღმავალმა სერვერმა მოთხოვნა ვერ გააგზავნა" #: src/labels.h:559 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTP-ის ვერსია მხარდაჭერილი არაა" #: src/labels.h:561 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "509 - Bandwidth Limit Exceeded: სერვერმა გამტარობის ზღვარს გადააჭარბა" #: src/labels.h:563 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - ვებსერვერმა უცნობი შეცდომა დააბრუნა" #: src/labels.h:565 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - ვებსერვერი გათიშულია" #: src/labels.h:567 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - დაკავშირების მოლოდინის ვადა ამოიწურა" #: src/labels.h:569 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - წყარო ხელმიუწვდომელია" #: src/labels.h:571 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - მოლოდინის ვადა ამოიწურა" #: src/labels.h:573 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" "525 - SSL Handshake Failed: Cloudflare-მა SSL/TLS კავშირის დაწყება ვერ " "მოახერხა" #: src/labels.h:575 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" "526 - Invalid SSL Certificate: Cloudflare-მა SSL სერტიფიკატის გადამოწმება " "ვერ მოახერხა" #: src/labels.h:577 msgid "527 - Railgun Error: An interrupted connection" msgstr "527 - Railgun Error: კავშირი შეწყდა" #: src/labels.h:579 msgid "529 - Site is overloaded: A site can not process the request" msgstr "529 - Site is overloaded: საიტს მოთხოვნის დამუშავება არ შეუძლია" #: src/labels.h:581 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "530 - Site is frozen: საიტი გაიყინა არააქტიურობის გამო" #: src/labels.h:583 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "540 - Temporarily Disabled: მოთხოვნილი ბოლოწერტილი დროებით გამორთულია" #: src/labels.h:585 msgid "561 - Unauthorized: An error around authentication" msgstr "561 - Unauthorized: შეცდომა ავთენტიკაციის გარშემო" #: src/labels.h:587 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" "598 - Network read timeout error: ზოგიერთი HTTP პროქსი ქსელიდან წაკითხვის " "მოლოდინის ვადაზე იტყობინება" #: src/labels.h:589 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" "599 - Network Connect Timeout Error: შეცდომა ზოგიერთი HTTP პროქსიების " "გამოყენებისას" #: src/labels.h:591 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "783 - Unexpected Token: მოთხოვნა JSON-ის სინტაქსის შეცდომას შეიცავს" #: src/labels.h:595 msgid "Menu" msgstr "მენიუ" #: src/labels.h:597 msgid "Settings" msgstr "მორგება" #: src/labels.h:599 msgid "WebSocket Status: Connected" msgstr "ვებსოკეტის სტატუსი: დაკავშირებულია" #: src/labels.h:601 msgid "WebSocket Status: Disconnected" msgstr "ვებსოკეტის სტატუსი: გათიშულია" ================================================ FILE: po/ko.po ================================================ msgid "" msgstr "" "Project-Id-Version: goaccess 1.6.3\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2022-09-06 21:27+0900\n" "Last-Translator: David 창모 Yang <dcyang@users.noreply.github.com>\n" "Language-Team: Korean <dcyang@users.noreply.github.com>\n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" "X-Generator: Gtranslator 40.0\n" #: src/labels.h:45 msgid "en" msgstr "ko" #: src/labels.h:48 msgid "Exp. Panel" msgstr "패널 펼치기" #: src/labels.h:49 msgid "Help" msgstr "도움말" #: src/labels.h:50 msgid "Quit" msgstr "종료" #: src/labels.h:51 msgid "Total" msgstr "합계" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] 오름차순 [ ] 내림차순" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] 오름차순 [x] 내림차순" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[표시 중인 패널: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] GoAccess 종료" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] 도움말 [Enter] 패널 펼치기" #: src/labels.h:61 msgid "Dashboard" msgstr "대시보드" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "대시보드 - 기록 분석 개요" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "기록 분석 개요" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "전송량" #: src/labels.h:66 msgid "Date/Time" msgstr "날짜/시간" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "제외된 IP 방문" #: src/labels.h:68 msgid "Failed Requests" msgstr "무효 요청 수" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "로그 분석 시간" #: src/labels.h:70 msgid "Log Size" msgstr "로그 용량" #: src/labels.h:71 msgid "Log Source" msgstr "로그 출처" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "참조자 수" #: src/labels.h:73 msgid "Total Requests" msgstr "요청 수 합계" #: src/labels.h:74 msgid "Static Files" msgstr "정적 파일 수" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "찾을 수 없음" #: src/labels.h:76 msgid "Requested Files" msgstr "요청된 파일 수" #: src/labels.h:77 msgid "Unique Visitors" msgstr "순 방문자" #: src/labels.h:78 msgid "Valid Requests" msgstr "유효 요청 수" #: src/labels.h:81 msgid "Hits" msgstr "방문 수" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "방문자 수" #: src/labels.h:84 msgid "Vis." msgstr "방문자 수" #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "평균 처리시간" #: src/labels.h:89 msgid "Cum. T.S." msgstr "누적 처리시간" #: src/labels.h:90 msgid "Max. T.S." msgstr "최대 처리시간" #: src/labels.h:91 msgid "Method" msgstr "접속 방법" #: src/labels.h:92 msgid "Mtd" msgstr "접속 방법" #: src/labels.h:93 msgid "Protocol" msgstr "프로토콜" #: src/labels.h:94 msgid "Proto" msgstr "프로토콜" #: src/labels.h:95 msgid "City" msgstr "도시" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "국가" #: src/labels.h:98 msgid "Hostname" msgstr "호스트명" #: src/labels.h:99 msgid "Data" msgstr "데이터" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "방문 수/방문자 수" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "일일 순 방문자" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "일일 순 방문자 - 크롤러 포함" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "동일한 IP주소, 날짜, 에이전트를 가진 방문은 순 방문으로 간주됩니다." #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "요청된 파일 (URL)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "방문 수 순으로 정렬한 요청 수 [, 평균 처리시간, 누적 처리시간, 최대 처리시" "간, 접속 방법, 프로토콜]" #: src/labels.h:118 msgid "Requests" msgstr "요청 수" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "정적 파일 요청 수" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "방문 수 순으로 정렬한 정적 파일 요청 수 [, 평균 처리시간, 누적 처리시간, 최" "대 처리시간, 접속 방법, 프로토콜]" #: src/labels.h:128 msgid "Time Distribution" msgstr "시간 분포" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "시간별로 정렬한 데이터 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:132 msgid "Time" msgstr "시간" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "가상 호스트" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 데이터 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "원격 사용자 (HTTP 인증)" #: src/labels.h:146 msgid "Remote User" msgstr "원격 사용자" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "로드되는 개체의 캐시 상태" #: src/labels.h:153 msgid "Cache Status" msgstr "캐시 상태" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "찾을 수 없는 URL (404)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "방문 수로 정렬한 찾을 수 없는 URL [, 평균 처리시간, 누적 처리시간, 최대 처리" "시간, 접속 방법, 프로토콜]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "방문자 호스트명 및 IP" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 방문자 호스트 [, 평균 처리시간, 누적 처리시간, 최대 처리시" "간]" #: src/labels.h:167 msgid "Hosts" msgstr "호스트명" #: src/labels.h:170 msgid "Operating Systems" msgstr "운영체제" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 운영체제 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:174 msgid "OS" msgstr "OS" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "브라우저" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 브라우저 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "참조자 URL" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 요청 참조자 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "출발 사이트" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 출발 사이트 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "구글로 검색된 관건문구" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 관건문구 [, 평균 처리시간, 누적 처리시간, 최대 처리시간]" #: src/labels.h:202 msgid "Keyphrases" msgstr "관건문구" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "지리적 위치" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "순 방문 수로 정렬한 대륙 > 국가 [, 평균 처리시간, 누적 처리시간, 최대 처리시" "간]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "HTTP 상태 코드" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "방문 수로 정렬한 HTTP 상태 코드 [, 평균 처리시간, 누적 처리시간, 최대 처리시" "간]" #: src/labels.h:223 msgid "Status Codes" msgstr "상태 코드" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIME 유형" #: src/labels.h:228 msgid "File types shipped out" msgstr "로드된 파일 유형" #: src/labels.h:233 msgid "Encryption settings" msgstr "암호화 설정사항" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "TLS 버전 및 선택한 알고리즘" #: src/labels.h:237 msgid "TLS Settings" msgstr "TLS 설정사항" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] 대소문자 구분" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] 대소문자 구분" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "정규표현식 허용 - 취소하려면 ^g - 대소문자 전환은 TAB" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "모든 보기에서 패턴을 찾기" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "로그 형식 구성" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "토글(똑딱)은 [SPACE] - 진행은 [ENTER] - 종료는 [q]" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "로그 형식 - 형식 추가/편집은 [c]" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "날짜 형식 - 형식 추가/편집은 [d]" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "시간 형식 - 형식 추가/편집은 [t]" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "스크롤은 [↑/↓] - 창 닫기는 [q]" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "%1$s 의 사용자 에이전트" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "스킴 구성" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "스킴을 사용하려면 [ENTER] - [q] 종료" #: src/labels.h:277 msgid "Sort active module by" msgstr "활성화된 모듈의 정렬 기준" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] 선택 - [TAB] 정렬 - [q] 종료" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "GoAccess 빠른 도움말" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "스크롤은 [↑/↓] - 종료는 [q]" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "디스크상의 지속적 저장공간과 함께 메모리 기억." #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "형식 오류 - 로그/날짜/시간 형식을 확인하세요" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "conf 파일에 날짜 형식이 발견되지 않았습니다." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "conf 파일에 로그 형식이 발견되지 않았습니다." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "conf 파일에 시간 형식이 발견되지 않았습니다." #: src/labels.h:303 msgid "No default config file found." msgstr "기본 제공 config 파일을 찾을 수 없습니다." #: src/labels.h:305 msgid "You may specify one with" msgstr "별도로 지정하시려면" #: src/labels.h:307 msgid "producing the following errors" msgstr "다음과 같은 오류 메시지 발생" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "%1$d 개의 행을 식별" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "GitHub에서 Issue를 열어 신고해 주세요" #: src/labels.h:313 msgid "Select a time format." msgstr "시간 형식을 선택하세요." #: src/labels.h:315 msgid "Select a date format." msgstr "날짜 형식을 선택하세요." #: src/labels.h:317 msgid "Select a log format." msgstr "로그 형식을 선택하세요." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' 패널은 비활성 상태입니다" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "입력 데이터가 주어지지 않았고 복원할 데이터도 없음" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "자세한 사항은 다음을 방문하세요" #: src/labels.h:331 msgid "Last Updated" msgstr "최근 업데이트" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket 서버가 새로운 클라이언트 접속을 받을 준비가 되었습니다" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "명령어에 다음과 같은 옵션을 추가할 수 있습니다" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "다음을 실행하여 예시를 볼 수 있습니다" #: src/labels.h:341 msgid "Server Statistics" msgstr "서버 통계" #: src/labels.h:343 msgid "Theme" msgstr "테마" #: src/labels.h:345 msgid "Dark Gray" msgstr "짙은 회색" #: src/labels.h:347 msgid "Bright" msgstr "밝은 색" #: src/labels.h:349 msgid "Dark Blue" msgstr "짙은 파란색" #: src/labels.h:351 msgid "Dark Purple" msgstr "짙은 보라색" #: src/labels.h:353 msgid "Panels" msgstr "패널" #: src/labels.h:355 msgid "Items per Page" msgstr "페이지에 표시할 항목 수" #: src/labels.h:357 msgid "Tables" msgstr "표" #: src/labels.h:359 msgid "Display Tables" msgstr "표 표시" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "소형 기기에서는 자동 숨김" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "작은 화면의 기기에서는 표를 자동으로 숨깁니다" #: src/labels.h:365 msgid "Toggle Panel" msgstr "패널 토글" #: src/labels.h:367 msgid "Layout" msgstr "레이아웃" #: src/labels.h:369 msgid "Horizontal" msgstr "가로" #: src/labels.h:371 msgid "Vertical" msgstr "세로" #: src/labels.h:373 msgid "WideScreen" msgstr "와이드스크린" #: src/labels.h:375 msgid "File Options" msgstr "파일 옵션" #: src/labels.h:377 msgid "Export as JSON" msgstr "JSON 형태로 내보내기" #: src/labels.h:379 msgid "Panel Options" msgstr "패널 옵션" #: src/labels.h:381 msgid "Previous" msgstr "이전" #: src/labels.h:383 msgid "Next" msgstr "다음" #: src/labels.h:385 msgid "First" msgstr "처음" #: src/labels.h:387 msgid "Last" msgstr "마지막" #: src/labels.h:389 msgid "Chart Options" msgstr "도표 옵션" #: src/labels.h:391 msgid "Chart" msgstr "도표" #: src/labels.h:393 msgid "Type" msgstr "유형" #: src/labels.h:395 msgid "Area Spline" msgstr "활면곡선" #: src/labels.h:397 msgid "Bar" msgstr "막대그래프" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "표시할 데이터" #: src/labels.h:405 msgid "Table Columns" msgstr "표의 열" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx 참고사항" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx 성공" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx 넘겨주기" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx 클라이언트 오류" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx 서버 오류" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "" "100 - 계속: 서버는 요청의 첫 번째 부분을 받았으며 나머지를 기다리고 있음" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - 프로토콜 전환: 클라이언트가 서버에 프로토콜 전환을 요청" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - 성공: 요청이 제대로 처리되었음" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - 작성됨: 성공적으로 요청되었으며 서버가 새 리소스를 작성함" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - 허용됨: 서버가 요청을 접수했지만 아직 처리하지 않았음" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - 신뢰할 수 없는 정보: 제3자에게서 온 담신" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - 내용 없음: 요청이 공백의 데이터를 반환하였음" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "205 - 내용 재설정: 서버가 클라이언트에게 문서를 재설정할 것을 요청함" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - 부분적 내용: GET 요청의 일부만 성공적으로 처리됨" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - 다중 상태: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - 이미 보고됨: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - 여러 선택지: 리소스가 실행할 수 있는 옵션이 다수 있음" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - 영구 이동: 리소스가 영구적으로 이동함" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - 임시 이동: (넘겨주기)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - 다른 문서 조회: 답신이 다른 URI에 존재함" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - 수정 안함: 리소스가 수정되지 않았음" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - 프록시 이용: 프록시를 통해서만 접근 가능" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - 임시적 넘겨주기: 리소스가 임시적으로 이동함" #: src/labels.h:462 msgid "308 - Permanent Redirect" msgstr "308 - 영구적 넘겨주기" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - 잘못된 요청: 요청의 구문이 잘못됨" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - 권한 없음: 요청에 사용자 인증이 필요함" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - 결제 필요" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - 금지됨: 서버가 답신을 거부함" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - 찾을 수 없음: 요청한 리소스가 발견되지 않음" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - 허용되지 않는 메소드: 요청의 메소드가 지원되지 않음" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - 허용되지 않음" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - 프록시 인증 필요" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - 요청 시간초과: 서버의 요청 대기 시간이 초과됨" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - 충돌: 요청에 충돌 사항이 포함됨" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - 사라짐: 요청한 리소스가 삭제됨" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - 길이 필요: 유효하지 않은 내용의 길이" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - 사전조건 실패: 요청된 사전조건을 서버가 만족시키지 않음" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - 요청의 본문이 너무 큼" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - 요청의 URI가 너무 긺" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - 지원되지 않는 미디어 유형: 미디어 유형이 지원되지 않음" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 - 처리할 수 없는 요청범위: 서버가 제공할 수 있는 범위를 넘어선 요청" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - 예상 실패" #: src/labels.h:500 msgid "418 - I'm a teapot" msgstr "418 - 저는 주전자인데요" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - 오도된 요청" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - 구문 오류로 인해 처리할 수 없는 엔티티: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - 접근하려는 리소스가 잠겨 있음" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - 의존사항 실패: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - 업그레이드 필요: 클라이언트는 다른 프로토콜을 이용해야 함" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - 전제조건 필요" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - 요청 과다: 사용자가 너무 많은 요청을 보냄" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - 요청 헤더란이 너무 큼" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "408 - 요청 시간초과: 서버의 요청 대기 시간이 초과됨" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - 법적인 이유로 인해 이용 불가" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) 헤더를 보내지 않고 연결이 끊어짐" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) 요청 헤더가 너무 큼" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL 클라이언트 인증서 오류" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) 클라이언트가 인증서를 제공하지 않음" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) HTTP 요청이 HTTPS 포트로 보내짐" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) 요청을 처리하는 도중 클라이언트가 연결을 해제함" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - 내부 서버 오류" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - 구현되지 않음" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - 불량 게이트웨이: 상위 서버에서 잘못된 응답을 받음" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - 서비스 이용 불가: 서버를 현재 이용할 수 없음" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "504 - 게이트웨이 시간초과: 상위 서버가 요청을 보내는데 실패함" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTP 버전이 지원되지 않음" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - 웹서버가 알 수 없는 오류를 반환함" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - 웹서버 다운" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - 연결 시간초과" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - 요청의 근원에 도달할 수 없음" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - 시간초과 발생" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "401 - 권한 없음: 요청에 사용자 인증이 필요함" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 #, fuzzy msgid "Settings" msgstr "TLS 설정사항" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "참조자 수" ================================================ FILE: po/pt_BR.po ================================================ msgid "" msgstr "" "Project-Id-Version: Goaccess\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2019-04-25 20:34-0300\n" "Last-Translator: Alan Placidina Maria <alanplacidina@gmail.com>\n" "Language-Team: \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" #: src/labels.h:45 msgid "en" msgstr "pt-BR" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Exp. Panel" #: src/labels.h:49 msgid "Help" msgstr "Ajuda" #: src/labels.h:50 msgid "Quit" msgstr "Sair" #: src/labels.h:51 msgid "Total" msgstr "Total" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] ASC [ ] DESC" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] ASC [x] DESC" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Painel Ativo: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q]Sair GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Ajuda [Enter] Exp. Panel" #: src/labels.h:61 msgid "Dashboard" msgstr "Painel de Controle" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Painel de Controle - Análise geral das requisições" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Análise geral das requisições" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Tx. Total" #: src/labels.h:66 msgid "Date/Time" msgstr "Data/Hora" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Accesos IP Excl." #: src/labels.h:68 msgid "Failed Requests" msgstr "Req. Inválidas" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "" #: src/labels.h:70 msgid "Log Size" msgstr "Tamanho do Log" #: src/labels.h:71 msgid "Log Source" msgstr "Origem do Log" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Referenciadores" #: src/labels.h:73 msgid "Total Requests" msgstr "Requisições" #: src/labels.h:74 msgid "Static Files" msgstr "Arquivos Estáticos" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Não Encontrado" #: src/labels.h:76 msgid "Requested Files" msgstr "Req. Arquivos" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Visitantes Únicos" #: src/labels.h:78 msgid "Valid Requests" msgstr "Req. Válidas" #: src/labels.h:81 msgid "Hits" msgstr "Requisições" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Visitantes" #: src/labels.h:84 msgid "Vis." msgstr "Vis." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Méd. T.S." #: src/labels.h:89 msgid "Cum. T.S." msgstr "Cum. T.S." #: src/labels.h:90 msgid "Max. T.S." msgstr "Máx. T.S." #: src/labels.h:91 msgid "Method" msgstr "Método" #: src/labels.h:92 msgid "Mtd" msgstr "Mtd" #: src/labels.h:93 msgid "Protocol" msgstr "Protocolo" #: src/labels.h:94 msgid "Proto" msgstr "Proto" #: src/labels.h:95 msgid "City" msgstr "Cidade" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "Pais" #: src/labels.h:98 msgid "Hostname" msgstr "Hostname" #: src/labels.h:99 msgid "Data" msgstr "Dados" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Requisições/Visitas" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Visitantes únicos por dia" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Visitantes únicos por dia" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "Requisições com o mesmo IP, data e agente são uma visita única." #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Requisições" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Requisições ordenadas por requisições [, avgts, cumts, maxts, mthd, proto]" #: src/labels.h:118 msgid "Requests" msgstr "Requisições" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Requisições Estáticas" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Requisições estáticas ordenadas por requisições [, avgts, cumts, maxts, " "mthd, proto]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Requisições Por Hora" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Dados ordenados por hora [, avgts, cumts, maxts]" #: src/labels.h:132 msgid "Time" msgstr "Hora" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Hosts Virtuais" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Dados ordenados por requisições [, avgts, cumts, maxts]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Usuário Remoto (Autenticação HTTP)" #: src/labels.h:146 msgid "Remote User" msgstr "Usuário Remoto" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "" #: src/labels.h:153 msgid "Cache Status" msgstr "" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "URLs Não Encontradas (404)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "URLs não encontradas ordenadas por requisições [, avgts, cumts, maxts, mthd, " "proto]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Endereços IPv4" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "Hosts de visitantes ordenados por requisições [, avgts, cumts, maxts]" #: src/labels.h:167 msgid "Hosts" msgstr "Hosts" #: src/labels.h:170 msgid "Operating Systems" msgstr "Sistemas Operacionais" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "Sistemas Operacionais ordenados por requisições [, avgts, cumts, maxts]" #: src/labels.h:174 msgid "OS" msgstr "SO" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Navegadores" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "Navegadores ordenados por requisições [, avgts, cumts, maxts]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "URLs Referenciadas" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Requisições referenciadas ordenadas por requisições [, avgts, cumts, maxts]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Sites Referenciados" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "Sites referenciados ordenados por requisições [, avgts, cumts, maxts]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Mecanismo de pesquisa do Google" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "Frases-chave de busca ordenadas por requisições [, avgts, cumts, maxts]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Frases-chave" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Geo Localização" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "Continente/Pais ordenado por requisições únicas [, avgts, cumts, maxts]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "Codigos de Status HTTP" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "Codigos de Status HTTP ordenados por requisições [, avgts, cumts, maxts]" #: src/labels.h:223 msgid "Status Codes" msgstr "Codigos de Status" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "" #: src/labels.h:228 msgid "File types shipped out" msgstr "" #: src/labels.h:233 msgid "Encryption settings" msgstr "" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "" #: src/labels.h:237 msgid "TLS Settings" msgstr "" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] distinguir maiúsculas" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] distinguir maiúsculas" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Regex Permitidos - ^g para cancelar - TAB mudar caso" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Encontrar padrão em todas as vistas" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Configuração do Formato de Log" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[SPACE] para alternar - [ENTER] para prosseguir - [q] para sair" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Formato de Log - [c] para adicionar/editar formato" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Formato da Data - [d] para adicionar/editar formato" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Formato da Hora - [t] para adicionar/editar formato" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[UP/DOWN] para rolar - [q] para fechar a janela" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "Agentes de Usuário para %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Configuração de Esquema" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] para usar esquema - [q]Sair" #: src/labels.h:277 msgid "Sort active module by" msgstr "Ordenar modulo ativo por" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] selecionar - [TAB] ordenar - [q]Sair" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "Ajuda Rápida de GoAccess" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[UP/DOWN] para rolar - [q] para sair" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "" #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Formato de Erros - Verifique seu formato de log/data/hora" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Nenhum formato de data encontrado no seu arquivo de configuração" #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Nenhum formato de log encontrado no seu arquivo de configuração" #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Formato de hora não foi encontrado no seu arquivo de configuração" #: src/labels.h:303 msgid "No default config file found." msgstr "Nenhum arquivo de configuração padrão foi encontrado." #: src/labels.h:305 msgid "You may specify one with" msgstr "Você pode especificar uma largura" #: src/labels.h:307 msgid "producing the following errors" msgstr "produzindo os seguintes erros" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Analizadas %1$d linhas" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Por favor, informe abrindo um problema no GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Selecione um formato de hora." #: src/labels.h:315 msgid "Select a date format." msgstr "Selecione um formato de data." #: src/labels.h:317 msgid "Select a log format." msgstr "Selecione um formato de log." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' painel está desativado" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Para mais detalhes visite" #: src/labels.h:331 msgid "Last Updated" msgstr "Última atualização" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "Servidor WebSocket pronto para aceitar novas conexões de clientes" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "As seguintes opções também podem ser fornecidas para o comando" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Exemplos podem ser encontrados executando" #: src/labels.h:341 msgid "Server Statistics" msgstr "Estatísticas do servidor" #: src/labels.h:343 msgid "Theme" msgstr "Tema" #: src/labels.h:345 msgid "Dark Gray" msgstr "Cinza Escuro" #: src/labels.h:347 msgid "Bright" msgstr "Claro" #: src/labels.h:349 msgid "Dark Blue" msgstr "Azul Escuro" #: src/labels.h:351 #, fuzzy msgid "Dark Purple" msgstr "Roxo Escuro" #: src/labels.h:353 msgid "Panels" msgstr "Painéis" #: src/labels.h:355 msgid "Items per Page" msgstr "Itens por página" #: src/labels.h:357 msgid "Tables" msgstr "Tabelas" #: src/labels.h:359 msgid "Display Tables" msgstr "Mostrar Tabelas" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Ocultar em Dispositivos Pequenos" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Ocultar tabelas em dispositivos pequenos" #: src/labels.h:365 msgid "Toggle Panel" msgstr "" #: src/labels.h:367 msgid "Layout" msgstr "Layout" #: src/labels.h:369 msgid "Horizontal" msgstr "Horizontal" #: src/labels.h:371 msgid "Vertical" msgstr "Vertical" #: src/labels.h:373 msgid "WideScreen" msgstr "" #: src/labels.h:375 msgid "File Options" msgstr "Opções de Arquivo" #: src/labels.h:377 msgid "Export as JSON" msgstr "Exportar como JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Opções do Painel" #: src/labels.h:381 msgid "Previous" msgstr "Anterior" #: src/labels.h:383 msgid "Next" msgstr "Próximo" #: src/labels.h:385 msgid "First" msgstr "Primeiro" #: src/labels.h:387 msgid "Last" msgstr "Último" #: src/labels.h:389 msgid "Chart Options" msgstr "Opções de Gráfico" #: src/labels.h:391 msgid "Chart" msgstr "Gráfico" #: src/labels.h:393 msgid "Type" msgstr "Tipo" #: src/labels.h:395 msgid "Area Spline" msgstr "Área Spline" #: src/labels.h:397 msgid "Bar" msgstr "Barra" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Métrica de Plotagem" #: src/labels.h:405 msgid "Table Columns" msgstr "Colunas da Tabela" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Informativo" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Exito" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Redirecionamento" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Erros do cliente" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Erros do servidor" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - Continuar: o servidor recebeu a parte inicial da requisição" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - Protocolos de comutação: cliente pediu para alternar protocolos" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: A requisição feita pelo cliente foi bem-sucedida" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Criado: A requisição foi concluída e criada" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Aceito: A requisição foi aceita para processar" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Informações não autorizadas: resposta de terceiros" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - Nenhum conteúdo: A requisição não retornou nenhum conteúdo" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 - Redefinir conteúdo: O servidor pediu ao cliente para redefinir o " "documento" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Conteúdo Parcial: O GET parcial foi bem-sucedido" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Mútiplos-Status: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Já Relatado: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Múltiplas Opções: Múltiplas alternativas para o recurso" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Movido Permanentemente: Recurso foi movido permanentemente" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Movido Temporariamente (redirecionar)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - Consulte Outro Documento: A resposta está em uma URI diferente" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Não Modificado: O recurso não foi modificado" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Usar Proxy: Só pode ser acessado através do proxy" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Redirecionamento Temporário: Recurso temporariamente movido" #: src/labels.h:462 #, fuzzy msgid "308 - Permanent Redirect" msgstr "402 - Pagamento Exigido" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Solicitação Incorreta: A sintaxe da solicitação é inválida" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Não Autorizado: Solicitação precisa de autenticação de usuário" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Pagamento Exigido" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Proibido: Servidor está se recusando a responder" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Não Encontrado: Recurso solicitado não pôde ser encontrado" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Método Não Permitido: Método de solicitação não suportado" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - Não Aceitável" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Autenticação de Proxy Necessária" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "" "408 - Tempo Limite da Solicitação: O servidor expirou aguardando a " "solicitação" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflito: Conflito no pedido" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Foi: Recurso solicitado não está mais disponível" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Comprimento Necessário: Comprimento de conteúdo inválido" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "" "412 - Falha na Pré-Condição: O servidor não atende às condições prévias" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Payload Muito Grande" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - Requisição-URI muito longa" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Tipo de Mídia Sem Suporte: Tipo de mídia não é suportado" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 - Intervalo da Requisição Não Satisfatório: Não é possível fornecer essa " "parte" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Falha na Expectativa" #: src/labels.h:500 msgid "418 - I'm a teapot" msgstr "" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Requisição Misdirected" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Entidade Não Processável devido a erros semânticos: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - O recurso que está sendo acessado está bloqueado" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - Falha na Dependência: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "" "426 - Atualização Necessária: O cliente deve alternar para um protocolo " "diferente" #: src/labels.h:516 #, fuzzy msgid "428 - Precondition Required" msgstr "428 - Pré-Requisito Obrigatório" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "" "429 - Requisições Demasiadas: O utilizador enviou requisições demasiadamente" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 #, fuzzy msgid "431 - Request Header Fields Too Large" msgstr "431 - Campos de Cabeçalho de requisição muito grande" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "" "408 - Tempo Limite da Solicitação: O servidor expirou aguardando a " "solicitação" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - Indisponível Por Razões Legais" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Conexão fechada sem enviar cabeçalhos" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) Cabeçalho da Requisição Muito Grande" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) Erro de certificado de cliente SSL" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) O cliente não forneceu certificado" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) Requisição HTTP enviada para a porta HTTPS" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "" "499 - (Nginx) Conexão fechada pelo cliente durante o processamento da " "requisição" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Error Interno do Servidor" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - Não Implementado" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - Gateway Inválido: Recebeu uma resposta inválida do upstream" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Serviço Indisponível: O servidor está indisponível no momento" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "504 - Gateway timeout: O servidor upstream falhou ao enviar pedido" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - Versão HTTP Não Suportada" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Servidor Web está retornando um erro desconhecido" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Servidor Web está offline" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - A conexão expirou" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - A origem está inacessível" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - Ocorreu tempo limite" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "401 - Não Autorizado: Solicitação precisa de autenticação de usuário" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 msgid "Settings" msgstr "" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Referenciadores" ================================================ FILE: po/ru.po ================================================ msgid "" msgstr "" "Project-Id-Version: goaccess 1.5.6\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2022-04-21 10:17+0300\n" "Last-Translator: Artyom Karlov <artyom.karlov@gmail.com>\n" "Language-Team: \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.3.1\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" #: src/labels.h:45 msgid "en" msgstr "ru" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Разв. панель" #: src/labels.h:49 msgid "Help" msgstr "Помощь" #: src/labels.h:50 msgid "Quit" msgstr "Выход" #: src/labels.h:51 msgid "Total" msgstr "Всего" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] ВОЗР [ ] УБЫВ" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] ВОЗР [x] УБЫВ" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Активная панель: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] Выйти из GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Помощь [Enter] Разв. панель" #: src/labels.h:61 msgid "Dashboard" msgstr "Дашборд" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Дашборд - Проанализированные запросы" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Проанализированные запросы" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Исх. трафик" #: src/labels.h:66 msgid "Date/Time" msgstr "Дата/время" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Хитов с искл. IP" #: src/labels.h:68 msgid "Failed Requests" msgstr "Неудачных запросов" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "Время парсинга лога" #: src/labels.h:70 msgid "Log Size" msgstr "Размер лога" #: src/labels.h:71 msgid "Log Source" msgstr "Источник лога" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Ссыл. страниц" #: src/labels.h:73 msgid "Total Requests" msgstr "Всего запросов" #: src/labels.h:74 msgid "Static Files" msgstr "Статических файлов" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Не найдено" #: src/labels.h:76 msgid "Requested Files" msgstr "Запрошенных файлов" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Уникальных посетителей" #: src/labels.h:78 msgid "Valid Requests" msgstr "Валидных запросов" #: src/labels.h:81 msgid "Hits" msgstr "Хиты" #: src/labels.h:82 msgid "h%" msgstr "х%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Посетители" #: src/labels.h:84 msgid "Vis." msgstr "Пос." #: src/labels.h:85 msgid "v%" msgstr "п%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Ср. в. о." #: src/labels.h:89 msgid "Cum. T.S." msgstr "Общ. в.о." #: src/labels.h:90 msgid "Max. T.S." msgstr "Макс. в.о." #: src/labels.h:91 msgid "Method" msgstr "Метод" #: src/labels.h:92 msgid "Mtd" msgstr "Мтд" #: src/labels.h:93 msgid "Protocol" msgstr "Протокол" #: src/labels.h:94 msgid "Proto" msgstr "Прот." #: src/labels.h:95 msgid "City" msgstr "Город" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "Страна" #: src/labels.h:98 msgid "Hostname" msgstr "Имя хоста" #: src/labels.h:99 msgid "Data" msgstr "Данные" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Хиты/посетители" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Уникальные посетители по дням" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Уникальные посетители по дням - Включая пауков" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "" "Хиты, имеющие одинаковые IP, дату и юзер-агента, считаются уникальным " "посещением." #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Запрошенные файлы (URL'ы)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Топ запросов, отсортированных по хитам [, ср., общ, макс. вр. обсл., методу, " "протоколу]" #: src/labels.h:118 msgid "Requests" msgstr "Запросы" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Статические запросы" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Топ статических запросов, отсортированных по хитам [, ср., общ, макс. вр. " "обсл., методу, протоколу]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Распределение по времени" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Данные, отсортированные по часам [, ср., общ, макс. вр. обсл.]" #: src/labels.h:132 msgid "Time" msgstr "Время" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Виртуальные хосты" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Данные, отсортированные по хитам [, ср., общ, макс. вр. обсл.]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Удалённый пользователь (HTTP-аутентификация)" #: src/labels.h:146 msgid "Remote User" msgstr "Удалённый пользователь" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "Статус кеша обслуживаемого объекта" #: src/labels.h:153 msgid "Cache Status" msgstr "Статус кеша" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "Ненайденные URL'ы (404-е)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Топ ненайденных URL'ов, отсортированных по хитам [, ср., общ, макс. вр. " "обсл., методу, протоколу]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Имена хостов и IP посетителей" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ хостов посетителей, отсортированных по хитам [, ср., общ, макс. вр. " "обсл.]" #: src/labels.h:167 msgid "Hosts" msgstr "Хосты" #: src/labels.h:170 msgid "Operating Systems" msgstr "Операционные системы" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ операционных систем, отсортированных по хитам [, ср., общ, макс. вр. " "обсл.]" #: src/labels.h:174 msgid "OS" msgstr "ОС" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Браузеры" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "Топ браузеров, отсортированных по хитам [, ср., общ, макс. вр. обсл.]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "Ссылающиеся страницы" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ ссылающихся страниц, отсортированных по хитам [, ср., общ, макс. вр. " "обсл.]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Ссылающиеся сайты" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ ссылающихся сайтов, отсортированных по хитам [, ср., общ, макс. вр. " "обсл.]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Ключевые слова из поисковой системы Google" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ ключевых слов, отсортированных по хитам [, ср., общ, макс. вр. обсл.]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Ключевые слова" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Географическое расположение" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "Континенты > страны, отсортированные по уникальным хитам [, ср., общ, макс. " "вр. обсл.]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "Коды ответов HTTP" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ кодов ответов HTTP, отсортированных по хитам [, ср., общ, макс. вр. " "обсл.]" #: src/labels.h:223 msgid "Status Codes" msgstr "Коды ответов" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIME-типы" #: src/labels.h:228 msgid "File types shipped out" msgstr "Типы отправленных файлов" #: src/labels.h:233 msgid "Encryption settings" msgstr "Настройки шифрования" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "Версия TLS и выбранный алгоритм" #: src/labels.h:237 msgid "TLS Settings" msgstr "Настройки TLS" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] учитывать регистр" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] учитывать регистр" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Разрешены рег. выражения - ^g отмена - TAB учёт регистра" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Поиск шаблона во всех панелях" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Настройка формата лога" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[ПРОБЕЛ] переключение - [ENTER] обработать - [q] выйти" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Формат лога - [c] добавить/изменить формат" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Формат даты - [d] добавить/изменить формат" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Формат времени - [t] добавить/изменить формат" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[ВВЕРХ/ВНИЗ] прокрутка - [q] закрыть окно" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "Юзер-агенты для %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Настройка схемы" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] использовать схему - [q] выйти" #: src/labels.h:277 msgid "Sort active module by" msgstr "Сортировка активного модуля" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] выбрать - [TAB] порядок - [q] выйти" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "Быстрая помощь по GoAccess" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[ВВЕРХ/ВНИЗ] прокрутка - [q] выйти" #: src/labels.h:289 #, fuzzy msgid "In-Memory with On-Disk Persistent Storage." msgstr "В памяти с хранением на диске." #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Ошибки формата - Проверьте ваш формат лога/даты/времени" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Формат даты в вашей конфигурационном файле не найден." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Формат лога в вашем конфигурационном файле не найден." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Формат времени в вашем конфигурационном файле не найден." #: src/labels.h:303 msgid "No default config file found." msgstr "Стандартный конфигурационный файл не найден." #: src/labels.h:305 msgid "You may specify one with" msgstr "Вы можете задать его с помощью" #: src/labels.h:307 msgid "producing the following errors" msgstr "приводит к следующим ошибкам" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Обработано %1$d строк" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Пожалуйста, сообщите об этом, открыв issue на GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Выберите формат времени." #: src/labels.h:315 msgid "Select a date format." msgstr "Выберите формат даты." #: src/labels.h:317 msgid "Select a log format." msgstr "Выберите формат лога." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "Панель '%1$s' отключена" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "Не предоставлено ни входных данных, ни данных для восстановления." #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Подробности по ссылке" #: src/labels.h:331 msgid "Last Updated" msgstr "Последнее обновление" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket-сервер готов к приёму новых соединений" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Следующие опции также могут использоваться с командой" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Примеры можно найти, запустив" #: src/labels.h:341 msgid "Server Statistics" msgstr "Статистика сервера" #: src/labels.h:343 msgid "Theme" msgstr "Тема" #: src/labels.h:345 msgid "Dark Gray" msgstr "Тёмно-серая" #: src/labels.h:347 msgid "Bright" msgstr "Светлая" #: src/labels.h:349 msgid "Dark Blue" msgstr "Тёмно-синяя" #: src/labels.h:351 msgid "Dark Purple" msgstr "Тёмно-фиолетовая" #: src/labels.h:353 msgid "Panels" msgstr "Панели" #: src/labels.h:355 msgid "Items per Page" msgstr "Элементов на странице" #: src/labels.h:357 msgid "Tables" msgstr "Таблицы" #: src/labels.h:359 msgid "Display Tables" msgstr "Показывать таблицы" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Автоскрытие на маленьких устройствах" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Автоматически скрывать таблицы на устройствах с маленькими экранами" #: src/labels.h:365 msgid "Toggle Panel" msgstr "Переключение панели" #: src/labels.h:367 msgid "Layout" msgstr "Расположение" #: src/labels.h:369 msgid "Horizontal" msgstr "Горизонтальное" #: src/labels.h:371 msgid "Vertical" msgstr "Вертикальное" #: src/labels.h:373 msgid "WideScreen" msgstr "Широкоэкранное" #: src/labels.h:375 msgid "File Options" msgstr "Файловые опции" #: src/labels.h:377 msgid "Export as JSON" msgstr "Экспорт в JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Настройки панели" #: src/labels.h:381 msgid "Previous" msgstr "Предыдущая" #: src/labels.h:383 msgid "Next" msgstr "Следующая" #: src/labels.h:385 msgid "First" msgstr "Первая" #: src/labels.h:387 msgid "Last" msgstr "Последняя" #: src/labels.h:389 msgid "Chart Options" msgstr "Настройки диаграммы" #: src/labels.h:391 msgid "Chart" msgstr "Диаграмма" #: src/labels.h:393 msgid "Type" msgstr "Тип" #: src/labels.h:395 msgid "Area Spline" msgstr "Сглаженные области" #: src/labels.h:397 msgid "Bar" msgstr "Столбцы" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Единицы измерения" #: src/labels.h:405 msgid "Table Columns" msgstr "Колонки таблицы" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Информационные" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Успешные" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Перенаправления" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Ошибки клиента" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Ошибки сервера" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - Continue: Сервер получил начальную часть запроса" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - Switching Protocols: Клиент запросил переключение протокола" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: Запрос клиента выполнен успешно" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Created: Запрос клиента выполнен и создан новый ресурс" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Accepted: Запрос принят на обработку" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Non-authoritative Information: Ответ не из первичного источника" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - No Content: Запрос не вернул никакого контента" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "205 - Reset Content: Сервер попросил клиента сбросить документ" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Partial Content: Частичный GET-запрос выполнен успешно" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Multi-Status: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Already Reported: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "" "300 - Multiple Choices: Ресурс имеет несколько вариантов предоставления" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Moved Permanently: Ресурс перемещён на постоянной основе" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Moved Temporarily (временный редирект)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - See Other Document: Ответ находится по другому URI" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Not Modified: Ресурс не изменялся" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Use Proxy: Доступ только через прокси" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Temporary Redirect: Ресурс временно перемещён" #: src/labels.h:462 #, fuzzy msgid "308 - Permanent Redirect" msgstr "402 - Payment Required" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Bad Request: Неверный синтаксис запроса" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Unauthorized: Запрос требует аутентификации" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Payment Required" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Forbidden: Сервер отказался предоставить ответ" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Not Found: Запрошенный ресурс не найден" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Method Not Allowed: Метод запроса не поддерживается" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - Not Acceptable" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Proxy Authentication Required" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - Request Timeout: Сервер не дождался запроса" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflict: Конфликтный запрос" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Gone: Запрошенный ресурс больше недоступен" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Length Required: Неверный Content-Length" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - Precondition Failed: Сервер не выполнил предварительные условия" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Payload Too Large" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - Request-URI Too Long" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Unsupported Media Type: Тип медиа не поддерживается" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "416 - Requested Range Not Satisfiable: Часть не может быть доставлена" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Expectation Failed" #: src/labels.h:500 #, fuzzy msgid "418 - I'm a teapot" msgstr "418 - I’m a teapot" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Misdirected Request" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Unprocessable Entity due to semantic errors: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - The resource that is being accessed is locked" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - Failed Dependency: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - Upgrade Required: Клиент должен переключить протокол" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - Precondition Required" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - Too Many Requests: Клиент отправил слишком много запросов" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - Request Header Fields Too Large" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "408 - Request Timeout: Сервер не дождался запроса" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - Unavailable For Legal Reasons" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Connection closed without sending any headers" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) Request Header Too Large" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL client certificate error" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) Client didn't provide certificate" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) HTTP request sent to HTTPS port" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) Connection closed by client while processing request" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Internal Server Error" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - Not Implemented" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "" "502 - Bad Gateway: Сервер, действующий как шлюз, получил недопустимый ответ" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Service Unavailable: Сервер недоступен" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 - Gateway Timeout: Сервер, действующий как шлюз, не дождался ответа" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTP Version Not Supported" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Web server is returning an unknown error" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Web server is down" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - Connection timed out" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - Origin is unreachable" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - A timeout occurred" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "401 - Unauthorized: Запрос требует аутентификации" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 #, fuzzy msgid "Settings" msgstr "Настройки TLS" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Ссыл. страниц" ================================================ FILE: po/sv.po ================================================ msgid "" msgstr "" "Project-Id-Version: goaccess 1.6\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2018-12-13 22:48-0600\n" "Last-Translator: Anders Johansson <johansson@aljmedia.se>\n" "Language-Team: none\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/labels.h:45 msgid "en" msgstr "sv" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Exp. Panel" #: src/labels.h:49 msgid "Help" msgstr "Hjälp" #: src/labels.h:50 msgid "Quit" msgstr "Avsluta" #: src/labels.h:51 msgid "Total" msgstr "Totalt" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] STIGANDE [ ] FALLANDE" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] STIGANDE [x] FALLANDE" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Aktiv panel: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q]Avsluta GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Hjälp [Enter] Exp. Panel" #: src/labels.h:61 msgid "Dashboard" msgstr "Dashboard" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Dashboard - generellt analyserade förfrågningar" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Generellt Analyserade förfrågningar" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Skickad mängd" #: src/labels.h:66 msgid "Date/Time" msgstr "Datum/Tid" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Exkl. IP-träffar" #: src/labels.h:68 msgid "Failed Requests" msgstr "Misslyckade förfrågningar" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "Analystid av loggar" #: src/labels.h:70 msgid "Log Size" msgstr "Loggstorlek" #: src/labels.h:71 msgid "Log Source" msgstr "Loggkälla" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Hänvisningar" #: src/labels.h:73 msgid "Total Requests" msgstr "Total antal förfrågningar" #: src/labels.h:74 msgid "Static Files" msgstr "Statiska filer" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Hittades inte" #: src/labels.h:76 msgid "Requested Files" msgstr "Begärda filer" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Unika besökare" #: src/labels.h:78 msgid "Valid Requests" msgstr "Gilltiga förfrågningar" #: src/labels.h:81 msgid "Hits" msgstr "Träffar" #: src/labels.h:82 msgid "h%" msgstr "h%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Besökare" #: src/labels.h:84 msgid "Vis." msgstr "Besök." #: src/labels.h:85 msgid "v%" msgstr "v%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Genomsn. tid" #: src/labels.h:89 msgid "Cum. T.S." msgstr "Kum. tid" #: src/labels.h:90 msgid "Max. T.S." msgstr "Max. tid" #: src/labels.h:91 msgid "Method" msgstr "Metod" #: src/labels.h:92 msgid "Mtd" msgstr "Mån till datum" #: src/labels.h:93 msgid "Protocol" msgstr "Protokoll" #: src/labels.h:94 msgid "Proto" msgstr "Proto" #: src/labels.h:95 msgid "City" msgstr "Stad" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "ASN" #: src/labels.h:97 msgid "Country" msgstr "Land" #: src/labels.h:98 msgid "Hostname" msgstr "Värdnamn" #: src/labels.h:99 msgid "Data" msgstr "Data" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Träffar/Besökare" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Unika besökare per dag" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Unika besökare per dag - inkl. nätspindlar" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "Träffar med samma IP, datum och agent är unika besökare" #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Begärda filer (URLer)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Flest förfrågingar sorterade i träffar [, genomst. tid, kum. tid, max. tid, " "mån-till-dag, proto]" #: src/labels.h:118 msgid "Requests" msgstr "Uppslagningar" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Statiska förfrågningar" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Toppförfrågningar sorterade i trufar [, genomst. tid, kum. tid, max. tid, " "mån-till-dag, proto]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Tidsfördelning" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Data sorterade i timmar [, genomst. tid, kum. tid, max. tid]" #: src/labels.h:132 msgid "Time" msgstr "Tid" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Virtuella värdar" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Data sorterat i träffar [, genomst. tid, kum. tid, max. tid]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Fjärranvändare (HTTP-autentisering)" #: src/labels.h:146 msgid "Remote User" msgstr "Fjärranvändare" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "Cachestatus för det visade objektet" #: src/labels.h:153 msgid "Cache Status" msgstr "Cachestatus" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "Hittar inte URL:en (404)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Flest ej hittade URL:er sorterade i träffar [, genomst. tid, kum. tid, max. " "tid, mån-till-dag, proto]proto]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Besökares Värdnamn och IP:s" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "Flest besökares värdnamn sorterade i träffar [, genomst. tid, kum. tid, max. " "tid]" #: src/labels.h:167 msgid "Hosts" msgstr "Värdar" #: src/labels.h:170 msgid "Operating Systems" msgstr "Operativsystem" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "Flest operativsystem sorterade i träffar [, genomst. tid, kum. tid, max. tid]" #: src/labels.h:174 msgid "OS" msgstr "OS" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Webbläsare" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Vanligast webbläsare sorterade i träffar [, genomst. tid, kum. tid, max. tid]" #: src/labels.h:184 msgid "Referrer URLs" msgstr "Hänvisande URL:er" #: src/labels.h:186 msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Flest Hänvisningsförfrågningar sorterade i träffar [, genomst. tid, kum. " "tid, max. tid]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Hänvisade sidor" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "Flest hänvisade sidor sorterade i träffar [, genomst. tid, kum. tid, max. " "tid]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Nyckelord från Googles sökmotor" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "Flest nyckelord sorterade i träffar [, genomst. tid, kum. tid, max. tid]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Nyckelord" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Geografisk plats" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "Kontinent > Land sorterad i unika träffar [, genomst. tid, kum. tid, max. " "tid]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "Autonoma systemnummer/organisationer (ASN)" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "HTTP Statuskod" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "Flest HTTP Statuskod sorterade i träffar [, genomst. tid, kum. tid, max. tid]" #: src/labels.h:223 msgid "Status Codes" msgstr "Statuskoder" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIME-typer" #: src/labels.h:228 msgid "File types shipped out" msgstr "Filtyper skickas ut" #: src/labels.h:233 msgid "Encryption settings" msgstr "Krypteringsinställningar" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "TLS-version och plockad algoritm" #: src/labels.h:237 msgid "TLS Settings" msgstr "TLS-inställningar" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] skiftlägeskänsliga" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] skiftlägeskänsliga" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Regex tillåtet - ^ g för att avbryta - TAB-växla" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Hitta mönster i alla vyer" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Loggformat konfiguration" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "" "[SPACE] för att växla - [ENTER] för att fortsätta - [q] för att avsluta" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Logformat - [c] för att lägga till / redigera format" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Datumformat - [d] för att lägga till / redigera format" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Tidsformat - [t] för att lägga till / redigera format" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[UPP / NER] för att bläddra - [q] för att stänga fönstret" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "Användaragenter %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Schemakonfiguration" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] för att använda schema - [q]avsluta" #: src/labels.h:277 msgid "Sort active module by" msgstr "Sortera aktiv modul med" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] välj - [TAB] sortera - [q] avsluta" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "GoAccess snabbhjälp" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[UP / DOWN] för att bläddra - [q] för att avsluta" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "In-Memory med On-Disk persistent lagring." #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Fel format - Kontrollera din logg /datum/tidformat" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Inget datumformat hittades på din konfigurationsfil." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Inget loggformat hittades på din konfigurationsfil." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Inget tidsformat hittades i din konfigurationfil." #: src/labels.h:303 msgid "No default config file found." msgstr "Ingen standard konfiguationsfil hittades." #: src/labels.h:305 msgid "You may specify one with" msgstr "Du kan ange en med" #: src/labels.h:307 msgid "producing the following errors" msgstr "producerar följande fel" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Analyserade %1$d linjer" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Var god rapportera det genom att öppna ett problem på GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Välj ett tidsformat." #: src/labels.h:315 msgid "Select a date format." msgstr "Välj ett datumformat." #: src/labels.h:317 msgid "Select a log format." msgstr "Välj ett loggformat." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "’%1$s’ panelen är inaktiverad" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "Ingen ingångsdata tillhandahölls eller det finns data att återställa." #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "Det gick inte att allokera minne för en logginstans." #: src/labels.h:325 msgid "Unable to find the given log." msgstr "Det gick inte att hitta den angivna loggen." #: src/labels.h:329 msgid "For more details visit" msgstr "För mer information besök" #: src/labels.h:331 msgid "Last Updated" msgstr "Senast uppdaterad" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket-server redo att acceptera nya klientanslutningar" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Följande alternativ kan också levereras till kommandot" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Exempel kan hittas genom att köra" #: src/labels.h:341 msgid "Server Statistics" msgstr "Serverstatistik" #: src/labels.h:343 msgid "Theme" msgstr "Tema" #: src/labels.h:345 msgid "Dark Gray" msgstr "Mörkgrå" #: src/labels.h:347 msgid "Bright" msgstr "Ljus" #: src/labels.h:349 msgid "Dark Blue" msgstr "Mörkblå" #: src/labels.h:351 msgid "Dark Purple" msgstr "Mörklila" #: src/labels.h:353 msgid "Panels" msgstr "Paneler" #: src/labels.h:355 msgid "Items per Page" msgstr "Objekt per sida" #: src/labels.h:357 msgid "Tables" msgstr "Tabeller" #: src/labels.h:359 msgid "Display Tables" msgstr "Skärmtabeller" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Automatisk dölj på små enheter" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Dölj automatiskt tabeller på små skärm enheter" #: src/labels.h:365 msgid "Toggle Panel" msgstr "Växla panel" #: src/labels.h:367 msgid "Layout" msgstr "Layout" #: src/labels.h:369 msgid "Horizontal" msgstr "Horisontell" #: src/labels.h:371 msgid "Vertical" msgstr "Vertikal" #: src/labels.h:373 msgid "WideScreen" msgstr "WideScreen" #: src/labels.h:375 msgid "File Options" msgstr "Filalternativ" #: src/labels.h:377 msgid "Export as JSON" msgstr "Exportera som JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Panelalternativ" #: src/labels.h:381 msgid "Previous" msgstr "Föregående" #: src/labels.h:383 msgid "Next" msgstr "Nästa" #: src/labels.h:385 msgid "First" msgstr "Första" #: src/labels.h:387 msgid "Last" msgstr "Sista" #: src/labels.h:389 msgid "Chart Options" msgstr "Diagramalternativ" #: src/labels.h:391 msgid "Chart" msgstr "Diagram" #: src/labels.h:393 msgid "Type" msgstr "Typ" #: src/labels.h:395 msgid "Area Spline" msgstr "Kurva" #: src/labels.h:397 msgid "Bar" msgstr "Stapel" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Plotmetrisk" #: src/labels.h:405 msgid "Table Columns" msgstr "Tabellkolumn" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "0xx Inofficiella koder" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Informativ" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Success" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Omdirigering" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Klientel" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Serverfel" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "0 - Caddy: Ohanterad - Inga konfigurerade rutter" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - Fortsätt: Servern mottog den första delen av begäran" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - Växlingsprotokoll: Klienten bad om att byta protokoll" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: Förfrågan som skickades av klienten lyckades" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Skapad: Förfrågan har uppfyllts och skapats" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Godkänd: Förfrågan har godkänts för behandling" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Ej auktoritativ information: Svar från en tredje part" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - Inget innehåll: Förfrågan returnerade inte något innehåll" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "" "205 - Återställ innehåll: Server bad klienten om att återställa dokumentet" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Delvis innehåll: Den partiella GET har blivit framgångsrik" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Multi-Status: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Redan rapporterad: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "218 - Det är lugnt: Apache-servrar. Ett generellt felvillkor" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Flera val: Multipla alternativ för resursen" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Flyttade permanent: Resursen har flyttats permanent" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Flyttade tillfälligt (omdirigera)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - Se annat dokument: Svaret finns på en annan URI" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Ej modifierad: Resursen har inte ändrats" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Använd proxy: Kan endast nås via proxy" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Tillfällig omdirigering: Resurs flyttas tillfälligt" #: src/labels.h:462 msgid "308 - Permanent Redirect" msgstr "308 - Permanent omdirigering" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Dålig begäran: Syntaxen för förfrågan är ogiltig" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Ej auktoriserad: Begäran behöver användarautentisering" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Betalning krävs" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Förbud: Server vägrar att svara på det" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Ej funnen: Begärd resurs kunde inte hittas" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Metod Ej tillåtet: Förfrågan metod stöds inte" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - Ej acceptabelt" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Proxy-autentisering krävs" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - Begär tidsavbrott: Server slutade vänta på begäran" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Konflikt: Konflikt i begäran" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Borta: Begärd resurs är inte längre tillgänglig, Skicka feedback" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Krav längd: Ogiltigt innehållslängd" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "" "412 - Förutsättning misslyckades: Server uppfyller inte förutsättningar" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Belastningen för stor" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - Begär-URI för lång" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Medietyp som inte stöds: Medietypen stöds inte" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "" "416 - Begärd räckvidd Ej Tillfredställande: Kan inte leverera den delen" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Förväntning misslyckades" #: src/labels.h:500 msgid "418 - I'm a teapot" msgstr "Jag är en tekanna" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "419 - Sidan har upphört: Laravel Framework när en CSRF-token saknas" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "420 - Metodfel: Spring Framework när en metod har misslyckats" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Felriktad förfrågan" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Obearbetad entitet på grund av semantiska fel: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - Resursen som nås är låst" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - Misslyckad beroende: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - Uppgradering krävs: Klienten ska byta till ett annat protokoll" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - Förutsättning krävs" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "" "429 - För många förfrågningar: Användaren har skickat för många förfrågningar" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" "430 - Begäranshuvudfält för stora: För många URL:er begärs inom en viss " "tidsram" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - Begär headerfält för stort" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "440 - Inloggningstid slut: Klientens session har upphört" #: src/labels.h:526 msgid "449 - Retry With: The server cannot honour the request" msgstr "449 - Försök igen med: Servern kan inte uppfylla begäran" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" "450 - Blockerad av Windows föräldrakontroller: Den angivna Microsoft-" "tilläggskoden" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - Ej tillgänglig för juridiska skäl" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Anslutningen är stängd utan att skicka några rubriker" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "460 - AWS Elastic Load Balancing: Klienten stängde anslutningen" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" "463 - AWS Elastic Load Balancing: Lastbalanseraren tog emot mer än 30 IP-" "adresser" #: src/labels.h:538 #, fuzzy msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "464 - AWS Elastic Load Balancing: Inkompatibla protokollversioner" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) Begär Header För Stor" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL-klientcertifikatfel" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) Klienten lämnade inte certifikat" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) HTTP-begäran skickad till HTTPS-porten" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "498 - Ogiltig token: en utgången eller på annat sätt ogiltig token" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) Anslutning sluten av klienten vid bearbetningsförfrågan" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Internt serverfel" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - Inte Implementerad" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - Dålig Gateway: Fick ett ogiltigt svar från uppströms" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Service Otillgänglig: Servern är för närvarande inte tillgänglig" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 - Gateway Timeout: Uppströms-servern misslyckades med att skicka " "förfrågan" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTP-version stöds inte" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "509 - Bandbreddsgräns överskriden: Servern har överskridit bandbredden" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Webbserver returnerar ett okänt fel" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - webbservern är nere" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - Anslutningen avbröts" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - Ursprung är oåtkomligt" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - En timeout inträffade" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" "525 - SSL-handshake misslyckades: Cloudflare kunde inte förhandla en SSL/TLS-" "handshake" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" "526 - Ogiltigt SSL-certifikat: Cloudflare kunde inte validera SSL-" "certifikatet" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "527 - Railgun-fel: En avbruten anslutning" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" "529 - Webbplatsen är överbelastad: En webbplats kan inte behandla begäran" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" "530 - Webbplatsen är fryst: En webbplats har frysts på grund av inaktivitet" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" "540 - Tillfälligt inaktiverad: Den begärda ändpunkten har tillfälligt " "inaktiverats" #: src/labels.h:588 msgid "561 - Unauthorized: An error around authentication" msgstr "561 - Ej auktoriserad: Ett fel relaterat till autentisering" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" "598 - Nätverksläsning tidsgräns överskriden: vissa HTTP-proxys signalerar " "ett nätverksläsningsavbrott" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" "599 - Nätverksanslutning tidsgräns överskriden: Ett fel som används av vissa " "HTTP-proxys" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "783 - Oväntad token: Begäran innehåller ett JSON-syntaxfel" #: src/labels.h:598 msgid "Menu" msgstr "Meny" #: src/labels.h:600 msgid "Settings" msgstr "Inställningar" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "WebSocket-status: Ansluten" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "WebSocket-status: Frånkopplad" ================================================ FILE: po/uk.po ================================================ msgid "" msgstr "" "Project-Id-Version: goaccess 1.5.6\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2022-04-21 10:17+0300\n" "Last-Translator: Artyom Karlov <artyom.karlov@gmail.com>\n" "Language-Team: \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.3.1\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" #: src/labels.h:45 msgid "en" msgstr "uk" #: src/labels.h:48 msgid "Exp. Panel" msgstr "Розг. панель" #: src/labels.h:49 msgid "Help" msgstr "Допомога" #: src/labels.h:50 msgid "Quit" msgstr "Вихід" #: src/labels.h:51 msgid "Total" msgstr "Всього" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] ЗБІЛ [ ] ЗМЕН" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] ЗБІЛ [x] ЗМЕН" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[Активна панель: %1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] Вийти з GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] Допомога [Enter] Розг. панель" #: src/labels.h:61 msgid "Dashboard" msgstr "Дашборд" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "Дашборд - Проаналізовані запити" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "Проаналізовані запити" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "Вих. трафік" #: src/labels.h:66 msgid "Date/Time" msgstr "Дата/час" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "Хітів з викл. IP" #: src/labels.h:68 msgid "Failed Requests" msgstr "Невдалих запитів" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "Час парсингу лога" #: src/labels.h:70 msgid "Log Size" msgstr "Розмір лога" #: src/labels.h:71 msgid "Log Source" msgstr "Джерело лога" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "Посил. сторінок" #: src/labels.h:73 msgid "Total Requests" msgstr "Всього запитів" #: src/labels.h:74 msgid "Static Files" msgstr "Статичних файлів" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "Не знайдено" #: src/labels.h:76 msgid "Requested Files" msgstr "Запитаних файлів" #: src/labels.h:77 msgid "Unique Visitors" msgstr "Унікальних відвідувачів" #: src/labels.h:78 msgid "Valid Requests" msgstr "Валідних запитів" #: src/labels.h:81 msgid "Hits" msgstr "Хіти" #: src/labels.h:82 msgid "h%" msgstr "х%" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "Відвідувачі" #: src/labels.h:84 msgid "Vis." msgstr "Відв." #: src/labels.h:85 msgid "v%" msgstr "в%" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "Сер. ч. о." #: src/labels.h:89 msgid "Cum. T.S." msgstr "Заг. ч. о." #: src/labels.h:90 msgid "Max. T.S." msgstr "Макс. ч. о." #: src/labels.h:91 msgid "Method" msgstr "Метод" #: src/labels.h:92 msgid "Mtd" msgstr "Мтд" #: src/labels.h:93 msgid "Protocol" msgstr "Протокол" #: src/labels.h:94 msgid "Proto" msgstr "Прот." #: src/labels.h:95 msgid "City" msgstr "Місто" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "" #: src/labels.h:97 msgid "Country" msgstr "Країна" #: src/labels.h:98 msgid "Hostname" msgstr "Ім'я хоста" #: src/labels.h:99 msgid "Data" msgstr "Дані" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "Хіти/відвідувачі" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "Унікальні відвідувачі по днях" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "Унікальні відвідувачі по днях - Включаючи павуків" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "" "Хіти, що мають однакові IP, дату та юзер-агента, вважаються унікальним " "відвідуванням." #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "Запитані файли (URL'и)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Топ запитів, відсортованих за хітами [, сер., заг., макс. часом обсл., " "методом, протоколом]" #: src/labels.h:118 msgid "Requests" msgstr "Запити" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "Статичні запити" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Том статичних запитів, відсортованих за хітами [, сер., заг., макс. часом " "обсл., методом, протоколом]" #: src/labels.h:128 msgid "Time Distribution" msgstr "Розподіл за часом" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "Дані, відсортовані за годинами [, сер., заг., макс. часом обсл.]" #: src/labels.h:132 msgid "Time" msgstr "Час" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "Віртуальні хости" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "Дані, відсортовані за хітами [, сер., заг., макс. часом обсл.]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "Віддалений користувач (HTTP-аутентифікація)" #: src/labels.h:146 msgid "Remote User" msgstr "Віддалений користувач" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "Статус кеша об'єкта, що обслуговується" #: src/labels.h:153 msgid "Cache Status" msgstr "Статус кеша" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "Незнайдені URL'и (404-і)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "Топ незнайдених URL'ів, відсортованих за хітами [, сер., заг., макс. часом " "обсл., методом, протоколом]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "Імена хостів та IP відвідувачів" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ хостів відвідувачів, відсортованих за хітами [, сер., заг., макс. часом " "обсл.]" #: src/labels.h:167 msgid "Hosts" msgstr "Хости" #: src/labels.h:170 msgid "Operating Systems" msgstr "Операційні системи" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ операційних систем, відсортованих за хітами [, сер., заг., макс. часом " "обсл.]" #: src/labels.h:174 msgid "OS" msgstr "ОС" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "Браузери" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ браузерів, відсортованих за хітами [, сер., заг., макс. часом обсл.]" #: src/labels.h:184 #, fuzzy msgid "Referrer URLs" msgstr "Сторінки, що посилаються" #: src/labels.h:186 #, fuzzy msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ сторінок, що посилаються, відсортованих за хітами [, сер., заг., макс. " "часом обсл.]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "Сайти, що посилаються" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ сайтів, що посилаються, відсортованих за хітами [, сер., заг., макс. " "часом обсл.]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "Ключові слова з пошукової системи Google" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "" "Том ключових слів, відсортованих за хітами [, сер., заг., макс. часом обсл.]" #: src/labels.h:202 msgid "Keyphrases" msgstr "Ключові слова" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "Географічне розташування" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "" "Континенти > країни, відсортовані за унікальними хітами [, сер., заг., макс. " "часом обсл.]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "Коди відповідей HTTP" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "" "Топ кодів відповідей HTTP, відсортованих за хітами [, сер., заг., макс. " "часом обсл.]" #: src/labels.h:223 msgid "Status Codes" msgstr "Коди відповідей" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIME-типи" #: src/labels.h:228 msgid "File types shipped out" msgstr "Типи відправлених файлів" #: src/labels.h:233 msgid "Encryption settings" msgstr "Налаштування шифрування" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "Версія TLS та вибраний алгоритм" #: src/labels.h:237 msgid "TLS Settings" msgstr "Налаштування TLS" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] враховувати регістр" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] враховувати регістр" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "Дозволені рег. вирази - ^g відміна - TAB врах. регістру" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "Пошук шаблону в усіх панелях" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "Налаштування формату лога" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[SPACE] переключення - [ENTER] обробити - [q] вийти" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "Формат логу - [c] додати/змінити формат" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "Формат дати - [d] додати/змінити формат" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "Формат часу - [t] додати/змінити формат" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[ВГОРУ/ВНИЗ] прокрутка - [q] закрити вікно" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "Юзер-агенти для %1$s" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "Налаштування схеми" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[ENTER] використовувати схему - [q] вийти" #: src/labels.h:277 msgid "Sort active module by" msgstr "Сортування активного модуля" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[ENTER] обрати - [TAB] порядок - [q] вийти" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "Швидка допомога по GoAccess" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[ВГОРУ/ВНИЗ] прокрутка - [q] вийти" #: src/labels.h:289 #, fuzzy msgid "In-Memory with On-Disk Persistent Storage." msgstr "У пам'яті зі зберіганням на диску." #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "Помилки формату - Перевірте ваш формат лога/дати/часу" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "Формат дати у вашому конфігураційному файлі не знайдений." #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "Формат лога у вашому конфігураційному файлі не знайдений." #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "Формат часу у вашому конфігураційному файлі не знайдений." #: src/labels.h:303 msgid "No default config file found." msgstr "Стандартний конфігураційний файл не знайдений." #: src/labels.h:305 msgid "You may specify one with" msgstr "Ви можете задати його за допомогою" #: src/labels.h:307 msgid "producing the following errors" msgstr "призводить до наступних помилок" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "Оброблено %1$d рядків" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "Будь ласка, повідомте про це, відкривши issue на GitHub" #: src/labels.h:313 msgid "Select a time format." msgstr "Оберіть формат часу." #: src/labels.h:315 msgid "Select a date format." msgstr "Оберіть формат дати." #: src/labels.h:317 msgid "Select a log format." msgstr "Оберіть формат лога." #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "Панель '%1$s' відключена" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "Не надано ні вхідних даних, ні даних для відновлення." #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "" #: src/labels.h:329 msgid "For more details visit" msgstr "Подробиці за посиланням" #: src/labels.h:331 msgid "Last Updated" msgstr "Останнє оновлення" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket-сервер готовий до прийому нових з'єднань" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "Наступні опції також можуть використовуватися з командою" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "Приклади можна знайти, запустивши" #: src/labels.h:341 msgid "Server Statistics" msgstr "Статистика сервера" #: src/labels.h:343 msgid "Theme" msgstr "Тема" #: src/labels.h:345 msgid "Dark Gray" msgstr "Темно-сіра" #: src/labels.h:347 msgid "Bright" msgstr "Світла" #: src/labels.h:349 msgid "Dark Blue" msgstr "Темно-синя" #: src/labels.h:351 msgid "Dark Purple" msgstr "Темно-фіолетова" #: src/labels.h:353 msgid "Panels" msgstr "Панелі" #: src/labels.h:355 msgid "Items per Page" msgstr "Елементів на сторінці" #: src/labels.h:357 msgid "Tables" msgstr "Таблиці" #: src/labels.h:359 msgid "Display Tables" msgstr "Показувати таблиці" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "Автоприховування на маленьких пристроях" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "Автоматично приховувати таблиці на пристроях з маленькими екранами" #: src/labels.h:365 msgid "Toggle Panel" msgstr "Перемикання панелі" #: src/labels.h:367 msgid "Layout" msgstr "Розташування" #: src/labels.h:369 msgid "Horizontal" msgstr "Горизонтальне" #: src/labels.h:371 msgid "Vertical" msgstr "Вертикальне" #: src/labels.h:373 msgid "WideScreen" msgstr "Широкоекранне" #: src/labels.h:375 msgid "File Options" msgstr "Файлові опції" #: src/labels.h:377 msgid "Export as JSON" msgstr "Експорт в JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "Налаштування панелі" #: src/labels.h:381 msgid "Previous" msgstr "Попередня" #: src/labels.h:383 msgid "Next" msgstr "Наступна" #: src/labels.h:385 msgid "First" msgstr "Перша" #: src/labels.h:387 msgid "Last" msgstr "Остання" #: src/labels.h:389 msgid "Chart Options" msgstr "Налаштування діаграми" #: src/labels.h:391 msgid "Chart" msgstr "Диаграма" #: src/labels.h:393 msgid "Type" msgstr "Тип" #: src/labels.h:395 msgid "Area Spline" msgstr "Згладжені області" #: src/labels.h:397 msgid "Bar" msgstr "Стовпці" #: src/labels.h:399 msgid "World Map" msgstr "" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "" #: src/labels.h:403 msgid "Plot Metric" msgstr "Одиниці виміру" #: src/labels.h:405 msgid "Table Columns" msgstr "Колонки таблиці" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx Інформаційні" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx Успішні" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx Перенаправлення" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx Помилки клієнта" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx Помилки сервера" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - Continue: Сервер отримав початкову частину запиту" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - Switching Protocols: Клієнт запросив переключення протоколу" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - OK: Запит клієнта виконаний успішно" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - Created: Запит клієнта виконаний і створений новий ресурс" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - Accepted: Запит прийнятий на обробку" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - Non-authoritative Information: Відповідь не з первинного джерела" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - No Content: Запит не повернув ніякого контенту" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "205 - Reset Content: Сервер попросив клієнта скинути документ" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - Partial Content: Частковий GET-запит виконаний успішно" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - Multi-Status: WebDAV; RFC 4918" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - Already Reported: WebDAV; RFC 5842" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - Multiple Choices: Ресурс має кілька варіантів надання" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - Moved Permanently: Ресурс переміщений на постійній основі" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - Moved Temporarily (тимчасовий редирект)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - See Other Document: Відповідь знаходиться за іншим URI" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - Not Modified: Ресурс не змінювався" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - Use Proxy: Доступ тільки через проксі" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - Temporary Redirect: Ресурс тимчасово переміщений" #: src/labels.h:462 #, fuzzy msgid "308 - Permanent Redirect" msgstr "402 - Payment Required" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - Bad Request: Невірний синтаксис запиту" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - Unauthorized: Запит вимагає аутентифікації" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - Payment Required" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - Forbidden: Сервер відмовився надати відповідь" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - Not Found: Запитаний ресурс не знайдений" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - Method Not Allowed: Метод запиту не підтримується" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - Not Acceptable" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - Proxy Authentication Required" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - Request Timeout: Сервер не дочекався запиту" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - Conflict: Конфліктний запит" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - Gone: Запитаний ресурс більше недоступний" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - Length Required: Невірний Content-Length" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - Precondition Failed: Сервер не виконав попередні умови" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - Payload Too Large" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - Request-URI Too Long" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - Unsupported Media Type: Тип медіа не підтримується" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "416 - Requested Range Not Satisfiable: Частина не може бути доставлена" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - Expectation Failed" #: src/labels.h:500 #, fuzzy msgid "418 - I'm a teapot" msgstr "418 - I’m a teapot" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - Misdirected Request" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - Unprocessable Entity due to semantic errors: WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - The resource that is being accessed is locked" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - Failed Dependency: WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - Upgrade Required: Клієнт повинен переключити протокол" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - Precondition Required" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - Too Many Requests: Клієнт відправив занадто багато запитів" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - Request Header Fields Too Large" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "" #: src/labels.h:526 #, fuzzy msgid "449 - Retry With: The server cannot honour the request" msgstr "408 - Request Timeout: Сервер не дочекався запиту" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - Unavailable For Legal Reasons" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) Connection closed without sending any headers" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) Request Header Too Large" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL client certificate error" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) Client didn't provide certificate" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) HTTP request sent to HTTPS port" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) Connection closed by client while processing request" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - Internal Server Error" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - Not Implemented" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "" "502 - Bad Gateway: Сервер, який діє як шлюз, отримав недійсну відповідь" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - Service Unavailable: Сервер недоступний" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "" "504 - Gateway Timeout: Сервер, який діє як шлюз, не дочекався відповіді" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - HTTP Version Not Supported" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Web server is returning an unknown error" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Web server is down" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - Connection timed out" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - Origin is unreachable" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - A timeout occurred" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "" #: src/labels.h:588 #, fuzzy msgid "561 - Unauthorized: An error around authentication" msgstr "401 - Unauthorized: Запит вимагає аутентифікації" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "" #: src/labels.h:598 msgid "Menu" msgstr "" #: src/labels.h:600 #, fuzzy msgid "Settings" msgstr "Налаштування TLS" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "" #, fuzzy #~ msgid "Referers" #~ msgstr "Посил. сторінок" ================================================ FILE: po/zh_CN.po ================================================ msgid "" msgstr "" "Project-Id-Version: goaccess 1.5.6\n" "Report-Msgid-Bugs-To: hello@goaccess.io\n" "POT-Creation-Date: 2026-02-14 08:39-0600\n" "PO-Revision-Date: 2025-04-19 02:11+0800\n" "Last-Translator: azio7<azio7@outlook.com>\n" "Language-Team: \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "deepseek: deepseek-r1\n" #: src/labels.h:45 msgid "en" msgstr "zh-CN" #: src/labels.h:48 msgid "Exp. Panel" msgstr "展开面板" #: src/labels.h:49 msgid "Help" msgstr "帮助" #: src/labels.h:50 msgid "Quit" msgstr "退出" #: src/labels.h:51 msgid "Total" msgstr "总计" #: src/labels.h:54 msgid "[x] ASC [ ] DESC" msgstr "[x] 升序 [ ] 降序" #: src/labels.h:55 msgid "[ ] ASC [x] DESC" msgstr "[ ] 升序 [x] 降序" #: src/labels.h:58 #, c-format msgid "[Active Panel: %1$s]" msgstr "[当前面板:%1$s]" #: src/labels.h:59 msgid "[q]uit GoAccess" msgstr "[q] 退出 GoAccess" #: src/labels.h:60 msgid "[?] Help [Enter] Exp. Panel" msgstr "[?] 帮助 [Enter] 扩展面板" #: src/labels.h:61 msgid "Dashboard" msgstr "仪表盘" #: src/labels.h:62 msgid "Dashboard - Overall Analyzed Requests" msgstr "仪表盘 - 总体分析请求" #: src/labels.h:63 msgid "Overall Analyzed Requests" msgstr "总体分析请求" #: src/labels.h:65 src/labels.h:86 msgid "Tx. Amount" msgstr "传输量" #: src/labels.h:66 msgid "Date/Time" msgstr "日期/时间" #: src/labels.h:67 msgid "Excl. IP Hits" msgstr "排除IP点击" #: src/labels.h:68 msgid "Failed Requests" msgstr "失败请求" #: src/labels.h:69 msgid "Log Parsing Time" msgstr "日志解析时间" #: src/labels.h:70 msgid "Log Size" msgstr "日志大小" #: src/labels.h:71 msgid "Log Source" msgstr "日志来源" #: src/labels.h:72 src/labels.h:188 msgid "Referrers" msgstr "来源页面" #: src/labels.h:73 msgid "Total Requests" msgstr "总请求数" #: src/labels.h:74 msgid "Static Files" msgstr "静态文件" #: src/labels.h:75 src/labels.h:160 msgid "Not Found" msgstr "未找到(404)" #: src/labels.h:76 msgid "Requested Files" msgstr "请求文件" #: src/labels.h:77 msgid "Unique Visitors" msgstr "独立访客" #: src/labels.h:78 msgid "Valid Requests" msgstr "有效请求" #: src/labels.h:81 msgid "Hits" msgstr "点击量" #: src/labels.h:82 msgid "h%" msgstr "点击占比" #: src/labels.h:83 src/labels.h:111 msgid "Visitors" msgstr "访客" #: src/labels.h:84 msgid "Vis." msgstr "访客数" #: src/labels.h:85 msgid "v%" msgstr "访客占比" #: src/labels.h:87 msgid "tx%" msgstr "" #: src/labels.h:88 msgid "Avg. T.S." msgstr "平均耗时" #: src/labels.h:89 msgid "Cum. T.S." msgstr "累计耗时" #: src/labels.h:90 msgid "Max. T.S." msgstr "最大耗时" #: src/labels.h:91 msgid "Method" msgstr "请求方法" #: src/labels.h:92 msgid "Mtd" msgstr "方法" #: src/labels.h:93 msgid "Protocol" msgstr "协议" #: src/labels.h:94 msgid "Proto" msgstr "协议" #: src/labels.h:95 msgid "City" msgstr "城市" #: src/labels.h:96 src/labels.h:212 src/labels.h:216 msgid "ASN" msgstr "ASN" #: src/labels.h:97 msgid "Country" msgstr "国家" #: src/labels.h:98 msgid "Hostname" msgstr "主机名" #: src/labels.h:99 msgid "Data" msgstr "数据" #: src/labels.h:101 msgid "Hits/Visitors" msgstr "点击/访客" #: src/labels.h:105 msgid "Unique visitors per day" msgstr "每日独立访客" #: src/labels.h:107 msgid "Unique visitors per day - Including spiders" msgstr "每日独立访客(含爬虫)" #: src/labels.h:109 msgid "Hits having the same IP, date and agent are a unique visit." msgstr "相同IP、日期和客户端的点击视为一次访问。" #: src/labels.h:114 msgid "Requested Files (URLs)" msgstr "请求文件(URL)" #: src/labels.h:116 msgid "Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "按点击量排序的热门请求 [, 平均耗时, 累计耗时, 最大耗时, 方法, 协议]" #: src/labels.h:118 msgid "Requests" msgstr "请求" #: src/labels.h:121 src/labels.h:125 msgid "Static Requests" msgstr "静态请求" #: src/labels.h:123 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "" "按点击量排序的热门静态请求 [, 平均耗时, 累计耗时, 最大耗时, 方法, 协议]" #: src/labels.h:128 msgid "Time Distribution" msgstr "时间分布" #: src/labels.h:130 msgid "Data sorted by hour [, avgts, cumts, maxts]" msgstr "按小时排序的数据 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:132 msgid "Time" msgstr "时间" #: src/labels.h:135 src/labels.h:139 msgid "Virtual Hosts" msgstr "虚拟主机" #: src/labels.h:137 src/labels.h:144 src/labels.h:151 msgid "Data sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的数据 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:142 msgid "Remote User (HTTP authentication)" msgstr "远程用户(HTTP认证)" #: src/labels.h:146 msgid "Remote User" msgstr "远程用户" #: src/labels.h:149 msgid "The cache status of the object served" msgstr "所提供对象的缓存状态" #: src/labels.h:153 msgid "Cache Status" msgstr "缓存状态" #: src/labels.h:156 msgid "Not Found URLs (404s)" msgstr "未找到的URL(404)" #: src/labels.h:158 msgid "Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]" msgstr "按点击量排序的热门404 URL [, 平均耗时, 累计耗时, 最大耗时, 方法, 协议]" #: src/labels.h:163 msgid "Visitor Hostnames and IPs" msgstr "访客主机名与IP" #: src/labels.h:165 msgid "Top visitor hosts sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门访客主机 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:167 msgid "Hosts" msgstr "主机" #: src/labels.h:170 msgid "Operating Systems" msgstr "操作系统" #: src/labels.h:172 msgid "Top Operating Systems sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门操作系统 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:174 msgid "OS" msgstr "操作系统" #: src/labels.h:177 src/labels.h:181 msgid "Browsers" msgstr "浏览器" #: src/labels.h:179 msgid "Top Browsers sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门浏览器 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:184 msgid "Referrer URLs" msgstr "来源URL" #: src/labels.h:186 msgid "Top Requested Referrers sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门来源页面 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:191 src/labels.h:195 msgid "Referring Sites" msgstr "来源网站" #: src/labels.h:193 msgid "Top Referring Sites sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门来源网站 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:198 msgid "Keyphrases from Google's search engine" msgstr "来自谷歌搜索的关键词" #: src/labels.h:200 msgid "Top Keyphrases sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门关键词 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:202 msgid "Keyphrases" msgstr "关键词" #: src/labels.h:205 src/labels.h:209 msgid "Geo Location" msgstr "地理位置" #: src/labels.h:207 msgid "Continent > Country sorted by unique hits [, avgts, cumts, maxts]" msgstr "按独立点击排序的大洲 > 国家 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:214 msgid "Autonomous System Numbers/Organizations (ASNs)" msgstr "自治系统号/组织(ASN)" #: src/labels.h:219 msgid "HTTP Status Codes" msgstr "HTTP状态码" #: src/labels.h:221 msgid "Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]" msgstr "按点击量排序的热门HTTP状态码 [, 平均耗时, 累计耗时, 最大耗时]" #: src/labels.h:223 msgid "Status Codes" msgstr "状态码" #: src/labels.h:226 src/labels.h:230 msgid "MIME Types" msgstr "MIME类型" #: src/labels.h:228 msgid "File types shipped out" msgstr "输出的文件类型" #: src/labels.h:233 msgid "Encryption settings" msgstr "加密设置" #: src/labels.h:235 msgid "TLS version and picked algorithm" msgstr "TLS版本及所选算法" #: src/labels.h:237 msgid "TLS Settings" msgstr "TLS设置" #: src/labels.h:241 msgid "[ ] case sensitive" msgstr "[ ] 区分大小写" #: src/labels.h:243 msgid "[x] case sensitive" msgstr "[x] 区分大小写" #: src/labels.h:245 msgid "Regex allowed - ^g to cancel - TAB switch case" msgstr "支持正则表达式 - ^g 取消 - TAB 切换大小写" #: src/labels.h:247 msgid "Find pattern in all views" msgstr "在所有视图中查找模式" #: src/labels.h:251 msgid "Log Format Configuration" msgstr "日志格式配置" #: src/labels.h:253 msgid "[SPACE] to toggle - [ENTER] to proceed - [q] to quit" msgstr "[空格] 切换 - [回车] 继续 - [q] 退出" #: src/labels.h:255 msgid "Log Format - [c] to add/edit format" msgstr "日志格式 - [c] 添加/编辑格式" #: src/labels.h:257 msgid "Date Format - [d] to add/edit format" msgstr "日期格式 - [d] 添加/编辑格式" #: src/labels.h:259 msgid "Time Format - [t] to add/edit format" msgstr "时间格式 - [t] 添加/编辑格式" #: src/labels.h:261 src/labels.h:265 msgid "[UP/DOWN] to scroll - [q] to close window" msgstr "[↑/↓] 滚动 - [q] 关闭窗口" #: src/labels.h:267 #, c-format msgid "User Agents for %1$s" msgstr "%1$s 的用户代理" #: src/labels.h:271 msgid "Scheme Configuration" msgstr "配色方案配置" #: src/labels.h:273 msgid "[ENTER] to use scheme - [q]uit" msgstr "[回车] 使用方案 - [q] 退出" #: src/labels.h:277 msgid "Sort active module by" msgstr "活动模块排序方式" #: src/labels.h:279 msgid "[ENTER] select - [TAB] sort - [q]uit" msgstr "[回车] 选择 - [TAB] 排序 - [q] 退出" #: src/labels.h:283 msgid "GoAccess Quick Help" msgstr "GoAccess 快速帮助" #: src/labels.h:285 msgid "[UP/DOWN] to scroll - [q] to quit" msgstr "[↑/↓] 滚动 - [q] 退出" #: src/labels.h:289 msgid "In-Memory with On-Disk Persistent Storage." msgstr "内存处理与磁盘持久化存储。" #: src/labels.h:293 msgid "Format Errors - Verify your log/date/time format" msgstr "格式错误 - 请检查日志/日期/时间格式" #: src/labels.h:295 msgid "Use --invalid-requests option to store such lines in a file." msgstr "" #: src/labels.h:297 msgid "No date format was found on your conf file." msgstr "配置文件中未找到日期格式。" #: src/labels.h:299 msgid "No log format was found on your conf file." msgstr "配置文件中未找到日志格式。" #: src/labels.h:301 msgid "No time format was found on your conf file." msgstr "配置文件中未找到时间格式。" #: src/labels.h:303 msgid "No default config file found." msgstr "未找到默认配置文件。" #: src/labels.h:305 msgid "You may specify one with" msgstr "您可以通过以下方式指定:" #: src/labels.h:307 msgid "producing the following errors" msgstr "产生以下错误:" #: src/labels.h:309 #, c-format msgid "Parsed %1$d lines" msgstr "已解析 %1$d 行" #: src/labels.h:311 msgid "Please report it by opening an issue on GitHub" msgstr "请在GitHub提交问题报告" #: src/labels.h:313 msgid "Select a time format." msgstr "选择时间格式。" #: src/labels.h:315 msgid "Select a date format." msgstr "选择日期格式。" #: src/labels.h:317 msgid "Select a log format." msgstr "选择日志格式。" #: src/labels.h:319 #, c-format msgid "'%1$s' panel is disabled" msgstr "'%1$s' 面板已禁用" #: src/labels.h:321 msgid "No input data was provided nor there's data to restore." msgstr "未提供输入数据且无数据可恢复。" #: src/labels.h:323 msgid "Unable to allocate memory for a log instance." msgstr "无法为日志实例分配内存。" #: src/labels.h:325 msgid "Unable to find the given log." msgstr "无法找到指定日志。" #: src/labels.h:329 msgid "For more details visit" msgstr "详情请访问:" #: src/labels.h:331 msgid "Last Updated" msgstr "最后更新" #: src/labels.h:333 msgid "WebSocket server ready to accept new client connections" msgstr "WebSocket 服务器已准备接受新客户端连接" #: src/labels.h:336 msgid "The following options can also be supplied to the command" msgstr "以下选项也可用于命令:" #: src/labels.h:338 msgid "Examples can be found by running" msgstr "运行以下命令查看示例:" #: src/labels.h:341 msgid "Server Statistics" msgstr "服务器统计" #: src/labels.h:343 msgid "Theme" msgstr "主题" #: src/labels.h:345 msgid "Dark Gray" msgstr "深灰" #: src/labels.h:347 msgid "Bright" msgstr "明亮" #: src/labels.h:349 msgid "Dark Blue" msgstr "深蓝" #: src/labels.h:351 msgid "Dark Purple" msgstr "深紫" #: src/labels.h:353 msgid "Panels" msgstr "面板" #: src/labels.h:355 msgid "Items per Page" msgstr "每页条目数" #: src/labels.h:357 msgid "Tables" msgstr "表格" #: src/labels.h:359 msgid "Display Tables" msgstr "显示表格" #: src/labels.h:361 msgid "Auto-Hide on Small Devices" msgstr "小屏幕设备自动隐藏" #: src/labels.h:363 msgid "Automatically hide tables on small screen devices" msgstr "在小屏幕设备上自动隐藏表格" #: src/labels.h:365 msgid "Toggle Panel" msgstr "切换面板" #: src/labels.h:367 msgid "Layout" msgstr "布局" #: src/labels.h:369 msgid "Horizontal" msgstr "水平布局" #: src/labels.h:371 msgid "Vertical" msgstr "垂直布局" #: src/labels.h:373 msgid "WideScreen" msgstr "宽屏布局" #: src/labels.h:375 msgid "File Options" msgstr "文件选项" #: src/labels.h:377 msgid "Export as JSON" msgstr "导出为JSON" #: src/labels.h:379 msgid "Panel Options" msgstr "面板选项" #: src/labels.h:381 msgid "Previous" msgstr "上一页" #: src/labels.h:383 msgid "Next" msgstr "下一页" #: src/labels.h:385 msgid "First" msgstr "首页" #: src/labels.h:387 msgid "Last" msgstr "末页" #: src/labels.h:389 msgid "Chart Options" msgstr "图表选项" #: src/labels.h:391 msgid "Chart" msgstr "图表" #: src/labels.h:393 msgid "Type" msgstr "类型" #: src/labels.h:395 msgid "Area Spline" msgstr "区域曲线图" #: src/labels.h:397 msgid "Bar" msgstr "柱状图" #: src/labels.h:399 msgid "World Map" msgstr "世界地图" #: src/labels.h:401 msgid "Azimuthal/Globe" msgstr "方位投影/地球仪" #: src/labels.h:403 msgid "Plot Metric" msgstr "绘制指标" #: src/labels.h:405 msgid "Table Columns" msgstr "表格列" #: src/labels.h:409 msgid "0xx Unofficial Codes" msgstr "0xx 非官方代码" #: src/labels.h:411 msgid "1xx Informational" msgstr "1xx 信息响应" #: src/labels.h:413 msgid "2xx Success" msgstr "2xx 成功" #: src/labels.h:415 msgid "3xx Redirection" msgstr "3xx 重定向" #: src/labels.h:417 msgid "4xx Client Errors" msgstr "4xx 客户端错误" #: src/labels.h:419 msgid "5xx Server Errors" msgstr "5xx 服务器错误" #: src/labels.h:422 msgid "0 - Caddy: Unhandled - No configured routes" msgstr "0 - Caddy:未处理 - 无配置路由" #: src/labels.h:424 msgid "100 - Continue: Server received the initial part of the request" msgstr "100 - 继续:服务器已收到请求的初始部分" #: src/labels.h:426 msgid "101 - Switching Protocols: Client asked to switch protocols" msgstr "101 - 切换协议:客户端要求切换协议" #: src/labels.h:428 msgid "200 - OK: The request sent by the client was successful" msgstr "200 - 成功:客户端请求已成功处理" #: src/labels.h:430 msgid "201 - Created: The request has been fulfilled and created" msgstr "201 - 已创建:请求已完成并创建资源" #: src/labels.h:432 msgid "202 - Accepted: The request has been accepted for processing" msgstr "202 - 已接受:请求已被接受处理" #: src/labels.h:434 msgid "203 - Non-authoritative Information: Response from a third party" msgstr "203 - 非权威信息:来自第三方的响应" #: src/labels.h:436 msgid "204 - No Content: Request did not return any content" msgstr "204 - 无内容:请求未返回内容" #: src/labels.h:438 msgid "205 - Reset Content: Server asked the client to reset the document" msgstr "205 - 重置内容:服务器要求客户端重置文档" #: src/labels.h:440 msgid "206 - Partial Content: The partial GET has been successful" msgstr "206 - 部分内容:部分GET请求成功" #: src/labels.h:442 msgid "207 - Multi-Status: WebDAV; RFC 4918" msgstr "207 - 多状态:WebDAV(RFC 4918)" #: src/labels.h:444 msgid "208 - Already Reported: WebDAV; RFC 5842" msgstr "208 - 已报告:WebDAV(RFC 5842)" #: src/labels.h:446 msgid "218 - This is fine: Apache servers. A catch-all error condition" msgstr "218 - 正常:Apache服务器通用错误状态" #: src/labels.h:448 msgid "300 - Multiple Choices: Multiple options for the resource" msgstr "300 - 多种选择:资源有多个选项" #: src/labels.h:450 msgid "301 - Moved Permanently: Resource has permanently moved" msgstr "301 - 永久移动:资源已永久移动" #: src/labels.h:452 msgid "302 - Moved Temporarily (redirect)" msgstr "302 - 临时移动(重定向)" #: src/labels.h:454 msgid "303 - See Other Document: The response is at a different URI" msgstr "303 - 查看其他文档:响应位于不同URI" #: src/labels.h:456 msgid "304 - Not Modified: Resource has not been modified" msgstr "304 - 未修改:资源未被修改" #: src/labels.h:458 msgid "305 - Use Proxy: Can only be accessed through the proxy" msgstr "305 - 使用代理:只能通过代理访问" #: src/labels.h:460 msgid "307 - Temporary Redirect: Resource temporarily moved" msgstr "307 - 临时重定向:资源暂时移动" #: src/labels.h:462 msgid "308 - Permanent Redirect" msgstr "308 - 永久重定向" #: src/labels.h:464 msgid "400 - Bad Request: The syntax of the request is invalid" msgstr "400 - 错误请求:请求语法无效" #: src/labels.h:466 msgid "401 - Unauthorized: Request needs user authentication" msgstr "401 - 未授权:请求需要用户认证" #: src/labels.h:468 msgid "402 - Payment Required" msgstr "402 - 需要付款" #: src/labels.h:470 msgid "403 - Forbidden: Server is refusing to respond to it" msgstr "403 - 禁止访问:服务器拒绝响应" #: src/labels.h:472 msgid "404 - Not Found: Requested resource could not be found" msgstr "404 - 未找到:请求的资源不存在" #: src/labels.h:474 msgid "405 - Method Not Allowed: Request method not supported" msgstr "405 - 方法不允许:请求方法不被支持" #: src/labels.h:476 msgid "406 - Not Acceptable" msgstr "406 - 不可接受" #: src/labels.h:478 msgid "407 - Proxy Authentication Required" msgstr "407 - 需要代理认证" #: src/labels.h:480 msgid "408 - Request Timeout: Server timed out waiting for the request" msgstr "408 - 请求超时:服务器等待请求超时" #: src/labels.h:482 msgid "409 - Conflict: Conflict in the request" msgstr "409 - 冲突:请求中存在冲突" #: src/labels.h:484 msgid "410 - Gone: Resource requested is no longer available" msgstr "410 - 已删除:请求的资源已永久不可用" #: src/labels.h:486 msgid "411 - Length Required: Invalid Content-Length" msgstr "411 - 需要长度:无效的Content-Length" #: src/labels.h:488 msgid "412 - Precondition Failed: Server does not meet preconditions" msgstr "412 - 先决条件失败:服务器不满足先决条件" #: src/labels.h:490 msgid "413 - Payload Too Large" msgstr "413 - 负载过大" #: src/labels.h:492 msgid "414 - Request-URI Too Long" msgstr "414 - 请求URI过长" #: src/labels.h:494 msgid "415 - Unsupported Media Type: Media type is not supported" msgstr "415 - 不支持的媒体类型:媒体类型不被支持" #: src/labels.h:496 msgid "416 - Requested Range Not Satisfiable: Cannot supply that portion" msgstr "416 - 请求范围不可满足:无法提供指定部分" #: src/labels.h:498 msgid "417 - Expectation Failed" msgstr "417 - 预期失败" #: src/labels.h:500 msgid "418 - I'm a teapot" msgstr "" #: src/labels.h:502 msgid "419 - Page Expired: Laravel Framework when a CSRF Token is missing" msgstr "419 - 页面过期:Laravel框架中缺少CSRF令牌" #: src/labels.h:504 msgid "420 - Method Failure: Spring Framework when a method has failed" msgstr "420 - 方法失败:Spring框架中方法执行失败" #: src/labels.h:506 msgid "421 - Misdirected Request" msgstr "421 - 错误定向请求" #: src/labels.h:508 msgid "422 - Unprocessable Entity due to semantic errors: WebDAV" msgstr "422 - 不可处理实体(语义错误):WebDAV" #: src/labels.h:510 msgid "423 - The resource that is being accessed is locked" msgstr "423 - 被访问资源已锁定" #: src/labels.h:512 msgid "424 - Failed Dependency: WebDAV" msgstr "424 - 依赖失败:WebDAV" #: src/labels.h:514 msgid "426 - Upgrade Required: Client should switch to a different protocol" msgstr "426 - 需要升级:客户端应切换协议" #: src/labels.h:516 msgid "428 - Precondition Required" msgstr "428 - 需要先决条件" #: src/labels.h:518 msgid "429 - Too Many Requests: The user has sent too many requests" msgstr "429 - 请求过多:用户发送了过多请求" #: src/labels.h:520 msgid "" "430 - Request Header Fields Too Large: Too many URLs are requested within a " "certain time frame" msgstr "430 - 请求头字段过大:短时间内请求过多URL" #: src/labels.h:522 msgid "431 - Request Header Fields Too Large" msgstr "431 - 请求头字段过大" #: src/labels.h:524 msgid "440 - Login Time-out: The client's session has expired" msgstr "440 - 登录超时:客户端会话已过期" #: src/labels.h:526 msgid "449 - Retry With: The server cannot honour the request" msgstr "449 - 重试:服务器无法处理请求" #: src/labels.h:528 msgid "" "450 - Blocked by Windows Parental Controls: The Microsoft extension code " "indicated" msgstr "450 - 被Windows家庭控制阻止:微软扩展状态码" #: src/labels.h:530 msgid "451 - Unavailable For Legal Reasons" msgstr "451 - 因法律原因不可用" #: src/labels.h:532 msgid "444 - (Nginx) Connection closed without sending any headers" msgstr "444 - (Nginx) 连接关闭未发送任何头信息" #: src/labels.h:534 msgid "460 - AWS Elastic Load Balancing: Client closed the connection " msgstr "460 - AWS弹性负载均衡:客户端关闭连接" #: src/labels.h:536 msgid "" "463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP " "addresses" msgstr "463 - AWS弹性负载均衡:负载均衡器收到超过30个IP地址" #: src/labels.h:538 msgid "464 - AWS Elastic Load Balancing: Incompatible protocol versions" msgstr "464 - AWS弹性负载均衡:不兼容的协议版本" #: src/labels.h:540 msgid "494 - (Nginx) Request Header Too Large" msgstr "494 - (Nginx) 请求头过大" #: src/labels.h:542 msgid "495 - (Nginx) SSL client certificate error" msgstr "495 - (Nginx) SSL客户端证书错误" #: src/labels.h:544 msgid "496 - (Nginx) Client didn't provide certificate" msgstr "496 - (Nginx) 客户端未提供证书" #: src/labels.h:546 msgid "497 - (Nginx) HTTP request sent to HTTPS port" msgstr "497 - (Nginx) HTTP请求发送到HTTPS端口" #: src/labels.h:548 msgid "498 - Invalid Token: an expired or otherwise invalid token" msgstr "498 - 无效令牌:过期或其他无效令牌" #: src/labels.h:550 msgid "499 - (Nginx) Connection closed by client while processing request" msgstr "499 - (Nginx) 处理请求时客户端关闭连接" #: src/labels.h:552 msgid "500 - Internal Server Error" msgstr "500 - 服务器内部错误" #: src/labels.h:554 msgid "501 - Not Implemented" msgstr "501 - 未实现" #: src/labels.h:556 msgid "502 - Bad Gateway: Received an invalid response from the upstream" msgstr "502 - 错误网关:从上游收到无效响应" #: src/labels.h:558 msgid "503 - Service Unavailable: The server is currently unavailable" msgstr "503 - 服务不可用:服务器暂时不可用" #: src/labels.h:560 msgid "504 - Gateway Timeout: The upstream server failed to send request" msgstr "504 - 网关超时:上游服务器未能发送请求" #: src/labels.h:562 msgid "505 - HTTP Version Not Supported" msgstr "505 - 不支持的HTTP版本" #: src/labels.h:564 msgid "509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth" msgstr "509 - 超出带宽限制:服务器带宽已耗尽" #: src/labels.h:566 msgid "520 - CloudFlare - Web server is returning an unknown error" msgstr "520 - CloudFlare - Web服务器返回未知错误" #: src/labels.h:568 msgid "521 - CloudFlare - Web server is down" msgstr "521 - CloudFlare - Web服务器宕机" #: src/labels.h:570 msgid "522 - CloudFlare - Connection timed out" msgstr "522 - CloudFlare - 连接超时" #: src/labels.h:572 msgid "523 - CloudFlare - Origin is unreachable" msgstr "523 - CloudFlare - 源站不可达" #: src/labels.h:574 msgid "524 - CloudFlare - A timeout occurred" msgstr "524 - CloudFlare - 发生超时" #: src/labels.h:576 msgid "" "525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS " "handshake" msgstr "525 - SSL握手失败:Cloudflare无法协商SSL/TLS握手" #: src/labels.h:578 msgid "" "526 - Invalid SSL Certificate: Cloudflare could not validate the SSL " "certificate" msgstr "526 - 无效SSL证书:Cloudflare无法验证SSL证书" #: src/labels.h:580 msgid "527 - Railgun Error: An interrupted connection" msgstr "527 - Railgun错误:连接中断" #: src/labels.h:582 msgid "529 - Site is overloaded: A site can not process the request" msgstr "529 - 站点过载:站点无法处理请求" #: src/labels.h:584 msgid "530 - Site is frozen: A site has been frozen due to inactivity" msgstr "530 - 站点冻结:因不活动站点被冻结" #: src/labels.h:586 msgid "" "540 - Temporarily Disabled: The requested endpoint has been temporarily " "disabled" msgstr "540 - 暂时禁用:请求的端点已被临时禁用" #: src/labels.h:588 msgid "561 - Unauthorized: An error around authentication" msgstr "561 - 未授权:认证相关错误" #: src/labels.h:590 msgid "" "598 - Network read timeout error: some HTTP proxies to signal a network read " "timeout" msgstr "598 - 网络读取超时:某些HTTP代理表示网络读取超时" #: src/labels.h:592 msgid "599 - Network Connect Timeout Error: An error used by some HTTP proxies" msgstr "599 - 网络连接超时:某些HTTP代理使用的错误" #: src/labels.h:594 msgid "783 - Unexpected Token: The request includes a JSON syntax error" msgstr "783 - 意外令牌:请求包含JSON语法错误" #: src/labels.h:598 msgid "Menu" msgstr "菜单" #: src/labels.h:600 msgid "Settings" msgstr "设置" #: src/labels.h:602 msgid "WebSocket Status: Connected" msgstr "WebSocket 状态:已连接" #: src/labels.h:604 msgid "WebSocket Status: Disconnected" msgstr "WebSocket 状态:已断开" ================================================ FILE: resources/cities-10m.json ================================================ {"type":"Topology","objects":{"cities":{"type":"GeometryCollection","geometries":[{"type":"Point","coordinates":[-57.836116004496425,-34.469787716602944],"properties":{"NAME":"Colonia del Sacramento","NAMEASCII":"Colonia del Sacramento","POP_MAX":21714,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-56.9009966,-33.5439989],"properties":{"NAME":"Trinidad","NAMEASCII":"Trinidad","POP_MAX":21093,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-58.3039975,-33.138999],"properties":{"NAME":"Fray Bentos","NAMEASCII":"Fray Bentos","POP_MAX":23279,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-56.2840015,-34.538004],"properties":{"NAME":"Canelones","NAMEASCII":"Canelones","POP_MAX":19698,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-56.2149984,-34.099002],"properties":{"NAME":"Florida","NAMEASCII":"Florida","POP_MAX":32234,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[0.7890036,9.2610001],"properties":{"NAME":"Bassar","NAMEASCII":"Bassar","POP_MAX":61845,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[0.9849965,8.5570021],"properties":{"NAME":"Sotouboua","NAMEASCII":"Sotouboua","POP_MAX":21054,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[10.4166996,33.399999],"properties":{"NAME":"Medenine","NAMEASCII":"Medenine","POP_MAX":61705,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[8.9710025,33.689997],"properties":{"NAME":"Kebili","NAMEASCII":"Kebili","POP_MAX":19875,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.4667036,33.0000032],"properties":{"NAME":"Tataouine","NAMEASCII":"Tataouine","POP_MAX":62577,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.1999975,36.8666732],"properties":{"NAME":"L'Ariana","NAMEASCII":"L'Ariana","POP_MAX":97687,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[8.7499986,36.5000041],"properties":{"NAME":"Jendouba","NAMEASCII":"Jendouba","POP_MAX":51408,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[8.7166985,35.2167031],"properties":{"NAME":"Kasserine","NAMEASCII":"Kasserine","POP_MAX":76243,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[9.5000045,35.0166961],"properties":{"NAME":"Sdid Bouzid","NAMEASCII":"Sdid Bouzid","POP_MAX":42098,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[9.3833016,36.0833041],"properties":{"NAME":"Siliana","NAMEASCII":"Siliana","POP_MAX":26960,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[11.0408766,35.483913],"properties":{"NAME":"Mahdia","NAMEASCII":"Mahdia","POP_MAX":45977,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.7672946,35.7307021],"properties":{"NAME":"Monastir","NAMEASCII":"Monastir","POP_MAX":71546,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.1469966,36.3999962],"properties":{"NAME":"Zaghouan","NAMEASCII":"Zaghouan","POP_MAX":16911,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[106.1469997,11.3229991],"properties":{"NAME":"Tây Ninh","NAMEASCII":"Tay Ninh","POP_MAX":126370,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[103.3430047,21.740004],"properties":{"NAME":"Luan Chau","NAMEASCII":"Luan Chau","POP_MAX":7335,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.8333333,22.1333333],"properties":{"NAME":"Bắc Kạn","NAMEASCII":"Bac Kan","POP_MAX":29227,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.7570016,21.8459971],"properties":{"NAME":"Lạng Sơn","NAMEASCII":"Lang Son","POP_MAX":148000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[103.9100047,21.3280021],"properties":{"NAME":"Sơn La","NAMEASCII":"Son La","POP_MAX":19054,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.2109996,21.8179981],"properties":{"NAME":"Tuyên Quang","NAMEASCII":"Tuyen Quang","POP_MAX":36430,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[104.8750026,21.705003],"properties":{"NAME":"Yên Bái","NAMEASCII":"Yen Bai","POP_MAX":96540,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.3310046,20.9420011],"properties":{"NAME":"Hai Duong","NAMEASCII":"Hai Duong","POP_MAX":58030,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.3330296,20.4503041],"properties":{"NAME":"Thái Bình","NAMEASCII":"Thai Binh","POP_MAX":210000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[109.3159987,13.082004],"properties":{"NAME":"Tuy Hòa","NAMEASCII":"Tuy Hoa","POP_MAX":69596,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.6527455,10.9690741],"properties":{"NAME":"Thu Dau Mot","NAMEASCII":"Thu Dau Mot","POP_MAX":244277,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[107.1333007,16.8499981],"properties":{"NAME":"Đông Hà","NAMEASCII":"Dong Ha","POP_MAX":17662,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.6359976,10.4670001],"properties":{"NAME":"Cao Lãnh","NAMEASCII":"Cao Lanh","POP_MAX":149837,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.3749966,10.234998],"properties":{"NAME":"Truc Giang","NAMEASCII":"Truc Giang","POP_MAX":59442,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.3340017,9.9340021],"properties":{"NAME":"Tra Vinh","NAMEASCII":"Tra Vinh","POP_MAX":131360,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.9640026,10.256004],"properties":{"NAME":"Vĩnh Long","NAMEASCII":"Vinh Long","POP_MAX":103314,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.2680046,22.6639981],"properties":{"NAME":"Cao Bằng","NAMEASCII":"Cao Bang","POP_MAX":41112,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[-87.12850166584191,15.129829181166658],"properties":{"NAME":"Yoro","NAMEASCII":"Yoro","POP_MAX":15774,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-88.1666995,14.3330041],"properties":{"NAME":"La Esperanza","NAMEASCII":"La Esperanza","POP_MAX":5318,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-87.6840026,14.319999],"properties":{"NAME":"La Paz","NAMEASCII":"La Paz","POP_MAX":17555,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-88.2359996,14.919003],"properties":{"NAME":"Santa Bárbara","NAMEASCII":"Santa Barbara","POP_MAX":15119,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-88.5833005,14.5833031],"properties":{"NAME":"Gracias","NAMEASCII":"Gracias","POP_MAX":7909,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-89.1819985,14.4369991],"properties":{"NAME":"Nueva Ocotepeque","NAMEASCII":"Nueva Ocotepeque","POP_MAX":8780,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-86.8509985,13.943997],"properties":{"NAME":"Yuscarán","NAMEASCII":"Yuscaran","POP_MAX":2371,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-74.1184253,18.6339347],"properties":{"NAME":"Jérémie","NAMEASCII":"Jeremie","POP_MAX":30917,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-72.8294845,19.9317601],"properties":{"NAME":"Port-De-Paix","NAMEASCII":"Port-De-Paix","POP_MAX":34657,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-72.0039956,19.1430001],"properties":{"NAME":"Hinche","NAMEASCII":"Hinche","POP_MAX":18590,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-71.8448395,19.665567],"properties":{"NAME":"Fort-Liberté","NAMEASCII":"Fort-Liberte","POP_MAX":11465,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-72.5370026,18.234999],"properties":{"NAME":"Jacmel","NAMEASCII":"Jacmel","POP_MAX":33563,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[27.2259996,41.7429992],"properties":{"NAME":"Kırklareli","NAMEASCII":"Kirklareli","POP_MAX":58223,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[29.9829966,40.149999],"properties":{"NAME":"Bilecik","NAMEASCII":"Bilecik","POP_MAX":40285,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[30.4000025,40.7666611],"properties":{"NAME":"Sakarya","NAMEASCII":"Sakarya","POP_MAX":286787,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[33.7830035,41.3890022],"properties":{"NAME":"Kastamonu","NAMEASCII":"Kastamonu","POP_MAX":70402,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[30.2833355,37.7166601],"properties":{"NAME":"Burdur","NAMEASCII":"Burdur","POP_MAX":66158,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.1710026,39.1419992],"properties":{"NAME":"Kırşehir","NAMEASCII":"Kirsehir","POP_MAX":94336,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.7239985,38.624004],"properties":{"NAME":"Nevşehir","NAMEASCII":"Nevsehir","POP_MAX":75527,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[36.1166766,36.2333341],"properties":{"NAME":"Antakya","NAMEASCII":"Antakya","POP_MAX":154803,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[38.3900045,40.9130011],"properties":{"NAME":"Giresun","NAMEASCII":"Giresun","POP_MAX":98864,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.1530015,42.022998],"properties":{"NAME":"Sinop","NAMEASCII":"Sinop","POP_MAX":34834,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[36.5630045,40.3059962],"properties":{"NAME":"Tokat","NAMEASCII":"Tokat","POP_MAX":129702,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[41.8179965,41.1830011],"properties":{"NAME":"Artvin","NAMEASCII":"Artvin","POP_MAX":32272,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[40.4980026,38.885004],"properties":{"NAME":"Bingöl","NAMEASCII":"Bingol","POP_MAX":80568,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[42.1229976,38.3940001],"properties":{"NAME":"Bitlis","NAMEASCII":"Bitlis","POP_MAX":62811,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[32.225,-0.3088889],"properties":{"NAME":"Kalangala","NAMEASCII":"Kalangala","POP_MAX":5200,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.6210036,40.607001],"properties":{"NAME":"Çankırı","NAMEASCII":"Cankiri","POP_MAX":71379,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.6940016,37.9760041],"properties":{"NAME":"Niğde","NAMEASCII":"Nigde","POP_MAX":91039,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.8149975,39.8179981],"properties":{"NAME":"Yozgat","NAMEASCII":"Yozgat","POP_MAX":87881,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[39.4839996,40.4640001],"properties":{"NAME":"Gümüşhane","NAMEASCII":"Gumushane","POP_MAX":32250,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[41.9329986,37.9440001],"properties":{"NAME":"Siirt","NAMEASCII":"Siirt","POP_MAX":114034,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[39.5333015,39.1167],"properties":{"NAME":"Tunceli","NAMEASCII":"Tunceli","POP_MAX":29062,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[33.9361111,1.4608333],"properties":{"NAME":"Kumi","NAMEASCII":"Kumi","POP_MAX":13000,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.1594444,1.7388889],"properties":{"NAME":"Kaberamaido","NAMEASCII":"Kaberamaido","POP_MAX":3400,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.8886111,0.7025],"properties":{"NAME":"Kayunga","NAMEASCII":"Kayunga","POP_MAX":21704,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.4686111,0.6091667],"properties":{"NAME":"Iganga","NAMEASCII":"Iganga","POP_MAX":45024,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.1197222,0.9472222],"properties":{"NAME":"Kamuli","NAMEASCII":"Kamuli","POP_MAX":12764,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.7094444,1.145],"properties":{"NAME":"Pallisa","NAMEASCII":"Pallisa","POP_MAX":30745,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.3136111,0.225],"properties":{"NAME":"Mpigi","NAMEASCII":"Mpigi","POP_MAX":11082,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.8097222,3.3613889],"properties":{"NAME":"Adjumani","NAMEASCII":"Adjumani","POP_MAX":34700,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.1025,2.4758333],"properties":{"NAME":"Nebbi","NAMEASCII":"Nebbi","POP_MAX":30354,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.7741667,0.9161111],"properties":{"NAME":"Kiboga","NAMEASCII":"Kiboga","POP_MAX":14512,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.4563889,1.3088889],"properties":{"NAME":"Nakasongola","NAMEASCII":"Nakasongola","POP_MAX":6921,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.5332995,0.5832991],"properties":{"NAME":"Bombo","NAMEASCII":"Bombo","POP_MAX":75000,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.715,1.6744444],"properties":{"NAME":"Masindi","NAMEASCII":"Masindi","POP_MAX":31486,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[30.2750016,0.6710041],"properties":{"NAME":"Fort Portal","NAMEASCII":"Fort Portal","POP_MAX":42670,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.0666667,0.8],"properties":{"NAME":"Kibale","NAMEASCII":"Kibale","POP_MAX":5200,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[34.3,1.25],"properties":{"NAME":"Sironko","NAMEASCII":"Sironko","POP_MAX":14100,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[34.0758333,0.4544444],"properties":{"NAME":"Busia","NAMEASCII":"Busia","POP_MAX":47100,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.9661111,1.8911111],"properties":{"NAME":"Katakwi","NAMEASCII":"Katakwi","POP_MAX":8400,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[17.9109996,47.0909971],"properties":{"NAME":"Veszprém","NAMEASCII":"Veszprem","POP_MAX":62023,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[16.8399996,46.844001],"properties":{"NAME":"Zalaegerszeg","NAMEASCII":"Zalaegerszeg","POP_MAX":61898,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[18.4329996,47.5499972],"properties":{"NAME":"Tatabánya","NAMEASCII":"Tatabanya","POP_MAX":70541,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[18.7129986,46.3439971],"properties":{"NAME":"Szekszárd","NAMEASCII":"Szekszard","POP_MAX":34174,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[19.8260016,48.1050001],"properties":{"NAME":"Salgótarján","NAMEASCII":"Salgotarjan","POP_MAX":39640,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[21.1010046,46.6720021],"properties":{"NAME":"Békéscsaba","NAMEASCII":"Bekescsaba","POP_MAX":65206,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[20.3830026,47.8950031],"properties":{"NAME":"Eger","NAMEASCII":"Eger","POP_MAX":56647,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[30.2641667,-0.8794444],"properties":{"NAME":"Ntungamo","NAMEASCII":"Ntungamo","POP_MAX":16400,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[29.6983333,-1.3538889],"properties":{"NAME":"Kisoro","NAMEASCII":"Kisoro","POP_MAX":12900,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[29.5667016,-2.4832979],"properties":{"NAME":"Gikongoro","NAMEASCII":"Gikongoro","POP_MAX":15000,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[29.3499996,-2.050002],"properties":{"NAME":"Kibuye","NAMEASCII":"Kibuye","POP_MAX":48024,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[30.5333016,-2.1666959],"properties":{"NAME":"Kibungo","NAMEASCII":"Kibungo","POP_MAX":46240,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[23.2740006,45.045],"properties":{"NAME":"Târgu Jiu","NAMEASCII":"Targu Jiu","POP_MAX":97179,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[24.3710016,44.4349981],"properties":{"NAME":"Slatina","NAMEASCII":"Slatina","POP_MAX":78988,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[25.329884897537326,43.97437013604364],"properties":{"NAME":"Alexandria","NAMEASCII":"Alexandria","POP_MAX":49346,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[25.4590025,44.9379991],"properties":{"NAME":"Târgoviște","NAMEASCII":"Targoviste","POP_MAX":88435,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[25.96632527518501,43.90180698686904],"properties":{"NAME":"Giurgiu","NAMEASCII":"Giurgiu","POP_MAX":69067,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[27.3819966,44.5699981],"properties":{"NAME":"Slobozia","NAMEASCII":"Slobozia","POP_MAX":52693,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[36.1050035,32.6250001],"properties":{"NAME":"Dar'a","NAMEASCII":"Dar'a","POP_MAX":146481,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[7.3449995,47.3699971],"properties":{"NAME":"Delémont","NAMEASCII":"Delemont","POP_MAX":11315,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[6.9229986,46.9989991],"properties":{"NAME":"Neuchâtel","NAMEASCII":"Neuchatel","POP_MAX":31270,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.0340036,47.3900041],"properties":{"NAME":"Aarau","NAMEASCII":"Aarau","POP_MAX":15501,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.3833025,46.9500031],"properties":{"NAME":"Stans","NAMEASCII":"Stans","POP_MAX":7475,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[7.3539995,46.239003],"properties":{"NAME":"Sion","NAMEASCII":"Sion","POP_MAX":28045,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[9.2833025,47.383299],"properties":{"NAME":"Herisau","NAMEASCII":"Herisau","POP_MAX":15438,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[9.3619986,47.4229981],"properties":{"NAME":"Saint Gallen","NAMEASCII":"Saint Gallen","POP_MAX":70572,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[9.0199986,46.1970001],"properties":{"NAME":"Bellinzona","NAMEASCII":"Bellinzona","POP_MAX":16572,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[9.0666996,47.050002],"properties":{"NAME":"Glarus","NAMEASCII":"Glarus","POP_MAX":5681,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.6329985,47.7060031],"properties":{"NAME":"Schaffhausen","NAMEASCII":"Schaffhausen","POP_MAX":33863,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.6480016,47.019996],"properties":{"NAME":"Schwyz","NAMEASCII":"Schwyz","POP_MAX":14177,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.904888469310368,47.55261942265613],"properties":{"NAME":"Frauenfeld","NAMEASCII":"Frauenfeld","POP_MAX":21979,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.6380026,46.8790021],"properties":{"NAME":"Altdorf","NAMEASCII":"Altdorf","POP_MAX":8678,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.4870006,47.178999],"properties":{"NAME":"Zug","NAMEASCII":"Zug","POP_MAX":23435,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[15.6470046,60.613002],"properties":{"NAME":"Falun","NAMEASCII":"Falun","POP_MAX":36477,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[16.996082309454142,58.75198993360234],"properties":{"NAME":"Nyköping","NAMEASCII":"Nykoping","POP_MAX":27582,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[17.9340036,62.633997],"properties":{"NAME":"Härnösand","NAMEASCII":"Harnosand","POP_MAX":17016,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[15.590754198529854,56.1627806414939],"properties":{"NAME":"Karlskrona","NAMEASCII":"Karlskrona","POP_MAX":35212,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[23.5800006,46.0770031],"properties":{"NAME":"Alba Lulia","NAMEASCII":"Alba Lulia","POP_MAX":66085,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[24.5130036,47.1380041],"properties":{"NAME":"Bistrița","NAMEASCII":"Bistrita","POP_MAX":81318,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[22.9166736,45.883323],"properties":{"NAME":"Deva","NAMEASCII":"Deva","POP_MAX":67802,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[23.0630045,47.1750031],"properties":{"NAME":"Zalău","NAMEASCII":"Zalau","POP_MAX":63232,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[22.8850025,47.7919982],"properties":{"NAME":"Satu Mare","NAMEASCII":"Satu Mare","POP_MAX":112490,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[24.3829986,45.109998],"properties":{"NAME":"Rimnicu Vilcea","NAMEASCII":"Rimnicu Vilcea","POP_MAX":107558,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[25.7930015,45.8679961],"properties":{"NAME":"Sfintu-Gheorghe","NAMEASCII":"Sfintu-Gheorghe","POP_MAX":60677,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[25.5240005,46.3609981],"properties":{"NAME":"Miercurea Cuic","NAMEASCII":"Miercurea Cuic","POP_MAX":42029,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[26.3829966,46.9400041],"properties":{"NAME":"Piatra-Neamt","NAMEASCII":"Piatra-Neamt","POP_MAX":102688,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[27.9690035,45.2919961],"properties":{"NAME":"Brăila","NAMEASCII":"Braila","POP_MAX":213569,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[27.7333386,46.6333291],"properties":{"NAME":"Vaslui","NAMEASCII":"Vaslui","POP_MAX":69225,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[82.1833026,28.35],"properties":{"NAME":"Salyan","NAMEASCII":"Salyan","POP_MAX":15000,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[97.9689967,19.3010041],"properties":{"NAME":"Mae Hong Son","NAMEASCII":"Mae Hong Son","POP_MAX":9109,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[98.5339986,8.4510001],"properties":{"NAME":"Phangnga","NAMEASCII":"Phangnga","POP_MAX":9676,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[98.6380026,9.9620011],"properties":{"NAME":"Ranong","NAMEASCII":"Ranong","POP_MAX":24561,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[98.9119987,8.0520031],"properties":{"NAME":"Krabi","NAMEASCII":"Krabi","POP_MAX":31219,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.0809996,7.614999],"properties":{"NAME":"Phatthalung","NAMEASCII":"Phatthalung","POP_MAX":43522,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.0666986,6.6167011],"properties":{"NAME":"Satun","NAMEASCII":"Satun","POP_MAX":34544,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.00705227721275,18.573985128315552],"properties":{"NAME":"Lamphun","NAMEASCII":"Lamphun","POP_MAX":14030,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.5290027,16.472997],"properties":{"NAME":"Kamphaeng Phet","NAMEASCII":"Kamphaeng Phet","POP_MAX":58787,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.3490017,16.439004],"properties":{"NAME":"Phichit","NAMEASCII":"Phichit","POP_MAX":35760,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.1590017,16.4189971],"properties":{"NAME":"Phetchabun","NAMEASCII":"Phetchabun","POP_MAX":50656,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.1289966,14.471001],"properties":{"NAME":"Supham Buri","NAMEASCII":"Supham Buri","POP_MAX":53399,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.4499997,14.5833031],"properties":{"NAME":"Ang Thong","NAMEASCII":"Ang Thong","POP_MAX":13738,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.1259997,15.179004],"properties":{"NAME":"Chainat","NAMEASCII":"Chainat","POP_MAX":15469,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.2159987,14.200002],"properties":{"NAME":"Nakhon Nayok","NAMEASCII":"Nakhon Nayok","POP_MAX":21309,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.4010036,14.886999],"properties":{"NAME":"Sing Buri","NAMEASCII":"Sing Buri","POP_MAX":20046,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.0639986,13.8179971],"properties":{"NAME":"Nakhon Pathom","NAMEASCII":"Nakhon Pathom","POP_MAX":117927,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.8000017,11.802996],"properties":{"NAME":"Prachuap Khiri Khan","NAMEASCII":"Prachuap Khiri Khan","POP_MAX":33521,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.2740046,13.536],"properties":{"NAME":"Samut Sakhon","NAMEASCII":"Samut Sakhon","POP_MAX":63498,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.0009986,13.412997],"properties":{"NAME":"Samut Songkhram","NAMEASCII":"Samut Songkhram","POP_MAX":35065,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[104.1509977,15.7879981],"properties":{"NAME":"Yasothon","NAMEASCII":"Yasothon","POP_MAX":21643,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.0760037,13.6790011],"properties":{"NAME":"Chachoengsao","NAMEASCII":"Chachoengsao","POP_MAX":49741,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.5090016,12.2370031],"properties":{"NAME":"Trat","NAMEASCII":"Trat","POP_MAX":21590,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[103.5090007,16.4279971],"properties":{"NAME":"Kalasin","NAMEASCII":"Kalasin","POP_MAX":55102,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[103.2980045,16.183998],"properties":{"NAME":"Maha Sarakham","NAMEASCII":"Maha Sarakham","POP_MAX":51584,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[103.6549986,16.050996],"properties":{"NAME":"Roi Et","NAMEASCII":"Roi Et","POP_MAX":39328,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.2500006,6.864003],"properties":{"NAME":"Pattani","NAMEASCII":"Pattani","POP_MAX":150000,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[31.2470015,-25.961004],"properties":{"NAME":"Piggs Peak","NAMEASCII":"Piggs Peak","POP_MAX":5750,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[31.9519986,-26.454996],"properties":{"NAME":"Siteki","NAMEASCII":"Siteki","POP_MAX":6152,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[31.3880045,-26.4950011],"properties":{"NAME":"Manzini","NAMEASCII":"Manzini","POP_MAX":110537,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[31.31013696846293,-26.96081493079398],"properties":{"NAME":"Hlatikulu","NAMEASCII":"Hlatikulu","POP_MAX":2748,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[-86.5829966,13.4759971],"properties":{"NAME":"Somoto","NAMEASCII":"Somoto","POP_MAX":20316,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-86.4729986,13.629996],"properties":{"NAME":"Ocotal","NAMEASCII":"Ocotal","POP_MAX":33928,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-8.6509975,40.6410031],"properties":{"NAME":"Aveiro","NAMEASCII":"Aveiro","POP_MAX":54162,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.8049965,39.738996],"properties":{"NAME":"Leiria","NAMEASCII":"Leiria","POP_MAX":45112,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.8441375,41.6962351],"properties":{"NAME":"Viana Do Castelo","NAMEASCII":"Viana Do Castelo","POP_MAX":15555,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-6.3379975,38.912004],"properties":{"NAME":"Mérida","NAMEASCII":"Merida","POP_MAX":52423,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-7.8630024,38.0140021],"properties":{"NAME":"Beja","NAMEASCII":"Beja","POP_MAX":35854,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.9059956,38.5599961],"properties":{"NAME":"Évora","NAMEASCII":"Evora","POP_MAX":55620,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.4230015,39.2900041],"properties":{"NAME":"Portalegre","NAMEASCII":"Portalegre","POP_MAX":15581,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.6820026,39.2310001],"properties":{"NAME":"Santarém","NAMEASCII":"Santarem","POP_MAX":29385,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-6.7550034,41.807997],"properties":{"NAME":"Bragança","NAMEASCII":"Braganca","POP_MAX":34375,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.4879996,39.8109961],"properties":{"NAME":"Castelo Branco","NAMEASCII":"Castelo Branco","POP_MAX":33479,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.2620005,40.5410041],"properties":{"NAME":"Guarda","NAMEASCII":"Guarda","POP_MAX":32111,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.9100004,40.6569961],"properties":{"NAME":"Viseu","NAMEASCII":"Viseu","POP_MAX":26364,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.7370025,41.2939981],"properties":{"NAME":"Vila Real","NAMEASCII":"Vila Real","POP_MAX":17001,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-16.4159995,14.3440021],"properties":{"NAME":"Fatick","NAMEASCII":"Fatick","POP_MAX":24243,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[37.3332965,31.333302],"properties":{"NAME":"An Nabk","NAMEASCII":"An Nabk","POP_MAX":10000,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[6.5500026,53.0000011],"properties":{"NAME":"Assen","NAMEASCII":"Assen","POP_MAX":62237,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[5.9229996,51.987996],"properties":{"NAME":"Arnhem","NAMEASCII":"Arnhem","POP_MAX":141674,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[5.6770025,50.8529971],"properties":{"NAME":"Maastricht","NAMEASCII":"Maastricht","POP_MAX":122378,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[6.0969965,52.5240001],"properties":{"NAME":"Zwolle","NAMEASCII":"Zwolle","POP_MAX":111805,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[3.6099995,51.5019962],"properties":{"NAME":"Middelburg","NAMEASCII":"Middelburg","POP_MAX":46485,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[5.3166605,51.6833371],"properties":{"NAME":"'s-Hertogenbosch","NAMEASCII":"'s-Hertogenbosch","POP_MAX":134520,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[8.7660006,58.4647561],"properties":{"NAME":"Arendal","NAMEASCII":"Arendal","POP_MAX":30916,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[6.4410035,60.6300032],"properties":{"NAME":"Vossavangen","NAMEASCII":"Vossavangen","POP_MAX":5571,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[6.8499995,61.1832961],"properties":{"NAME":"Leikanger","NAMEASCII":"Leikanger","POP_MAX":1965,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[11.3472365,59.9134861],"properties":{"NAME":"Bærum","NAMEASCII":"Baerum","POP_MAX":113659,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[11.0690016,60.8200021],"properties":{"NAME":"Hamar","NAMEASCII":"Hamar","POP_MAX":29479,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[10.4210015,59.2640011],"properties":{"NAME":"Tønsberg","NAMEASCII":"Tonsberg","POP_MAX":38914,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[83.5832976,28.2666961],"properties":{"NAME":"Baglung","NAMEASCII":"Baglung","POP_MAX":23296,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[82.2167016,29.2500001],"properties":{"NAME":"Jumla","NAMEASCII":"Jumla","POP_MAX":9073,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[83.3832995,27.5333041],"properties":{"NAME":"Bhairawa","NAMEASCII":"Bhairawa","POP_MAX":63367,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[80.6000045,29.3000042],"properties":{"NAME":"Dandeldhura","NAMEASCII":"Dandeldhura","POP_MAX":19014,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[80.5930026,28.6949971],"properties":{"NAME":"Dhangarhi","NAMEASCII":"Dhangarhi","POP_MAX":92294,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[86.0869985,27.3259981],"properties":{"NAME":"Ramechhap","NAMEASCII":"Ramechhap","POP_MAX":15000,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[85.1300016,27.5509981],"properties":{"NAME":"Bhimphedi","NAMEASCII":"Bhimphedi","POP_MAX":15000,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[86.7332976,26.5332961],"properties":{"NAME":"Rajbiraj","NAMEASCII":"Rajbiraj","POP_MAX":33061,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[87.9260045,26.9080021],"properties":{"NAME":"Ilam","NAMEASCII":"Ilam","POP_MAX":17491,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[143.7180037,-5.49],"properties":{"NAME":"Wabag","NAMEASCII":"Wabag","POP_MAX":3958,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[141.3039966,-2.6900009],"properties":{"NAME":"Vanimo","NAMEASCII":"Vanimo","POP_MAX":11204,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[144.9600127,-6.0229979],"properties":{"NAME":"Kundiawa","NAMEASCII":"Kundiawa","POP_MAX":9383,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[145.8379987,-7.9270019],"properties":{"NAME":"Kerema","NAMEASCII":"Kerema","POP_MAX":5646,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[155.5659907,-6.228],"properties":{"NAME":"Arawa","NAMEASCII":"Arawa","POP_MAX":40266,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[147.2799966,-2.032002],"properties":{"NAME":"Lorengau","NAMEASCII":"Lorengau","POP_MAX":5806,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[150.1430137,-5.5500029],"properties":{"NAME":"Kimbe","NAMEASCII":"Kimbe","POP_MAX":18847,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[29.1608333,47.2630556],"properties":{"NAME":"Dubăsari","NAMEASCII":"Dubasari","POP_MAX":23254,"ISO_A2":"MD","SOV_A3":"MDA"}},{"type":"Point","coordinates":[28.7019995,-30.1172669],"properties":{"NAME":"Qacha's Nek","NAMEASCII":"Qacha's Nek","POP_MAX":25573,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[43.8667026,4.183299],"properties":{"NAME":"Hudur","NAMEASCII":"Hudur","POP_MAX":1639,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[42.2270016,3.3270031],"properties":{"NAME":"Garbahaarey","NAMEASCII":"Garbahaarey","POP_MAX":12652,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[42.5833025,1.083303],"properties":{"NAME":"Bu'aale","NAMEASCII":"Bu'aale","POP_MAX":1490,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[46.382174120011776,5.531982307123475],"properties":{"NAME":"Dhuusa Mareeb","NAMEASCII":"Dhuusa Mareeb","POP_MAX":447,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[81.2330016,8.568999],"properties":{"NAME":"Trincomalee","NAMEASCII":"Trincomalee","POP_MAX":108420,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[79.8260045,8.0330041],"properties":{"NAME":"Puttalan","NAMEASCII":"Puttalan","POP_MAX":45661,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[80.3860026,6.6930031],"properties":{"NAME":"Ratnapura","NAMEASCII":"Ratnapura","POP_MAX":47832,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[7.4860025,5.532003],"properties":{"NAME":"Umuahia","NAMEASCII":"Umuahia","POP_MAX":264662,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.916152558612238,5.036013508874578],"properties":{"NAME":"Uyo","NAMEASCII":"Uyo","POP_MAX":554906,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.0260036,5.4929971],"properties":{"NAME":"Owerri","NAMEASCII":"Owerri","POP_MAX":215038,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[125.7620047,38.5070041],"properties":{"NAME":"Sariwon","NAMEASCII":"Sariwon","POP_MAX":154942,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.4639966,39.4880041],"properties":{"NAME":"Sin-Ni","NAMEASCII":"Sin-Ni","POP_MAX":19463,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[106.2000006,50.2499971],"properties":{"NAME":"Suchboatar","NAMEASCII":"Suchboatar","POP_MAX":24235,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[106.9470006,47.710998],"properties":{"NAME":"Dzuunmod","NAMEASCII":"Dzuunmod","POP_MAX":17738,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[15.9509975,-21.4360019],"properties":{"NAME":"Omaruru","NAMEASCII":"Omaruru","POP_MAX":11547,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[15.8529965,-21.9390029],"properties":{"NAME":"Karibib","NAMEASCII":"Karibib","POP_MAX":6898,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[17.3420015,-19.639998],"properties":{"NAME":"Otavi","NAMEASCII":"Otavi","POP_MAX":4562,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[18.9630005,-22.455],"properties":{"NAME":"Gobabis","NAMEASCII":"Gobabis","POP_MAX":16321,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[39.725799,-5.063464],"properties":{"NAME":"Wete","NAMEASCII":"Wete","POP_MAX":26450,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[38.9167026,-6.766704],"properties":{"NAME":"Kibaha","NAMEASCII":"Kibaha","POP_MAX":23651,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[39.2599986,-5.878998],"properties":{"NAME":"Mkokotoni","NAMEASCII":"Mkokotoni","POP_MAX":2572,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[7.1499965,46.8000001],"properties":{"NAME":"Fribourg","NAMEASCII":"Fribourg","POP_MAX":32827,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[7.7370035,47.4830011],"properties":{"NAME":"Liestal","NAMEASCII":"Liestal","POP_MAX":12832,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[7.5369966,47.2120021],"properties":{"NAME":"Solothurn","NAMEASCII":"Solothurn","POP_MAX":14853,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.2430015,46.899],"properties":{"NAME":"Sarnen","NAMEASCII":"Sarnen","POP_MAX":9410,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[13.8279966,58.7050021],"properties":{"NAME":"Mariestad","NAMEASCII":"Mariestad","POP_MAX":14891,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[12.3300006,58.3630021],"properties":{"NAME":"Vannersborg","NAMEASCII":"Vannersborg","POP_MAX":21835,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[9.4167005,47.3333041],"properties":{"NAME":"Appenzell","NAMEASCII":"Appenzell","POP_MAX":5649,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[-8.1833333,53.6333333],"properties":{"NAME":"Ros Comain","NAMEASCII":"Ros Comain","POP_MAX":4860,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-16.1649985,12.268998],"properties":{"NAME":"Cacheu","NAMEASCII":"Cacheu","POP_MAX":10490,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[-15.2270004,12.492999],"properties":{"NAME":"Farim","NAMEASCII":"Farim","POP_MAX":6792,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[-15.1949965,11.772999],"properties":{"NAME":"Fulacunda","NAMEASCII":"Fulacunda","POP_MAX":1311,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[-14.2340035,12.2799961],"properties":{"NAME":"Gabú","NAMEASCII":"Gabu","POP_MAX":14430,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[-15.25424569133715,11.273036476461991],"properties":{"NAME":"Catió","NAMEASCII":"Catio","POP_MAX":9898,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[-8.23159527078132,4.674102754887166],"properties":{"NAME":"Barclayville","NAMEASCII":"Barclayville","POP_MAX":2733,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-9.7499965,8.4167011],"properties":{"NAME":"Voinjama","NAMEASCII":"Voinjama","POP_MAX":26594,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-10.6000015,6.433299],"properties":{"NAME":"Bensonville","NAMEASCII":"Bensonville","POP_MAX":4089,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-10.3490005,6.525999],"properties":{"NAME":"Kakata","NAMEASCII":"Kakata","POP_MAX":33945,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-8.6849995,7.3710001],"properties":{"NAME":"Sanniquellie","NAMEASCII":"Sanniquellie","POP_MAX":11415,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-9.5779974,5.464998],"properties":{"NAME":"Rivercess","NAMEASCII":"Rivercess","POP_MAX":2578,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[15.7989965,40.6420021],"properties":{"NAME":"Potenza","NAMEASCII":"Potenza","POP_MAX":69060,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[14.6559966,41.5629991],"properties":{"NAME":"Campobasso","NAMEASCII":"Campobasso","POP_MAX":50762,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[36.2332985,32.2832971],"properties":{"NAME":"Al Mafraq","NAMEASCII":"Al Mafraq","POP_MAX":57118,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[35.6000046,30.833334],"properties":{"NAME":"At Tafilah","NAMEASCII":"At Tafilah","POP_MAX":25429,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[35.7360036,30.1920031],"properties":{"NAME":"Ma'an","NAMEASCII":"Ma'an","POP_MAX":50350,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[7.3150026,45.7370011],"properties":{"NAME":"Aosta","NAMEASCII":"Aosta","POP_MAX":34062,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[6.1667016,49.8833011],"properties":{"NAME":"Diekirch","NAMEASCII":"Diekirch","POP_MAX":6242,"ISO_A2":"LU","SOV_A3":"LUX"}},{"type":"Point","coordinates":[6.425599376387133,49.67975296258291],"properties":{"NAME":"Grevenmacher","NAMEASCII":"Grevenmacher","POP_MAX":3958,"ISO_A2":"LU","SOV_A3":"LUX"}},{"type":"Point","coordinates":[100.1899987,6.433002],"properties":{"NAME":"Kangar","NAMEASCII":"Kangar","POP_MAX":63869,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[102.0420006,4.1840011],"properties":{"NAME":"Kuala Lipis","NAMEASCII":"Kuala Lipis","POP_MAX":15448,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[101.5499977,3.066696],"properties":{"NAME":"Shah Alam","NAMEASCII":"Shah Alam","POP_MAX":481654,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[36.9510036,-0.416997],"properties":{"NAME":"Nyeri","NAMEASCII":"Nyeri","POP_MAX":51084,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[27.7530035,-29.1529979],"properties":{"NAME":"Teyateyaneng","NAMEASCII":"Teyateyaneng","POP_MAX":5115,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[27.4799975,-30.1589999],"properties":{"NAME":"Mohales Hoek","NAMEASCII":"Mohales Hoek","POP_MAX":24992,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[27.7160045,-30.4109999],"properties":{"NAME":"Moyeni","NAMEASCII":"Moyeni","POP_MAX":24130,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[28.0559976,-28.878003],"properties":{"NAME":"Hlotse","NAMEASCII":"Hlotse","POP_MAX":47675,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[28.2500016,-28.7499959],"properties":{"NAME":"Butha-Buthe","NAMEASCII":"Butha-Buthe","POP_MAX":16330,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[29.0780015,-29.291004],"properties":{"NAME":"Mokhotlong","NAMEASCII":"Mokhotlong","POP_MAX":8809,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[-89.8450015,13.919004],"properties":{"NAME":"Ahuachapán","NAMEASCII":"Ahuachapan","POP_MAX":34102,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.9333016,13.716702],"properties":{"NAME":"Cojutepeque","NAMEASCII":"Cojutepeque","POP_MAX":48411,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-89.2899985,13.673997],"properties":{"NAME":"Nueva San Salvador","NAMEASCII":"Nueva San Salvador","POP_MAX":124694,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.8679976,13.508001],"properties":{"NAME":"Zacatecoluca","NAMEASCII":"Zacatecoluca","POP_MAX":39613,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-87.8390005,13.331997],"properties":{"NAME":"La Unión","NAMEASCII":"La Union","POP_MAX":26807,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.1000005,13.6999981],"properties":{"NAME":"San Francisco Gotera","NAMEASCII":"San Francisco Gotera","POP_MAX":16152,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.7849996,13.641003],"properties":{"NAME":"San Vicente","NAMEASCII":"San Vicente","POP_MAX":37326,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.4320016,13.3460011],"properties":{"NAME":"Usulután","NAMEASCII":"Usulutan","POP_MAX":51910,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.9067371156081,14.009526824913458],"properties":{"NAME":"Chalatenango","NAMEASCII":"Chalatenango","POP_MAX":29271,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-78.1790036,18.4429981],"properties":{"NAME":"Lucea","NAMEASCII":"Lucea","POP_MAX":6289,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-77.4999985,18.0330031],"properties":{"NAME":"Mandeville","NAMEASCII":"Mandeville","POP_MAX":47115,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-77.8519975,18.0309961],"properties":{"NAME":"Black River","NAMEASCII":"Black River","POP_MAX":4229,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-77.6560496,18.479583],"properties":{"NAME":"Falmouth","NAMEASCII":"Falmouth","POP_MAX":7779,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-77.9480005,18.1639981],"properties":{"NAME":"Savanna-la-Mar","NAMEASCII":"Savanna-la-Mar","POP_MAX":30000,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-76.3800026,18.1590031],"properties":{"NAME":"Port Antonio","NAMEASCII":"Port Antonio","POP_MAX":14400,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-77.1995245,18.4326391],"properties":{"NAME":"Saint Ann's Bay","NAMEASCII":"St. Ann's Bay","POP_MAX":13671,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-76.8999955,18.3770011],"properties":{"NAME":"Port Maria","NAMEASCII":"Port Maria","POP_MAX":7906,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-76.7999965,18.0333001],"properties":{"NAME":"Half Way Tree","NAMEASCII":"Half Way Tree","POP_MAX":96494,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-76.3289996,17.891001],"properties":{"NAME":"Port Morant","NAMEASCII":"Port Morant","POP_MAX":11536,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-71.3449885,19.5049981],"properties":{"NAME":"Sabaneta","NAMEASCII":"Sabaneta","POP_MAX":16380,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-71.0749975,19.5519961],"properties":{"NAME":"Mao","NAMEASCII":"Mao","POP_MAX":48297,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.1520026,19.0590031],"properties":{"NAME":"Cotuí","NAMEASCII":"Cotui","POP_MAX":41641,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[10.5667026,1.4499991],"properties":{"NAME":"Evinayong","NAMEASCII":"Evinayong","POP_MAX":8462,"ISO_A2":"GQ","SOV_A3":"GNQ"}},{"type":"Point","coordinates":[8.5500005,3.449997],"properties":{"NAME":"Luba","NAMEASCII":"Luba","POP_MAX":8655,"ISO_A2":"GQ","SOV_A3":"GNQ"}},{"type":"Point","coordinates":[15.9058333,43.7272222],"properties":{"NAME":"Šibenik","NAMEASCII":"Sibenik","POP_MAX":37112,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[31.006953163624576,30.55448231679752],"properties":{"NAME":"Shibin el Kom","NAMEASCII":"Shibin el Kom","POP_MAX":182900,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.1833356,30.4666651],"properties":{"NAME":"Benha","NAMEASCII":"Benha","POP_MAX":167029,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.5166596,30.5833321],"properties":{"NAME":"Zagazig","NAMEASCII":"Zagazig","POP_MAX":285097,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.9359976,31.109004],"properties":{"NAME":"Kafr el Sheikh","NAMEASCII":"Kafr el Sheikh","POP_MAX":143970,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[42.3720006,11.104002],"properties":{"NAME":"Dikhil","NAMEASCII":"Dikhil","POP_MAX":12043,"ISO_A2":"DJ","SOV_A3":"DJI"}},{"type":"Point","coordinates":[42.9000035,11.783304],"properties":{"NAME":"Tadjoura","NAMEASCII":"Tadjoura","POP_MAX":22193,"ISO_A2":"DJ","SOV_A3":"DJI"}},{"type":"Point","coordinates":[23.5413889,58.9430556],"properties":{"NAME":"Haapsalu","NAMEASCII":"Haapsalu","POP_MAX":11805,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[47.9999976,29.33334],"properties":{"NAME":"Hawalli","NAMEASCII":"Hawalli","POP_MAX":164212,"ISO_A2":"KW","SOV_A3":"KWT"}},{"type":"Point","coordinates":[28.5280025,-0.7569989],"properties":{"NAME":"Buluko","NAMEASCII":"Buluko","POP_MAX":1192,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[33.6,-11.9],"properties":{"NAME":"Mzimba","NAMEASCII":"Mzimba","POP_MAX":19308,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[35.30166518458707,-15.176185970333954],"properties":{"NAME":"Machinga","NAMEASCII":"Machinga","POP_MAX":1418,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.3333333,-14.3666667],"properties":{"NAME":"Dedza","NAMEASCII":"Dedza","POP_MAX":15608,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[32.9,-13.8],"properties":{"NAME":"Mchinji","NAMEASCII":"Mchinji","POP_MAX":18305,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.6333333,-14.8166667],"properties":{"NAME":"Ntcheu","NAMEASCII":"Ntcheu","POP_MAX":10445,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[35.1833333,-15.7],"properties":{"NAME":"Chiradzulu","NAMEASCII":"Chiradzulu","POP_MAX":1580,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[35.2666667,-16.9166667],"properties":{"NAME":"Nsanje","NAMEASCII":"Nsanje","POP_MAX":21774,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.5166667,-15.6166667],"properties":{"NAME":"Mwanza","NAMEASCII":"Mwanza","POP_MAX":11379,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[35.5,-16.0333333],"properties":{"NAME":"Mulanje","NAMEASCII":"Mulanje","POP_MAX":16483,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[-90.3140006,15.102999],"properties":{"NAME":"Salamá","NAMEASCII":"Salama","POP_MAX":40000,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-91.6770145,14.537097],"properties":{"NAME":"Retalhuleu","NAMEASCII":"Retalhuleu","POP_MAX":36656,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-91.7999995,14.9660011],"properties":{"NAME":"San Marcos","NAMEASCII":"San Marcos","POP_MAX":25088,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.8199985,14.6619991],"properties":{"NAME":"Chimaltenango","NAMEASCII":"Chimaltenango","POP_MAX":82370,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.7333016,14.5666981],"properties":{"NAME":"Antigua Guatemala","NAMEASCII":"Antigua Guatemala","POP_MAX":39368,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-91.1829955,14.772996],"properties":{"NAME":"Sololá","NAMEASCII":"Solola","POP_MAX":45373,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-91.3580006,14.913999],"properties":{"NAME":"Totonicapán","NAMEASCII":"Totonicapan","POP_MAX":69734,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.01620820480316,14.92229409124964],"properties":{"NAME":"El Progreso","NAMEASCII":"El Progreso","POP_MAX":147197,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.2979985,14.2790041],"properties":{"NAME":"Cuilapa","NAMEASCII":"Cuilapa","POP_MAX":16484,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-89.5439965,14.7969991],"properties":{"NAME":"Chiquimula","NAMEASCII":"Chiquimula","POP_MAX":41521,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-89.9890016,14.6330011],"properties":{"NAME":"Jalapa","NAMEASCII":"Jalapa","POP_MAX":45834,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-89.5290026,14.972004],"properties":{"NAME":"Zacapa","NAMEASCII":"Zacapa","POP_MAX":36088,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-70.6902475,19.7902171],"properties":{"NAME":"Puerto Plata","NAMEASCII":"Puerto Plata","POP_MAX":119897,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-71.7049976,19.548],"properties":{"NAME":"Dajabón","NAMEASCII":"Dajabon","POP_MAX":16398,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.5230006,19.3969981],"properties":{"NAME":"Moca","NAMEASCII":"Moca","POP_MAX":61834,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.4167015,19.383003],"properties":{"NAME":"Salcedo","NAMEASCII":"Salcedo","POP_MAX":45299,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-71.8509955,18.4930021],"properties":{"NAME":"Jimaní","NAMEASCII":"Jimani","POP_MAX":6567,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-71.7069955,18.875997],"properties":{"NAME":"Comendador","NAMEASCII":"Comendador","POP_MAX":43894,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-71.7409976,18.037998],"properties":{"NAME":"Pedernales","NAMEASCII":"Pedernales","POP_MAX":11072,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.7290016,18.4539961],"properties":{"NAME":"Azua","NAMEASCII":"Azua","POP_MAX":59139,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.4089976,18.9420031],"properties":{"NAME":"Bonao","NAMEASCII":"Bonao","POP_MAX":73269,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.3310035,18.279999],"properties":{"NAME":"Baní","NAMEASCII":"Bani","POP_MAX":66709,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-69.2569975,18.7640011],"properties":{"NAME":"Hato Mayor","NAMEASCII":"Hato Mayor","POP_MAX":35999,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-69.7840015,18.8070031],"properties":{"NAME":"Monte Plata","NAMEASCII":"Monte Plata","POP_MAX":15532,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-69.8470015,19.3760011],"properties":{"NAME":"Nagua","NAMEASCII":"Nagua","POP_MAX":33862,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-69.3320036,19.2120031],"properties":{"NAME":"Samaná","NAMEASCII":"Samana","POP_MAX":11432,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.1090005,18.4159981],"properties":{"NAME":"San Cristóbal","NAMEASCII":"San Cristobal","POP_MAX":154040,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-69.0350035,18.7640011],"properties":{"NAME":"El Seibo","NAMEASCII":"El Seibo","POP_MAX":23547,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-68.7079975,18.615996],"properties":{"NAME":"Higuey","NAMEASCII":"Higuey","POP_MAX":123787,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-14.7670015,13.5510031],"properties":{"NAME":"Georgetown","NAMEASCII":"Georgetown","POP_MAX":3584,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[-14.2229965,13.3100011],"properties":{"NAME":"Basse Santa Su","NAMEASCII":"Basse Santa Su","POP_MAX":14380,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[-16.0949965,13.4939971],"properties":{"NAME":"Kerewan","NAMEASCII":"Kerewan","POP_MAX":2751,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[-15.543323511272511,13.454894163505193],"properties":{"NAME":"Mansa Konko","NAMEASCII":"Mansa Konko","POP_MAX":18672,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[-2.3360034,7.335999],"properties":{"NAME":"Sunyani","NAMEASCII":"Sunyani","POP_MAX":70299,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[11.3300016,2.152998],"properties":{"NAME":"Ebebiyín","NAMEASCII":"Ebebiyin","POP_MAX":24831,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[25.59,58.3638889],"properties":{"NAME":"Viljandi","NAMEASCII":"Viljandi","POP_MAX":20309,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[10.997288593437615,-2.921483448704078],"properties":{"NAME":"Tchibanga","NAMEASCII":"Tchibanga","POP_MAX":19365,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[13.5540005,-4.1640029],"properties":{"NAME":"Madingou","NAMEASCII":"Madingou","POP_MAX":22760,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[22.4340036,38.8989992],"properties":{"NAME":"Lamia","NAMEASCII":"Lamia","POP_MAX":47246,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[23.4530015,40.3810021],"properties":{"NAME":"Polygyros","NAMEASCII":"Polygyros","POP_MAX":5258,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[25.4167026,41.1333031],"properties":{"NAME":"Komatini","NAMEASCII":"Komatini","POP_MAX":45631,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[35.5332965,33.8333041],"properties":{"NAME":"B'abda","NAMEASCII":"B'abda","POP_MAX":9000,"ISO_A2":"LB","SOV_A3":"LBN"}},{"type":"Point","coordinates":[34.8667025,31.9167001],"properties":{"NAME":"Ramla","NAMEASCII":"Ramla","POP_MAX":63860,"ISO_A2":"IL","SOV_A3":"IS1"}},{"type":"Point","coordinates":[35.4500016,33.383304],"properties":{"NAME":"Nabatiye et Tahta","NAMEASCII":"Nabatiye et Tahta","POP_MAX":80000,"ISO_A2":"LB","SOV_A3":"LBN"}},{"type":"Point","coordinates":[19.9490045,60.0969962],"properties":{"NAME":"Mariehamn","NAMEASCII":"Mariehamn","POP_MAX":10682,"ISO_A2":"AX","SOV_A3":"ALD"}},{"type":"Point","coordinates":[24.4719995,60.9969961],"properties":{"NAME":"Hämeenlinna","NAMEASCII":"Hameenlinna","POP_MAX":47261,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[26.7090035,60.8760001],"properties":{"NAME":"Kouvola","NAMEASCII":"Kouvola","POP_MAX":31133,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[27.2850035,61.6899962],"properties":{"NAME":"Mikkeli","NAMEASCII":"Mikkeli","POP_MAX":46550,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[100.4127778,20.2775],"properties":{"NAME":"Ban Houayxay","NAMEASCII":"Ban Houayxay","POP_MAX":6347,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[101.4166986,20.950002],"properties":{"NAME":"Louang Namtha","NAMEASCII":"Louang Namtha","POP_MAX":3225,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[105.8667036,14.8833001],"properties":{"NAME":"Champasak","NAMEASCII":"Champasak","POP_MAX":12994,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[106.4269987,15.715998],"properties":{"NAME":"Saravan","NAMEASCII":"Saravan","POP_MAX":5521,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[104.0333047,20.416698],"properties":{"NAME":"Xam Nua","NAMEASCII":"Xam Nua","POP_MAX":38992,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[102.0999967,21.683304],"properties":{"NAME":"Phongsali","NAMEASCII":"Phongsali","POP_MAX":6000,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[106.8390005,14.8079971],"properties":{"NAME":"Attapu","NAMEASCII":"Attapu","POP_MAX":4297,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[14.7619986,-4.3559999],"properties":{"NAME":"Kinkala","NAMEASCII":"Kinkala","POP_MAX":13882,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[-6.9666667,54.25],"properties":{"NAME":"Muineachan","NAMEASCII":"Muineachan","POP_MAX":5937,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[9.5349965,55.709001],"properties":{"NAME":"Vejle","NAMEASCII":"Vejle","POP_MAX":51177,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[12.3166985,55.9332991],"properties":{"NAME":"Hillerød","NAMEASCII":"Hillerod","POP_MAX":28313,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[11.5667016,55.4329981],"properties":{"NAME":"Sorø","NAMEASCII":"Soro","POP_MAX":7167,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-12.3010014,12.084003],"properties":{"NAME":"Mali","NAMEASCII":"Mali","POP_MAX":5479,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-11.6700025,11.439999],"properties":{"NAME":"Tongue","NAMEASCII":"Tongue","POP_MAX":25531,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-9.8919985,10.6530031],"properties":{"NAME":"Kouroussa","NAMEASCII":"Kouroussa","POP_MAX":14223,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-12.4010006,11.0799991],"properties":{"NAME":"Pita","NAMEASCII":"Pita","POP_MAX":20052,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-12.2720036,10.656],"properties":{"NAME":"Dalaba","NAMEASCII":"Dalaba","POP_MAX":6349,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-14.0429964,10.1850031],"properties":{"NAME":"Boffa","NAMEASCII":"Boffa","POP_MAX":2332,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-13.2959964,12.4800031],"properties":{"NAME":"Koundara","NAMEASCII":"Koundara","POP_MAX":13990,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-13.2129984,11.7540001],"properties":{"NAME":"Gaoual","NAMEASCII":"Gaoual","POP_MAX":7461,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-13.0429976,10.9050031],"properties":{"NAME":"Télimélé","NAMEASCII":"Telimele","POP_MAX":30311,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-13.0979966,9.4300021],"properties":{"NAME":"Forecariah","NAMEASCII":"Forecariah","POP_MAX":12358,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-8.6570005,8.686998],"properties":{"NAME":"Beyla","NAMEASCII":"Beyla","POP_MAX":13204,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-10.1510005,8.5539961],"properties":{"NAME":"Gueckedou","NAMEASCII":"Gueckedou","POP_MAX":221715,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-10.7260014,11.298996],"properties":{"NAME":"Dinguiraye","NAMEASCII":"Dinguiraye","POP_MAX":6062,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-11.1089965,10.747998],"properties":{"NAME":"Dabola","NAMEASCII":"Dabola","POP_MAX":13057,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-7.6840015,8.28],"properties":{"NAME":"Touba","NAMEASCII":"Touba","POP_MAX":27504,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-5.7480024,6.9779971],"properties":{"NAME":"Bouaflé","NAMEASCII":"Bouafle","POP_MAX":60962,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-5.3600035,5.839002],"properties":{"NAME":"Divo","NAMEASCII":"Divo","POP_MAX":127867,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-5.0190024,6.5520001],"properties":{"NAME":"Toumodi","NAMEASCII":"Toumodi","POP_MAX":39005,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-3.2000035,5.4666991],"properties":{"NAME":"Aboisso","NAMEASCII":"Aboisso","POP_MAX":37654,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-91.1332976,15.0333031],"properties":{"NAME":"Santa Cruz Del Quiche","NAMEASCII":"Santa Cruz Del Quiche","POP_MAX":23618,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[9.2310035,4.1550031],"properties":{"NAME":"Buea","NAMEASCII":"Buea","POP_MAX":90088,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[19.7970036,41.5189982],"properties":{"NAME":"Krujë","NAMEASCII":"Kruje","POP_MAX":21286,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.5730026,40.730004],"properties":{"NAME":"Fier","NAMEASCII":"Fier","POP_MAX":82297,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.7160035,40.9400011],"properties":{"NAME":"Lushnjë","NAMEASCII":"Lushnje","POP_MAX":41469,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.8833045,42.033303],"properties":{"NAME":"Pukë","NAMEASCII":"Puke","POP_MAX":6495,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.0833026,42.3333001],"properties":{"NAME":"Bajram Curri","NAMEASCII":"Bajram Curri","POP_MAX":7967,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.4339965,42.0830011],"properties":{"NAME":"Kukës","NAMEASCII":"Kukes","POP_MAX":17832,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.9999986,39.8770021],"properties":{"NAME":"Sarandë","NAMEASCII":"Sarande","POP_MAX":15147,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.6832965,40.3333021],"properties":{"NAME":"Ersekë","NAMEASCII":"Erseke","POP_MAX":7890,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.6640006,40.8999961],"properties":{"NAME":"Pogradec","NAMEASCII":"Pogradec","POP_MAX":40000,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.7666635,40.616676],"properties":{"NAME":"Korçë","NAMEASCII":"Korce","POP_MAX":58259,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.9719996,40.709997],"properties":{"NAME":"Berat","NAMEASCII":"Berat","POP_MAX":46866,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.2332966,40.516704],"properties":{"NAME":"Çorovodë","NAMEASCII":"Corovode","POP_MAX":14046,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.1999965,40.866696],"properties":{"NAME":"Gramsh","NAMEASCII":"Gramsh","POP_MAX":11556,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.3667036,41.2000021],"properties":{"NAME":"Librazhd","NAMEASCII":"Librazhd","POP_MAX":12691,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.0332985,40.2832981],"properties":{"NAME":"Tepelenë","NAMEASCII":"Tepelene","POP_MAX":11955,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.3519976,40.233996],"properties":{"NAME":"Përmet","NAMEASCII":"Permet","POP_MAX":10686,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.1490026,40.0789981],"properties":{"NAME":"Gjirokastër","NAMEASCII":"Gjirokaster","POP_MAX":23437,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.4333035,41.6833021],"properties":{"NAME":"Peshkopi","NAMEASCII":"Peshkopi","POP_MAX":14848,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.0160005,41.6259991],"properties":{"NAME":"Burrel","NAMEASCII":"Burrel","POP_MAX":15405,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.6540025,41.7879991],"properties":{"NAME":"Lezhë","NAMEASCII":"Lezhe","POP_MAX":18695,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.8167046,41.7833011],"properties":{"NAME":"Rrëshen","NAMEASCII":"Rreshen","POP_MAX":10064,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[44.3591667,40.3016667],"properties":{"NAME":"Ashtarak","NAMEASCII":"Ashtarak","POP_MAX":18779,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[3.9390036,50.4459991],"properties":{"NAME":"Mons","NAMEASCII":"Mons","POP_MAX":91277,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[5.338536386219118,50.92883816466403],"properties":{"NAME":"Hasselt","NAMEASCII":"Hasselt","POP_MAX":69222,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[45.1491667,40.8755556],"properties":{"NAME":"Ijevan","NAMEASCII":"Ijevan","POP_MAX":14737,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[44.5505556,39.9538889],"properties":{"NAME":"Artashat","NAMEASCII":"Artashat","POP_MAX":20562,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[45.1266667,40.3588889],"properties":{"NAME":"Gavarr","NAMEASCII":"Gavarr","POP_MAX":21680,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[45.8161111,40.5655556],"properties":{"NAME":"Gadabay","NAMEASCII":"Gadabay","POP_MAX":8657,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[46.7897222,40.6102778],"properties":{"NAME":"Goranboy","NAMEASCII":"Goranboy","POP_MAX":7333,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[45.6288889,40.9922222],"properties":{"NAME":"Tovuz","NAMEASCII":"Tovuz","POP_MAX":12626,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[45.5563889,40.9052778],"properties":{"NAME":"Agdam","NAMEASCII":"Agdam","POP_MAX":0,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[47.8458333,40.9813889],"properties":{"NAME":"Qabala","NAMEASCII":"Qabala","POP_MAX":11867,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[47.4583333,41.0708333],"properties":{"NAME":"Oğuz","NAMEASCII":"Oguz","POP_MAX":6876,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[45.3333333,39.7611111],"properties":{"NAME":"Yeghegnadzor","NAMEASCII":"Yeghegnadzor","POP_MAX":8200,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[63.1332996,34.9830001],"properties":{"NAME":"Qala i Naw","NAMEASCII":"Qala i Naw","POP_MAX":2997,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[65.2500006,34.5167011],"properties":{"NAME":"Chaghcharan","NAMEASCII":"Chaghcharan","POP_MAX":15000,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[64.3599996,31.582998],"properties":{"NAME":"Lashkar Gah","NAMEASCII":"Lashkar Gah","POP_MAX":201546,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[61.8869975,31.1120011],"properties":{"NAME":"Zaranj","NAMEASCII":"Zaranj","POP_MAX":49851,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[65.8666986,32.6332982],"properties":{"NAME":"Tarin Kowt","NAMEASCII":"Tarin Kowt","POP_MAX":10000,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.4167045,32.8500002],"properties":{"NAME":"Zareh Sharan","NAMEASCII":"Zareh Sharan","POP_MAX":13737,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[71.1500046,34.866],"properties":{"NAME":"Asadabad","NAMEASCII":"Asadabad","POP_MAX":48400,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[69.5400036,36.729999],"properties":{"NAME":"Taloqan","NAMEASCII":"Taloqan","POP_MAX":64256,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[69.3333006,35.0166961],"properties":{"NAME":"Mahmud-E Eraqi","NAMEASCII":"Mahmud-E Eraqi","POP_MAX":7407,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[70.1667005,34.65],"properties":{"NAME":"Mehtar Lam","NAMEASCII":"Mehtar Lam","POP_MAX":17345,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.9667035,33.9667021],"properties":{"NAME":"Baraki Barak","NAMEASCII":"Baraki Barak","POP_MAX":22305,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.0400005,36.2610001],"properties":{"NAME":"Aybak","NAMEASCII":"Aybak","POP_MAX":24000,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.7999966,34.4500021],"properties":{"NAME":"Mayda Shahr","NAMEASCII":"Mayda Shahr","POP_MAX":35008,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[104.5189986,11.4519961],"properties":{"NAME":"Kampong Spoe","NAMEASCII":"Kampong Spoe","POP_MAX":33231,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[104.8889977,12.7119961],"properties":{"NAME":"Kampong Thum","NAMEASCII":"Kampong Thum","POP_MAX":19951,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[105.3240036,11.484],"properties":{"NAME":"Prey Veng","NAMEASCII":"Prey Veng","POP_MAX":74000,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[104.9667037,13.816701],"properties":{"NAME":"Phnum Tbeng Meanchey","NAMEASCII":"Phnum Tbeng Meanchey","POP_MAX":24380,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[105.9740016,13.5230041],"properties":{"NAME":"Stoeng Treng","NAMEASCII":"Stoeng Treng","POP_MAX":29665,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[106.0239967,12.4689961],"properties":{"NAME":"Kracheh","NAMEASCII":"Kracheh","POP_MAX":19975,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[107.1999997,12.4499971],"properties":{"NAME":"Senmonorom","NAMEASCII":"Senmonorom","POP_MAX":7944,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[106.9810026,13.5070021],"properties":{"NAME":"Lumphat","NAMEASCII":"Lumphat","POP_MAX":19205,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[105.8010036,11.0799991],"properties":{"NAME":"Svay Rieng","NAMEASCII":"Svay Rieng","POP_MAX":23956,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[5.7660036,36.821997],"properties":{"NAME":"Jijel","NAMEASCII":"Jijel","POP_MAX":148000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[1.7150045,6.6150001],"properties":{"NAME":"Lokossa","NAMEASCII":"Lokossa","POP_MAX":86971,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[0.3609995,12.0549961],"properties":{"NAME":"Fada Ngourma","NAMEASCII":"Fada Ngourma","POP_MAX":33910,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[4.0461444,36.7117101],"properties":{"NAME":"Tizi-Ouzou","NAMEASCII":"Tizi-Ouzou","POP_MAX":144000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[4.7646624,36.0777088],"properties":{"NAME":"Bordj Bou Arréridj","NAMEASCII":"Bordj Bou Arreridj","POP_MAX":140000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[4.5450006,35.7000031],"properties":{"NAME":"M'sila","NAMEASCII":"M'sila","POP_MAX":150000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[7.4279975,36.4660021],"properties":{"NAME":"Guelma","NAMEASCII":"Guelma","POP_MAX":123590,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[7.1499965,35.8499972],"properties":{"NAME":"Oum el Bouaghi","NAMEASCII":"Oum el Bouaghi","POP_MAX":100821,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[24.7190046,43.1379991],"properties":{"NAME":"Lovec","NAMEASCII":"Lovec","POP_MAX":42211,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[23.2370016,43.414002],"properties":{"NAME":"Montana","NAMEASCII":"Montana","POP_MAX":47445,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[26.5359966,43.533999],"properties":{"NAME":"Razgrad","NAMEASCII":"Razgrad","POP_MAX":38285,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[5.8167005,49.6833031],"properties":{"NAME":"Arlon","NAMEASCII":"Arlon","POP_MAX":26179,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[9.7667016,47.5166971],"properties":{"NAME":"Bregenz","NAMEASCII":"Bregenz","POP_MAX":26928,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[16.5332975,47.8332991],"properties":{"NAME":"Eisenstadt","NAMEASCII":"Eisenstadt","POP_MAX":13165,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[89.4167773,27.4293704],"properties":{"NAME":"Paro","NAMEASCII":"Paro","POP_MAX":15000,"ISO_A2":"BT","SOV_A3":"BTN"}},{"type":"Point","coordinates":[89.8641347,27.584154],"properties":{"NAME":"Punakha","NAMEASCII":"Punakha","POP_MAX":5000,"ISO_A2":"BT","SOV_A3":"BTN"}},{"type":"Point","coordinates":[97.2060036,19.6650001],"properties":{"NAME":"Loikaw","NAMEASCII":"Loikaw","POP_MAX":17293,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[89.9166967,27.433296],"properties":{"NAME":"Wangdue Prodrang","NAMEASCII":"Wangdue Prodrang","POP_MAX":5000,"ISO_A2":"BT","SOV_A3":"BTN"}},{"type":"Point","coordinates":[30.5166966,-3.1667039],"properties":{"NAME":"Cankuzo","NAMEASCII":"Cankuzo","POP_MAX":6585,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[30.1629965,-3.099996],"properties":{"NAME":"Karusi","NAMEASCII":"Karusi","POP_MAX":10705,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[29.9930046,-3.931002],"properties":{"NAME":"Rutana","NAMEASCII":"Rutana","POP_MAX":20893,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[30.2439966,-3.4810019],"properties":{"NAME":"Ruyigi","NAMEASCII":"Ruyigi","POP_MAX":38458,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[29.3667035,-3.083301],"properties":{"NAME":"Bubanza","NAMEASCII":"Bubanza","POP_MAX":12728,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[29.5667016,-2.8999979],"properties":{"NAME":"Kayanza","NAMEASCII":"Kayanza","POP_MAX":19443,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[29.7999996,-4.1333039],"properties":{"NAME":"Makamba","NAMEASCII":"Makamba","POP_MAX":19642,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[29.8250016,-2.9120039],"properties":{"NAME":"Ngozi","NAMEASCII":"Ngozi","POP_MAX":21506,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[30.0972222,-2.5847222],"properties":{"NAME":"Kirundo","NAMEASCII":"Kirundo","POP_MAX":6083,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[-4.9079965,10.9739971],"properties":{"NAME":"Orodara","NAMEASCII":"Orodara","POP_MAX":18632,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-4.0833333,12.1833333],"properties":{"NAME":"Solenzo","NAMEASCII":"Solenzo","POP_MAX":10385,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-3.8600005,12.7289971],"properties":{"NAME":"Nouna","NAMEASCII":"Nouna","POP_MAX":29048,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-3.4640004,12.455001],"properties":{"NAME":"Dédougou","NAMEASCII":"Dedougou","POP_MAX":45341,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.2332975,14.450004],"properties":{"NAME":"Gorom Gorom","NAMEASCII":"Gorom Gorom","POP_MAX":6691,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.6270014,14.099004],"properties":{"NAME":"Djibo","NAMEASCII":"Djibo","POP_MAX":22223,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-3.0699984,13.068999],"properties":{"NAME":"Tougan","NAMEASCII":"Tougan","POP_MAX":17590,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.3339975,12.063996],"properties":{"NAME":"Kombissiri","NAMEASCII":"Kombissiri","POP_MAX":30137,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.2930024,12.5769961],"properties":{"NAME":"Ziniaré","NAMEASCII":"Ziniare","POP_MAX":12703,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-2.2629955,12.9539971],"properties":{"NAME":"Yako","NAMEASCII":"Yako","POP_MAX":22904,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-2.4669445,12.3334921],"properties":{"NAME":"Réo","NAMEASCII":"Reo","POP_MAX":37535,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-2.0979985,11.094003],"properties":{"NAME":"Leo","NAMEASCII":"Leo","POP_MAX":26884,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.7736111,11.5544444],"properties":{"NAME":"Sapouy","NAMEASCII":"Sapouy","POP_MAX":3837,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.5689975,12.6569971],"properties":{"NAME":"Boulsa","NAMEASCII":"Boulsa","POP_MAX":17489,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.6110004,12.2429971],"properties":{"NAME":"Zorgo","NAMEASCII":"Zorgo","POP_MAX":23892,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.3560035,12.177],"properties":{"NAME":"Koupéla","NAMEASCII":"Koupela","POP_MAX":32052,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.1349985,11.169],"properties":{"NAME":"Pô","NAMEASCII":"Po","POP_MAX":17924,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.0649964,11.662002],"properties":{"NAME":"Manga","NAMEASCII":"Manga","POP_MAX":15173,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-3.2480004,10.9520011],"properties":{"NAME":"Diébougou","NAMEASCII":"Diebougou","POP_MAX":12732,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-3.1740024,10.3249981],"properties":{"NAME":"Gaoua","NAMEASCII":"Gaoua","POP_MAX":28023,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.1379965,12.969],"properties":{"NAME":"Bogandé","NAMEASCII":"Bogande","POP_MAX":9854,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.0279985,14.0339971],"properties":{"NAME":"Dori","NAMEASCII":"Dori","POP_MAX":37806,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[0.530443,13.4364122],"properties":{"NAME":"Sebba","NAMEASCII":"Sebba","POP_MAX":3273,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[1.7960046,12.0770011],"properties":{"NAME":"Diapaga","NAMEASCII":"Diapaga","POP_MAX":26013,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[97.6167006,16.8499981],"properties":{"NAME":"Pa-an","NAMEASCII":"Pa-an","POP_MAX":50000,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[93.6167046,22.6500031],"properties":{"NAME":"Hakha","NAMEASCII":"Hakha","POP_MAX":20000,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[97.0380006,20.7819991],"properties":{"NAME":"Taunggyi","NAMEASCII":"Taunggyi","POP_MAX":160115,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.9619966,21.879999],"properties":{"NAME":"Sagaing","NAMEASCII":"Sagaing","POP_MAX":78739,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[29.6119986,-3.260997],"properties":{"NAME":"Muramvya","NAMEASCII":"Muramvya","POP_MAX":18041,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[33.6359976,34.9170031],"properties":{"NAME":"Larnaka","NAMEASCII":"Larnaka","POP_MAX":48947,"ISO_A2":"CY","SOV_A3":"CYP"}},{"type":"Point","coordinates":[32.4224567,34.7559152],"properties":{"NAME":"Paphos","NAMEASCII":"Paphos","POP_MAX":35961,"ISO_A2":"CY","SOV_A3":"CYP"}},{"type":"Point","coordinates":[47.3166996,8.4332971],"properties":{"NAME":"Laascaanood","NAMEASCII":"Laascaanood","POP_MAX":60100,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[47.3333046,10.5832981],"properties":{"NAME":"Ceerigaabo","NAMEASCII":"Ceerigaabo","POP_MAX":180000,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[7.4120045,1.6450021],"properties":{"NAME":"Santo António","NAMEASCII":"Santo Antonio","POP_MAX":1156,"ISO_A2":"ST","SOV_A3":"STP"}},{"type":"Point","coordinates":[143.2337226,-9.109152],"properties":{"NAME":"Daru","NAMEASCII":"Daru","POP_MAX":15214,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[35.2062094,31.9029448],"properties":{"NAME":"Ramallah","NAMEASCII":"Ramallah","POP_MAX":24599,"ISO_A2":"PS","SOV_A3":"IS1"}},{"type":"Point","coordinates":[33.3330036,35.3259991],"properties":{"NAME":"Kyrenia","NAMEASCII":"Kyrenia","POP_MAX":26701,"ISO_A2":"-99","SOV_A3":"CYN"}},{"type":"Point","coordinates":[-68.5899985,9.657999],"properties":{"NAME":"San Carlos","NAMEASCII":"San Carlos","POP_MAX":77192,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-68.7459955,10.335996],"properties":{"NAME":"San Felipe","NAMEASCII":"San Felipe","POP_MAX":76766,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-67.3540016,9.900999],"properties":{"NAME":"San Juan De Los Morros","NAMEASCII":"San Juan De Los Morros","POP_MAX":87739,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-63.8833315,11.033334],"properties":{"NAME":"La Asunción","NAMEASCII":"La Asuncion","POP_MAX":35084,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[45.5740026,13.9789981],"properties":{"NAME":"Al Bayda","NAMEASCII":"Al Bayda","POP_MAX":37821,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[46.8000006,14.5500031],"properties":{"NAME":"'Ataq","NAMEASCII":"'Ataq","POP_MAX":37315,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[45.3339995,15.4209961],"properties":{"NAME":"Marib","NAMEASCII":"Marib","POP_MAX":16794,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[-86.5189976,16.329996],"properties":{"NAME":"Roatán","NAMEASCII":"Roatan","POP_MAX":7514,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-21.8623222,64.5695028],"properties":{"NAME":"Borgarnes","NAMEASCII":"Borgarnes","POP_MAX":1783,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-84.7758594,11.1893594],"properties":{"NAME":"San Carlos","NAMEASCII":"San Carlos","POP_MAX":13451,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-55.1999965,5.5999981],"properties":{"NAME":"Onverwacht","NAMEASCII":"Onverwacht","POP_MAX":2105,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-55.4810035,5.796999],"properties":{"NAME":"Groningen","NAMEASCII":"Groningen","POP_MAX":3216,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[69.0000037,39.750003],"properties":{"NAME":"Leninobod","NAMEASCII":"Leninobod","POP_MAX":11468,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[-60.6099955,-22.0300021],"properties":{"NAME":"Mariscal Estigarribia","NAMEASCII":"Mariscal Estigarribia","POP_MAX":2500,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.1400005,-25.3870019],"properties":{"NAME":"Caacupé","NAMEASCII":"Caacupe","POP_MAX":21696,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-86.1949975,11.8459981],"properties":{"NAME":"Jinotepe","NAMEASCII":"Jinotepe","POP_MAX":29507,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-86.0000036,13.091004],"properties":{"NAME":"Jinotega","NAMEASCII":"Jinotega","POP_MAX":51073,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-86.0949985,11.969001],"properties":{"NAME":"Masaya","NAMEASCII":"Masaya","POP_MAX":130113,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[40.1333045,29.9999971],"properties":{"NAME":"Sakakah","NAMEASCII":"Sakakah","POP_MAX":128332,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[29.8333333,9.2333333],"properties":{"NAME":"Bentiu","NAMEASCII":"Bentiu","POP_MAX":7653,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[-78.971963,9.5416864],"properties":{"NAME":"El Porvenir","NAMEASCII":"El Porvenir","POP_MAX":10,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[44.7830015,43.2330031],"properties":{"NAME":"Nazran","NAMEASCII":"Nazran","POP_MAX":93357,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[104.6999977,52.8329971],"properties":{"NAME":"Ust' Ordynskiy","NAMEASCII":"Ust' Ordynskiy","POP_MAX":14538,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[9.3503346,11.7991891],"properties":{"NAME":"Dutse","NAMEASCII":"Dutse","POP_MAX":17129,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[11.9660046,11.7489961],"properties":{"NAME":"Damaturu","NAMEASCII":"Damaturu","POP_MAX":255895,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[-77.9869976,-1.483002],"properties":{"NAME":"Puyo","NAMEASCII":"Puyo","POP_MAX":24881,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-84.1200025,9.991998],"properties":{"NAME":"Heredia","NAMEASCII":"Heredia","POP_MAX":21947,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-77.7320005,0.821997],"properties":{"NAME":"Tulcán","NAMEASCII":"Tulcan","POP_MAX":83000,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-72.4059986,5.3469991],"properties":{"NAME":"Yopal","NAMEASCII":"Yopal","POP_MAX":61029,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-6.5390115,62.2374783],"properties":{"NAME":"Klaksvík","NAMEASCII":"Klaksvik","POP_MAX":4664,"ISO_A2":"FO","SOV_A3":"DNK"}},{"type":"Point","coordinates":[16.3050035,9.3950011],"properties":{"NAME":"Laï","NAMEASCII":"Lai","POP_MAX":19382,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[8.2732192,49.9824725],"properties":{"NAME":"Mainz","NAMEASCII":"Mainz","POP_MAX":184997,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[14.0810046,50.6629982],"properties":{"NAME":"Usti Nad Labem","NAMEASCII":"Usti Nad Labem","POP_MAX":94105,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[15.8120015,50.2059962],"properties":{"NAME":"Hradec Králové","NAMEASCII":"Hradec Kralove","POP_MAX":95195,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[-12.7070005,22.6790011],"properties":{"NAME":"Fderik","NAMEASCII":"Fderik","POP_MAX":5760,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-13.9089956,17.057997],"properties":{"NAME":"Aleg","NAMEASCII":"Aleg","POP_MAX":8388,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-14.3909995,19.7469991],"properties":{"NAME":"Akjoujt","NAMEASCII":"Akjoujt","POP_MAX":370,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[43.0000026,36.8667001],"properties":{"NAME":"Duhok","NAMEASCII":"Dahuk","POP_MAX":986000,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[43.8750006,34.193997],"properties":{"NAME":"Samarra","NAMEASCII":"Samarra","POP_MAX":158508,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[38.4769986,7.0599961],"properties":{"NAME":"Awasa","NAMEASCII":"Awasa","POP_MAX":133097,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[35.5370045,8.148996],"properties":{"NAME":"Gore","NAMEASCII":"Gore","POP_MAX":9352,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[11.4166986,53.6333041],"properties":{"NAME":"Schwerin","NAMEASCII":"Schwerin","POP_MAX":96641,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[63.4989965,49.6260001],"properties":{"NAME":"Turgay","NAMEASCII":"Turgay","POP_MAX":5277,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.5940036,30.6590041],"properties":{"NAME":"Yasuj","NAMEASCII":"Yasuj","POP_MAX":96786,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[50.8539966,32.3209981],"properties":{"NAME":"Shahrekord","NAMEASCII":"Shar e Kord","POP_MAX":129153,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[51.1417356,43.6904551],"properties":{"NAME":"Mangyshlak","NAMEASCII":"Mangyshlak","POP_MAX":147443,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[73.8180006,15.491997],"properties":{"NAME":"Panaji","NAMEASCII":"Panaji","POP_MAX":65586,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[21.1799975,4.3200001],"properties":{"NAME":"Mobaye","NAMEASCII":"Mobaye","POP_MAX":19431,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[-89.0610025,17.1559981],"properties":{"NAME":"El Cayo","NAMEASCII":"El Cayo","POP_MAX":16977,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[-88.3880005,18.3979981],"properties":{"NAME":"Corozal","NAMEASCII":"Corozal","POP_MAX":8724,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[26.1520026,-24.377004],"properties":{"NAME":"Mochudi","NAMEASCII":"Mochudi","POP_MAX":39700,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[-81.6903266,12.5621371],"properties":{"NAME":"San Andrés","NAMEASCII":"San Andres","POP_MAX":58257,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[121.2988889,24.9575],"properties":{"NAME":"Bade","NAMEASCII":"Bade","POP_MAX":172065,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.2161111,24.9438889],"properties":{"NAME":"Pingzhen","NAMEASCII":"Pingzhen","POP_MAX":201632,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.3333333,23.45],"properties":{"NAME":"Taibao","NAMEASCII":"Taibao","POP_MAX":35000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.3111111,24.9888889],"properties":{"NAME":"Taoyuan","NAMEASCII":"Taoyuan","POP_MAX":500000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.15,24.9166667],"properties":{"NAME":"Yangmei","NAMEASCII":"Yangmei","POP_MAX":175000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.75,24.75],"properties":{"NAME":"Yilan","NAMEASCII":"Yilan","POP_MAX":150000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.0119444,24.8333333],"properties":{"NAME":"Zhubei","NAMEASCII":"Zhubei","POP_MAX":200000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[-56.4860201,-30.4159871],"properties":{"NAME":"Artigas","NAMEASCII":"Artigas","POP_MAX":41909,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-57.3199744,-30.7300248],"properties":{"NAME":"Baltasar Brum","NAMEASCII":"Baltasar Brum","POP_MAX":2517,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-55.7499669,-31.200022],"properties":{"NAME":"Tranqueras","NAMEASCII":"Tranqueras","POP_MAX":7474,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-55.9800045,-31.709965],"properties":{"NAME":"Tacuarembó","NAMEASCII":"Tacuarembo","POP_MAX":54277,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-56.5100497,-32.8100012],"properties":{"NAME":"Paso de los Toros","NAMEASCII":"Paso de los Toros","POP_MAX":13221,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-53.9499992,-32.9299939],"properties":{"NAME":"Vergara","NAMEASCII":"Vergara","POP_MAX":3998,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.3800247,-33.2300272],"properties":{"NAME":"Treinta y Tres","NAMEASCII":"Treinta y Tres","POP_MAX":27684,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-56.3999789,-34.4700032],"properties":{"NAME":"Santa Lucía","NAMEASCII":"Santa Lucia","POP_MAX":16438,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-55.1200053,-33.4700126],"properties":{"NAME":"José Batlle y Ordóñez","NAMEASCII":"Jose Batlle y Ordonez","POP_MAX":2438,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-55.2300245,-34.3700093],"properties":{"NAME":"Minas","NAMEASCII":"Minas","POP_MAX":41180,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.9599893,-34.9100281],"properties":{"NAME":"Maldonado","NAMEASCII":"Maldonado","POP_MAX":55478,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.9499899,-34.9699727],"properties":{"NAME":"Punta del Este","NAMEASCII":"Punta del Este","POP_MAX":159000,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.7500021,-34.1999939],"properties":{"NAME":"Aiguá","NAMEASCII":"Aigua","POP_MAX":2692,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.1699858,-34.669991],"properties":{"NAME":"La Paloma","NAMEASCII":"La Paloma","POP_MAX":3230,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-93.2680127,44.2904865],"properties":{"NAME":"Faribault","NAMEASCII":"Faribault","POP_MAX":25376,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.9991567,44.1636208],"properties":{"NAME":"Mankato","NAMEASCII":"Mankato","POP_MAX":56325,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.3687043,43.6477867],"properties":{"NAME":"Albert Lea","NAMEASCII":"Albert Lea","POP_MAX":20522,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.0433049,45.1218828],"properties":{"NAME":"Willmar","NAMEASCII":"Willmar","POP_MAX":18473,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.2008499,46.3580088],"properties":{"NAME":"Brainerd","NAMEASCII":"Brainerd","POP_MAX":28187,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.6077314,47.7737622],"properties":{"NAME":"Crookston","NAMEASCII":"Crookston","POP_MAX":8653,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.612486,45.731768],"properties":{"NAME":"Hardin","NAMEASCII":"Hardin","POP_MAX":4448,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.7104926,47.1085832],"properties":{"NAME":"Glendive","NAMEASCII":"Glendive","POP_MAX":5856,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.6839852,45.2156755],"properties":{"NAME":"Dillon","NAMEASCII":"Dillon","POP_MAX":4463,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.156686,47.6880052],"properties":{"NAME":"Polson","NAMEASCII":"Polson","POP_MAX":5326,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.8596869,48.112217],"properties":{"NAME":"Devils Lake","NAMEASCII":"Devils Lake","POP_MAX":7813,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-113.7918763,42.5358132],"properties":{"NAME":"Burley","NAMEASCII":"Burley","POP_MAX":14042,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-115.9268881,47.4742198],"properties":{"NAME":"Wallace","NAMEASCII":"Wallace","POP_MAX":1028,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.1360979,46.211377],"properties":{"NAME":"Kennewick","NAMEASCII":"Kennewick","POP_MAX":102504,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.9529708,46.7164107],"properties":{"NAME":"Centralia","NAMEASCII":"Centralia","POP_MAX":18880,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.17449497904157,33.53543115135483],"properties":{"NAME":"Glendale","NAMEASCII":"Glendale","POP_MAX":500000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.7068801,32.8338214],"properties":{"NAME":"Safford","NAMEASCII":"Safford","POP_MAX":10668,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.7566258,32.8793742],"properties":{"NAME":"Casa Grande","NAMEASCII":"Casa Grande","POP_MAX":44655,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.82096696450179,33.414795714987406],"properties":{"NAME":"Mesa","NAMEASCII":"Mesa","POP_MAX":1085394,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.3082789,34.4982935],"properties":{"NAME":"Lake Havasu City","NAMEASCII":"Lake Havasu City","POP_MAX":56133,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.271152,37.8739014],"properties":{"NAME":"Berkeley","NAMEASCII":"Berkeley","POP_MAX":496356,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.0980052,32.671945],"properties":{"NAME":"National City","NAMEASCII":"National City","POP_MAX":150000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.7994308,39.3077674],"properties":{"NAME":"Mendocino","NAMEASCII":"Mendocino","POP_MAX":548,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.6899823,35.6265967],"properties":{"NAME":"Paso Robles","NAMEASCII":"Paso Robles","POP_MAX":27157,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.3980386,33.941945],"properties":{"NAME":"Riverside","NAMEASCII":"Riverside","POP_MAX":297554,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.2430681,35.7619373],"properties":{"NAME":"Delano","NAMEASCII":"Delano","POP_MAX":44757,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.30321361997188,37.54055384225283],"properties":{"NAME":"San Mateo","NAMEASCII":"San Mateo","POP_MAX":626406,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.258052,38.1119489],"properties":{"NAME":"Vallejo","NAMEASCII":"Vallejo","POP_MAX":146289,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.3247,39.54659],"properties":{"NAME":"Glenwood Springs","NAMEASCII":"Glenwood Springs","POP_MAX":14004,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.808497,39.6958574],"properties":{"NAME":"Aurora","NAMEASCII":"Aurora","POP_MAX":587540,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.739974,40.4191982],"properties":{"NAME":"Greeley","NAMEASCII":"Greeley","POP_MAX":125410,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.2289791,38.0669904],"properties":{"NAME":"Tonopah","NAMEASCII":"Tonopah","POP_MAX":3261,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.7557848,32.2610915],"properties":{"NAME":"Deming","NAMEASCII":"Deming","POP_MAX":16298,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.2528956,33.1335964],"properties":{"NAME":"Truth or Consequences","NAMEASCII":"Truth or Consequences","POP_MAX":7121,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.2225027,35.5970119],"properties":{"NAME":"Las Vegas","NAMEASCII":"Las Vegas","POP_MAX":16998,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.1860944,36.7541506],"properties":{"NAME":"Farmington","NAMEASCII":"Farmington","POP_MAX":43278,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.9780339,44.0519481],"properties":{"NAME":"Springfield","NAMEASCII":"Springfield","POP_MAX":56032,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.8425031,45.4552474],"properties":{"NAME":"Tillamook","NAMEASCII":"Tillamook","POP_MAX":8145,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-116.9618895,44.0266266],"properties":{"NAME":"Ontario","NAMEASCII":"Ontario","POP_MAX":12187,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.0866012,45.3246869],"properties":{"NAME":"La Grande","NAMEASCII":"La Grande","POP_MAX":15004,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.0832984,38.772477],"properties":{"NAME":"Richfield","NAMEASCII":"Richfield","POP_MAX":7621,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.8354841,39.7102751],"properties":{"NAME":"Nephi","NAMEASCII":"Nephi","POP_MAX":5117,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.7325985,42.8330044],"properties":{"NAME":"Lander","NAMEASCII":"Lander","POP_MAX":6821,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.7584367,44.7586749],"properties":{"NAME":"Powell","NAMEASCII":"Powell","POP_MAX":6895,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.5028844,36.0570872],"properties":{"NAME":"Paragould","NAMEASCII":"Paragould","POP_MAX":23450,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.5299793,41.6610862],"properties":{"NAME":"Iowa City","NAMEASCII":"Iowa City","POP_MAX":98516,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.414809,41.0128829],"properties":{"NAME":"Ottumwa","NAMEASCII":"Ottumwa","POP_MAX":25982,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.1471745,43.1452851],"properties":{"NAME":"Spencer","NAMEASCII":"Spencer","POP_MAX":11203,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.1802568,42.5068227],"properties":{"NAME":"Ft. Dodge","NAMEASCII":"Ft. Dodge","POP_MAX":26879,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.9234908,38.0654918],"properties":{"NAME":"Hutchinson","NAMEASCII":"Hutchinson","POP_MAX":44477,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.6301464,39.1135805],"properties":{"NAME":"Kansas City","NAMEASCII":"Kansas City","POP_MAX":501577,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.2552299,38.9597524],"properties":{"NAME":"Lawrence","NAMEASCII":"Lawrence","POP_MAX":92726,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.8640865,37.975213],"properties":{"NAME":"Garden City","NAMEASCII":"Garden City","POP_MAX":28564,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.5924351,39.1940275],"properties":{"NAME":"Manhattan","NAMEASCII":"Manhattan","POP_MAX":56949,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-99.322191,38.8793697],"properties":{"NAME":"Hays","NAMEASCII":"Hays","POP_MAX":21394,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.7110374,39.3484884],"properties":{"NAME":"Goodland","NAMEASCII":"Goodland","POP_MAX":4378,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.4152812,39.0911139],"properties":{"NAME":"Independence","NAMEASCII":"Independence","POP_MAX":148102,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.5828091,40.1936823],"properties":{"NAME":"Kirksville","NAMEASCII":"Kirksville","POP_MAX":19193,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-99.0811463,40.7007056],"properties":{"NAME":"Kearney","NAMEASCII":"Kearney","POP_MAX":31553,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.3579863,40.9222683],"properties":{"NAME":"Grand Island","NAMEASCII":"Grand Island","POP_MAX":45651,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.8701915,42.1013953],"properties":{"NAME":"Alliance","NAMEASCII":"Alliance","POP_MAX":8344,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.9805862,36.7472001],"properties":{"NAME":"Bartlesville","NAMEASCII":"Bartlesville","POP_MAX":34610,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.8780931,36.395542],"properties":{"NAME":"Enid","NAMEASCII":"Enid","POP_MAX":46138,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.1294049,34.1810777],"properties":{"NAME":"Ardmore","NAMEASCII":"Ardmore","POP_MAX":24960,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.765974,34.9329956],"properties":{"NAME":"McAlester","NAMEASCII":"McAlester","POP_MAX":21668,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.0682976,36.1353512],"properties":{"NAME":"Stillwater","NAMEASCII":"Stillwater","POP_MAX":47667,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.7657699,44.3508445],"properties":{"NAME":"Lead","NAMEASCII":"Lead","POP_MAX":2874,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.7810938,30.2749595],"properties":{"NAME":"Slidell","NAMEASCII":"Slidell","POP_MAX":84239,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.217189,30.2263837],"properties":{"NAME":"Lake Charles","NAMEASCII":"Lake Charles","POP_MAX":83821,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.1527765,29.9838662],"properties":{"NAME":"Metairie","NAMEASCII":"Metairie","POP_MAX":394206,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.8183079,30.0035807],"properties":{"NAME":"New Iberia","NAMEASCII":"New Iberia","POP_MAX":37540,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.3696839,30.6741858],"properties":{"NAME":"Bryan","NAMEASCII":"Bryan","POP_MAX":146692,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.9411125,29.8830713],"properties":{"NAME":"San Marcos","NAMEASCII":"San Marcos","POP_MAX":70371,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.7402743,32.5005343],"properties":{"NAME":"Longview","NAMEASCII":"Longview","POP_MAX":75920,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.2297254,26.2030375],"properties":{"NAME":"McAllen","NAMEASCII":"McAllen","POP_MAX":364004,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.6901976,26.1975598],"properties":{"NAME":"Harlingen","NAMEASCII":"Harlingen","POP_MAX":110339,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.0704845,27.7504625],"properties":{"NAME":"Alice","NAMEASCII":"Alice","POP_MAX":22655,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.1263208,29.6978113],"properties":{"NAME":"New Braunfels","NAMEASCII":"New Braunfels","POP_MAX":45840,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.3924897,32.3515253],"properties":{"NAME":"Cleburne","NAMEASCII":"Cleburne","POP_MAX":35545,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.9823151,31.7078953],"properties":{"NAME":"Brownwood","NAMEASCII":"Brownwood","POP_MAX":20988,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.6650009,30.3607166],"properties":{"NAME":"Alpine","NAMEASCII":"Alpine","POP_MAX":6587,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.8322423,31.0424837],"properties":{"NAME":"Van Horn","NAMEASCII":"Van Horn","POP_MAX":2175,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.4751862,32.2431856],"properties":{"NAME":"Big Spring","NAMEASCII":"Big Spring","POP_MAX":24122,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-99.2903842,34.1510537],"properties":{"NAME":"Vernon","NAMEASCII":"Vernon","POP_MAX":11660,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.2139195,34.4248871],"properties":{"NAME":"Childress","NAMEASCII":"Childress","POP_MAX":6557,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.3985924,34.8219171],"properties":{"NAME":"Hereford","NAMEASCII":"Hereford","POP_MAX":15675,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.5186109,36.0608079],"properties":{"NAME":"Dalhart","NAMEASCII":"Dalhart","POP_MAX":7088,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.9627672,29.4108779],"properties":{"NAME":"Texas City","NAMEASCII":"Texas City","POP_MAX":69914,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.147743,29.6608626],"properties":{"NAME":"Pasadena","NAMEASCII":"Pasadena","POP_MAX":628492,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.9677281,29.7558439],"properties":{"NAME":"Baytown","NAMEASCII":"Baytown","POP_MAX":86034,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.0202385,32.6847608],"properties":{"NAME":"Arlington","NAMEASCII":"Arlington","POP_MAX":724777,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-70.7399821,7.2399831],"properties":{"NAME":"Guasdualito","NAMEASCII":"Guasdualito","POP_MAX":30860,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-70.250012,8.5999776],"properties":{"NAME":"Barinas","NAMEASCII":"Barinas","POP_MAX":284289,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-70.6200153,9.3199595],"properties":{"NAME":"Valera","NAMEASCII":"Valera","POP_MAX":191167,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-71.4499905,10.4299951],"properties":{"NAME":"Cabimas","NAMEASCII":"Cabimas","POP_MAX":441094,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-70.0799966,10.1899839],"properties":{"NAME":"Carora","NAMEASCII":"Carora","POP_MAX":149711,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-69.7500167,9.049976],"properties":{"NAME":"Guanare","NAMEASCII":"Guanare","POP_MAX":151642,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-72.1000283,41.3555235],"properties":{"NAME":"New London","NAMEASCII":"New London","POP_MAX":96178,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.5391911,41.0533456],"properties":{"NAME":"Stamford","NAMEASCII":"Stamford","POP_MAX":746920,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.050022,41.5500078],"properties":{"NAME":"Waterbury","NAMEASCII":"Waterbury","POP_MAX":174236,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-70.9446983,41.6561253],"properties":{"NAME":"New Bedford","NAMEASCII":"New Bedford","POP_MAX":136082,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-72.579999,42.1200246],"properties":{"NAME":"Springfield","NAMEASCII":"Springfield","POP_MAX":421780,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-70.8830917,42.5224989],"properties":{"NAME":"Salem","NAMEASCII":"Salem","POP_MAX":335509,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.2598283,42.4481958],"properties":{"NAME":"Pittsfield","NAMEASCII":"Pittsfield","POP_MAX":46230,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-72.5758132,44.2599715],"properties":{"NAME":"Montpelier","NAMEASCII":"Montpelier","POP_MAX":8538,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.4808395,32.6097007],"properties":{"NAME":"Auburn","NAMEASCII":"Auburn","POP_MAX":73929,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.6772429,34.7996963],"properties":{"NAME":"Florence","NAMEASCII":"Florence","POP_MAX":45349,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.7330062,28.0219188],"properties":{"NAME":"Winter Haven","NAMEASCII":"Winter Haven","POP_MAX":108932,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.6083204,28.0833104],"properties":{"NAME":"Melbourne","NAMEASCII":"Melbourne","POP_MAX":265414,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.4777857,25.468302],"properties":{"NAME":"Homestead","NAMEASCII":"Homestead","POP_MAX":85967,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.2799848,28.7899597],"properties":{"NAME":"Sanford","NAMEASCII":"Sanford","POP_MAX":333460,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.1317811,25.8099195],"properties":{"NAME":"Miami Beach","NAMEASCII":"Miami Beach","POP_MAX":407750,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.2708216,26.270837],"properties":{"NAME":"Coral Springs","NAMEASCII":"Coral Springs","POP_MAX":250000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.1056967,27.0000432],"properties":{"NAME":"Port Charlotte","NAMEASCII":"Port Charlotte","POP_MAX":64279,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.547711,28.4789451],"properties":{"NAME":"Spring Hill","NAMEASCII":"Spring Hill","POP_MAX":114697,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.2232957,29.5380019],"properties":{"NAME":"Palm Coast","NAMEASCII":"Palm Coast","POP_MAX":48577,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.6513058,29.6476852],"properties":{"NAME":"Palatka","NAMEASCII":"Palatka","POP_MAX":21452,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.883333,28.8105011],"properties":{"NAME":"Leesburg","NAMEASCII":"Leesburg","POP_MAX":49574,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.6397467,30.1897193],"properties":{"NAME":"Lake City","NAMEASCII":"Lake City","POP_MAX":29395,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.5726075,30.7542068],"properties":{"NAME":"Crestview","NAMEASCII":"Crestview","POP_MAX":22403,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.6552733,30.15861],"properties":{"NAME":"Panama City","NAMEASCII":"Panama City","POP_MAX":100072,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.9703022,34.7697239],"properties":{"NAME":"Dalton","NAMEASCII":"Dalton","POP_MAX":58557,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.5432481,33.9556134],"properties":{"NAME":"Marietta","NAMEASCII":"Marietta","POP_MAX":61360,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.3549063,31.213817],"properties":{"NAME":"Waycross","NAMEASCII":"Waycross","POP_MAX":19824,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.0318746,33.0364706],"properties":{"NAME":"La Grange","NAMEASCII":"La Grange","POP_MAX":31776,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.0034575,34.9689107],"properties":{"NAME":"Southaven","NAMEASCII":"Southaven","POP_MAX":121268,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.7036143,32.364186],"properties":{"NAME":"Meridian","NAMEASCII":"Meridian","POP_MAX":42290,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.1392725,31.6973792],"properties":{"NAME":"Laurel","NAMEASCII":"Laurel","POP_MAX":28841,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.9322706,34.9494287],"properties":{"NAME":"Spartanburg","NAMEASCII":"Spartanburg","POP_MAX":124126,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.8622325,33.4968042],"properties":{"NAME":"Orangeburg","NAMEASCII":"Orangeburg","POP_MAX":35472,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.3710836,40.9477706],"properties":{"NAME":"Galesburg","NAMEASCII":"Galesburg","POP_MAX":32094,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.106674,41.5299831],"properties":{"NAME":"Joliet","NAMEASCII":"Joliet","POP_MAX":578460,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.5180866,37.3058224],"properties":{"NAME":"Cape Girardeau","NAMEASCII":"Cape Girardeau","POP_MAX":40427,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.0696902,42.2697054],"properties":{"NAME":"Rockford","NAMEASCII":"Rockford","POP_MAX":255978,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.6999547,42.0483494],"properties":{"NAME":"Evanston","NAMEASCII":"Evanston","POP_MAX":350000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.5346137,41.4933962],"properties":{"NAME":"Rock Island","NAMEASCII":"Rock Island","POP_MAX":165728,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.2899187,42.0394611],"properties":{"NAME":"Elgin","NAMEASCII":"Elgin","POP_MAX":389514,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.8902812,39.8288983],"properties":{"NAME":"Richmond","NAMEASCII":"Richmond","POP_MAX":44400,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.4138739,39.4666465],"properties":{"NAME":"Terre Haute","NAMEASCII":"Terre Haute","POP_MAX":73236,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.8782477,40.4172087],"properties":{"NAME":"Lafayette","NAMEASCII":"Lafayette","POP_MAX":133977,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.6591748,40.558337],"properties":{"NAME":"Marion","NAMEASCII":"Marion","POP_MAX":38297,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.2500173,41.6833071],"properties":{"NAME":"South Bend","NAMEASCII":"South Bend","POP_MAX":239822,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.8212838,38.3108773],"properties":{"NAME":"New Albany","NAMEASCII":"New Albany","POP_MAX":120625,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.9687942,41.6829454],"properties":{"NAME":"Elkhart","NAMEASCII":"Elkhart","POP_MAX":149190,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.4886239,36.8654875],"properties":{"NAME":"Hopkinsville","NAMEASCII":"Hopkinsville","POP_MAX":35604,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.0833537,37.1288823],"properties":{"NAME":"London","NAMEASCII":"London","POP_MAX":7844,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.5022148,37.3327458],"properties":{"NAME":"Madisonville","NAMEASCII":"Madisonville","POP_MAX":22294,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.7907662,35.9379989],"properties":{"NAME":"Rocky Mount","NAMEASCII":"Rocky Mount","POP_MAX":58361,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.4744784,35.67078],"properties":{"NAME":"Salisbury","NAMEASCII":"Salisbury","POP_MAX":41352,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.9199996,35.9999589],"properties":{"NAME":"Durham","NAMEASCII":"Durham","POP_MAX":309495,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.0119062,34.6272003],"properties":{"NAME":"Lumberton","NAMEASCII":"Lumberton","POP_MAX":32785,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.013325,39.9402869],"properties":{"NAME":"Zanesville","NAMEASCII":"Zanesville","POP_MAX":40052,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.5155424,40.7583248],"properties":{"NAME":"Mansfield","NAMEASCII":"Mansfield","POP_MAX":77768,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.6513904,41.3747471],"properties":{"NAME":"Bowling Green","NAMEASCII":"Bowling Green","POP_MAX":37080,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.799986,39.9200039],"properties":{"NAME":"Springfield","NAMEASCII":"Springfield","POP_MAX":84576,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.6053044,39.7192151],"properties":{"NAME":"Lancaster","NAMEASCII":"Lancaster","POP_MAX":48829,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.3536143,36.3133248],"properties":{"NAME":"Johnson City","NAMEASCII":"Johnson City","POP_MAX":77538,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.5619479,36.5483234],"properties":{"NAME":"Kingsport","NAMEASCII":"Kingsport","POP_MAX":57467,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.0352666,35.6149953],"properties":{"NAME":"Columbia","NAMEASCII":"Columbia","POP_MAX":116091,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.8410901,35.2229004],"properties":{"NAME":"Barlett","NAMEASCII":"Barlett","POP_MAX":286423,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.4141978,37.2294188],"properties":{"NAME":"Blacksburg","NAMEASCII":"Blacksburg","POP_MAX":67508,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.8691759,38.4494218],"properties":{"NAME":"Harrisonburg","NAMEASCII":"Harrisonburg","POP_MAX":42538,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.402237,37.2277651],"properties":{"NAME":"Petersburg","NAMEASCII":"Petersburg","POP_MAX":118577,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.3499498,37.0300252],"properties":{"NAME":"Hampton","NAMEASCII":"Hampton","POP_MAX":366766,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.7144241,43.7508295],"properties":{"NAME":"Sheboygan","NAMEASCII":"Sheboygan","POP_MAX":53705,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.2313693,43.0116498],"properties":{"NAME":"Waukesha","NAMEASCII":"Waukesha","POP_MAX":249912,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.2394285,43.801369],"properties":{"NAME":"La Crosse","NAMEASCII":"La Crosse","POP_MAX":87381,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.4983533,44.8113591],"properties":{"NAME":"Eau Claire","NAMEASCII":"Eau Claire","POP_MAX":79740,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.5038921,43.9850529],"properties":{"NAME":"Tomah","NAMEASCII":"Tomah","POP_MAX":12997,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.0215794,42.682626],"properties":{"NAME":"Janesville","NAMEASCII":"Janesville","POP_MAX":69278,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.4005062,44.268679],"properties":{"NAME":"Appleton","NAMEASCII":"Appleton","POP_MAX":203665,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.5616472,39.2666588],"properties":{"NAME":"Parkersburg","NAMEASCII":"Parkersburg","POP_MAX":61935,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.3034811,37.7938804],"properties":{"NAME":"White Sulphur Springs","NAMEASCII":"White Sulphur Springs","POP_MAX":2407,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.3369157,39.2832727],"properties":{"NAME":"Clarksburg","NAMEASCII":"Clarksburg","POP_MAX":28773,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.524703,39.1580866],"properties":{"NAME":"Dover","NAMEASCII":"Dover","POP_MAX":76039,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.9389319,38.6030558],"properties":{"NAME":"St. Charles","NAMEASCII":"St. Charles","POP_MAX":69208,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.4924992,38.9783301],"properties":{"NAME":"Annapolis","NAMEASCII":"Annapolis","POP_MAX":81300,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.7202796,39.6416488],"properties":{"NAME":"Hagerstown","NAMEASCII":"Hagerstown","POP_MAX":79662,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-74.1700053,40.9199945],"properties":{"NAME":"Paterson","NAMEASCII":"Paterson","POP_MAX":151205,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.7850159,43.0829633],"properties":{"NAME":"Saratoga Springs","NAMEASCII":"Saratoga Springs","POP_MAX":55793,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.9214159,41.7002311],"properties":{"NAME":"Poughkeepsie","NAMEASCII":"Poughkeepsie","POP_MAX":170996,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.4579816,44.6949837],"properties":{"NAME":"Plattsburgh","NAMEASCII":"Plattsburgh","POP_MAX":29238,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.3194233,40.7519428],"properties":{"NAME":"Beaver Falls","NAMEASCII":"Beaver Falls","POP_MAX":120125,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.3949671,40.5185978],"properties":{"NAME":"Altoona","NAMEASCII":"Altoona","POP_MAX":78607,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.0013829,41.241086],"properties":{"NAME":"Williamsport","NAMEASCII":"Williamsport","POP_MAX":56877,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.3057664,40.0377745],"properties":{"NAME":"Lancaster","NAMEASCII":"Lancaster","POP_MAX":209489,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.5000275,40.5999882],"properties":{"NAME":"Allentown","NAMEASCII":"Allentown","POP_MAX":496442,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-64.6800161,10.1699593],"properties":{"NAME":"Puerto la Cruz","NAMEASCII":"Puerto la Cruz","POP_MAX":546616,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-64.4600037,9.4400039],"properties":{"NAME":"Anaco","NAMEASCII":"Anaco","POP_MAX":117596,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-67.0200283,10.4199699],"properties":{"NAME":"Los Teques","NAMEASCII":"Los Teques","POP_MAX":303470,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-66.019986,9.2099921],"properties":{"NAME":"Valle de la Pascua","NAMEASCII":"Valle de la Pascua","POP_MAX":89080,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-66.7799913,10.1199882],"properties":{"NAME":"Ocumare del Tuy","NAMEASCII":"Ocumare del Tuy","POP_MAX":166072,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-63.2300013,10.6700063],"properties":{"NAME":"Carúpano","NAMEASCII":"Carupano","POP_MAX":126293,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-61.4593768,10.2804617],"properties":{"NAME":"San Fernando","NAMEASCII":"San Fernando","POP_MAX":166039,"ISO_A2":"TT","SOV_A3":"TTO"}},{"type":"Point","coordinates":[-55.1699506,5.0200153],"properties":{"NAME":"Brownsweg","NAMEASCII":"Brownsweg","POP_MAX":4582,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-54.409997,5.6300039],"properties":{"NAME":"Moengo","NAMEASCII":"Moengo","POP_MAX":7766,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-55.0700084,5.9099868],"properties":{"NAME":"Nieuw Amsterdam","NAMEASCII":"Nieuw Amsterdam","POP_MAX":4935,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-69.6457854,44.5518917],"properties":{"NAME":"Waterville","NAMEASCII":"Waterville","POP_MAX":25152,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-67.242392,45.1659886],"properties":{"NAME":"Calais","NAMEASCII":"Calais","POP_MAX":3306,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-67.8397199,46.1255166],"properties":{"NAME":"Houlton","NAMEASCII":"Houlton","POP_MAX":6703,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.4541909,42.1166398],"properties":{"NAME":"Benton Harbor","NAMEASCII":"Benton Harbor","POP_MAX":58382,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.1797467,42.3210976],"properties":{"NAME":"Battle Creek","NAMEASCII":"Battle Creek","POP_MAX":70820,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.8888953,43.5944566],"properties":{"NAME":"Bay City","NAMEASCII":"Bay City","POP_MAX":68549,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.4326958,45.0616022],"properties":{"NAME":"Alpena","NAMEASCII":"Alpena","POP_MAX":18330,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.0640927,45.8224601],"properties":{"NAME":"Iron Mountain","NAMEASCII":"Iron Mountain","POP_MAX":16183,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.1593911,46.4558065],"properties":{"NAME":"Ironwood","NAMEASCII":"Ironwood","POP_MAX":7064,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-4.8833301,36.5166199],"properties":{"NAME":"Marbella","NAMEASCII":"Marbella","POP_MAX":186131,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-3.6333547,38.0833201],"properties":{"NAME":"Linares","NAMEASCII":"Linares","POP_MAX":59761,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-5.452659839737986,36.131881591291716],"properties":{"NAME":"Algeciras","NAMEASCII":"Algeciras","POP_MAX":111027,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-5.5700066,42.5799707],"properties":{"NAME":"León","NAMEASCII":"Leon","POP_MAX":136227,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[2.4500207,41.5399567],"properties":{"NAME":"Mataró","NAMEASCII":"Mataro","POP_MAX":183293,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[35.779976,35.539987],"properties":{"NAME":"Latakia","NAMEASCII":"Al Ladhiqiyah","POP_MAX":539147,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[38.5480757,35.8366614],"properties":{"NAME":"Madinat ath Thawrah","NAMEASCII":"Madinat ath Thawrah","POP_MAX":87880,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[37.0440848,36.588786],"properties":{"NAME":"Izaz","NAMEASCII":"Izaz","POP_MAX":31534,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[37.9563289,36.5266451],"properties":{"NAME":"Manbij","NAMEASCII":"Manbij","POP_MAX":120169,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[36.6316552,35.9297048],"properties":{"NAME":"Idlib","NAMEASCII":"Idlib","POP_MAX":128840,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[41.2299792,37.0300252],"properties":{"NAME":"Al Qamishli","NAMEASCII":"Al Qamishli","POP_MAX":104107,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[40.7500085,36.4832886],"properties":{"NAME":"Al Hasakah","NAMEASCII":"Al Hasakah","POP_MAX":128100,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[36.3999898,33.5833364],"properties":{"NAME":"Douma","NAMEASCII":"Douma","POP_MAX":496145,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[44.3874609,14.5574693],"properties":{"NAME":"Dhamar","NAMEASCII":"Dhamar","POP_MAX":191259,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[44.170885,13.9758511],"properties":{"NAME":"Ibb","NAMEASCII":"Ibb","POP_MAX":234837,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[9.5000297,46.8500202],"properties":{"NAME":"Chur","NAMEASCII":"Chur","POP_MAX":38293,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[-160.4971908,55.3397087],"properties":{"NAME":"Sand Point","NAMEASCII":"Sand Point","POP_MAX":667,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-132.8006385,55.2139799],"properties":{"NAME":"Hydaburg","NAMEASCII":"Hydaburg","POP_MAX":382,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-166.1899372,60.3886467],"properties":{"NAME":"Mekoryuk","NAMEASCII":"Mekoryuk","POP_MAX":99,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-157.395778,70.4693795],"properties":{"NAME":"Atqasuk","NAMEASCII":"Atqasuk","POP_MAX":201,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-158.6268915,56.9490936],"properties":{"NAME":"Port Heiden","NAMEASCII":"Port Heiden","POP_MAX":102,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-159.1511489,55.9186139],"properties":{"NAME":"Perryville","NAMEASCII":"Perryville","POP_MAX":113,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-158.4803121,59.0565603],"properties":{"NAME":"Dillingham","NAMEASCII":"Dillingham","POP_MAX":2488,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-161.5871302,59.1209927],"properties":{"NAME":"Goodnews Bay","NAMEASCII":"Goodnews Bay","POP_MAX":230,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-159.9404806,61.0041433],"properties":{"NAME":"Nyac","NAMEASCII":"Nyac","POP_MAX":100,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-165.2557892,60.5854867],"properties":{"NAME":"Tununak","NAMEASCII":"Tununak","POP_MAX":352,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-163.729009,62.0855243],"properties":{"NAME":"Mountain Village","NAMEASCII":"Mountain Village","POP_MAX":755,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-164.5229916,62.7769808],"properties":{"NAME":"Emmonak","NAMEASCII":"Emmonak","POP_MAX":100,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-158.7218986,64.3271963],"properties":{"NAME":"Kaltag","NAMEASCII":"Kaltag","POP_MAX":190,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-166.3607864,65.2635991],"properties":{"NAME":"Teller","NAMEASCII":"Teller","POP_MAX":83,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-157.7008499,64.8802891],"properties":{"NAME":"Koyukuk","NAMEASCII":"Koyukuk","POP_MAX":101,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-156.8809774,66.9072455],"properties":{"NAME":"Kobuk","NAMEASCII":"Kobuk","POP_MAX":151,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-160.0093911,66.603879],"properties":{"NAME":"Selawik","NAMEASCII":"Selawik","POP_MAX":832,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-150.1094269,62.3237785],"properties":{"NAME":"Talkeetna","NAMEASCII":"Talkeetna","POP_MAX":1078,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-148.6776797,60.7841567],"properties":{"NAME":"Whittier","NAMEASCII":"Whittier","POP_MAX":177,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-150.0727625,62.0796849],"properties":{"NAME":"Montana","NAMEASCII":"Montana","POP_MAX":10,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-152.3121865,63.8828306],"properties":{"NAME":"Lake Minchumina","NAMEASCII":"Lake Minchumina","POP_MAX":32,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-148.9507896,63.3915945],"properties":{"NAME":"Cantwell","NAMEASCII":"Cantwell","POP_MAX":222,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-145.3821961,62.2713528],"properties":{"NAME":"Gulkana","NAMEASCII":"Gulkana","POP_MAX":119,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-141.1999966,64.787995],"properties":{"NAME":"Eagle","NAMEASCII":"Eagle","POP_MAX":104,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-149.0930032,64.5637968],"properties":{"NAME":"Nenana","NAMEASCII":"Nenana","POP_MAX":75,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-145.8421938,64.1525299],"properties":{"NAME":"Big Delta","NAMEASCII":"Big Delta","POP_MAX":591,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-152.6454995,66.5654834],"properties":{"NAME":"Allakaket","NAMEASCII":"Allakaket","POP_MAX":97,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-152.0787899,65.1718734],"properties":{"NAME":"Tanana","NAMEASCII":"Tanana","POP_MAX":308,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[15.4166711,60.4833224],"properties":{"NAME":"Borlänge","NAMEASCII":"Borlange","POP_MAX":39422,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[16.5576798129634,59.60908375716462],"properties":{"NAME":"Västerås","NAMEASCII":"Vasteraas","POP_MAX":107194,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[31.984342,46.9677391],"properties":{"NAME":"Mykolayiv","NAMEASCII":"Mykolayiv","POP_MAX":510840,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[31.3015413,51.5049298],"properties":{"NAME":"Chernihiv","NAMEASCII":"Chernihiv","POP_MAX":307684,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[27.0015454,49.4249276],"properties":{"NAME":"Khmelnytskyy","NAMEASCII":"Khmelnytskyy","POP_MAX":398346,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[26.5808992,48.684301],"properties":{"NAME":"Kamyanets-Podilskyy","NAMEASCII":"Kamyanets-Podilskyy","POP_MAX":114658,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[23.4993819,49.344364],"properties":{"NAME":"Drohobych","NAMEASCII":"Drohobych","POP_MAX":124269,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[22.2500008,48.629989],"properties":{"NAME":"Uzhgorod","NAMEASCII":"Uzhgorod","POP_MAX":150832,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[30.2109102,48.7542967],"properties":{"NAME":"Uman","NAMEASCII":"Uman","POP_MAX":87658,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[30.7809012,50.4943197],"properties":{"NAME":"Brovary","NAMEASCII":"Brovary","POP_MAX":88506,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[30.1309151,49.7743119],"properties":{"NAME":"Bila Tserkva","NAMEASCII":"Bila Tserkva","POP_MAX":199163,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[30.666593,46.3000021],"properties":{"NAME":"Illichivsk","NAMEASCII":"Illichivsk","POP_MAX":54102,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[33.2090218,51.2423877],"properties":{"NAME":"Konotop","NAMEASCII":"Konotop","POP_MAX":103547,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[33.3449825,47.9283264],"properties":{"NAME":"Kryvyy Rih","NAMEASCII":"Kryvyy Rih","POP_MAX":652380,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[37.9746224,48.0296639],"properties":{"NAME":"Makiyivka","NAMEASCII":"Makiyivka","POP_MAX":376610,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[38.0546691,48.2996474],"properties":{"NAME":"Horlivka","NAMEASCII":"Horlivka","POP_MAX":396885,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[37.5343908,48.7193634],"properties":{"NAME":"Kramatorsk","NAMEASCII":"Kramatorsk","POP_MAX":184105,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[36.7868396,46.7568217],"properties":{"NAME":"Berdyansk","NAMEASCII":"Berdyansk","POP_MAX":118284,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[49.6091577,14.7593174],"properties":{"NAME":"Ash Shihr","NAMEASCII":"Ash Shihr","POP_MAX":54274,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[55.5533427,25.5652728],"properties":{"NAME":"Umm al Qaywayn","NAMEASCII":"Umm al Qaywayn","POP_MAX":44411,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[55.4064782,25.3713829],"properties":{"NAME":"Sharjah","NAMEASCII":"Sharjah","POP_MAX":1103027,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[56.2777946,38.9755396],"properties":{"NAME":"Serdar","NAMEASCII":"Serdar","POP_MAX":48458,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[53.1225912,39.4361549],"properties":{"NAME":"Celeken","NAMEASCII":"Celeken","POP_MAX":1206,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[60.4960384,37.3786086],"properties":{"NAME":"Tejen","NAMEASCII":"Tejen","POP_MAX":67294,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[58.210028,38.0516683],"properties":{"NAME":"Buzmeyin","NAMEASCII":"Buzmeyin","POP_MAX":40813,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[59.1666621,42.3166535],"properties":{"NAME":"Koneurgench","NAMEASCII":"Koneurgench","POP_MAX":31400,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[59.4516577,42.4047101],"properties":{"NAME":"Khujayli","NAMEASCII":"Khujayli","POP_MAX":60401,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[67.2606901,39.4007074],"properties":{"NAME":"Urgut","NAMEASCII":"Urgut","POP_MAX":99675,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[66.2607511,39.9007027],"properties":{"NAME":"Kattaqorgon","NAMEASCII":"Kattaqorgon","POP_MAX":247113,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[67.8871635,38.2771584],"properties":{"NAME":"Denow","NAMEASCII":"Denow","POP_MAX":217274,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[68.7713472,37.8373145],"properties":{"NAME":"Qurghonteppa","NAMEASCII":"Qurghonteppa","POP_MAX":311574,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[70.4271635,40.2921517],"properties":{"NAME":"Konibodom","NAMEASCII":"Konibodom","POP_MAX":259876,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[68.7907259,40.495731],"properties":{"NAME":"Guliston","NAMEASCII":"Guliston","POP_MAX":95520,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[69.6807491,41.5507312],"properties":{"NAME":"Iskandar","NAMEASCII":"Iskandar","POP_MAX":195633,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[69.5599812,41.4549748],"properties":{"NAME":"Chirchiq","NAMEASCII":"Chirchiq","POP_MAX":167842,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[-87.4899675,13.5299868],"properties":{"NAME":"Nacaome","NAMEASCII":"Nacaome","POP_MAX":47000,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-88.7799921,14.7699886],"properties":{"NAME":"Santa Rosa de Copán","NAMEASCII":"Santa Rosa de Copan","POP_MAX":35529,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-57.1699836,5.9000391],"properties":{"NAME":"Corriverton","NAMEASCII":"Corriverton","POP_MAX":12000,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-58.2499952,5.4300161],"properties":{"NAME":"Ituni","NAMEASCII":"Ituni","POP_MAX":100,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-59.8000297,3.3899597],"properties":{"NAME":"Lethem","NAMEASCII":"Lethem","POP_MAX":352,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-5.6700004,43.5300161],"properties":{"NAME":"Gijón","NAMEASCII":"Gijon","POP_MAX":335972,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-2.6699768,42.8499801],"properties":{"NAME":"Vitoria","NAMEASCII":"Vitoria","POP_MAX":224578,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[12.4533865,41.9032822],"properties":{"NAME":"Vatican City","NAMEASCII":"Vatican City","POP_MAX":832,"ISO_A2":"VA","SOV_A3":"VAT"}},{"type":"Point","coordinates":[-4.7500308,55.93329],"properties":{"NAME":"Greenock","NAMEASCII":"Greenock","POP_MAX":74635,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.379881564518565,54.903407084625925],"properties":{"NAME":"Sunderland","NAMEASCII":"Sunderland","POP_MAX":452934,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.3999768,50.9000314],"properties":{"NAME":"Southampton","NAMEASCII":"Southampton","POP_MAX":384417,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.5833155,51.4499978],"properties":{"NAME":"Bristol","NAMEASCII":"Bristol","POP_MAX":553528,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.9000497,50.7299901],"properties":{"NAME":"Bournemouth","NAMEASCII":"Bournemouth","POP_MAX":426945,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-7.3000043,54.6000122],"properties":{"NAME":"Omagh","NAMEASCII":"Omagh","POP_MAX":21056,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.902964575974897,53.18632509137432],"properties":{"NAME":"Chester","NAMEASCII":"Chester","POP_MAX":89531,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.9500021,51.6299868],"properties":{"NAME":"Swansea","NAMEASCII":"Swansea","POP_MAX":294339,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.9299868,54.8799951],"properties":{"NAME":"Carlisle","NAMEASCII":"Carlisle","POP_MAX":72633,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[27.8500207,37.8499752],"properties":{"NAME":"Aydın","NAMEASCII":"Aydin","POP_MAX":198857,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[27.3552189,41.4066573],"properties":{"NAME":"Lüleburgaz","NAMEASCII":"Luleburgaz","POP_MAX":90899,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[30.5299605,37.7699801],"properties":{"NAME":"Isparta","NAMEASCII":"Isparta","POP_MAX":172334,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[29.9299971,39.4200086],"properties":{"NAME":"Kütahya","NAMEASCII":"Kutahya","POP_MAX":185008,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[28.3638912,37.2163705],"properties":{"NAME":"Muğla","NAMEASCII":"Mugla","POP_MAX":48183,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[39.2299979,38.6799762],"properties":{"NAME":"Elâzığ","NAMEASCII":"Elazig","POP_MAX":271492,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[36.9450211,37.6099898],"properties":{"NAME":"Kahramanmaraş","NAMEASCII":"Kahramanmaras","POP_MAX":376045,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.6199951,36.7999876],"properties":{"NAME":"Icel","NAMEASCII":"Icel","POP_MAX":616990,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.9500008,40.5199931],"properties":{"NAME":"Corum","NAMEASCII":"Corum","POP_MAX":183418,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[40.5218571,41.0208411],"properties":{"NAME":"Rize","NAMEASCII":"Rize","POP_MAX":279450,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[42.2815946,38.5065759],"properties":{"NAME":"Tatvan","NAMEASCII":"Tatvan","POP_MAX":73222,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[127.6897147,36.9352507],"properties":{"NAME":"Eumseong","NAMEASCII":"Eumseong","POP_MAX":10077,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[127.5011991,36.6438989],"properties":{"NAME":"Cheongju","NAMEASCII":"Cheongju","POP_MAX":775096,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[127.9396219,37.3551475],"properties":{"NAME":"Wonju","NAMEASCII":"Wonju","POP_MAX":243387,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[127.7341565,37.8747024],"properties":{"NAME":"Chuncheon","NAMEASCII":"Chuncheon","POP_MAX":226509,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.8595328,37.3480678],"properties":{"NAME":"Ansan","NAMEASCII":"Ansan","POP_MAX":739493,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.9454191,35.9409703],"properties":{"NAME":"Iksan","NAMEASCII":"Iksan","POP_MAX":283501,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[129.211689,35.8427592],"properties":{"NAME":"Gyeongju","NAMEASCII":"Gyeongju","POP_MAX":155237,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[128.583562,35.2191022],"properties":{"NAME":"Changwon","NAMEASCII":"Changwon","POP_MAX":1081499,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[0.7199971,51.5500175],"properties":{"NAME":"Southend-on-Sea","NAMEASCII":"Southend-on-Sea","POP_MAX":618386,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-0.9800283,51.4699707],"properties":{"NAME":"Reading","NAMEASCII":"Reading","POP_MAX":369804,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.1332489,52.6299774],"properties":{"NAME":"Leicester","NAMEASCII":"Leicester","POP_MAX":457983,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.754464650200906,53.79167546080204],"properties":{"NAME":"Bradford","NAMEASCII":"Bradford","POP_MAX":501700,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.4999966,53.3666767],"properties":{"NAME":"Sheffield","NAMEASCII":"Sheffield","POP_MAX":1292900,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[32.1472261,39.5841588],"properties":{"NAME":"Polatlı","NAMEASCII":"Polatli","POP_MAX":93262,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[32.600015,41.2000033],"properties":{"NAME":"Karabük","NAMEASCII":"Karabuk","POP_MAX":128564,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[41.218352,37.0749837],"properties":{"NAME":"Nusaybin","NAMEASCII":"Nusaybin","POP_MAX":152668,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[43.7408337,37.5744365],"properties":{"NAME":"Hakkâri","NAMEASCII":"Hakkari","POP_MAX":77699,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[16.6287418,47.2253461],"properties":{"NAME":"Szombathely","NAMEASCII":"Szombathely","POP_MAX":109518,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[19.7000272,46.9000429],"properties":{"NAME":"Kecskemét","NAMEASCII":"Kecskemet","POP_MAX":113895,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[18.4080647,47.1946761],"properties":{"NAME":"Székesfehérvár","NAMEASCII":"Szekesfehervar","POP_MAX":144319,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[21.7187154,47.9653268],"properties":{"NAME":"Nyíregyháza","NAMEASCII":"Nyiregyhaza","POP_MAX":176880,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[7.2500378,47.16659],"properties":{"NAME":"Biel","NAMEASCII":"Biel","POP_MAX":78708,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[-85.8600411,11.2499968],"properties":{"NAME":"San Juan del Sur","NAMEASCII":"San Juan del Sur","POP_MAX":7790,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[22.6658927,44.6458911],"properties":{"NAME":"Drobeta-Turnu Severin","NAMEASCII":"Drobeta-Turnu Severin","POP_MAX":106578,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[28.7966813,45.1993457],"properties":{"NAME":"Tulcea","NAMEASCII":"Tulcea","POP_MAX":92475,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[21.31998,46.17001],"properties":{"NAME":"Arad","NAMEASCII":"Arad","POP_MAX":169065,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[21.9199951,47.0499821],"properties":{"NAME":"Oradea","NAMEASCII":"Oradea","POP_MAX":213830,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[24.1371207,45.7971129],"properties":{"NAME":"Sibiu","NAMEASCII":"Sibiu","POP_MAX":155565,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[26.2593168,47.6376982],"properties":{"NAME":"Suceava","NAMEASCII":"Suceava","POP_MAX":105796,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[26.8065185,45.156506],"properties":{"NAME":"Buzău","NAMEASCII":"Buzau","POP_MAX":130954,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[28.0458744,45.4558934],"properties":{"NAME":"Galați","NAMEASCII":"Galati","POP_MAX":311156,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[27.186547,45.6965505],"properties":{"NAME":"Focșani","NAMEASCII":"Focsani","POP_MAX":105112,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[-79.8000234,-6.6299971],"properties":{"NAME":"Ferreñafe","NAMEASCII":"Ferrenafe","POP_MAX":50184,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-79.7100031,-6.1500264],"properties":{"NAME":"Motupe","NAMEASCII":"Motupe","POP_MAX":13681,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-72.0199815,-17.0200089],"properties":{"NAME":"Mollendo","NAMEASCII":"Mollendo","POP_MAX":49033,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-72.1166165,-13.3042151],"properties":{"NAME":"Urubamba","NAMEASCII":"Urubamba","POP_MAX":7540,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-72.0800037,-14.4600102],"properties":{"NAME":"Santo Tomas","NAMEASCII":"Santo Tomas","POP_MAX":4134,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-69.4299846,-15.470026],"properties":{"NAME":"Putina","NAMEASCII":"Putina","POP_MAX":8118,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.2099913,-9.4400065],"properties":{"NAME":"Casma","NAMEASCII":"Casma","POP_MAX":30000,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.7052181,-8.9321822],"properties":{"NAME":"Tournavista","NAMEASCII":"Tournavista","POP_MAX":511,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.0499494,-7.8100285],"properties":{"NAME":"Huamachuco","NAMEASCII":"Huamachuco","POP_MAX":30835,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.5699952,-7.8999971],"properties":{"NAME":"Otuzco","NAMEASCII":"Otuzco","POP_MAX":10134,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.5200169,-6.4300093],"properties":{"NAME":"Lamas","NAMEASCII":"Lamas","POP_MAX":13693,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-73.7800291,-4.5700195],"properties":{"NAME":"Nauta","NAMEASCII":"Nauta","POP_MAX":2500,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.1299819,-14.6999955],"properties":{"NAME":"Puquio","NAMEASCII":"Puquio","POP_MAX":10491,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.7100053,-11.9300354],"properties":{"NAME":"Chosica","NAMEASCII":"Chosica","POP_MAX":88606,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.6900253,-11.2599988],"properties":{"NAME":"Satipo","NAMEASCII":"Satipo","POP_MAX":15532,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.7299876,-11.4100154],"properties":{"NAME":"Tarma","NAMEASCII":"Tarma","POP_MAX":51350,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.9400007,-11.5200346],"properties":{"NAME":"La Oroya","NAMEASCII":"La Oroya","POP_MAX":33345,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.5999768,-11.060011],"properties":{"NAME":"Huaura","NAMEASCII":"Huaura","POP_MAX":40400,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.6199498,-11.1100338],"properties":{"NAME":"Huacho","NAMEASCII":"Huacho","POP_MAX":80474,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-62.209986,-20.5199503],"properties":{"NAME":"General Eugenio Alejandrino Garay","NAMEASCII":"General Eugenio Alejandrino Garay","POP_MAX":972,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.0899884,-25.0499581],"properties":{"NAME":"Arroyos y Esteros","NAMEASCII":"Arroyos y Esteros","POP_MAX":3055,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.5299874,-25.0900073],"properties":{"NAME":"Villa Hayes","NAMEASCII":"Villa Hayes","POP_MAX":15643,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-59.8499492,-23.0502868],"properties":{"NAME":"Fortin Falcon","NAMEASCII":"Fortin Falcon","POP_MAX":-99,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.7899974,-22.6400277],"properties":{"NAME":"Puerto Pinasco","NAMEASCII":"Puerto Pinasco","POP_MAX":500,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-58.8599838,-23.4300053],"properties":{"NAME":"Pozo Colorado","NAMEASCII":"Pozo Colorado","POP_MAX":2135,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.0799891,-24.089965],"properties":{"NAME":"San Pedro","NAMEASCII":"San Pedro","POP_MAX":9360,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.5200397,-25.3400179],"properties":{"NAME":"San Lorenzo","NAMEASCII":"San Lorenzo","POP_MAX":500000,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.2799768,-25.4099878],"properties":{"NAME":"Ypacaraí","NAMEASCII":"Ypacarai","POP_MAX":30150,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.1500106,-26.6799878],"properties":{"NAME":"San Juan Bautista","NAMEASCII":"San Juan Bautista","POP_MAX":7882,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.16001,-25.6200008],"properties":{"NAME":"Paraguarí","NAMEASCII":"Paraguari","POP_MAX":18881,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-54.7699492,-26.0200281],"properties":{"NAME":"Ñacunday","NAMEASCII":"Nacunday","POP_MAX":1250,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-56.4399506,-25.4499853],"properties":{"NAME":"Coronel Oviedo","NAMEASCII":"Coronel Oviedo","POP_MAX":88101,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-56.3800059,-26.2000171],"properties":{"NAME":"Caazapá","NAMEASCII":"Caazapa","POP_MAX":5504,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-55.4599846,-23.9100277],"properties":{"NAME":"Ype Jhu","NAMEASCII":"Ype Jhu","POP_MAX":600,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-55.8739188,-27.3471848],"properties":{"NAME":"Encarnación","NAMEASCII":"Encarnacion","POP_MAX":357119,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-56.2500397,-27.1700354],"properties":{"NAME":"Coronel Bogado","NAMEASCII":"Coronel Bogado","POP_MAX":14297,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-86.3599848,13.0899878],"properties":{"NAME":"Estelí","NAMEASCII":"Esteli","POP_MAX":107839,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-85.6600017,12.469974],"properties":{"NAME":"Boaco","NAMEASCII":"Boaco","POP_MAX":29046,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-85.3799671,12.109996],"properties":{"NAME":"Juigalpa","NAMEASCII":"Juigalpa","POP_MAX":54731,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-8.4213312,41.5549945],"properties":{"NAME":"Braga","NAMEASCII":"Braga","POP_MAX":826833,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.4999921,40.2833409],"properties":{"NAME":"Covilhã","NAMEASCII":"Covilha","POP_MAX":24828,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[38.0492948,24.0942774],"properties":{"NAME":"Yanbu al Bahr","NAMEASCII":"Yanbu al Bahr","POP_MAX":267590,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[39.8663932,29.8152977],"properties":{"NAME":"Dawmat al Jandal","NAMEASCII":"Dawmat al Jandal","POP_MAX":22583,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[42.5986812,20.0086869],"properties":{"NAME":"Qal at Bishah","NAMEASCII":"Qal at Bishah","POP_MAX":88291,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[40.382279,21.262228],"properties":{"NAME":"At Taif","NAMEASCII":"At Taif","POP_MAX":657282,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[18.0086059,69.2406173],"properties":{"NAME":"Finnsnes","NAMEASCII":"Finnsnes","POP_MAX":3907,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[5.5000154,51.4299732],"properties":{"NAME":"Eindhoven","NAMEASCII":"Eindhoven","POP_MAX":398053,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[10.7000081,60.8000214],"properties":{"NAME":"Gjøvik","NAMEASCII":"Gjovik","POP_MAX":22719,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[11.2053003,64.868016],"properties":{"NAME":"Rørvik","NAMEASCII":"Rorvik","POP_MAX":2615,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[19.1499833,48.7332902],"properties":{"NAME":"Banská Bystrica","NAMEASCII":"Banska Bystrica","POP_MAX":82336,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[17.6000004,48.3665943],"properties":{"NAME":"Trnava","NAMEASCII":"Trnava","POP_MAX":69785,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[27.3165649,56.5000255],"properties":{"NAME":"Rēzekne","NAMEASCII":"Rezekne","POP_MAX":38340,"ISO_A2":"LV","SOV_A3":"LVA"}},{"type":"Point","coordinates":[24.3700264,55.7400202],"properties":{"NAME":"Panevežys","NAMEASCII":"Panevezys","POP_MAX":127405,"ISO_A2":"LT","SOV_A3":"LTU"}},{"type":"Point","coordinates":[23.3250256,55.9386385],"properties":{"NAME":"Šiauliai","NAMEASCII":"Siauliai","POP_MAX":133528,"ISO_A2":"LT","SOV_A3":"LTU"}},{"type":"Point","coordinates":[44.1315592,17.5065399],"properties":{"NAME":"Najran","NAMEASCII":"Najran","POP_MAX":369609,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[45.2806364,24.0737101],"properties":{"NAME":"Al Quwayiyah","NAMEASCII":"Al Quwayiyah","POP_MAX":8712,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[46.7563602,23.4894564],"properties":{"NAME":"Al Hillah","NAMEASCII":"Al Hillah","POP_MAX":594605,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[49.5659045,25.4290538],"properties":{"NAME":"Al Mubarraz","NAMEASCII":"Al Mubarraz","POP_MAX":298562,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[50.0115104,26.5196332],"properties":{"NAME":"Al-Qatif","NAMEASCII":"Al-Qatif","POP_MAX":368892,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[50.1583231,26.2914301],"properties":{"NAME":"Az Zahran","NAMEASCII":"Az Zahran","POP_MAX":97446,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[70.1008268,33.8991828],"properties":{"NAME":"Parachinar","NAMEASCII":"Parachinar","POP_MAX":55685,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[74.5600378,32.5200163],"properties":{"NAME":"Sialkote","NAMEASCII":"Sialkote","POP_MAX":477396,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[73.9899951,31.7199876],"properties":{"NAME":"Sheikhu Pura","NAMEASCII":"Sheikhu Pura","POP_MAX":361303,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[74.0800154,32.5799868],"properties":{"NAME":"Gujrat","NAMEASCII":"Gujrat","POP_MAX":301506,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[73.1118058,30.6717312],"properties":{"NAME":"Sahiwal","NAMEASCII":"Sahiwal","POP_MAX":235695,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[72.9799792,31.7199876],"properties":{"NAME":"Chiniot","NAMEASCII":"Chiniot","POP_MAX":201781,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[70.2951818,28.4202407],"properties":{"NAME":"Rahim Yar Khan","NAMEASCII":"Rahim Yar Khan","POP_MAX":353203,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[75.2845931,42.8298779],"properties":{"NAME":"Tokmak","NAMEASCII":"Tokmak","POP_MAX":112860,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[73.8856604,42.8306273],"properties":{"NAME":"Kara Balta","NAMEASCII":"Kara Balta","POP_MAX":74133,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[77.0810725,42.6513359],"properties":{"NAME":"Cholpon Ata","NAMEASCII":"Cholpon Ata","POP_MAX":18595,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[75.9910616,41.426346],"properties":{"NAME":"Naryn","NAMEASCII":"Naryn","POP_MAX":52300,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[73.2057535,41.0307113],"properties":{"NAME":"Kok Yangak","NAMEASCII":"Kok Yangak","POP_MAX":15000,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[73.1968135,34.3417914],"properties":{"NAME":"Mansehra","NAMEASCII":"Mansehra","POP_MAX":66486,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[71.4326835,33.6026892],"properties":{"NAME":"Kohat","NAMEASCII":"Kohat","POP_MAX":343027,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[73.1995007,34.1495034],"properties":{"NAME":"Abbottabad","NAMEASCII":"Abbottabad","POP_MAX":1183647,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[72.0399849,34.2000429],"properties":{"NAME":"Mardan","NAMEASCII":"Mardan","POP_MAX":300424,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[85.3333337,27.6666175],"properties":{"NAME":"Lalitpur","NAMEASCII":"Lalitpur","POP_MAX":337785,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[85.033352,27.4166844],"properties":{"NAME":"Hetauda","NAMEASCII":"Hetauda","POP_MAX":232334,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[-80.3599893,8.5099831],"properties":{"NAME":"Penonome","NAMEASCII":"Penonome","POP_MAX":28766,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-80.4200373,7.9700161],"properties":{"NAME":"Chitré","NAMEASCII":"Chitre","POP_MAX":44082,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-78.1660147,7.5189584],"properties":{"NAME":"Jaqué","NAMEASCII":"Jaque","POP_MAX":1357,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[20.7500923,42.2293203],"properties":{"NAME":"Prizren","NAMEASCII":"Prizren","POP_MAX":171464,"ISO_A2":"-99","SOV_A3":"KOS"}},{"type":"Point","coordinates":[48.0837727,29.0769448],"properties":{"NAME":"Al Ahmadi","NAMEASCII":"Al Ahmadi","POP_MAX":68763,"ISO_A2":"KW","SOV_A3":"KWT"}},{"type":"Point","coordinates":[47.6580623,29.3374715],"properties":{"NAME":"Al Jahra","NAMEASCII":"Al Jahra","POP_MAX":194193,"ISO_A2":"KW","SOV_A3":"KWT"}},{"type":"Point","coordinates":[-82.2474707,9.3353501],"properties":{"NAME":"Bocas del Toro","NAMEASCII":"Bocas del Toro","POP_MAX":9883,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-82.3999681,9.3000124],"properties":{"NAME":"Almirante","NAMEASCII":"Almirante","POP_MAX":8114,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[40.1200211,44.609976],"properties":{"NAME":"Maykop","NAMEASCII":"Maykop","POP_MAX":158451,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.6543697,43.7543176],"properties":{"NAME":"Mozdok","NAMEASCII":"Mozdok","POP_MAX":45702,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.4699458,44.1599001],"properties":{"NAME":"Georgievsk","NAMEASCII":"Georgievsk","POP_MAX":72649,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.0900207,44.0799567],"properties":{"NAME":"Pyatigorsk","NAMEASCII":"Pyatigorsk","POP_MAX":142865,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.7200175,43.9099671],"properties":{"NAME":"Kislovodsk","NAMEASCII":"Kislovodsk","POP_MAX":132771,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.9500386,44.6200529],"properties":{"NAME":"Nevinnomyssk","NAMEASCII":"Nevinnomyssk","POP_MAX":134380,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-171.8166032,66.9500078],"properties":{"NAME":"Enurmino","NAMEASCII":"Enurmino","POP_MAX":297,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-171.0249978,65.5832695],"properties":{"NAME":"Lavrentiya","NAMEASCII":"Lavrentiya","POP_MAX":1242,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-179.5899789,70.9565849],"properties":{"NAME":"Zvëzdnyj","NAMEASCII":"Zvezdnyj","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[161.4811431,69.4244404],"properties":{"NAME":"Mikhalkino","NAMEASCII":"Mikhalkino","POP_MAX":570,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[21.8108545,54.6316382],"properties":{"NAME":"Chernyakhovsk","NAMEASCII":"Chernyakhovsk","POP_MAX":45187,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.4230656,69.0730565],"properties":{"NAME":"Severomorsk","NAMEASCII":"Severomorsk","POP_MAX":53921,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.3930415,67.5730705],"properties":{"NAME":"Apatity","NAMEASCII":"Apatity","POP_MAX":66907,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.4502474,69.2052189],"properties":{"NAME":"Polyarnyy","NAMEASCII":"Polyarnyy","POP_MAX":19200,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[28.0746582,59.1115973],"properties":{"NAME":"Slantsy","NAMEASCII":"Slantsy","POP_MAX":36209,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[30.6500048,59.7300092],"properties":{"NAME":"Kolpino","NAMEASCII":"Kolpino","POP_MAX":225801,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[31.9448612,52.5348153],"properties":{"NAME":"Novozybkov","NAMEASCII":"Novozybkov","POP_MAX":43534,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.3391853,53.5891437],"properties":{"NAME":"Dyatkovo","NAMEASCII":"Dyatkovo","POP_MAX":33527,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.3642863,56.8543449],"properties":{"NAME":"Shuya","NAMEASCII":"Shuya","POP_MAX":60705,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.129976,57.4699662],"properties":{"NAME":"Kineshma","NAMEASCII":"Kineshma","POP_MAX":92983,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.5943827,56.494341],"properties":{"NAME":"Balakhna","NAMEASCII":"Balakhna","POP_MAX":63083,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.8000032,55.3999892],"properties":{"NAME":"Arzamas","NAMEASCII":"Arzamas","POP_MAX":142597,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.3274548,56.2574046],"properties":{"NAME":"Rzhev","NAMEASCII":"Rzhev","POP_MAX":63414,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.5630993,57.5830343],"properties":{"NAME":"Vyshnniy Volochek","NAMEASCII":"Vyshnniy Volochek","POP_MAX":53800,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.3300012,57.5243557],"properties":{"NAME":"Uglich","NAMEASCII":"Uglich","POP_MAX":37732,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.5000166,52.5800063],"properties":{"NAME":"Yelets","NAMEASCII":"Yelets","POP_MAX":115919,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.9799873,55.8200153],"properties":{"NAME":"Orekhovo-Zuevo","NAMEASCII":"Orekhovo-Zuevo","POP_MAX":140247,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.6987312,56.3430583],"properties":{"NAME":"Klin","NAMEASCII":"Klin","POP_MAX":80778,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.1700109,56.33001],"properties":{"NAME":"Sergiyev Posad","NAMEASCII":"Sergiyev Posad","POP_MAX":109252,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.7849605,55.0799829],"properties":{"NAME":"Kolomna","NAMEASCII":"Kolomna","POP_MAX":147690,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.7448502,47.1368244],"properties":{"NAME":"Bataysk","NAMEASCII":"Bataysk","POP_MAX":109962,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.919991,47.229997],"properties":{"NAME":"Taganrog","NAMEASCII":"Taganrog","POP_MAX":279056,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.0800236,47.4199595],"properties":{"NAME":"Novocherkassk","NAMEASCII":"Novocherkassk","POP_MAX":166974,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.251796,48.3317643],"properties":{"NAME":"Kamensk Shakhtinskiy","NAMEASCII":"Kamensk Shakhtinskiy","POP_MAX":75814,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.9199816,47.7699898],"properties":{"NAME":"Novoshakhtinsk","NAMEASCII":"Novoshakhtinsk","POP_MAX":99478,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.094366,54.5143327],"properties":{"NAME":"Aleksin","NAMEASCII":"Aleksin","POP_MAX":66885,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.289305215312226,54.010714982644835],"properties":{"NAME":"Novomoskovsk","NAMEASCII":"Novomoskovsk","POP_MAX":130982,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.5142887,54.0143374],"properties":{"NAME":"Shchekino","NAMEASCII":"Shchekino","POP_MAX":86088,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.4261055,50.016106],"properties":{"NAME":"Nikolayevsk","NAMEASCII":"Nikolayevsk","POP_MAX":16044,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.8943782,50.4143504],"properties":{"NAME":"Shebekino","NAMEASCII":"Shebekino","POP_MAX":45194,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.3843225,51.2743496],"properties":{"NAME":"Gubkin","NAMEASCII":"Gubkin","POP_MAX":272,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.7287272,44.4687185],"properties":{"NAME":"Apsheronsk","NAMEASCII":"Apsheronsk","POP_MAX":45876,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.5821118,45.4470825],"properties":{"NAME":"Kropotkin","NAMEASCII":"Kropotkin","POP_MAX":79599,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.924379,54.0643343],"properties":{"NAME":"Ruzayevka","NAMEASCII":"Ruzayevka","POP_MAX":49311,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.7174336,52.6573918],"properties":{"NAME":"Kirsanov","NAMEASCII":"Kirsanov","POP_MAX":17975,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.4999979,52.8999868],"properties":{"NAME":"Michurinsk","NAMEASCII":"Michurinsk","POP_MAX":93499,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.0887382,51.3687108],"properties":{"NAME":"Borisoglebsk","NAMEASCII":"Borisoglebsk","POP_MAX":68597,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.4599821,54.4599691],"properties":{"NAME":"Oktyabrskiy","NAMEASCII":"Oktyabrskiy","POP_MAX":108200,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.8085258,54.3685018],"properties":{"NAME":"Plast","NAMEASCII":"Plast","POP_MAX":17050,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[58.7958837,54.9458826],"properties":{"NAME":"Bakal","NAMEASCII":"Bakal","POP_MAX":26559,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.2313,56.0662793],"properties":{"NAME":"Verkhniy Ufaley","NAMEASCII":"Verkhniy Ufaley","POP_MAX":33879,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[64.1232588,67.608288],"properties":{"NAME":"Severnyy","NAMEASCII":"Severnyy","POP_MAX":11562,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[50.0443766,58.5543703],"properties":{"NAME":"Kirovo-Chepetsk","NAMEASCII":"Kirovo-Chepetsk","POP_MAX":90252,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.20834238018337,59.762369617766716],"properties":{"NAME":"Krasnoturinsk","NAMEASCII":"Krasnoturinsk","POP_MAX":64878,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.4580468,57.0230426],"properties":{"NAME":"Asbest","NAMEASCII":"Asbest","POP_MAX":81248,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.691521,57.8465066],"properties":{"NAME":"Alapayevsk","NAMEASCII":"Alapayevsk","POP_MAX":44000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.0515177,58.3515145],"properties":{"NAME":"Krasnouralsk","NAMEASCII":"Krasnouralsk","POP_MAX":20571,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[59.961549,60.1565206],"properties":{"NAME":"Severouralsk","NAMEASCII":"Severouralsk","POP_MAX":36138,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[58.3300207,51.200013],"properties":{"NAME":"Novotroitsk","NAMEASCII":"Novotroitsk","POP_MAX":106186,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.4330163,53.6630152],"properties":{"NAME":"Buguruslan","NAMEASCII":"Buguruslan","POP_MAX":53511,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.7243444,52.9743233],"properties":{"NAME":"Chapayevsk","NAMEASCII":"Chapayevsk","POP_MAX":107164,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.479976,53.1699962],"properties":{"NAME":"Syzran","NAMEASCII":"Syzran","POP_MAX":189338,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.9199397,53.1199992],"properties":{"NAME":"Novokuybishevsk","NAMEASCII":"Novokuybishevsk","POP_MAX":152334,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.39244047201222,55.731905765753574],"properties":{"NAME":"Naberezhnyye Chelny","NAMEASCII":"Naberezhnyye Chelny","POP_MAX":461086,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.49697293221952,55.84806638393412],"properties":{"NAME":"Zelenodolsk","NAMEASCII":"Zelenodolsk","POP_MAX":99600,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.448726,54.5986945],"properties":{"NAME":"Leninogorsk","NAMEASCII":"Leninogorsk","POP_MAX":66263,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.7942863,54.5543303],"properties":{"NAME":"Bugulma","NAMEASCII":"Bugulma","POP_MAX":91900,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[72.60800793108787,61.092018157697126],"properties":{"NAME":"Nefteyugansk","NAMEASCII":"Nefteyugansk","POP_MAX":112632,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.1699751,54.6600086],"properties":{"NAME":"Leninsk Kuznetsky","NAMEASCII":"Leninsk Kuznetsky","POP_MAX":109023,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.0400089,56.0800252],"properties":{"NAME":"Anzhero Sudzhensk","NAMEASCII":"Anzhero Sudzhensk","POP_MAX":83692,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.640024,54.000023],"properties":{"NAME":"Kiselevsk","NAMEASCII":"Kiselevsk","POP_MAX":104000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[87.3166752,53.2332739],"properties":{"NAME":"Mundybash","NAMEASCII":"Mundybash","POP_MAX":5870,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[91.22269,53.8313253],"properties":{"NAME":"Chernogorsk","NAMEASCII":"Chernogorsk","POP_MAX":71582,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[90.0953686,52.669019],"properties":{"NAME":"Abaza","NAMEASCII":"Abaza","POP_MAX":18094,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[83.2865336,54.6509394],"properties":{"NAME":"Iskitim","NAMEASCII":"Iskitim","POP_MAX":61827,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[84.3776814,55.2376736],"properties":{"NAME":"Toguchin","NAMEASCII":"Toguchin","POP_MAX":21886,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[77.2741874,54.3592259],"properties":{"NAME":"Kupina","NAMEASCII":"Kupina","POP_MAX":16333,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.9782076,23.3031887],"properties":{"NAME":"Alayat Samail","NAMEASCII":"Alayat Samail","POP_MAX":47718,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[94.7027876,55.9619704],"properties":{"NAME":"Zaozernyy","NAMEASCII":"Zaozernyy","POP_MAX":33865,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[89.5184012,56.2164769],"properties":{"NAME":"Bogotol","NAMEASCII":"Bogotol","POP_MAX":23622,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[116.0306331,51.8705664],"properties":{"NAME":"Shilka","NAMEASCII":"Shilka","POP_MAX":14132,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[116.3006425,50.5305965],"properties":{"NAME":"Sherlovaya Gora","NAMEASCII":"Sherlovaya Gora","POP_MAX":411,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[108.8326745,51.2826953],"properties":{"NAME":"Petrovsk Zabaykalskiy","NAMEASCII":"Petrovsk Zabaykalskiy","POP_MAX":20889,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.2823449,44.1623031],"properties":{"NAME":"Arsenyev","NAMEASCII":"Arsenyev","POP_MAX":58700,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.1349121,43.1348723],"properties":{"NAME":"Partizansk","NAMEASCII":"Partizansk","POP_MAX":42489,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.7223181,45.9272858],"properties":{"NAME":"Dalnerechensk","NAMEASCII":"Dalnerechensk","POP_MAX":28300,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.1050105,74.8983081],"properties":{"NAME":"Zemlya Bunge","NAMEASCII":"Zemlya Bunge","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[113.6300044,73.4833041],"properties":{"NAME":"Khorgo","NAMEASCII":"Khorgo","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[107.7999727,68.5166305],"properties":{"NAME":"Put Lenina","NAMEASCII":"Put Lenina","POP_MAX":298,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[131.083306,48.9999923],"properties":{"NAME":"Obluchye","NAMEASCII":"Obluchye","POP_MAX":10000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[140.2424886,49.0873255],"properties":{"NAME":"Vanino","NAMEASCII":"Vanino","POP_MAX":18618,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[147.9166971,61.633278],"properties":{"NAME":"Omchak","NAMEASCII":"Omchak","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.0333353,49.0833464],"properties":{"NAME":"Uglegorsk","NAMEASCII":"Uglegorsk","POP_MAX":12669,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.0623775,47.0473208],"properties":{"NAME":"Kholmsk","NAMEASCII":"Kholmsk","POP_MAX":32911,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-116.0092603,30.7640511],"properties":{"NAME":"Vicente Guerrero","NAMEASCII":"Vicente Guerrero","POP_MAX":12829,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-111.3516635,26.0133334],"properties":{"NAME":"Loreto","NAMEASCII":"Loreto","POP_MAX":11227,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-111.6599909,25.0400078],"properties":{"NAME":"Ciudad Constitución","NAMEASCII":"Ciudad Constitucion","POP_MAX":39915,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.8499789,28.3299878],"properties":{"NAME":"Allende","NAMEASCII":"Allende","POP_MAX":19636,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.2199821,27.9499593],"properties":{"NAME":"Nueva Rosita","NAMEASCII":"Nueva Rosita","POP_MAX":36642,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.6666358,26.9333547],"properties":{"NAME":"Hidalgo del Parral","NAMEASCII":"Hidalgo del Parral","POP_MAX":103378,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-107.979983,31.1000255],"properties":{"NAME":"Ascensión","NAMEASCII":"Ascension","POP_MAX":11781,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.5000238,25.5700529],"properties":{"NAME":"Gómez Palacio","NAMEASCII":"Gomez Palacio","POP_MAX":399328,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.7799974,24.5199878],"properties":{"NAME":"Canatlan","NAMEASCII":"Canatlan","POP_MAX":10342,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.2300381,23.1999909],"properties":{"NAME":"Villa Unión","NAMEASCII":"Villa Union","POP_MAX":15443,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-107.9162153,24.6360451],"properties":{"NAME":"Altata","NAMEASCII":"Altata","POP_MAX":1000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-109.9299931,27.5800078],"properties":{"NAME":"Esperanza","NAMEASCII":"Esperanza","POP_MAX":3836,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.96795125788783,30.62582240637527],"properties":{"NAME":"Magdalena","NAMEASCII":"Magdalena","POP_MAX":23359,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-109.6499844,30.4200153],"properties":{"NAME":"Nacozari de García","NAMEASCII":"Nacozari de Garcia","POP_MAX":11872,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.88001,22.3500169],"properties":{"NAME":"Villanueva","NAMEASCII":"Villanueva","POP_MAX":11138,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.8399889,25.1899986],"properties":{"NAME":"Montemorelos","NAMEASCII":"Montemorelos","POP_MAX":42640,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.1799681,26.5100214],"properties":{"NAME":"Sabinas Hidalgo","NAMEASCII":"Sabinas Hidalgo","POP_MAX":32047,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.6699992,22.0000124],"properties":{"NAME":"Cardenas","NAMEASCII":"Cardenas","POP_MAX":15331,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.0200131,21.9799878],"properties":{"NAME":"Ciudad Valles","NAMEASCII":"Ciudad Valles","POP_MAX":114964,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.9800061,21.9299909],"properties":{"NAME":"Rio Verde","NAMEASCII":"Rio Verde","POP_MAX":69613,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.9500173,22.7333527],"properties":{"NAME":"Ciudad Mante","NAMEASCII":"Ciudad Mante","POP_MAX":79981,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.3000312,26.079996],"properties":{"NAME":"Reynosa","NAMEASCII":"Reynosa","POP_MAX":498654,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.836106,22.3189077],"properties":{"NAME":"Ciudad Madero","NAMEASCII":"Ciudad Madero","POP_MAX":192736,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.3699966,19.7700193],"properties":{"NAME":"Autlan","NAMEASCII":"Autlan","POP_MAX":47669,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.569996,19.6799732],"properties":{"NAME":"Ciudad Hidalgo","NAMEASCII":"Ciudad Hidalgo","POP_MAX":64154,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.3500165,19.0799839],"properties":{"NAME":"Apatzingán","NAMEASCII":"Apatzingan","POP_MAX":98422,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.2200481,21.8199976],"properties":{"NAME":"Santiago Ixcuintla","NAMEASCII":"Santiago Ixcuintla","POP_MAX":18365,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-95.0199988,16.4299907],"properties":{"NAME":"Juchitan","NAMEASCII":"Juchitan","POP_MAX":67637,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.6000057,16.3299968],"properties":{"NAME":"Miahuatlán","NAMEASCII":"Miahuatlan","POP_MAX":17632,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.4499962,18.9000208],"properties":{"NAME":"Atlixco","NAMEASCII":"Atlixco","POP_MAX":97842,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.0499948,18.1999601],"properties":{"NAME":"Acatlan","NAMEASCII":"Acatlan","POP_MAX":18879,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-93.2299789,18.4000255],"properties":{"NAME":"Paraíso","NAMEASCII":"Paraiso","POP_MAX":23830,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-91.5299793,17.7999587],"properties":{"NAME":"Balancán","NAMEASCII":"Balancan","POP_MAX":11895,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.2300096,19.3199951],"properties":{"NAME":"Tlaxcala","NAMEASCII":"Tlaxcala","POP_MAX":503878,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.35087694576201,20.67604155916101],"properties":{"NAME":"Irapuato","NAMEASCII":"Irapuato","POP_MAX":339554,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.8000078,20.5300246],"properties":{"NAME":"Celaya","NAMEASCII":"Celaya","POP_MAX":383697,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.5000096,17.549974],"properties":{"NAME":"Chilpancingo","NAMEASCII":"Chilpancingo","POP_MAX":182387,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.5399813,18.3700014],"properties":{"NAME":"Iguala","NAMEASCII":"Iguala","POP_MAX":112106,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.6799893,17.2499923],"properties":{"NAME":"Tecpan","NAMEASCII":"Tecpan","POP_MAX":14638,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.4300304,17.1999953],"properties":{"NAME":"Atoyac","NAMEASCII":"Atoyac","POP_MAX":20515,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.0299866,19.4100155],"properties":{"NAME":"Nezahualcoyotl","NAMEASCII":"Nezahualcoyotl","POP_MAX":1109363,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.0000308,20.3799821],"properties":{"NAME":"San Juan del Río","NAMEASCII":"San Juan del Rio","POP_MAX":147559,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-94.7399901,17.939976],"properties":{"NAME":"Jaltipan","NAMEASCII":"Jaltipan","POP_MAX":66998,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.1299992,18.8500238],"properties":{"NAME":"Orizaba","NAMEASCII":"Orizaba","POP_MAX":355333,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.9199862,19.5299823],"properties":{"NAME":"Xalapa","NAMEASCII":"Xalapa","POP_MAX":452186,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.7833537,20.2165812],"properties":{"NAME":"Nautla","NAMEASCII":"Nautla","POP_MAX":2890,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-92.6333745,16.749997],"properties":{"NAME":"San Cristobal de Las Casas","NAMEASCII":"San Cristobal de Las Casas","POP_MAX":186661,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-92.6299897,15.3300061],"properties":{"NAME":"Escuintla","NAMEASCII":"Escuintla","POP_MAX":107638,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-89.2799874,21.0999898],"properties":{"NAME":"Motul","NAMEASCII":"Motul","POP_MAX":21253,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-89.2799874,20.1999931],"properties":{"NAME":"Tekax","NAMEASCII":"Tekax","POP_MAX":22806,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-88.9199836,20.1299715],"properties":{"NAME":"Peto","NAMEASCII":"Peto","POP_MAX":17607,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-90.0800161,20.479976],"properties":{"NAME":"Halachó","NAMEASCII":"Halacho","POP_MAX":9165,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[4.1799926,7.6299593],"properties":{"NAME":"Iwo","NAMEASCII":"Iwo","POP_MAX":250443,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[3.5900028,7.9700161],"properties":{"NAME":"Iseyin","NAMEASCII":"Iseyin","POP_MAX":98071,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[20.9700789,42.0092304],"properties":{"NAME":"Tetovo","NAMEASCII":"Tetovo","POP_MAX":119132,"ISO_A2":"MK","SOV_A3":"MKD"}},{"type":"Point","coordinates":[35.3687866,33.5630276],"properties":{"NAME":"Saida","NAMEASCII":"Saida","POP_MAX":173894,"ISO_A2":"LB","SOV_A3":"LBN"}},{"type":"Point","coordinates":[20.48556398050473,53.77258429042908],"properties":{"NAME":"Olsztyn","NAMEASCII":"Olsztyn","POP_MAX":186670,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[19.40319282719829,54.15391939807562],"properties":{"NAME":"Elbląg","NAMEASCII":"Elblag","POP_MAX":127558,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[18.2499865,52.7799424],"properties":{"NAME":"Inowrocław","NAMEASCII":"Inowroclaw","POP_MAX":79007,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[18.9099979,50.3500391],"properties":{"NAME":"Bytom","NAMEASCII":"Bytom","POP_MAX":662247,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[17.9313496,50.6849799],"properties":{"NAME":"Opole","NAMEASCII":"Opole","POP_MAX":131412,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[53.3265018,47.6482402],"properties":{"NAME":"Maqat","NAMEASCII":"Maqat","POP_MAX":14082,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[56.7499621,59.669987],"properties":{"NAME":"Solikamsk","NAMEASCII":"Solikamsk","POP_MAX":100812,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.6343009,59.0643651],"properties":{"NAME":"Kizel","NAMEASCII":"Kizel","POP_MAX":22135,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[73.0997135,52.4996753],"properties":{"NAME":"Bestobe","NAMEASCII":"Bestobe","POP_MAX":7189,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[72.5699267,50.5799475],"properties":{"NAME":"Osakarovka","NAMEASCII":"Osakarovka","POP_MAX":7305,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[72.8598832,48.2748686],"properties":{"NAME":"Aqadyr","NAMEASCII":"Aqadyr","POP_MAX":9710,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[78.1499479,52.4999079],"properties":{"NAME":"Sharbaqty","NAMEASCII":"Sharbaqty","POP_MAX":107,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[81.9049642,50.6315981],"properties":{"NAME":"Shemonaikha","NAMEASCII":"Shemonaikha","POP_MAX":27176,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[83.4248714,49.6998979],"properties":{"NAME":"Serebryansk","NAMEASCII":"Serebryansk","POP_MAX":701,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[76.8288399,43.3341366],"properties":{"NAME":"Boralday","NAMEASCII":"Boralday","POP_MAX":20996,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[79.9801204,44.1615538],"properties":{"NAME":"Zharkent","NAMEASCII":"Zharkent","POP_MAX":36496,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[77.4437894,43.3690698],"properties":{"NAME":"Esik","NAMEASCII":"Esik","POP_MAX":35319,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[69.87991,42.189917],"properties":{"NAME":"Lenger","NAMEASCII":"Lenger","POP_MAX":23058,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[68.5198897,43.5165027],"properties":{"NAME":"Kentau","NAMEASCII":"Kentau","POP_MAX":57408,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[125.1020691,38.2517336],"properties":{"NAME":"Changyon","NAMEASCII":"Changyon","POP_MAX":48984,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[127.5185624,39.028172],"properties":{"NAME":"Anbyon","NAMEASCII":"Anbyon","POP_MAX":38142,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[127.2517053,39.3813029],"properties":{"NAME":"Munchon","NAMEASCII":"Munchon","POP_MAX":73619,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[126.5644087,37.9639992],"properties":{"NAME":"Kaesong","NAMEASCII":"Kaesong","POP_MAX":338155,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.8008378,40.8254783],"properties":{"NAME":"Chosan","NAMEASCII":"Chosan","POP_MAX":7786,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[126.2958463,41.145433],"properties":{"NAME":"Manpo","NAMEASCII":"Manpo","POP_MAX":186827,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.9389689,39.4236001],"properties":{"NAME":"Sunchon","NAMEASCII":"Sunchon","POP_MAX":400629,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[128.1553194,40.8175202],"properties":{"NAME":"Kimhyonggwon","NAMEASCII":"Kimhyonggwon","POP_MAX":3839,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[101.4501794,47.4768811],"properties":{"NAME":"Tsetserleg","NAMEASCII":"Tsetserleg","POP_MAX":19812,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[169.0499808,60.5815851],"properties":{"NAME":"Pakhachi","NAMEASCII":"Pakhachi","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-8.8641466,52.7038489],"properties":{"NAME":"Shannon","NAMEASCII":"Shannon","POP_MAX":8781,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-7.1119279,52.2582947],"properties":{"NAME":"Waterford","NAMEASCII":"Waterford","POP_MAX":49275,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-9.7166527,52.2666921],"properties":{"NAME":"Tralee","NAMEASCII":"Tralee","POP_MAX":26384,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-8.1166728,54.6500092],"properties":{"NAME":"Donegal","NAMEASCII":"Donegal","POP_MAX":2513,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[10.9199947,44.6500252],"properties":{"NAME":"Modena","NAMEASCII":"Modena","POP_MAX":175502,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[17.123337,39.0833366],"properties":{"NAME":"Crotone","NAMEASCII":"Crotone","POP_MAX":60010,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[16.1000402,38.666592],"properties":{"NAME":"Vibo Valentia","NAMEASCII":"Vibo Valentia","POP_MAX":33957,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[15.6413602,38.1149978],"properties":{"NAME":"Reggio di Calabria","NAMEASCII":"Reggio di Calabria","POP_MAX":180353,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[14.3373571,41.0599601],"properties":{"NAME":"Caserta","NAMEASCII":"Caserta","POP_MAX":250000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[16.270004,41.319996],"properties":{"NAME":"Barletta","NAMEASCII":"Barletta","POP_MAX":107830,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[14.7299947,36.9300314],"properties":{"NAME":"Ragusa","NAMEASCII":"Ragusa","POP_MAX":68956,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[35.8499975,32.5499886],"properties":{"NAME":"Irbid","NAMEASCII":"Irbid","POP_MAX":650000,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[35.7272143,32.0391929],"properties":{"NAME":"As Salt","NAMEASCII":"As Salt","POP_MAX":140689,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[36.1000081,32.0699921],"properties":{"NAME":"Az Zarqa","NAMEASCII":"Az Zarqa","POP_MAX":894691,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[8.2099792,44.9299823],"properties":{"NAME":"Asti","NAMEASCII":"Asti","POP_MAX":71276,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[8.61998,45.4500023],"properties":{"NAME":"Novara","NAMEASCII":"Novara","POP_MAX":100910,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[9.0800036,45.8100061],"properties":{"NAME":"Como","NAMEASCII":"Como","POP_MAX":250000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[13.2400081,46.0700161],"properties":{"NAME":"Udine","NAMEASCII":"Udine","POP_MAX":119009,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[12.2400175,45.6700147],"properties":{"NAME":"Treviso","NAMEASCII":"Treviso","POP_MAX":177309,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[97.729993,39.8300352],"properties":{"NAME":"Yumen","NAMEASCII":"Yumen","POP_MAX":350000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.2000468,35.6000092],"properties":{"NAME":"Linxia","NAMEASCII":"Linxia","POP_MAX":534555,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.789976,39.5400529],"properties":{"NAME":"Zhuozhou","NAMEASCII":"Zhuozhou","POP_MAX":628000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.5800476,26.2299868],"properties":{"NAME":"Sanming","NAMEASCII":"Sanming","POP_MAX":209444,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.3999833,23.0799724],"properties":{"NAME":"Huizhou","NAMEASCII":"Huizhou","POP_MAX":289201,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.630028,23.6800391],"properties":{"NAME":"Chaozhou","NAMEASCII":"Chaozhou","POP_MAX":424787,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[6.1166703,45.8999748],"properties":{"NAME":"Annecy","NAMEASCII":"Annecy","POP_MAX":105749,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[4.0666662,46.0333258],"properties":{"NAME":"Roanne","NAMEASCII":"Roanne","POP_MAX":73315,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-79.6499809,-3.6700228],"properties":{"NAME":"Piñas","NAMEASCII":"Pinas","POP_MAX":16981,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-91.0166515,-0.9333423],"properties":{"NAME":"Puerto Villamil","NAMEASCII":"Puerto Villamil","POP_MAX":2200,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-89.5999679,-0.900011],"properties":{"NAME":"Puerto Baquerizo Moreno","NAMEASCII":"Puerto Baquerizo Moreno","POP_MAX":6030,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-79.01002,-1.6099935],"properties":{"NAME":"Guaranda","NAMEASCII":"Guaranda","POP_MAX":27866,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.8400304,-2.740002],"properties":{"NAME":"Azogues","NAMEASCII":"Azogues","POP_MAX":69087,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-80.9800031,-2.200035],"properties":{"NAME":"Salinas","NAMEASCII":"Salinas","POP_MAX":43862,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.8499781,-2.1899581],"properties":{"NAME":"Alausí","NAMEASCII":"Alausi","POP_MAX":14294,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.4599502,-0.3100211],"properties":{"NAME":"Sangolquí","NAMEASCII":"Sangolqui","POP_MAX":178582,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-75.3166279,5.7166136],"properties":{"NAME":"Sonsón","NAMEASCII":"Sonson","POP_MAX":18817,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-72.9400029,5.7199984],"properties":{"NAME":"Sogamoso","NAMEASCII":"Sogamoso","POP_MAX":126551,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.849999,7.0899923],"properties":{"NAME":"Barrancabermeja","NAMEASCII":"Barrancabermeja","POP_MAX":191403,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-83.9299781,9.8699776],"properties":{"NAME":"Cartago","NAMEASCII":"Cartago","POP_MAX":196946,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-83.149974,8.6500263],"properties":{"NAME":"Golfito","NAMEASCII":"Golfito","POP_MAX":6777,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-84.2300373,10.0200202],"properties":{"NAME":"Alajuela","NAMEASCII":"Alajuela","POP_MAX":387743,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-85.10001,10.4299951],"properties":{"NAME":"Cañas","NAMEASCII":"Canas","POP_MAX":20306,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-80.02001,0.6099744],"properties":{"NAME":"Muisne","NAMEASCII":"Muisne","POP_MAX":13393,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-88.6300013,13.8800429],"properties":{"NAME":"Sensuntepeque","NAMEASCII":"Sensuntepeque","POP_MAX":26989,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-89.7299858,13.7199752],"properties":{"NAME":"Sonsonate","NAMEASCII":"Sonsonate","POP_MAX":168947,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-88.183336,13.4833488],"properties":{"NAME":"San Miguel","NAMEASCII":"San Miguel","POP_MAX":201563,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-78.7619473,21.8399964],"properties":{"NAME":"Ciego de Ávila","NAMEASCII":"Ciego de Avila","POP_MAX":142027,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-75.9988084,20.2172272],"properties":{"NAME":"Palma Soriano","NAMEASCII":"Palma Soriano","POP_MAX":102826,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-77.2332809,17.9666152],"properties":{"NAME":"May Pen","NAMEASCII":"May Pen","POP_MAX":135142,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-76.9499907,17.9833325],"properties":{"NAME":"Spanish Town","NAMEASCII":"Spanish Town","POP_MAX":432704,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-74.8099921,4.3100069],"properties":{"NAME":"Girardot","NAMEASCII":"Girardot","POP_MAX":130289,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.330012,2.6900025],"properties":{"NAME":"Campoalegre","NAMEASCII":"Campoalegre","POP_MAX":22568,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.6199498,1.0899968],"properties":{"NAME":"Túquerres","NAMEASCII":"Tuquerres","POP_MAX":33979,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-76.6299844,1.1499931],"properties":{"NAME":"Mocoa","NAMEASCII":"Mocoa","POP_MAX":22035,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.9100283,4.7499801],"properties":{"NAME":"Cartago","NAMEASCII":"Cartago","POP_MAX":134827,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.8400397,0.6099744],"properties":{"NAME":"San Gabriel","NAMEASCII":"San Gabriel","POP_MAX":16066,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-74.7699945,10.9200169],"properties":{"NAME":"Soledad","NAMEASCII":"Soledad","POP_MAX":698852,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.9199854,10.6399823],"properties":{"NAME":"Sabanalarga","NAMEASCII":"Sabanalarga","POP_MAX":68535,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.349985,10.2600314],"properties":{"NAME":"Arjona","NAMEASCII":"Arjona","POP_MAX":50405,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.7400222,9.2299909],"properties":{"NAME":"Magangué","NAMEASCII":"Magangue","POP_MAX":100313,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.2500098,10.4799921],"properties":{"NAME":"Valledupar","NAMEASCII":"Valledupar","POP_MAX":308237,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-72.6399954,2.5699839],"properties":{"NAME":"San José del Guaviare","NAMEASCII":"San Jose del Guaviare","POP_MAX":22136,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-72.9600275,4.0899945],"properties":{"NAME":"Puerto López","NAMEASCII":"Puerto Lopez","POP_MAX":16678,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-82.4990835,22.8911208],"properties":{"NAME":"San Antonio de los Baños","NAMEASCII":"San Antonio de los Banos","POP_MAX":42724,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-82.028027,22.8361371],"properties":{"NAME":"Güines","NAMEASCII":"Guines","POP_MAX":68935,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-79.4722398,22.5157949],"properties":{"NAME":"Caibarién","NAMEASCII":"Caibarien","POP_MAX":39140,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-79.6554845,22.3158071],"properties":{"NAME":"Placetas","NAMEASCII":"Placetas","POP_MAX":55408,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[8.5300114,52.0299882],"properties":{"NAME":"Bielefeld","NAMEASCII":"Bielefeld","POP_MAX":331906,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.4500256,51.5299671],"properties":{"NAME":"Dortmund","NAMEASCII":"Dortmund","POP_MAX":588462,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[6.7500166,51.4299732],"properties":{"NAME":"Duisburg","NAMEASCII":"Duisburg","POP_MAX":1276757,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.169991,51.25001],"properties":{"NAME":"Wuppertal","NAMEASCII":"Wuppertal","POP_MAX":776525,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.0166154,51.4499978],"properties":{"NAME":"Essen","NAMEASCII":"Essen","POP_MAX":1742135,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.3999934,48.9999923],"properties":{"NAME":"Karlsruhe","NAMEASCII":"Karlsruhe","POP_MAX":377487,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.6999751,49.4199925],"properties":{"NAME":"Heidelberg","NAMEASCII":"Heidelberg","POP_MAX":426590,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.5000297,51.3000069],"properties":{"NAME":"Kassel","NAMEASCII":"Kassel","POP_MAX":289924,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.2200044,53.1299986],"properties":{"NAME":"Oldenburg","NAMEASCII":"Oldenburg","POP_MAX":167458,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.2166548,53.3666767],"properties":{"NAME":"Emden","NAMEASCII":"Emden","POP_MAX":51526,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[10.5000203,52.2499748],"properties":{"NAME":"Braunschweig","NAMEASCII":"Braunschweig","POP_MAX":244715,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.0299621,50.9700529],"properties":{"NAME":"Erfurt","NAMEASCII":"Erfurt","POP_MAX":203254,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[15.5477742,45.4872093],"properties":{"NAME":"Karlovac","NAMEASCII":"Karlovac","POP_MAX":55063,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[14.4500118,45.3299837],"properties":{"NAME":"Rijeka","NAMEASCII":"Rijeka","POP_MAX":170992,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[10.9666068,50.2666075],"properties":{"NAME":"Coburg","NAMEASCII":"Coburg","POP_MAX":61054,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[10.8999959,48.3500061],"properties":{"NAME":"Augsburg","NAMEASCII":"Augsburg","POP_MAX":358989,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[10.9999898,49.4700153],"properties":{"NAME":"Fürth","NAMEASCII":"Furth","POP_MAX":237844,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[14.460037,48.9800193],"properties":{"NAME":"České Budějovice","NAMEASCII":"Ceske Budejovice","POP_MAX":98851,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[15.0799991,50.7999599],"properties":{"NAME":"Liberec","NAMEASCII":"Liberec","POP_MAX":102175,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[12.919976,50.8299839],"properties":{"NAME":"Chemnitz","NAMEASCII":"Chemnitz","POP_MAX":302643,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[18.0155822,45.1602783],"properties":{"NAME":"Slavonski Brod","NAMEASCII":"Slavonski Brod","POP_MAX":97718,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[17.256795794370266,49.58666133426005],"properties":{"NAME":"Olomouc","NAMEASCII":"Olomouc","POP_MAX":101268,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[27.283337,59.3999776],"properties":{"NAME":"Kohtla-Järve","NAMEASCII":"Kohtla-Jarve","POP_MAX":46060,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[89.6333296,28.9500016],"properties":{"NAME":"Gyangze","NAMEASCII":"Gyangze","POP_MAX":10000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.937775,34.7952521],"properties":{"NAME":"Dali","NAMEASCII":"Dali","POP_MAX":109696,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.5700081,37.869974],"properties":{"NAME":"Yangquan","NAMEASCII":"Yangquan","POP_MAX":981448,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.7799975,32.5700391],"properties":{"NAME":"Shiyan","NAMEASCII":"Shiyan","POP_MAX":770000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.5000052,32.5200163],"properties":{"NAME":"Danjiangkou","NAMEASCII":"Danjiangkou","POP_MAX":92008,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.2299865,30.3200214],"properties":{"NAME":"Jingzhou","NAMEASCII":"Jingzhou","POP_MAX":520000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.670002,31.2699892],"properties":{"NAME":"Anlu","NAMEASCII":"Anlu","POP_MAX":71198,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.4000443,25.9699768],"properties":{"NAME":"Zixing","NAMEASCII":"Zixing","POP_MAX":6618,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.3999735,31.1333309],"properties":{"NAME":"Deyang","NAMEASCII":"Deyang","POP_MAX":152194,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[98.4665889,25.0333157],"properties":{"NAME":"Tengchong","NAMEASCII":"Tengchong","POP_MAX":126058,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.4061324,23.3619448],"properties":{"NAME":"Mengzi","NAMEASCII":"Mengzi","POP_MAX":303341,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[101.5455741,25.0364162],"properties":{"NAME":"Chuxiong","NAMEASCII":"Chuxiong","POP_MAX":254370,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.7000073,37.7199831],"properties":{"NAME":"Hengshui","NAMEASCII":"Hengshui","POP_MAX":456356,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.0243379,40.5944072],"properties":{"NAME":"Xuanhua","NAMEASCII":"Xuanhua","POP_MAX":409745,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.02998,33.5700039],"properties":{"NAME":"Luohe","NAMEASCII":"Luohe","POP_MAX":417356,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.7600085,41.8100177],"properties":{"NAME":"Beipiao","NAMEASCII":"Beipiao","POP_MAX":228515,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.9959537,39.6259133],"properties":{"NAME":"Wafangdian","NAMEASCII":"Wafangdian","POP_MAX":355844,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.3800927,35.9899595],"properties":{"NAME":"Zhucheng","NAMEASCII":"Zhucheng","POP_MAX":1060000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.7769864,39.231958],"properties":{"NAME":"Hangu","NAMEASCII":"Hangu","POP_MAX":332793,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.3500264,34.3800061],"properties":{"NAME":"Xinyi","NAMEASCII":"Xinyi","POP_MAX":962656,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.4300122,32.3999978],"properties":{"NAME":"Yangzhou","NAMEASCII":"Yangzhou","POP_MAX":539715,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.1199865,28.8500078],"properties":{"NAME":"Linhai","NAMEASCII":"Linhai","POP_MAX":251759,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.2500044,28.65002],"properties":{"NAME":"Huangyan","NAMEASCII":"Huangyan","POP_MAX":198713,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[133.9170865,34.6720296],"properties":{"NAME":"Okayama","NAMEASCII":"Okayama","POP_MAX":866092,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[130.9454333,33.9654319],"properties":{"NAME":"Shimonoseki","NAMEASCII":"Shimonoseki","POP_MAX":245786,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[124.2999991,45.4999992],"properties":{"NAME":"Daan","NAMEASCII":"Daan","POP_MAX":93297,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.9899922,44.2699968],"properties":{"NAME":"Changling","NAMEASCII":"Changling","POP_MAX":55841,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.7499882,41.679974],"properties":{"NAME":"Tonghua","NAMEASCII":"Tonghua","POP_MAX":27227,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.4299983,41.9000122],"properties":{"NAME":"Baishan","NAMEASCII":"Baishan","POP_MAX":330000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.5127559,42.8823037],"properties":{"NAME":"Yanji","NAMEASCII":"Yanji","POP_MAX":488740,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.8500386,31.3833157],"properties":{"NAME":"Kanoya","NAMEASCII":"Kanoya","POP_MAX":82335,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[134.044779,34.344737],"properties":{"NAME":"Takamatsu","NAMEASCII":"Takamatsu","POP_MAX":334223,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[134.5525,34.0673895],"properties":{"NAME":"Tokushima","NAMEASCII":"Tokushima","POP_MAX":443760,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[121.5166548,50.7833201],"properties":{"NAME":"Genhe","NAMEASCII":"Genhe","POP_MAX":42849,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.5338863,41.5494393],"properties":{"NAME":"Shangdu","NAMEASCII":"Shangdu","POP_MAX":18831,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.7166756,50.5666667],"properties":{"NAME":"Orongen Zizhiqi","NAMEASCII":"Orongen Zizhiqi","POP_MAX":40128,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.7199922,48.0000016],"properties":{"NAME":"Zalantun","NAMEASCII":"Zalantun","POP_MAX":138032,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.4408357,41.0955135],"properties":{"NAME":"Wuchuan","NAMEASCII":"Wuchuan","POP_MAX":23776,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[107.140013,40.8846995],"properties":{"NAME":"Hanggin Houqi","NAMEASCII":"Hanggin Houqi","POP_MAX":39954,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.3200402,46.399996],"properties":{"NAME":"Anda","NAMEASCII":"Anda","POP_MAX":181533,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.1000443,46.6900299],"properties":{"NAME":"Qinggang","NAMEASCII":"Qinggang","POP_MAX":64182,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.8000297,47.1600529],"properties":{"NAME":"Angangxi","NAMEASCII":"Angangxi","POP_MAX":24317,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.6100154,47.2099724],"properties":{"NAME":"Hulan Ergi","NAMEASCII":"Hulan Ergi","POP_MAX":289999,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[127.5118444,46.8718535],"properties":{"NAME":"Qingan","NAMEASCII":"Qingan","POP_MAX":53206,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.0818542,47.6018347],"properties":{"NAME":"Baiquan","NAMEASCII":"Baiquan","POP_MAX":70472,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[127.1059777,47.2459908],"properties":{"NAME":"Suileng","NAMEASCII":"Suileng","POP_MAX":57789,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.2518839,45.2818988],"properties":{"NAME":"Linkou","NAMEASCII":"Linkou","POP_MAX":77754,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[137.2300109,36.6999937],"properties":{"NAME":"Toyama","NAMEASCII":"Toyama","POP_MAX":332812,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[136.9999991,36.6700214],"properties":{"NAME":"Takaoka","NAMEASCII":"Takaoka","POP_MAX":170077,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[135.8674068,35.006402],"properties":{"NAME":"Ōtsu","NAMEASCII":"Otsu","POP_MAX":536976,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.0726892,36.3926998],"properties":{"NAME":"Maebashi","NAMEASCII":"Maebashi","POP_MAX":344871,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.705002,35.5299876],"properties":{"NAME":"Kawasaki","NAMEASCII":"Kawasaki","POP_MAX":1437266,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.4910616,35.91769],"properties":{"NAME":"Kawagoe","NAMEASCII":"Kawagoe","POP_MAX":337931,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.8700048,36.549977],"properties":{"NAME":"Utsunomiya","NAMEASCII":"Utsunomiya","POP_MAX":667752,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.3260587,35.6577059],"properties":{"NAME":"Hachiōji","NAMEASCII":"Hachioji","POP_MAX":579399,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.3799996,37.4099762],"properties":{"NAME":"Kōriyama","NAMEASCII":"Koriyama","POP_MAX":340560,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[-89.4400035,16.2000047],"properties":{"NAME":"San Luis","NAMEASCII":"San Luis","POP_MAX":132470,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.3799978,15.4699976],"properties":{"NAME":"Cobán","NAMEASCII":"Coban","POP_MAX":65194,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-88.7562345,15.8306539],"properties":{"NAME":"Livingston","NAMEASCII":"Livingston","POP_MAX":14350,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-89.9000013,14.2899921],"properties":{"NAME":"Jutiapa","NAMEASCII":"Jutiapa","POP_MAX":50681,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-71.4166333,18.4666105],"properties":{"NAME":"Neiba","NAMEASCII":"Neiba","POP_MAX":25731,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.5165849,19.2165906],"properties":{"NAME":"La Vega","NAMEASCII":"La Vega","POP_MAX":163197,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-70.250012,19.2999964],"properties":{"NAME":"San Francisco de Macorís","NAMEASCII":"San Francisco de Macoris","POP_MAX":152538,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-52.3300206,4.7299813],"properties":{"NAME":"Roura","NAMEASCII":"Roura","POP_MAX":2229,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-52.9599821,5.3800191],"properties":{"NAME":"Sinnamary","NAMEASCII":"Sinnamary","POP_MAX":3180,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[77.166597,31.1000255],"properties":{"NAME":"Simla","NAMEASCII":"Simla","POP_MAX":173503,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.019991,28.4500063],"properties":{"NAME":"Gurgaon","NAMEASCII":"Gurgaon","POP_MAX":197340,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.019991,28.9999986],"properties":{"NAME":"Sonipat","NAMEASCII":"Sonipat","POP_MAX":250521,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.5800179,28.9000047],"properties":{"NAME":"Rohtak","NAMEASCII":"Rohtak","POP_MAX":317245,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.7250313,29.1699882],"properties":{"NAME":"Hisar","NAMEASCII":"Hisar","POP_MAX":544829,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.1250069,28.8100102],"properties":{"NAME":"Bhiwani","NAMEASCII":"Bhiwani","POP_MAX":190855,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.7918216150194,30.377311358455415],"properties":{"NAME":"Ambala","NAMEASCII":"Ambala","POP_MAX":146787,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.4666585,34.2999593],"properties":{"NAME":"Sopore","NAMEASCII":"Sopore","POP_MAX":63035,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.0166178,20.2665782],"properties":{"NAME":"Silvassa","NAMEASCII":"Silvassa","POP_MAX":27359,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.1601749,19.250232],"properties":{"NAME":"Kalyan","NAMEASCII":"Kalyan","POP_MAX":1576614,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.8300378,21.0199947],"properties":{"NAME":"Bhusawal","NAMEASCII":"Bhusawal","POP_MAX":183001,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[94.2166674,26.7499809],"properties":{"NAME":"Jorhat","NAMEASCII":"Jorhat","POP_MAX":69033,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[-2.7833033,48.5166626],"properties":{"NAME":"St.-Brieuc","NAMEASCII":"St.-Brieuc","POP_MAX":53223,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[0.3332765,46.5832923],"properties":{"NAME":"Poitier","NAMEASCII":"Poitier","POP_MAX":85960,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-0.5300299,47.4800075],"properties":{"NAME":"Angers","NAMEASCII":"Angers","POP_MAX":188380,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-1.5615949,43.4732754],"properties":{"NAME":"Biarritz","NAMEASCII":"Biarritz","POP_MAX":145348,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[5.4499926,43.5199909],"properties":{"NAME":"Aix-en-Provence","NAMEASCII":"Aix-en-Provence","POP_MAX":146821,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[2.8999674,42.6999892],"properties":{"NAME":"Perpignan","NAMEASCII":"Perpignan","POP_MAX":146620,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[0.0833435,43.23329],"properties":{"NAME":"Tarbes","NAMEASCII":"Tarbes","POP_MAX":54854,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.0800081,45.7799821],"properties":{"NAME":"Clermont-Ferrand","NAMEASCII":"Clermont-Ferrand","POP_MAX":233050,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[2.6666483,48.5333024],"properties":{"NAME":"Melun","NAMEASCII":"Melun","POP_MAX":249432,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[2.7833337,50.2833248],"properties":{"NAME":"Arras","NAMEASCII":"Arras","POP_MAX":64165,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[6.0300089,47.229997],"properties":{"NAME":"Besançon","NAMEASCII":"Besancon","POP_MAX":128426,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-71.4666045,-52.6499788],"properties":{"NAME":"Río Verde","NAMEASCII":"Rio Verde","POP_MAX":358,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.1333008,-19.1166768],"properties":{"NAME":"Cuya","NAMEASCII":"Cuya","POP_MAX":20,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-68.9299893,-22.3199955],"properties":{"NAME":"Chuquicamata","NAMEASCII":"Chuquicamata","POP_MAX":0,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-69.6699958,-22.3500195],"properties":{"NAME":"María Elena","NAMEASCII":"Maria Elena","POP_MAX":2370,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.2799844,-27.4800423],"properties":{"NAME":"Tierra Amarilla","NAMEASCII":"Tierra Amarilla","POP_MAX":12888,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.9999921,-31.1800232],"properties":{"NAME":"Combarbalá","NAMEASCII":"Combarbala","POP_MAX":5134,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.6999846,-33.5999788],"properties":{"NAME":"San Bernardo","NAMEASCII":"San Bernardo","POP_MAX":246762,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.7200092,-32.7500049],"properties":{"NAME":"San Felipe","NAMEASCII":"San Felipe","POP_MAX":59294,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.55708337273282,-33.02489773868034],"properties":{"NAME":"Viña del Mar","NAMEASCII":"Vina del Mar","POP_MAX":503534,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.2400291,-32.4599967],"properties":{"NAME":"La Ligua","NAMEASCII":"La Ligua","POP_MAX":26665,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.2600021,-32.8799711],"properties":{"NAME":"Quillota","NAMEASCII":"Quillota","POP_MAX":79686,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.9600275,-38.7400268],"properties":{"NAME":"Nueva Imperial","NAMEASCII":"Nueva Imperial","POP_MAX":18777,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.629996,-39.3700142],"properties":{"NAME":"Loncoche","NAMEASCII":"Loncoche","POP_MAX":15590,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.2299945,-39.2800456],"properties":{"NAME":"Villarica","NAMEASCII":"Villarica","POP_MAX":31602,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.212338,-39.2165905],"properties":{"NAME":"Toltén","NAMEASCII":"Tolten","POP_MAX":2293,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.2332854,-38.4333272],"properties":{"NAME":"Lonquimay","NAMEASCII":"Lonquimay","POP_MAX":10237,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.70549687199102,-37.802211129548745],"properties":{"NAME":"Angol","NAMEASCII":"Angol","POP_MAX":44856,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.4300082,-37.9599711],"properties":{"NAME":"Collipulli","NAMEASCII":"Collipulli","POP_MAX":16392,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.0899679,-40.2899581],"properties":{"NAME":"La Unión","NAMEASCII":"La Union","POP_MAX":26298,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.9600275,-40.3400325],"properties":{"NAME":"Río Bueno","NAMEASCII":"Rio Bueno","POP_MAX":15456,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.1600153,-37.0299503],"properties":{"NAME":"Coronel","NAMEASCII":"Coronel","POP_MAX":92940,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.1166588,-36.7166878],"properties":{"NAME":"Talcahuano","NAMEASCII":"Talcahuano","POP_MAX":288074,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.5300021,-36.280022],"properties":{"NAME":"Quirihue","NAMEASCII":"Quirihue","POP_MAX":6529,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.3400043,-37.4800004],"properties":{"NAME":"Curanilahue","NAMEASCII":"Curanilahue","POP_MAX":30611,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.0199815,-37.6700146],"properties":{"NAME":"Santa Bárbara","NAMEASCII":"Santa Barbara","POP_MAX":3494,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.9999827,-34.3800346],"properties":{"NAME":"Pichilemu","NAMEASCII":"Pichilemu","POP_MAX":11603,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.9899669,-34.5800224],"properties":{"NAME":"San Fernando","NAMEASCII":"San Fernando","POP_MAX":60746,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.9899998,-41.3299979],"properties":{"NAME":"Puerto Varas","NAMEASCII":"Puerto Varas","POP_MAX":24958,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.19469206025751,-41.76052015637703],"properties":{"NAME":"Calbuco","NAMEASCII":"Calbuco","POP_MAX":12490,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.7623342,-42.4807616],"properties":{"NAME":"Castro","NAMEASCII":"Castro","POP_MAX":29926,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.79402019666776,-42.63709990186921],"properties":{"NAME":"Chonchi","NAMEASCII":"Chonchi","POP_MAX":381,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.59136123379247,-35.85066841888429],"properties":{"NAME":"Linares","NAMEASCII":"Linares","POP_MAX":81015,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.3136284751074,-35.97513032127918],"properties":{"NAME":"Cauquenes","NAMEASCII":"Cauquenes","POP_MAX":31362,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[23.6999898,37.9500208],"properties":{"NAME":"Piraeus","NAMEASCII":"Piraievs","POP_MAX":466065,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[22.9500097,39.3699599],"properties":{"NAME":"Volos","NAMEASCII":"Volos","POP_MAX":110632,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[24.0155778,35.5122109],"properties":{"NAME":"Hania","NAMEASCII":"Hania","POP_MAX":78728,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[24.4017604,40.9412111],"properties":{"NAME":"Kavala","NAMEASCII":"Kavala","POP_MAX":59240,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[25.8744098,40.8486194],"properties":{"NAME":"Alexandroupoli","NAMEASCII":"Alexandroupoli","POP_MAX":52979,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[42.729991,42.2499909],"properties":{"NAME":"Kutaisi","NAMEASCII":"Kutaisi","POP_MAX":183945,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[43.9750313,42.2324984],"properties":{"NAME":"Tskhinvali","NAMEASCII":"Tskhinvali","POP_MAX":38502,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[34.8300081,31.2500163],"properties":{"NAME":"Beer Sheva","NAMEASCII":"Beer Sheva","POP_MAX":206408,"ISO_A2":"IL","SOV_A3":"IS1"}},{"type":"Point","coordinates":[28.8833427,61.8666229],"properties":{"NAME":"Savonlinna","NAMEASCII":"Savonlinna","POP_MAX":27353,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[21.7749393,61.4788947],"properties":{"NAME":"Pori","NAMEASCII":"Pori","POP_MAX":76772,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[64.078042,45.4877261],"properties":{"NAME":"Zhosaly","NAMEASCII":"Zhosaly","POP_MAX":20065,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[52.8214681,29.8014484],"properties":{"NAME":"Marv Dasht","NAMEASCII":"Marv Dasht","POP_MAX":125000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[54.9628877,36.4228788],"properties":{"NAME":"Shahrud","NAMEASCII":"Shahrud","POP_MAX":131889,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[51.6466044,35.3165898],"properties":{"NAME":"Varamin","NAMEASCII":"Varamin","POP_MAX":179603,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[49.2999259,31.9799976],"properties":{"NAME":"Masjed Soleyman","NAMEASCII":"Masjed Soleyman","POP_MAX":153663,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.8000081,33.9199567],"properties":{"NAME":"Borujerd","NAMEASCII":"Borujerd","POP_MAX":251958,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[47.7079817,30.3891644],"properties":{"NAME":"Az Aubayr","NAMEASCII":"Az Aubayr","POP_MAX":262219,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[44.9239656,31.9889376],"properties":{"NAME":"Ad Diwaniyah","NAMEASCII":"Ad Diwaniyah","POP_MAX":358408,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[46.1772225,31.4175255],"properties":{"NAME":"Ash Shatrah","NAMEASCII":"Ash Shatrah","POP_MAX":161949,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[48.8499792,34.3199839],"properties":{"NAME":"Malayer","NAMEASCII":"Malayer","POP_MAX":176573,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.5000264,36.6700214],"properties":{"NAME":"Zanjan","NAMEASCII":"Zanjan","POP_MAX":357471,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[44.9999816,37.5299947],"properties":{"NAME":"Urmia","NAMEASCII":"Urmia","POP_MAX":577307,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[47.0629048,38.4829081],"properties":{"NAME":"Ahar","NAMEASCII":"Ahar","POP_MAX":103639,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[47.0200134,35.3000016],"properties":{"NAME":"Sanandaj","NAMEASCII":"Sanandaj","POP_MAX":349176,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[45.5463566,33.7436109],"properties":{"NAME":"Mandali","NAMEASCII":"Mandali","POP_MAX":29785,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[58.8200166,36.220023],"properties":{"NAME":"Neyshabur","NAMEASCII":"Neyshabur","POP_MAX":221700,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[57.3200048,37.4699984],"properties":{"NAME":"Bojnurd","NAMEASCII":"Bojnurd","POP_MAX":208582,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[55.7300244,29.4699699],"properties":{"NAME":"Sirjan","NAMEASCII":"Sirjan","POP_MAX":175000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[75.9800028,31.519974],"properties":{"NAME":"Hoshiarpur","NAMEASCII":"Hoshiarpur","POP_MAX":158142,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.6399812,26.4499992],"properties":{"NAME":"Ajmer","NAMEASCII":"Ajmer","POP_MAX":589985,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.0500057,27.5999807],"properties":{"NAME":"Hathras","NAMEASCII":"Hathras","POP_MAX":126882,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.68324247195959,27.551591415569174],"properties":{"NAME":"Sitapur","NAMEASCII":"Sitapur","POP_MAX":164435,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.8100016,28.6399947],"properties":{"NAME":"Pilibhit","NAMEASCII":"Pilibhit","POP_MAX":131008,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.0899939,28.0300061],"properties":{"NAME":"Budaun","NAMEASCII":"Budaun","POP_MAX":161555,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.3949458,27.1499823],"properties":{"NAME":"Firozabad","NAMEASCII":"Firozabad","POP_MAX":306409,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.6700288,27.4999868],"properties":{"NAME":"Mathura","NAMEASCII":"Mathura","POP_MAX":330511,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.8484159,28.4103705],"properties":{"NAME":"Bulandshahr","NAMEASCII":"Bulandshahr","POP_MAX":198612,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.762788,28.7436577],"properties":{"NAME":"Hapur","NAMEASCII":"Hapur","POP_MAX":242920,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.6950402,29.4850078],"properties":{"NAME":"Muzaffarnagar","NAMEASCII":"Muzaffarnagar","POP_MAX":349706,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[88.6166475,27.3333303],"properties":{"NAME":"Gangtok","NAMEASCII":"Gangtok","POP_MAX":77900,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[9.3999841,56.433337],"properties":{"NAME":"Viborg","NAMEASCII":"Viborg","POP_MAX":34831,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[12.0833345,55.649974],"properties":{"NAME":"Roskilde","NAMEASCII":"Roskilde","POP_MAX":44285,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[43.2999821,33.420013],"properties":{"NAME":"Ar Ramadi","NAMEASCII":"Ar Ramadi","POP_MAX":295121,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[44.2899991,32.778631],"properties":{"NAME":"Al Musayyib","NAMEASCII":"Al Musayyib","POP_MAX":76454,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[19.6800284,46.0700161],"properties":{"NAME":"Subotica","NAMEASCII":"Subotica","POP_MAX":100000,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[-46.1499844,-5.8099955],"properties":{"NAME":"Grajau","NAMEASCII":"Grajau","POP_MAX":30217,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.5199805,-5.2500297],"properties":{"NAME":"Presidente Dutra","NAMEASCII":"Presidente Dutra","POP_MAX":30330,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.3600161,-3.4000134],"properties":{"NAME":"Itapecuru Mirim","NAMEASCII":"Itapecuru Mirim","POP_MAX":34943,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.0699821,-2.5499878],"properties":{"NAME":"São José de Ribamar","NAMEASCII":"Sao Jose de Ribamar","POP_MAX":55265,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.3900308,-3.6599975],"properties":{"NAME":"Santa Inês","NAMEASCII":"Santa Ines","POP_MAX":67424,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.2600222,-2.9400415],"properties":{"NAME":"Rosário","NAMEASCII":"Rosario","POP_MAX":6798,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.8449665,-5.1149992],"properties":{"NAME":"Timon","NAMEASCII":"Timon","POP_MAX":203157,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.179999,-1.1900191],"properties":{"NAME":"Capanema","NAMEASCII":"Capanema","POP_MAX":47766,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.8199836,-1.9499727],"properties":{"NAME":"Portel","NAMEASCII":"Portel","POP_MAX":21315,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.3000247,-5.1200118],"properties":{"NAME":"Itupiranga","NAMEASCII":"Itupiranga","POP_MAX":21301,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-61.2099954,-11.6400272],"properties":{"NAME":"Pimenta Bueno","NAMEASCII":"Pimenta Bueno","POP_MAX":25762,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.7299681,-22.5300085],"properties":{"NAME":"Ponta Porã","NAMEASCII":"Ponta Pora","POP_MAX":94331,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.1800275,-21.610013],"properties":{"NAME":"Maracaju","NAMEASCII":"Maracaju","POP_MAX":22690,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-56.15002,-21.4799434],"properties":{"NAME":"Jardim","NAMEASCII":"Jardim","POP_MAX":23780,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.7200061,-20.7900114],"properties":{"NAME":"Três Lagoas","NAMEASCII":"Tres Lagoas","POP_MAX":78712,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.9500247,-18.7800049],"properties":{"NAME":"Guanhães","NAMEASCII":"Guanhaes","POP_MAX":23727,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.6400436,-21.5300179],"properties":{"NAME":"Leopoldina","NAMEASCII":"Leopoldina","POP_MAX":46742,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.8500214,-19.980035],"properties":{"NAME":"Nova Lima","NAMEASCII":"Nova Lima","POP_MAX":88399,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.940023,-22.2200016],"properties":{"NAME":"Pouso Alegre","NAMEASCII":"Pouso Alegre","POP_MAX":115201,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.5700291,-20.0600301],"properties":{"NAME":"Itaúna","NAMEASCII":"Itauna","POP_MAX":77400,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.1399966,-19.7900207],"properties":{"NAME":"Caratinga","NAMEASCII":"Caratinga","POP_MAX":60066,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.6099844,-18.2399861],"properties":{"NAME":"Diamantina","NAMEASCII":"Diamantina","POP_MAX":37343,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.3500283,-17.8399589],"properties":{"NAME":"Nanuque","NAMEASCII":"Nanuque","POP_MAX":37824,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.7700004,-21.220011],"properties":{"NAME":"Barbacena","NAMEASCII":"Barbacena","POP_MAX":122211,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.5699846,-21.7800285],"properties":{"NAME":"Poços de Caldas","NAMEASCII":"Pocos de Caldas","POP_MAX":146588,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.7099502,-21.2900325],"properties":{"NAME":"Guaxupé","NAMEASCII":"Guaxupe","POP_MAX":47889,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.249997,-21.1300423],"properties":{"NAME":"São João del Rei","NAMEASCII":"Sao Joao del Rei","POP_MAX":78592,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.3899813,-21.1300423],"properties":{"NAME":"Muriaé","NAMEASCII":"Muriae","POP_MAX":91173,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.6099821,-20.7100163],"properties":{"NAME":"Passos","NAMEASCII":"Passos","POP_MAX":98752,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.7899992,-20.6700187],"properties":{"NAME":"Conselheiro Lafaiete","NAMEASCII":"Conselheiro Lafaiete","POP_MAX":111596,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.4300283,-20.4600057],"properties":{"NAME":"Formiga","NAMEASCII":"Formiga","POP_MAX":56404,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.9400208,-20.0300061],"properties":{"NAME":"Frutal","NAMEASCII":"Frutal","POP_MAX":40931,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.2000214,-19.7299727],"properties":{"NAME":"Iturama","NAMEASCII":"Iturama","POP_MAX":29805,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.4599891,-18.9700191],"properties":{"NAME":"Ituiutaba","NAMEASCII":"Ituiutaba","POP_MAX":85345,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.1999884,-18.6400134],"properties":{"NAME":"Araguari","NAMEASCII":"Araguari","POP_MAX":96565,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.700007,-16.170035],"properties":{"NAME":"Almenara","NAMEASCII":"Almenara","POP_MAX":29333,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-56.1400206,-15.650015],"properties":{"NAME":"Várzea Grande","NAMEASCII":"Varzea Grande","POP_MAX":249752,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-57.5100145,-16.0500423],"properties":{"NAME":"Cáceres","NAMEASCII":"Caceres","POP_MAX":85274,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.5300061,-30.8800415],"properties":{"NAME":"Santana do Livramento","NAMEASCII":"Santana do Livramento","POP_MAX":89694,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.1799874,-29.9199967],"properties":{"NAME":"Canoas","NAMEASCII":"Canoas","POP_MAX":600000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-56.4599494,-30.3800203],"properties":{"NAME":"Quaraí","NAMEASCII":"Quarai","POP_MAX":23229,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-53.369983,-33.5200354],"properties":{"NAME":"Santa Vitória do Palmar","NAMEASCII":"Santa Vitoria do Palmar","POP_MAX":27775,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.9800161,-31.3699857],"properties":{"NAME":"São Lourenço do Sul","NAMEASCII":"Sao Lourenco do Sul","POP_MAX":25340,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.81001,-29.3600309],"properties":{"NAME":"Canela","NAMEASCII":"Canela","POP_MAX":60806,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.3200283,-30.320024],"properties":{"NAME":"São Gabriel","NAMEASCII":"Sao Gabriel","POP_MAX":55434,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.9200175,-30.2500024],"properties":{"NAME":"Rosário do Sul","NAMEASCII":"Rosario do Sul","POP_MAX":36721,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.9099852,-30.0299642],"properties":{"NAME":"Cachoeira do Sul","NAMEASCII":"Cachoeira do Sul","POP_MAX":74694,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.2699913,-29.8799992],"properties":{"NAME":"Osório","NAMEASCII":"Osorio","POP_MAX":34628,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.4400397,-29.7100354],"properties":{"NAME":"Santa Cruz do Sul","NAMEASCII":"Santa Cruz do Sul","POP_MAX":113625,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.9599893,-28.4100114],"properties":{"NAME":"São Luiz Gonzaga","NAMEASCII":"Sao Luiz Gonzaga","POP_MAX":31798,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.2800308,-28.3000439],"properties":{"NAME":"Santo Ângelo","NAMEASCII":"Santo Angelo","POP_MAX":65420,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.8000436,-28.2900187],"properties":{"NAME":"Carazinho","NAMEASCII":"Carazinho","POP_MAX":59417,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.2699984,-27.6300073],"properties":{"NAME":"Erechim","NAMEASCII":"Erechim","POP_MAX":96087,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.2699797,-24.089965],"properties":{"NAME":"Guaira","NAMEASCII":"Guaira","POP_MAX":36426,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.9999891,-26.48],"properties":{"NAME":"Palmas","NAMEASCII":"Palmas","POP_MAX":39150,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.4300497,-23.4100065],"properties":{"NAME":"Arapongas","NAMEASCII":"Arapongas","POP_MAX":97512,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.5344535,-25.5278756],"properties":{"NAME":"Paranaguá","NAMEASCII":"Paranagua","POP_MAX":141013,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.1800061,-25.5700297],"properties":{"NAME":"São José dos Pinhais","NAMEASCII":"Sao Jose dos Pinhais","POP_MAX":665063,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.4800208,-25.3800154],"properties":{"NAME":"Guarapuava","NAMEASCII":"Guarapuava","POP_MAX":150850,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.7900206,-26.1000232],"properties":{"NAME":"Rio Negro","NAMEASCII":"Rio Negro","POP_MAX":65597,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.4700214,-23.5499979],"properties":{"NAME":"Apucarana","NAMEASCII":"Apucarana","POP_MAX":107085,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.7299984,-25.7600439],"properties":{"NAME":"Lapa","NAMEASCII":"Lapa","POP_MAX":25621,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.6599675,-25.4700358],"properties":{"NAME":"Irati","NAMEASCII":"Irati","POP_MAX":45830,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.0099813,-24.7900256],"properties":{"NAME":"Castro","NAMEASCII":"Castro","POP_MAX":42091,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.6199958,-24.3299503],"properties":{"NAME":"Telêmaco Borba","NAMEASCII":"Telemaco Borba","POP_MAX":58880,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.9799832,-23.1599442],"properties":{"NAME":"Jacarezinho","NAMEASCII":"Jacarezinho","POP_MAX":35090,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.0300131,-27.2300317],"properties":{"NAME":"Concórdia","NAMEASCII":"Concordia","POP_MAX":55367,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.0899858,-26.9200248],"properties":{"NAME":"Blumenau","NAMEASCII":"Blumenau","POP_MAX":293949,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.9300214,-27.1299861],"properties":{"NAME":"Brusque","NAMEASCII":"Brusque","POP_MAX":88284,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.4999866,-28.9400049],"properties":{"NAME":"Araranguá","NAMEASCII":"Ararangua","POP_MAX":43444,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.0999852,-26.48],"properties":{"NAME":"Jaraguá do Sul","NAMEASCII":"Jaragua do Sul","POP_MAX":130130,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.0200159,-28.4800329],"properties":{"NAME":"Tubarão","NAMEASCII":"Tubarao","POP_MAX":92275,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.7799789,-28.4800329],"properties":{"NAME":"Laguna","NAMEASCII":"Laguna","POP_MAX":39711,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.4999679,-27.1700354],"properties":{"NAME":"Joaçaba","NAMEASCII":"Joacaba","POP_MAX":38876,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.020023,-26.7700081],"properties":{"NAME":"Caçador","NAMEASCII":"Cacador","POP_MAX":63726,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.4000092,-26.1799666],"properties":{"NAME":"Canoinhas","NAMEASCII":"Canoinhas","POP_MAX":41498,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.8500236,-2.8999922],"properties":{"NAME":"Camocim","NAMEASCII":"Camocim","POP_MAX":44481,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.9799921,-4.9400228],"properties":{"NAME":"Russas","NAMEASCII":"Russas","POP_MAX":39465,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.3500283,-3.6900215],"properties":{"NAME":"Sobral","NAMEASCII":"Sobral","POP_MAX":157996,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.2999891,-6.3599878],"properties":{"NAME":"Iguatu","NAMEASCII":"Iguatu","POP_MAX":70380,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0200061,-4.9699951],"properties":{"NAME":"Quixadá","NAMEASCII":"Quixada","POP_MAX":49328,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.3099884,-4.3500329],"properties":{"NAME":"Canindé","NAMEASCII":"Caninde","POP_MAX":42720,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.18002,-4.8200301],"properties":{"NAME":"Campo Maior","NAMEASCII":"Campo Maior","POP_MAX":31739,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.2999868,-4.250039],"properties":{"NAME":"Barras","NAMEASCII":"Barras","POP_MAX":21597,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.8399677,-9.480004],"properties":{"NAME":"Rio Largo","NAMEASCII":"Rio Largo","POP_MAX":158545,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-36.6166386,-9.4165971],"properties":{"NAME":"Palmeira dos Índios","NAMEASCII":"Palmeira dos Indios","POP_MAX":41095,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0299797,-16.2800024],"properties":{"NAME":"Santa Cruz Cabrália","NAMEASCII":"Santa Cruz Cabralia","POP_MAX":19545,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.22168873828767,-9.402966500322927],"properties":{"NAME":"Paulo Afonso","NAMEASCII":"Paulo Afonso","POP_MAX":85350,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.6700253,-14.2099996],"properties":{"NAME":"Brumado","NAMEASCII":"Brumado","POP_MAX":41989,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.9699998,-13.5299894],"properties":{"NAME":"Jaguaquara","NAMEASCII":"Jaguaquara","POP_MAX":41498,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.2499827,-15.2499878],"properties":{"NAME":"Itapetinga","NAMEASCII":"Itapetinga","POP_MAX":59721,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.3300131,-14.3000199],"properties":{"NAME":"Ubaitaba","NAMEASCII":"Ubaitaba","POP_MAX":28375,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.1299807,-20.8500077],"properties":{"NAME":"Cachoeiro de Itapemirim","NAMEASCII":"Cachoeiro de Itapemirim","POP_MAX":187019,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.1699502,-22.5600325],"properties":{"NAME":"Barra Mansa","NAMEASCII":"Barra Mansa","POP_MAX":169386,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.44518951988282,-22.755051717816965],"properties":{"NAME":"Nova Iguaçu","NAMEASCII":"Nova Iguacu","POP_MAX":844583,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.30560241118898,-22.796378408911043],"properties":{"NAME":"Duque de Caxias","NAMEASCII":"Duque de Caxias","POP_MAX":842890,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.10582636571889,-22.88253375568974],"properties":{"NAME":"Niterói","NAMEASCII":"Niteroi","POP_MAX":1500513,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.0399768,-22.8899866],"properties":{"NAME":"Cabo Frio","NAMEASCII":"Cabo Frio","POP_MAX":261721,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.7899921,-22.3799918],"properties":{"NAME":"Macaé","NAMEASCII":"Macae","POP_MAX":143029,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.1999671,-21.4100252],"properties":{"NAME":"Miracema","NAMEASCII":"Miracema","POP_MAX":26684,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.8000031,-5.6500053],"properties":{"NAME":"Apodi","NAMEASCII":"Apodi","POP_MAX":16757,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-36.0299819,-6.2199963],"properties":{"NAME":"Santa Cruz","NAMEASCII":"Santa Cruz","POP_MAX":27775,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-96.8833218,50.1500255],"properties":{"NAME":"Selkirk","NAMEASCII":"Selkirk","POP_MAX":9986,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-97.0333126,52.3665568],"properties":{"NAME":"Berens River","NAMEASCII":"Berens River","POP_MAX":892,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-101.3166171,55.7332764],"properties":{"NAME":"Pukatawagan","NAMEASCII":"Pukatawagan","POP_MAX":431,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-96.9999813,50.6333034],"properties":{"NAME":"Gimli","NAMEASCII":"Gimli","POP_MAX":2623,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.7665776,53.9665884],"properties":{"NAME":"Island Lake","NAMEASCII":"Island Lake","POP_MAX":10,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-102.7999891,50.933311],"properties":{"NAME":"Melville","NAMEASCII":"Melville","POP_MAX":4279,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-103.8500025,49.6665666],"properties":{"NAME":"Weyburn","NAMEASCII":"Weyburn","POP_MAX":9362,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-105.3000173,55.1000075],"properties":{"NAME":"La Ronge","NAMEASCII":"La Ronge","POP_MAX":3783,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-105.8332664,59.2665749],"properties":{"NAME":"Stony Rapids","NAMEASCII":"Stony Rapids","POP_MAX":152,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-112.8166386,53.016698],"properties":{"NAME":"Camrose","NAMEASCII":"Camrose","POP_MAX":15808,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-117.5833503,53.3999821],"properties":{"NAME":"Hinton","NAMEASCII":"Hinton","POP_MAX":10265,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-112.0499671,53.499976],"properties":{"NAME":"Vegreville","NAMEASCII":"Vegreville","POP_MAX":5813,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-112.6832876,52.3329671],"properties":{"NAME":"Stettler","NAMEASCII":"Stettler","POP_MAX":5494,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-111.964701,54.7719397],"properties":{"NAME":"Lac La Biche","NAMEASCII":"Lac La Biche","POP_MAX":2986,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-113.3832966,52.9665719],"properties":{"NAME":"Wetaskiwin","NAMEASCII":"Wetaskiwin","POP_MAX":11823,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-117.6829824,59.0332817],"properties":{"NAME":"Meander River","NAMEASCII":"Meander River","POP_MAX":200,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-116.516697,49.0999603],"properties":{"NAME":"Creston","NAMEASCII":"Creston","POP_MAX":4816,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-115.7666653,49.5166791],"properties":{"NAME":"Cranbrook","NAMEASCII":"Cranbrook","POP_MAX":18610,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-128.5833248,54.4999925],"properties":{"NAME":"Terrace","NAMEASCII":"Terrace","POP_MAX":19443,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-121.949983,49.1666488],"properties":{"NAME":"Chilliwack","NAMEASCII":"Chilliwack","POP_MAX":51942,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.236083,68.7674668],"properties":{"NAME":"Hall Beach","NAMEASCII":"Hall Beach","POP_MAX":654,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-110.7333291,62.4000529],"properties":{"NAME":"Lutselke","NAMEASCII":"Lutselke","POP_MAX":102,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-115.78834015551215,60.81427586815497],"properties":{"NAME":"Hay River","NAMEASCII":"Hay River","POP_MAX":3900,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-123.4166635,65.1833456],"properties":{"NAME":"Doline","NAMEASCII":"Doline","POP_MAX":525,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-123.9833214,69.3833218],"properties":{"NAME":"Paulatuk","NAMEASCII":"Paulatuk","POP_MAX":294,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-133.7499862,67.4332857],"properties":{"NAME":"Tsiigehtchic","NAMEASCII":"Tsiigehtchic","POP_MAX":175,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-80.94466076891213,44.56523419169317],"properties":{"NAME":"Owen Sound","NAMEASCII":"Owen Sound","POP_MAX":22625,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.4166618,44.5999766],"properties":{"NAME":"Orillia","NAMEASCII":"Orillia","POP_MAX":37483,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-82.4333252,49.4166852],"properties":{"NAME":"Kapuskasing","NAMEASCII":"Kapuskasing","POP_MAX":9240,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-83.5500013,46.2499793],"properties":{"NAME":"Thessalon","NAMEASCII":"Thessalon","POP_MAX":1464,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-86.9418705401598,49.72240628016717],"properties":{"NAME":"Geraldton","NAMEASCII":"Geraldton","POP_MAX":1290,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.3833492,44.1666697],"properties":{"NAME":"Belleville","NAMEASCII":"Belleville","POP_MAX":43990,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-82.3999681,42.9666396],"properties":{"NAME":"Sarnia","NAMEASCII":"Sarnia","POP_MAX":144172,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-78.3332654,44.2999691],"properties":{"NAME":"Peterborough","NAMEASCII":"Peterborough","POP_MAX":83627,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-78.8499781,43.8799947],"properties":{"NAME":"Oshawa","NAMEASCII":"Oshawa","POP_MAX":450963,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.2499866,42.9699986],"properties":{"NAME":"London","NAMEASCII":"London","POP_MAX":346765,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-80.5000066,43.4499951],"properties":{"NAME":"Kitchener","NAMEASCII":"Kitchener","POP_MAX":417001,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.6666466,47.5000063],"properties":{"NAME":"New Liskeard","NAMEASCII":"New Liskeard","POP_MAX":5203,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-75.6953127,44.5892796],"properties":{"NAME":"Brockville","NAMEASCII":"Brockville","POP_MAX":26458,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-89.8832839,52.9499837],"properties":{"NAME":"Big Beaver House","NAMEASCII":"Big Beaver House","POP_MAX":10,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.347995,49.8225777],"properties":{"NAME":"Port-Menier","NAMEASCII":"Port-Menier","POP_MAX":263,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-69.5333116,47.8332935],"properties":{"NAME":"Rivière-du-Loup","NAMEASCII":"Riviere-du-Loup","POP_MAX":16403,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-72.4833641,45.883335],"properties":{"NAME":"Drummondville","NAMEASCII":"Drummondville","POP_MAX":59489,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-71.8999889,45.4000053],"properties":{"NAME":"Sherbrooke","NAMEASCII":"Sherbrooke","POP_MAX":139652,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.6833047,49.0999603],"properties":{"NAME":"Cap-Chat","NAMEASCII":"Cap-Chat","POP_MAX":1484,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-68.157995,49.222666],"properties":{"NAME":"Baie-Comeau","NAMEASCII":"Baie-Comeau","POP_MAX":10435,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-61.8106564,50.1913408],"properties":{"NAME":"Natashquan","NAMEASCII":"Natashquan","POP_MAX":722,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-78.5166909,52.233335],"properties":{"NAME":"Eastmain","NAMEASCII":"Eastmain","POP_MAX":335,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.8166557,54.8],"properties":{"NAME":"Schefferville","NAMEASCII":"Schefferville","POP_MAX":471,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-75.659501,62.1825985],"properties":{"NAME":"Salluit","NAMEASCII":"Salluit","POP_MAX":106,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-78.1166637,48.5666337],"properties":{"NAME":"Amos","NAMEASCII":"Amos","POP_MAX":10516,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-73.4333061,46.0333258],"properties":{"NAME":"Joliette","NAMEASCII":"Joliette","POP_MAX":45361,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-73.9999899,45.7666496],"properties":{"NAME":"St.-Jerome","NAMEASCII":"St.-Jerome","POP_MAX":78439,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-58.6469994,51.2423102],"properties":{"NAME":"St-Augustin","NAMEASCII":"St-Augustin","POP_MAX":3961,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.0332485,48.2500122],"properties":{"NAME":"Rouyn-Noranda","NAMEASCII":"Rouyn-Noranda","POP_MAX":24602,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.2000342,48.8000045],"properties":{"NAME":"La Sarre","NAMEASCII":"La Sarre","POP_MAX":7206,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-62.6333193,45.5832758],"properties":{"NAME":"New Glasgow","NAMEASCII":"New Glasgow","POP_MAX":20322,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.7200137,44.0399591],"properties":{"NAME":"Liverpool","NAMEASCII":"Liverpool","POP_MAX":4331,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.2165819,45.816569],"properties":{"NAME":"Amherst","NAMEASCII":"Amherst","POP_MAX":9336,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-60.7539767,46.0999884],"properties":{"NAME":"Baddeck","NAMEASCII":"Baddeck","POP_MAX":852,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-57.4269188,49.1744002],"properties":{"NAME":"Deer Lake","NAMEASCII":"Deer Lake","POP_MAX":4163,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-55.5830003,49.9670134],"properties":{"NAME":"La Scie","NAMEASCII":"La Scie","POP_MAX":817,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-60.216671,55.4499603],"properties":{"NAME":"Hopedale","NAMEASCII":"Hopedale","POP_MAX":442,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-60.2999992,53.2999882],"properties":{"NAME":"Happy Valley - Goose Bay","NAMEASCII":"Happy Valley - Goose Bay","POP_MAX":7572,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-56.3000108,52.5332908],"properties":{"NAME":"Port Hope Simpson","NAMEASCII":"Port Hope Simpson","POP_MAX":197,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[20.9200044,44.0199603],"properties":{"NAME":"Kragujevac","NAMEASCII":"Kragujevac","POP_MAX":171197,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[20.3994677,45.3786371],"properties":{"NAME":"Zrenjanin","NAMEASCII":"Zrenjanin","POP_MAX":64053,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[-72.2196012862378,-51.58929026169316],"properties":{"NAME":"28 de Noviembre","NAMEASCII":"28 de Noviembre","POP_MAX":5300,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.250012,-48.7665983],"properties":{"NAME":"Gobernador Gregores","NAMEASCII":"Gobernador Gregores","POP_MAX":2519,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.9034727,-49.9745486],"properties":{"NAME":"Comondante Luis Piedrabuena","NAMEASCII":"Comondante Luis Piedrabuena","POP_MAX":410,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.2665743,-45.6833756],"properties":{"NAME":"Paso Río Mayo","NAMEASCII":"Paso Rio Mayo","POP_MAX":1825,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.8332839,-45.0332861],"properties":{"NAME":"Alto Rio Sanguer","NAMEASCII":"Alto Rio Sanguer","POP_MAX":1548,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-71.1666228,-42.0500057],"properties":{"NAME":"El Maitén","NAMEASCII":"El Maiten","POP_MAX":4269,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.04002,-42.7700134],"properties":{"NAME":"Puerto Madryn","NAMEASCII":"Puerto Madryn","POP_MAX":64555,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.3299506,-43.2500358],"properties":{"NAME":"Trelew","NAMEASCII":"Trelew","POP_MAX":93442,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.8016767,-32.825039],"properties":{"NAME":"Las Heras","NAMEASCII":"Las Heras","POP_MAX":66663,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.4900161,-33.0699853],"properties":{"NAME":"San Martín","NAMEASCII":"San Martin","POP_MAX":117399,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.3459845,-32.5931152],"properties":{"NAME":"Uspallata","NAMEASCII":"Uspallata","POP_MAX":2390,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.240022,-38.9400146],"properties":{"NAME":"Cutral Có","NAMEASCII":"Cutral Co","POP_MAX":47814,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.8399712,-17.5500024],"properties":{"NAME":"Punata","NAMEASCII":"Punata","POP_MAX":26323,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.9299915,-17.59],"properties":{"NAME":"Cliza","NAMEASCII":"Cliza","POP_MAX":15816,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.279996,-17.3999857],"properties":{"NAME":"Quillacollo","NAMEASCII":"Quillacollo","POP_MAX":227052,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.78001,-16.8700439],"properties":{"NAME":"Puerto Villarroel","NAMEASCII":"Puerto Villarroel","POP_MAX":1778,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.9199498,-19.1800321],"properties":{"NAME":"Tarabuco","NAMEASCII":"Tarabuco","POP_MAX":2428,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.4099974,-10.8299992],"properties":{"NAME":"Guayaramerín","NAMEASCII":"Guayaramerin","POP_MAX":36008,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.5799612,-13.7600012],"properties":{"NAME":"Santa Ana","NAMEASCII":"Santa Ana","POP_MAX":234478,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.5800574,-13.5800122],"properties":{"NAME":"Baures","NAMEASCII":"Baures","POP_MAX":2422,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-49.1099846,-17.7300431],"properties":{"NAME":"Morrinhos","NAMEASCII":"Morrinhos","POP_MAX":34143,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.6051998,-15.3033179],"properties":{"NAME":"Ceres","NAMEASCII":"Ceres","POP_MAX":18759,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.9500037,-18.1800415],"properties":{"NAME":"Catalão","NAMEASCII":"Catalao","POP_MAX":63544,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.6100245,-16.7699984],"properties":{"NAME":"Cristalina","NAMEASCII":"Cristalina","POP_MAX":36531,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.4999866,-16.6500057],"properties":{"NAME":"Trindade","NAMEASCII":"Trindade","POP_MAX":97521,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.1299905,-16.4500179],"properties":{"NAME":"Iporá","NAMEASCII":"Ipora","POP_MAX":28254,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.4999866,-16.3599975],"properties":{"NAME":"Inhumas","NAMEASCII":"Inhumas","POP_MAX":44058,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.8099677,-16.0199666],"properties":{"NAME":"Itaberaí","NAMEASCII":"Itaberai","POP_MAX":22129,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-62.0799681,-38.8799666],"properties":{"NAME":"Punta Alta","NAMEASCII":"Punta Alta","POP_MAX":57209,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.2400029,-33.3300211],"properties":{"NAME":"San Nicolas","NAMEASCII":"San Nicolas","POP_MAX":127742,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.9599777,-34.1599963],"properties":{"NAME":"Campana","NAMEASCII":"Campana","POP_MAX":81612,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.4899876,-34.6500439],"properties":{"NAME":"Chacabuco","NAMEASCII":"Chacabuco","POP_MAX":34587,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.4400259,-34.6600175],"properties":{"NAME":"Mercedes","NAMEASCII":"Mercedes","POP_MAX":52949,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.5399494,-34.880004],"properties":{"NAME":"Lincoln","NAMEASCII":"Lincoln","POP_MAX":24798,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.0399893,-34.8999512],"properties":{"NAME":"Chivilcoy","NAMEASCII":"Chivilcoy","POP_MAX":54514,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.1799807,-35.4299963],"properties":{"NAME":"Veinticinco de Mayo","NAMEASCII":"Veinticinco de Mayo","POP_MAX":24668,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.8899891,-35.4459643],"properties":{"NAME":"Nueve de Julio","NAMEASCII":"Nueve de Julio","POP_MAX":34718,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-57.6899777,-36.3300447],"properties":{"NAME":"Dolores","NAMEASCII":"Dolores","POP_MAX":25190,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.6833163,-39.4833406],"properties":{"NAME":"Pedro Luro","NAMEASCII":"Pedro Luro","POP_MAX":7100,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.2699494,-38.3699719],"properties":{"NAME":"Tres Arroyos","NAMEASCII":"Tres Arroyos","POP_MAX":47136,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.9166189,-37.4666162],"properties":{"NAME":"Coronel Suárez","NAMEASCII":"Coronel Suarez","POP_MAX":27000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.2499952,-37.8333122],"properties":{"NAME":"Balcarce","NAMEASCII":"Balcarce","POP_MAX":18967,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.6832953,-37.8000325],"properties":{"NAME":"25 de Mayo","NAMEASCII":"25 de Mayo","POP_MAX":17430,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.6099665,-39.0199581],"properties":{"NAME":"General Roca","NAMEASCII":"General Roca","POP_MAX":73212,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.2665743,-41.0333235],"properties":{"NAME":"Comallo","NAMEASCII":"Comallo","POP_MAX":741,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.5833086,-41.3000256],"properties":{"NAME":"Ingeniero Jacobacci","NAMEASCII":"Ingeniero Jacobacci","POP_MAX":5719,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.433287,-40.1000472],"properties":{"NAME":"General Conesa","NAMEASCII":"General Conesa","POP_MAX":2958,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.683314,-39.2666097],"properties":{"NAME":"Choele Choel","NAMEASCII":"Choele Choel","POP_MAX":10000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.0899675,-31.4300338],"properties":{"NAME":"San Francisco","NAMEASCII":"San Francisco","POP_MAX":59062,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.4299797,-31.6599939],"properties":{"NAME":"Alta Gracia","NAMEASCII":"Alta Gracia","POP_MAX":40384,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-63.2600253,-32.4100256],"properties":{"NAME":"Villa María","NAMEASCII":"Villa Maria","POP_MAX":92453,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.6799573,-32.6000399],"properties":{"NAME":"Bell Ville","NAMEASCII":"Bell Ville","POP_MAX":35105,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.4832839,-32.1833211],"properties":{"NAME":"Villa Rumipal","NAMEASCII":"Villa Rumipal","POP_MAX":1269,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.5000013,-31.4200085],"properties":{"NAME":"Villa Carlos Paz","NAMEASCII":"Villa Carlos Paz","POP_MAX":69451,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.2333063,-28.8666243],"properties":{"NAME":"Chumbicha","NAMEASCII":"Chumbicha","POP_MAX":2572,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.5665841,-28.0666215],"properties":{"NAME":"Tinogasta","NAMEASCII":"Tinogasta","POP_MAX":587,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.6999797,-22.7166638],"properties":{"NAME":"Abra Pampa","NAMEASCII":"Abra Pampa","POP_MAX":4480,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.3499494,-23.1999935],"properties":{"NAME":"Humahuaca","NAMEASCII":"Humahuaca","POP_MAX":11369,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.4833169,-23.4166728],"properties":{"NAME":"Susques","NAMEASCII":"Susques","POP_MAX":1093,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.5999506,-31.349987],"properties":{"NAME":"Chepes","NAMEASCII":"Chepes","POP_MAX":6020,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-63.6999984,-22.030039],"properties":{"NAME":"Yacuíba","NAMEASCII":"Yacuiba","POP_MAX":82803,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-63.8100175,-22.5500073],"properties":{"NAME":"Tartagal","NAMEASCII":"Tartagal","POP_MAX":60819,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.1833539,-25.083341],"properties":{"NAME":"Joaquín V. González","NAMEASCII":"Joaquin V. Gonzalez","POP_MAX":13376,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.0499677,-24.6666223],"properties":{"NAME":"General Guemes","NAMEASCII":"General Guemes","POP_MAX":19828,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.2833126,-26.2166569],"properties":{"NAME":"Trancas","NAMEASCII":"Trancas","POP_MAX":1599,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.4500159,-26.7900069],"properties":{"NAME":"Presidencia Roque Saenz Pena","NAMEASCII":"Presidencia Roque Saenz Pena","POP_MAX":81879,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.1665872,-26.5165869],"properties":{"NAME":"Pampa del Infierno","NAMEASCII":"Pampa del Infierno","POP_MAX":2921,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.7166663,-27.5832918],"properties":{"NAME":"Villa Ángela","NAMEASCII":"Villa Angela","POP_MAX":30051,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.8499821,-23.9000024],"properties":{"NAME":"Ingeniero Guillermo N. Juarez","NAMEASCII":"Ingeniero Guillermo N. Juarez","POP_MAX":6453,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.6833185,-25.3332999],"properties":{"NAME":"Comandante Fontana","NAMEASCII":"Comandante Fontana","POP_MAX":4277,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.2999805,-22.4799857],"properties":{"NAME":"Doctor Pedro P. Peña","NAMEASCII":"Doctor Pedro P. Pena","POP_MAX":6143,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.7699893,-28.1200032],"properties":{"NAME":"San Lorenzo","NAMEASCII":"San Lorenzo","POP_MAX":47626,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.8099868,-27.4899642],"properties":{"NAME":"Corrientes","NAMEASCII":"Corrientes","POP_MAX":340823,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.2399958,-32.4799955],"properties":{"NAME":"Concepción del Uruguay","NAMEASCII":"Concepcion del Uruguay","POP_MAX":67895,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.1799807,-32.6100134],"properties":{"NAME":"Victoria","NAMEASCII":"Victoria","POP_MAX":25139,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.3400061,-33.1500321],"properties":{"NAME":"Gualeguay","NAMEASCII":"Gualeguay","POP_MAX":33120,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.5333442,-31.7333227],"properties":{"NAME":"Paraná","NAMEASCII":"Parana","POP_MAX":262295,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.350022,-33.2300272],"properties":{"NAME":"Villa Constitución","NAMEASCII":"Villa Constitucion","POP_MAX":44271,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.4999777,-31.2500447],"properties":{"NAME":"Rafaela","NAMEASCII":"Rafaela","POP_MAX":88713,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-46.5278166,-23.652834],"properties":{"NAME":"Santo André","NAMEASCII":"Santo Andre","POP_MAX":662373,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.4700259,-22.9199589],"properties":{"NAME":"Pindamonhangaba","NAMEASCII":"Pindamonhangaba","POP_MAX":132218,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.5600275,-22.4099642],"properties":{"NAME":"Rio Claro","NAMEASCII":"Rio Claro","POP_MAX":180147,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.8699899,-22.9700333],"properties":{"NAME":"Ourinhos","NAMEASCII":"Ourinhos","POP_MAX":97799,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.8000222,-24.1799853],"properties":{"NAME":"Itanhaem","NAMEASCII":"Itanhaem","POP_MAX":90385,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.3299805,-21.250035],"properties":{"NAME":"Jaboticabal","NAMEASCII":"Jaboticabal","POP_MAX":69394,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.533394222774504,-22.95271585179288],"properties":{"NAME":"Bragança Paulista","NAMEASCII":"Braganca Paulista","POP_MAX":127676,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.8799915,-23.1999935],"properties":{"NAME":"Jundiaí","NAMEASCII":"Jundiai","POP_MAX":505548,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.8799492,-23.1999935],"properties":{"NAME":"São José dos Campos","NAMEASCII":"Sao Jose dos Campos","POP_MAX":753769,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.1899913,-22.819965],"properties":{"NAME":"Guaratinguetá","NAMEASCII":"Guaratingueta","POP_MAX":203580,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.4299838,-21.9900415],"properties":{"NAME":"Pirassununga","NAMEASCII":"Pirassununga","POP_MAX":60413,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.3299899,-22.7499434],"properties":{"NAME":"Americana","NAMEASCII":"Americana","POP_MAX":479472,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.64112678259259,-22.729659119766186],"properties":{"NAME":"Piracicaba","NAMEASCII":"Piracicaba","POP_MAX":342209,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.789997,-21.9800163],"properties":{"NAME":"São João da Boa Vista","NAMEASCII":"Sao Joao da Boa Vista","POP_MAX":76540,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.8899815,-22.0200138],"properties":{"NAME":"São Carlos","NAMEASCII":"Sao Carlos","POP_MAX":205035,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.5199502,-21.9299935],"properties":{"NAME":"Tupã","NAMEASCII":"Tupa","POP_MAX":62035,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.0800029,-21.4100252],"properties":{"NAME":"Penápolis","NAMEASCII":"Penapolis","POP_MAX":54477,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.3900004,-22.1200077],"properties":{"NAME":"Presidente Prudente","NAMEASCII":"Presidente Prudente","POP_MAX":209502,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.8399846,-24.4900439],"properties":{"NAME":"Registro","NAMEASCII":"Registro","POP_MAX":53273,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.8600092,-23.3500102],"properties":{"NAME":"Tatuí","NAMEASCII":"Tatui","POP_MAX":93580,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.9300214,-23.1100248],"properties":{"NAME":"Avaré","NAMEASCII":"Avare","POP_MAX":81285,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.6599768,-22.2200016],"properties":{"NAME":"Garça","NAMEASCII":"Garca","POP_MAX":41302,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.9799667,-21.1400159],"properties":{"NAME":"Catanduva","NAMEASCII":"Catanduva","POP_MAX":109612,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.5899998,-20.8900053],"properties":{"NAME":"Batatais","NAMEASCII":"Batatais","POP_MAX":51976,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.5800169,-20.550026],"properties":{"NAME":"Barretos","NAMEASCII":"Barretos","POP_MAX":101220,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.9500108,-22.2100281],"properties":{"NAME":"Marília","NAMEASCII":"Marilia","POP_MAX":212218,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.3000175,-23.2600415],"properties":{"NAME":"Itu","NAMEASCII":"Itu","POP_MAX":320170,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.0399982,-23.5899955],"properties":{"NAME":"Itapetininga","NAMEASCII":"Itapetininga","POP_MAX":126243,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.5999854,-26.2000171],"properties":{"NAME":"Eldorado","NAMEASCII":"Eldorado","POP_MAX":17365,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-35.0200436,-8.1100102],"properties":{"NAME":"Jaboatao","NAMEASCII":"Jaboatao","POP_MAX":702621,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-34.8499506,-7.999991],"properties":{"NAME":"Olinda","NAMEASCII":"Olinda","POP_MAX":921840,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.0299913,-8.2899992],"properties":{"NAME":"Cabo de Santo Agostinho","NAMEASCII":"Cabo de Santo Agostinho","POP_MAX":146219,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.253891424730845,-7.847458309128425],"properties":{"NAME":"Carpina","NAMEASCII":"Carpina","POP_MAX":165579,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.069996,-8.4200171],"properties":{"NAME":"Arcoverde","NAMEASCII":"Arcoverde","POP_MAX":57163,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-88.2200004,16.9700352],"properties":{"NAME":"Dangriga","NAMEASCII":"Dangriga","POP_MAX":10750,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[19.4982308,40.47736],"properties":{"NAME":"Vlorë","NAMEASCII":"Vlore","POP_MAX":89546,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[20.0838281,41.1215068],"properties":{"NAME":"Elbasan","NAMEASCII":"Elbasan","POP_MAX":165010,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[43.8474939,40.789434],"properties":{"NAME":"Gyumri","NAMEASCII":"Gyumri","POP_MAX":148381,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[3.7000219,51.0299976],"properties":{"NAME":"Gent","NAMEASCII":"Gent","POP_MAX":444336,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[44.4882816,40.8127659],"properties":{"NAME":"Vanadzor","NAMEASCII":"Vanadzor","POP_MAX":101098,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[46.3500284,40.684996],"properties":{"NAME":"Ganca","NAMEASCII":"Ganca","POP_MAX":303268,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[47.1500313,40.6171965],"properties":{"NAME":"Yevlax","NAMEASCII":"Yevlax","POP_MAX":53716,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[49.6299833,40.5800153],"properties":{"NAME":"Sumqayt","NAMEASCII":"Sumqayt","POP_MAX":279159,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[62.5917761,34.4867696],"properties":{"NAME":"Karokh","NAMEASCII":"Karokh","POP_MAX":17484,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[65.7383024,36.6579808],"properties":{"NAME":"Sheberghan","NAMEASCII":"Sheberghan","POP_MAX":93241,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.7011189,35.951073],"properties":{"NAME":"Pol-e Khomri","NAMEASCII":"Pol-e Khomri","POP_MAX":56369,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[89.9200305,24.2499785],"properties":{"NAME":"Tangail","NAMEASCII":"Tangail","POP_MAX":180144,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[-67.729985,-17.3300158],"properties":{"NAME":"Sica Sica","NAMEASCII":"Sica Sica","POP_MAX":1006,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-67.5599954,-14.4600102],"properties":{"NAME":"Rurrenabaque","NAMEASCII":"Rurrenabaque","POP_MAX":11749,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.6600574,-15.7900065],"properties":{"NAME":"Sorata","NAMEASCII":"Sorata","POP_MAX":2190,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.6665686,-16.0833219],"properties":{"NAME":"Achacachi","NAMEASCII":"Achacachi","POP_MAX":8447,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.2999502,-16.6500057],"properties":{"NAME":"Viacha","NAMEASCII":"Viacha","POP_MAX":34776,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-67.2200161,-16.9800114],"properties":{"NAME":"Quime","NAMEASCII":"Quime","POP_MAX":4045,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.6399998,-18.4200268],"properties":{"NAME":"Llallagua","NAMEASCII":"Llallagua","POP_MAX":28069,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.5700299,-18.4699979],"properties":{"NAME":"Uncia","NAMEASCII":"Uncia","POP_MAX":4723,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.8299882,-20.4600057],"properties":{"NAME":"Uyuni","NAMEASCII":"Uyuni","POP_MAX":12939,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-67.7833409,-20.7665503],"properties":{"NAME":"Villa Martin","NAMEASCII":"Villa Martin","POP_MAX":10,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.4500208,-19.5599573],"properties":{"NAME":"Betanzos","NAMEASCII":"Betanzos","POP_MAX":4847,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.4000167,-17.3600399],"properties":{"NAME":"Portachuelo","NAMEASCII":"Portachuelo","POP_MAX":11485,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.77002,-18.1800415],"properties":{"NAME":"Samaipata","NAMEASCII":"Samaipata","POP_MAX":2926,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.529983,-20.4500321],"properties":{"NAME":"Cuevo","NAMEASCII":"Cuevo","POP_MAX":953,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.7299966,-17.3999857],"properties":{"NAME":"San Carlos","NAMEASCII":"San Carlos","POP_MAX":6353,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.7700106,-21.4799434],"properties":{"NAME":"San Lorenzo","NAMEASCII":"San Lorenzo","POP_MAX":3000,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.1899943,-21.5300179],"properties":{"NAME":"Entre Ríos","NAMEASCII":"Entre Rios","POP_MAX":2685,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[26.3300101,42.6793703],"properties":{"NAME":"Sliven","NAMEASCII":"Sliven","POP_MAX":96368,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[24.7539823,42.1539761],"properties":{"NAME":"Plovdiv","NAMEASCII":"Plovdiv","POP_MAX":340494,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[23.0227185,42.6099947],"properties":{"NAME":"Pernik","NAMEASCII":"Pernik","POP_MAX":82467,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[23.5625305,43.2099839],"properties":{"NAME":"Vratsa","NAMEASCII":"Vratsa","POP_MAX":71633,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[26.9293534,43.2700061],"properties":{"NAME":"Shumen","NAMEASCII":"Shumen","POP_MAX":87283,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[16.2499536,47.8159819],"properties":{"NAME":"Wiener Neustadt","NAMEASCII":"Wiener Neustadt","POP_MAX":82762,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[26.0134403,53.1368457],"properties":{"NAME":"Baranavichy","NAMEASCII":"Baranavichy","POP_MAX":168772,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[28.7859843,55.4893895],"properties":{"NAME":"Polatsk","NAMEASCII":"Polatsk","POP_MAX":82258,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[26.8653263,54.3187891],"properties":{"NAME":"Maladzyechna","NAMEASCII":"Maladzyechna","POP_MAX":101300,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[91.8736063,24.9035561],"properties":{"NAME":"Sylhet","NAMEASCII":"Sylhet","POP_MAX":237000,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[151.3000048,-33.4200415],"properties":{"NAME":"Central Coast","NAMEASCII":"Central Coast","POP_MAX":3026,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.0500272,-26.6799878],"properties":{"NAME":"Sunshine Coast","NAMEASCII":"Sunshine Coast","POP_MAX":71043,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[17.9199808,44.219974],"properties":{"NAME":"Zenica","NAMEASCII":"Zenica","POP_MAX":164423,"ISO_A2":"BA","SOV_A3":"BIH"}},{"type":"Point","coordinates":[5.5800105,50.6299962],"properties":{"NAME":"Liège","NAMEASCII":"Liege","POP_MAX":749110,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[70.990395,20.7196733],"properties":{"NAME":"Diu","NAMEASCII":"Diu","POP_MAX":23779,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[55.0107401,24.976239],"properties":{"NAME":"Jabal Ali","NAMEASCII":"Jabal Ali","POP_MAX":80000,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[58.8767621,20.6561533],"properties":{"NAME":"Hilf","NAMEASCII":"Hilf","POP_MAX":8500,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[35.0955733,31.5405929],"properties":{"NAME":"Al Khalil","NAMEASCII":"Al Khalil","POP_MAX":280321,"ISO_A2":"PS","SOV_A3":"IS1"}},{"type":"Point","coordinates":[33.9500101,35.1250252],"properties":{"NAME":"Famagusta","NAMEASCII":"Famagusta","POP_MAX":42526,"ISO_A2":"-99","SOV_A3":"CYN"}},{"type":"Point","coordinates":[145.9333333,-30.1],"properties":{"NAME":"Bourke","NAMEASCII":"Bourke","POP_MAX":2475,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[-125.8621245,49.0986157],"properties":{"NAME":"Tofino","NAMEASCII":"Tofino","POP_MAX":1655,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-5.1120758,56.8164779],"properties":{"NAME":"Fort William","NAMEASCII":"Fort William","POP_MAX":9652,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[16.1833333,54.2],"properties":{"NAME":"Koszalin","NAMEASCII":"Koszalin","POP_MAX":107450,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[142.7697679,63.4214462],"properties":{"NAME":"Oymyakon","NAMEASCII":"Oymyakon","POP_MAX":500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-58.8638641,-62.1738867],"properties":{"NAME":"Artigas Base","NAMEASCII":"Artigas Base","POP_MAX":60,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[120.5438889,23.7075],"properties":{"NAME":"Douliou","NAMEASCII":"Douliou","POP_MAX":106653,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.2167765,24.9650252],"properties":{"NAME":"Zhongli","NAMEASCII":"Zhongli","POP_MAX":1632616,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.7332824,25.1332579],"properties":{"NAME":"Keelung","NAMEASCII":"Keelung","POP_MAX":500000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.6833333,23.9166667],"properties":{"NAME":"Nantou","NAMEASCII":"Nantou","POP_MAX":165000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.2419444,23.4611111],"properties":{"NAME":"Puzi","NAMEASCII":"Puzi","POP_MAX":50000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[-58.2999921,-33.9896191],"properties":{"NAME":"Carmelo","NAMEASCII":"Carmelo","POP_MAX":16921,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-57.5999573,-30.2596142],"properties":{"NAME":"Bella Unión","NAMEASCII":"Bella Union","POP_MAX":22723,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-58.0299827,-33.2595345],"properties":{"NAME":"Mercedes","NAMEASCII":"Mercedes","POP_MAX":42359,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.1799852,-32.3594861],"properties":{"NAME":"Melo","NAMEASCII":"Melo","POP_MAX":55494,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-55.5600043,-30.8995752],"properties":{"NAME":"Rivera","NAMEASCII":"Rivera","POP_MAX":200000,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.2000098,-33.669587],"properties":{"NAME":"Lascano","NAMEASCII":"Lascano","POP_MAX":6976,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-53.8299807,-34.1696081],"properties":{"NAME":"Castillos","NAMEASCII":"Castillos","POP_MAX":7686,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-92.5364036,47.5236741],"properties":{"NAME":"Virginia","NAMEASCII":"Virginia","POP_MAX":8709,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.6391974,44.0504236],"properties":{"NAME":"Winona","NAMEASCII":"Winona","POP_MAX":32897,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.4696894,44.0220532],"properties":{"NAME":"Rochester","NAMEASCII":"Rochester","POP_MAX":108511,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.2425104,44.6501028],"properties":{"NAME":"Lakeville","NAMEASCII":"Lakeville","POP_MAX":261308,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.8256977,47.9004212],"properties":{"NAME":"Ely","NAMEASCII":"Ely","POP_MAX":3731,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.7421934,46.8743081],"properties":{"NAME":"Moorhead","NAMEASCII":"Moorhead","POP_MAX":35528,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.1622217,45.5612099],"properties":{"NAME":"St. Cloud","NAMEASCII":"St. Cloud","POP_MAX":112794,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.8399844,46.4088843],"properties":{"NAME":"Miles City","NAMEASCII":"Miles City","POP_MAX":8615,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.0378325,45.6800916],"properties":{"NAME":"Bozeman","NAMEASCII":"Bozeman","POP_MAX":44921,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.6352588,48.1839697],"properties":{"NAME":"Glasgow","NAMEASCII":"Glasgow","POP_MAX":3240,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.7888011,46.8839974],"properties":{"NAME":"Dickinson","NAMEASCII":"Dickinson","POP_MAX":16399,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.7029782,46.9060116],"properties":{"NAME":"Jamestown","NAMEASCII":"Jamestown","POP_MAX":15081,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.6280005,48.1567879],"properties":{"NAME":"Williston","NAMEASCII":"Williston","POP_MAX":13564,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-159.36927136302037,21.97555195694877],"properties":{"NAME":"Lihue","NAMEASCII":"Lihue","POP_MAX":15536,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-158.0236209,21.5030919],"properties":{"NAME":"Wahiawa","NAMEASCII":"Wahiawa","POP_MAX":174766,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-156.5047213,20.8914754],"properties":{"NAME":"Wailuku","NAMEASCII":"Wailuku","POP_MAX":52148,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.2969123,42.3226221],"properties":{"NAME":"Montpelier","NAMEASCII":"Montpelier","POP_MAX":2997,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.4605693,42.5609538],"properties":{"NAME":"Twin Falls","NAMEASCII":"Twin Falls","POP_MAX":47315,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-116.6705378,43.6609642],"properties":{"NAME":"Caldwell","NAMEASCII":"Caldwell","POP_MAX":132476,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-113.8949966,45.1756779],"properties":{"NAME":"Salmon","NAMEASCII":"Salmon","POP_MAX":3601,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-116.7794458,47.6780833],"properties":{"NAME":"Coeur d'Alene","NAMEASCII":"Coeur d'Alene","POP_MAX":34514,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.2911013,46.2918113],"properties":{"NAME":"Richland","NAMEASCII":"Richland","POP_MAX":44869,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.4869269,48.7601361],"properties":{"NAME":"Bellingham","NAMEASCII":"Bellingham","POP_MAX":99662,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.9369511,46.1387199],"properties":{"NAME":"Longview","NAMEASCII":"Longview","POP_MAX":66231,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.3418828,46.0651585],"properties":{"NAME":"Walla Walla","NAMEASCII":"Walla Walla","POP_MAX":45150,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.8143911,46.9748963],"properties":{"NAME":"Aberdeen","NAMEASCII":"Aberdeen","POP_MAX":32745,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.6420175,47.5735955],"properties":{"NAME":"Bremerton","NAMEASCII":"Bremerton","POP_MAX":126820,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.1999677,47.9604175],"properties":{"NAME":"Everett","NAMEASCII":"Everett","POP_MAX":486903,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.5674878,35.1481763],"properties":{"NAME":"Bullhead City","NAMEASCII":"Bullhead City","POP_MAX":37989,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-110.696815,35.0236103],"properties":{"NAME":"Winslow","NAMEASCII":"Winslow","POP_MAX":9931,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.7246546,32.9503776],"properties":{"NAME":"Gila Bend","NAMEASCII":"Gila Bend","POP_MAX":2088,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-110.066884,31.7131405],"properties":{"NAME":"Tombstone","NAMEASCII":"Tombstone","POP_MAX":1570,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.8313945,32.2532109],"properties":{"NAME":"Willcox","NAMEASCII":"Willcox","POP_MAX":5146,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.92541842334307,33.48853732982781],"properties":{"NAME":"Scottsdale","NAMEASCII":"Scottsdale","POP_MAX":15401,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.0522221,35.1898792],"properties":{"NAME":"Kingman","NAMEASCII":"Kingman","POP_MAX":42182,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.1385922,36.0547876],"properties":{"NAME":"Grand Canyon","NAMEASCII":"Grand Canyon","POP_MAX":1550,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-124.08275707642163,40.86270620639123],"properties":{"NAME":"Arcata","NAMEASCII":"Arcata","POP_MAX":20905,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.289739,37.958134],"properties":{"NAME":"Stockton","NAMEASCII":"Stockton","POP_MAX":685306,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.0218858,34.8990184],"properties":{"NAME":"Barstow","NAMEASCII":"Barstow","POP_MAX":21119,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.2903191,34.5365082],"properties":{"NAME":"Victorville","NAMEASCII":"Victorville","POP_MAX":83496,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.1388719,34.1603813],"properties":{"NAME":"Pasadena","NAMEASCII":"Pasadena","POP_MAX":144618,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.3160094,36.3250295],"properties":{"NAME":"Visalia","NAMEASCII":"Visalia","POP_MAX":121968,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-115.5580475,32.7923769],"properties":{"NAME":"El Centro","NAMEASCII":"El Centro","POP_MAX":45000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.6585889,35.283181],"properties":{"NAME":"San Luis Obispo","NAMEASCII":"San Luis Obispo","POP_MAX":65386,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.481933,37.3026184],"properties":{"NAME":"Merced","NAMEASCII":"Merced","POP_MAX":96091,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.6157656,39.1410333],"properties":{"NAME":"Yuba City","NAMEASCII":"Yuba City","POP_MAX":116217,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.3905762,40.5870433],"properties":{"NAME":"Redding","NAMEASCII":"Redding","POP_MAX":96058,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.6999889,38.4504037],"properties":{"NAME":"Santa Rosa","NAMEASCII":"Santa Rosa","POP_MAX":231792,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.34581123442152,33.191499041848665],"properties":{"NAME":"Oceanside","NAMEASCII":"Oceanside","POP_MAX":609854,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.9899899,37.6554134],"properties":{"NAME":"Modesto","NAMEASCII":"Modesto","POP_MAX":323386,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.8299502,33.6804106],"properties":{"NAME":"Irvine","NAMEASCII":"Irvine","POP_MAX":3010232,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.2108621,39.1542367],"properties":{"NAME":"Ukiah","NAMEASCII":"Ukiah","POP_MAX":27828,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.6133507,34.8484271],"properties":{"NAME":"Needles","NAMEASCII":"Needles","POP_MAX":6974,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.394076,37.3639584],"properties":{"NAME":"Bishop","NAMEASCII":"Bishop","POP_MAX":4827,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-116.5330526,33.7773556],"properties":{"NAME":"Palm Springs","NAMEASCII":"Palm Springs","POP_MAX":390115,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.4366386,34.940127],"properties":{"NAME":"Santa Maria","NAMEASCII":"Santa Maria","POP_MAX":110705,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.3441213,36.2070264],"properties":{"NAME":"Tulare","NAMEASCII":"Tulare","POP_MAX":55908,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.3093925,41.3103583],"properties":{"NAME":"Mt. Shasta","NAMEASCII":"Mt. Shasta","POP_MAX":3855,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-124.2004916,41.7564551],"properties":{"NAME":"Crescent City","NAMEASCII":"Crescent City","POP_MAX":11534,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.0588693,40.5606883],"properties":{"NAME":"Fort Collins","NAMEASCII":"Fort Collins","POP_MAX":228385,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.6300066,38.2803882],"properties":{"NAME":"Pueblo","NAMEASCII":"Pueblo","POP_MAX":112195,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.6194058,38.0864982],"properties":{"NAME":"Lamar","NAMEASCII":"Lamar","POP_MAX":8620,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.5063965,37.1713345],"properties":{"NAME":"Trinidad","NAMEASCII":"Trinidad","POP_MAX":9156,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.92829,38.5447648],"properties":{"NAME":"Gunnison","NAMEASCII":"Gunnison","POP_MAX":7324,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.8799891,37.2756433],"properties":{"NAME":"Durango","NAMEASCII":"Durango","POP_MAX":23233,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.8655197,38.4772754],"properties":{"NAME":"Montrose","NAMEASCII":"Montrose","POP_MAX":21789,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.5503968,40.5172801],"properties":{"NAME":"Craig","NAMEASCII":"Craig","POP_MAX":9391,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.2445424213015,40.00813654886576],"properties":{"NAME":"Boulder","NAMEASCII":"Boulder","POP_MAX":122274,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.8315802,35.9789525],"properties":{"NAME":"Boulder City","NAMEASCII":"Boulder City","POP_MAX":15479,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.7346847,40.9733763],"properties":{"NAME":"Winnemucca","NAMEASCII":"Winnemucca","POP_MAX":9666,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.5224679,33.3945366],"properties":{"NAME":"Roswell","NAMEASCII":"Roswell","POP_MAX":46096,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.2047706,34.4050692],"properties":{"NAME":"Clovis","NAMEASCII":"Clovis","POP_MAX":33792,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.7778083,32.3126129],"properties":{"NAME":"Las Cruces","NAMEASCII":"Las Cruces","POP_MAX":115167,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.1406143,32.7126144],"properties":{"NAME":"Hobbs","NAMEASCII":"Hobbs","POP_MAX":28738,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.8989895,34.0621185],"properties":{"NAME":"Socorro","NAMEASCII":"Socorro","POP_MAX":8668,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.7339938,35.5240707],"properties":{"NAME":"Gallup","NAMEASCII":"Gallup","POP_MAX":23800,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.439889,36.8973977],"properties":{"NAME":"Raton","NAMEASCII":"Raton","POP_MAX":7073,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.725514,35.1698029],"properties":{"NAME":"Tucumcari","NAMEASCII":"Tucumcari","POP_MAX":5313,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.3560987,43.218433],"properties":{"NAME":"Roseburg","NAMEASCII":"Roseburg","POP_MAX":30479,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.7874886,45.6725985],"properties":{"NAME":"Pendleton","NAMEASCII":"Pendleton","POP_MAX":16799,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.9520264,44.4165253],"properties":{"NAME":"John Day","NAMEASCII":"John Day","POP_MAX":1573,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.3271857,42.43954],"properties":{"NAME":"Grants Pass","NAMEASCII":"Grants Pass","POP_MAX":46189,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.2799793,44.5723556],"properties":{"NAME":"Corvallis","NAMEASCII":"Corvallis","POP_MAX":59030,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.086942,44.6204922],"properties":{"NAME":"Albany","NAMEASCII":"Albany","POP_MAX":51376,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.8299974,46.188381],"properties":{"NAME":"Astoria","NAMEASCII":"Astoria","POP_MAX":10011,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.8335979,41.7359396],"properties":{"NAME":"Logan","NAMEASCII":"Logan","POP_MAX":72490,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.8272065,37.8425338],"properties":{"NAME":"Parowan","NAMEASCII":"Parowan","POP_MAX":2571,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.5254936,37.0473885],"properties":{"NAME":"Kanab","NAMEASCII":"Kanab","POP_MAX":3442,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.3421995,37.8717827],"properties":{"NAME":"Monticello","NAMEASCII":"Monticello","POP_MAX":1864,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.5491895,38.5737036],"properties":{"NAME":"Moab","NAMEASCII":"Moab","POP_MAX":5730,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-110.8100169,39.5997909],"properties":{"NAME":"Price","NAMEASCII":"Price","POP_MAX":10281,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-113.061094,37.6774276],"properties":{"NAME":"Cedar City","NAMEASCII":"Cedar City","POP_MAX":27738,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.5280022,40.4553976],"properties":{"NAME":"Vernal","NAMEASCII":"Vernal","POP_MAX":14353,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.9680341,41.2323786],"properties":{"NAME":"Ogden","NAMEASCII":"Ogden","POP_MAX":377224,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.4649827,41.5145577],"properties":{"NAME":"Green River","NAMEASCII":"Green River","POP_MAX":11358,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-107.234292,41.7906649],"properties":{"NAME":"Rawlins","NAMEASCII":"Rawlins","POP_MAX":8533,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.3845341,42.7564716],"properties":{"NAME":"Douglas","NAMEASCII":"Douglas","POP_MAX":6298,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.3950481,43.0281604],"properties":{"NAME":"Riverton","NAMEASCII":"Riverton","POP_MAX":11508,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.2146715,43.645978],"properties":{"NAME":"Thermopolis","NAMEASCII":"Thermopolis","POP_MAX":3445,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.5052503,44.2831743],"properties":{"NAME":"Gillette","NAMEASCII":"Gillette","POP_MAX":29113,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.7041641,35.8425783],"properties":{"NAME":"Jonesboro","NAMEASCII":"Jonesboro","POP_MAX":58619,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.0374748,33.4421047],"properties":{"NAME":"Texarkana","NAMEASCII":"Texarkana","POP_MAX":74414,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.0030512,34.2286975],"properties":{"NAME":"Pine Bluff","NAMEASCII":"Pine Bluff","POP_MAX":53217,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.0550025,34.503952],"properties":{"NAME":"Hot Springs","NAMEASCII":"Hot Springs","POP_MAX":44182,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.3983572,35.3862238],"properties":{"NAME":"Fort Smith","NAMEASCII":"Fort Smith","POP_MAX":93988,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.1572091,36.0629783],"properties":{"NAME":"Fayetteville","NAMEASCII":"Fayetteville","POP_MAX":151671,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.4513184,35.0912805],"properties":{"NAME":"Conway","NAMEASCII":"Conway","POP_MAX":61995,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.66252,33.2139274],"properties":{"NAME":"El Dorado","NAMEASCII":"El Dorado","POP_MAX":22416,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.5875304,41.5539868],"properties":{"NAME":"Davenport","NAMEASCII":"Davenport","POP_MAX":255738,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.1127696,40.8079342],"properties":{"NAME":"Burlington","NAMEASCII":"Burlington","POP_MAX":29773,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.6644507,42.5009316],"properties":{"NAME":"Dubuque","NAMEASCII":"Dubuque","POP_MAX":62483,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.3427979,42.4931543],"properties":{"NAME":"Waterloo","NAMEASCII":"Waterloo","POP_MAX":98347,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.3999921,42.500389],"properties":{"NAME":"Sioux City","NAMEASCII":"Sioux City","POP_MAX":90932,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.8608002,41.2622734],"properties":{"NAME":"Council Bluffs","NAMEASCII":"Council Bluffs","POP_MAX":101805,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.62309132371816,42.018667665585504],"properties":{"NAME":"Ames","NAMEASCII":"Ames","POP_MAX":57104,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.2008334,43.1540184],"properties":{"NAME":"Mason City","NAMEASCII":"Mason City","POP_MAX":27802,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.181375,38.4042308],"properties":{"NAME":"Emporia","NAMEASCII":"Emporia","POP_MAX":29048,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.6071794,38.8246702],"properties":{"NAME":"Salina","NAMEASCII":"Salina","POP_MAX":48031,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.018195,37.7600582],"properties":{"NAME":"Dodge City","NAMEASCII":"Dodge City","POP_MAX":25932,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.6263184,37.0380609],"properties":{"NAME":"Coffeyville","NAMEASCII":"Coffeyville","POP_MAX":11760,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.5061658,38.7842851],"properties":{"NAME":"St. Charles","NAMEASCII":"St. Charles","POP_MAX":360485,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.4026838,36.7601968],"properties":{"NAME":"Poplar Bluff","NAMEASCII":"Poplar Bluff","POP_MAX":20662,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.5130789,37.0845956],"properties":{"NAME":"Joplin","NAMEASCII":"Joplin","POP_MAX":73763,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.3339095,38.9520785],"properties":{"NAME":"Columbia","NAMEASCII":"Columbia","POP_MAX":398093,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.8463918,39.7690312],"properties":{"NAME":"St. Joseph","NAMEASCII":"St. Joseph","POP_MAX":78012,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.6261683,40.2055937],"properties":{"NAME":"McCook","NAMEASCII":"McCook","POP_MAX":8012,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.4335983,42.0287124],"properties":{"NAME":"Norfolk","NAMEASCII":"Norfolk","POP_MAX":25030,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.7705005,41.1362862],"properties":{"NAME":"North Platte","NAMEASCII":"North Platte","POP_MAX":25247,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.9782727,41.1398002],"properties":{"NAME":"Sidney","NAMEASCII":"Sidney","POP_MAX":6492,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.6606859,41.8675078],"properties":{"NAME":"Scottsbluff","NAMEASCII":"Scottsbluff","POP_MAX":25475,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.0030774,42.8279142],"properties":{"NAME":"Chadron","NAMEASCII":"Chadron","POP_MAX":5798,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.4099728,34.5990367],"properties":{"NAME":"Lawton","NAMEASCII":"Lawton","POP_MAX":91752,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.4419910256121,35.22047017991464],"properties":{"NAME":"Norman","NAMEASCII":"Norman","POP_MAX":113525,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.3694349,35.7482172],"properties":{"NAME":"Muskogee","NAMEASCII":"Muskogee","POP_MAX":39295,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.0852733,36.7073576],"properties":{"NAME":"Ponca City","NAMEASCII":"Ponca City","POP_MAX":25273,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.9337838,35.3427897],"properties":{"NAME":"Shawnee","NAMEASCII":"Shawnee","POP_MAX":29628,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-99.3976903,36.4334208],"properties":{"NAME":"Woodward","NAMEASCII":"Woodward","POP_MAX":12931,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.4795012,36.6858085],"properties":{"NAME":"Guymon","NAMEASCII":"Guymon","POP_MAX":11178,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.3924897,42.8820195],"properties":{"NAME":"Yankton","NAMEASCII":"Yankton","POP_MAX":15580,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.7880304,44.3067645],"properties":{"NAME":"Brookings","NAMEASCII":"Brookings","POP_MAX":22411,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.0261978,43.7142942],"properties":{"NAME":"Mitchell","NAMEASCII":"Mitchell","POP_MAX":15205,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.4864022,45.4651176],"properties":{"NAME":"Aberdeen","NAMEASCII":"Aberdeen","POP_MAX":26041,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.4347071,45.540126],"properties":{"NAME":"Mobridge","NAMEASCII":"Mobridge","POP_MAX":3156,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.7194861,29.5959312],"properties":{"NAME":"Houma","NAMEASCII":"Houma","POP_MAX":64592,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.119194,32.5096035],"properties":{"NAME":"Monroe","NAMEASCII":"Monroe","POP_MAX":101724,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.4558637,30.3120632],"properties":{"NAME":"Conroe","NAMEASCII":"Conroe","POP_MAX":41643,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.6552666,31.6037415],"properties":{"NAME":"Nacogdoches","NAMEASCII":"Nacogdoches","POP_MAX":30691,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.4892774,28.711024],"properties":{"NAME":"Eagle Pass","NAMEASCII":"Eagle Pass","POP_MAX":53276,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.1599622,26.3031865],"properties":{"NAME":"Edinburg","NAMEASCII":"Edinburg","POP_MAX":150000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.8558464,27.5159548],"properties":{"NAME":"Kingsville","NAMEASCII":"Kingsville","POP_MAX":25264,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.9285926,29.8989876],"properties":{"NAME":"Port Arthur","NAMEASCII":"Port Arthur","POP_MAX":56945,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.5505866,30.7237693],"properties":{"NAME":"Huntsville","NAMEASCII":"Huntsville","POP_MAX":35590,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.7274821,31.1172854],"properties":{"NAME":"Killeen","NAMEASCII":"Killeen","POP_MAX":137919,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.7288796,31.3384347],"properties":{"NAME":"Lufkin","NAMEASCII":"Lufkin","POP_MAX":43264,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.8963843,29.362948],"properties":{"NAME":"Del Rio","NAMEASCII":"Del Rio","POP_MAX":36068,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.4366966,31.4640084],"properties":{"NAME":"San Angelo","NAMEASCII":"San Angelo","POP_MAX":88256,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.608584,33.6359947],"properties":{"NAME":"Sherman","NAMEASCII":"Sherman","POP_MAX":40284,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.1016828,30.086263],"properties":{"NAME":"Beaumont","NAMEASCII":"Beaumont","POP_MAX":111485,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.9643598,28.9811109],"properties":{"NAME":"Bay City","NAMEASCII":"Bay City","POP_MAX":18663,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.6296938,28.6160169],"properties":{"NAME":"Port Lavaca","NAMEASCII":"Port Lavaca","POP_MAX":11743,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.1448985,27.2269027],"properties":{"NAME":"Falfurrias","NAMEASCII":"Falfurrias","POP_MAX":5349,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.7508399,28.405978],"properties":{"NAME":"Beeville","NAMEASCII":"Beeville","POP_MAX":13004,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.8849968,30.8916919],"properties":{"NAME":"Fort Stockton","NAMEASCII":"Fort Stockton","POP_MAX":7721,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.4998947,31.4157943],"properties":{"NAME":"Pecos","NAMEASCII":"Pecos","POP_MAX":8372,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.9668875,35.8623963],"properties":{"NAME":"Dumas","NAMEASCII":"Dumas","POP_MAX":13629,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.1288365,33.2157619],"properties":{"NAME":"Denton","NAMEASCII":"Denton","POP_MAX":176930,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.0974996,32.030718],"properties":{"NAME":"Midland","NAMEASCII":"Midland","POP_MAX":98501,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.3630083,31.1020925],"properties":{"NAME":"Temple","NAMEASCII":"Temple","POP_MAX":61161,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-70.4400004,9.3803951],"properties":{"NAME":"Trujillo","NAMEASCII":"Trujillo","POP_MAX":50353,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-71.503949,10.531827],"properties":{"NAME":"Santa Rita","NAMEASCII":"Santa Rita","POP_MAX":31810,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-72.5499492,10.0704305],"properties":{"NAME":"Machiques","NAMEASCII":"Machiques","POP_MAX":62968,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-71.9199876,9.0103919],"properties":{"NAME":"San Carlos del Zulia","NAMEASCII":"San Carlos del Zulia","POP_MAX":97288,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-68.00652938505468,10.459714496602153],"properties":{"NAME":"Puerto Cabello","NAMEASCII":"Puerto Cabello","POP_MAX":174000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-69.2000245,9.5803829],"properties":{"NAME":"Acarigua","NAMEASCII":"Acarigua","POP_MAX":260921,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-72.9000053,41.3303829],"properties":{"NAME":"New Haven","NAMEASCII":"New Haven","POP_MAX":846766,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.3166911,42.6336884],"properties":{"NAME":"Lowell","NAMEASCII":"Lowell","POP_MAX":723629,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.8000208,42.2704289],"properties":{"NAME":"Worcester","NAMEASCII":"Worcester","POP_MAX":287365,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.4552873,42.9959918],"properties":{"NAME":"Manchester","NAMEASCII":"Manchester","POP_MAX":196566,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.313358,41.490399],"properties":{"NAME":"Newport","NAMEASCII":"Newport","POP_MAX":45968,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.3905866,31.2234546],"properties":{"NAME":"Dothan","NAMEASCII":"Dothan","POP_MAX":61741,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.5441761,33.2251154],"properties":{"NAME":"Tuscaloosa","NAMEASCII":"Tuscaloosa","POP_MAX":121373,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.0066472,34.0145504],"properties":{"NAME":"Gadsden","NAMEASCII":"Gadsden","POP_MAX":41709,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.8439956,31.3278152],"properties":{"NAME":"Enterprise","NAMEASCII":"Enterprise","POP_MAX":24205,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.0211589,32.4075684],"properties":{"NAME":"Selma","NAMEASCII":"Selma","POP_MAX":20126,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.2910787,25.7154187],"properties":{"NAME":"Coral Gables","NAMEASCII":"Coral Gables","POP_MAX":150000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.9796837,26.6029098],"properties":{"NAME":"Cape Coral","NAMEASCII":"Cape Coral","POP_MAX":132489,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.7949921,26.1420593],"properties":{"NAME":"Naples","NAMEASCII":"Naples","POP_MAX":262306,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.3258053,27.4467859],"properties":{"NAME":"Fort Pierce","NAMEASCII":"Fort Pierce","POP_MAX":228245,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.4077806,28.2920573],"properties":{"NAME":"Kissimmee","NAMEASCII":"Kissimmee","POP_MAX":225494,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.8077914,28.6123478],"properties":{"NAME":"Titusville","NAMEASCII":"Titusville","POP_MAX":52311,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.3147113,29.8948794],"properties":{"NAME":"St. Augustine","NAMEASCII":"St. Augustine","POP_MAX":76331,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.1402682,29.1873515],"properties":{"NAME":"Ocala","NAMEASCII":"Ocala","POP_MAX":141382,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.1417855,26.1360649],"properties":{"NAME":"Fort Lauderdale","NAMEASCII":"Fort Lauderdale","POP_MAX":2042042,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.992523,29.7256132],"properties":{"NAME":"Apalachicola","NAMEASCII":"Apalachicola","POP_MAX":2284,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.3911243,27.642252],"properties":{"NAME":"Vero Beach","NAMEASCII":"Vero Beach","POP_MAX":86039,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.2785966,30.8328583],"properties":{"NAME":"Valdosta","NAMEASCII":"Valdosta","POP_MAX":61179,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.1558299,31.5787301],"properties":{"NAME":"Albany","NAMEASCII":"Albany","POP_MAX":88766,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.3780221,33.9612978],"properties":{"NAME":"Athens","NAMEASCII":"Athens","POP_MAX":110301,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.6300481,32.8503837],"properties":{"NAME":"Macon","NAMEASCII":"Macon","POP_MAX":115592,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.9800173,32.4704328],"properties":{"NAME":"Columbus","NAMEASCII":"Columbus","POP_MAX":217980,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.8506899,31.5077783],"properties":{"NAME":"Douglas","NAMEASCII":"Douglas","POP_MAX":13441,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.9182827,32.5374571],"properties":{"NAME":"Dublin","NAMEASCII":"Dublin","POP_MAX":22623,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.0927637,30.3675637],"properties":{"NAME":"Gulfport","NAMEASCII":"Gulfport","POP_MAX":82165,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.2902452,31.3272726],"properties":{"NAME":"Hattiesburg","NAMEASCII":"Hattiesburg","POP_MAX":58874,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.7033301,34.2579206],"properties":{"NAME":"Tupelo","NAMEASCII":"Tupelo","POP_MAX":35956,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.0616875,33.4103754],"properties":{"NAME":"Greenville","NAMEASCII":"Greenville","POP_MAX":38107,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.3875074,31.5548039],"properties":{"NAME":"Natchez","NAMEASCII":"Natchez","POP_MAX":23863,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.7627906,34.1956763],"properties":{"NAME":"Florence","NAMEASCII":"Florence","POP_MAX":57438,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.3941545,34.852923],"properties":{"NAME":"Greenville","NAMEASCII":"Greenville","POP_MAX":350954,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.3417216,33.9206543],"properties":{"NAME":"Sumter","NAMEASCII":"Sumter","POP_MAX":50868,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.6502629,34.5037453],"properties":{"NAME":"Anderson","NAMEASCII":"Anderson","POP_MAX":61558,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.7206039,33.5494625],"properties":{"NAME":"Aiken","NAMEASCII":"Aiken","POP_MAX":46196,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.689504,32.4321664],"properties":{"NAME":"Beaufort","NAMEASCII":"Beaufort","POP_MAX":31626,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.03,34.9403854],"properties":{"NAME":"Rock Hill","NAMEASCII":"Rock Hill","POP_MAX":94564,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.954736,39.8407064],"properties":{"NAME":"Decatur","NAMEASCII":"Decatur","POP_MAX":77868,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.1842216,38.8909969],"properties":{"NAME":"Alton","NAMEASCII":"Alton","POP_MAX":84276,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.4097282,39.9359719],"properties":{"NAME":"Quincy","NAMEASCII":"Quincy","POP_MAX":47108,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.2041875,40.1099923],"properties":{"NAME":"Urbana","NAMEASCII":"Urbana","POP_MAX":144074,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.9935966,40.4845947],"properties":{"NAME":"Bloomington","NAMEASCII":"Bloomington","POP_MAX":128979,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.8611076,41.1203699],"properties":{"NAME":"Kankakee","NAMEASCII":"Kankakee","POP_MAX":69608,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.8447262,42.3640408],"properties":{"NAME":"Waukegan","NAMEASCII":"Waukegan","POP_MAX":200000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.2999956,41.7653951],"properties":{"NAME":"Aurora","NAMEASCII":"Aurora","POP_MAX":350000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.2202495,37.7268303],"properties":{"NAME":"Carbondale","NAMEASCII":"Carbondale","POP_MAX":32444,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.0002277,38.5251536],"properties":{"NAME":"Belleville","NAMEASCII":"Belleville","POP_MAX":143900,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.5264087,39.1656572],"properties":{"NAME":"Bloomington","NAMEASCII":"Bloomington","POP_MAX":100310,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.386375,40.1937598],"properties":{"NAME":"Muncie","NAMEASCII":"Muncie","POP_MAX":85449,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.133642,40.4867652],"properties":{"NAME":"Kokomo","NAMEASCII":"Kokomo","POP_MAX":61121,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.3300031,41.5803935],"properties":{"NAME":"Gary","NAMEASCII":"Gary","POP_MAX":591180,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.1299823,41.0803982],"properties":{"NAME":"Fort Wayne","NAMEASCII":"Fort Wayne","POP_MAX":299871,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.5085991,39.0840084],"properties":{"NAME":"Covington","NAMEASCII":"Covington","POP_MAX":585489,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.4436489,36.9906995],"properties":{"NAME":"Bowling Green","NAMEASCII":"Bowling Green","POP_MAX":71140,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.6000031,37.0837171],"properties":{"NAME":"Paducah","NAMEASCII":"Paducah","POP_MAX":41317,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.1133238,37.7745793],"properties":{"NAME":"Owensboro","NAMEASCII":"Owensboro","POP_MAX":67825,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.4305557,34.7543244],"properties":{"NAME":"Jacksonville","NAMEASCII":"Jacksonville","POP_MAX":77288,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.9930536,35.3851386],"properties":{"NAME":"Goldsboro","NAMEASCII":"Goldsboro","POP_MAX":47602,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.3666836,35.6128766],"properties":{"NAME":"Greenville","NAMEASCII":"Greenville","POP_MAX":92565,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.88699850074843,35.05111113699372],"properties":{"NAME":"Fayetteville","NAMEASCII":"Fayetteville","POP_MAX":243306,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.3414022,35.7334894],"properties":{"NAME":"Hickory","NAMEASCII":"Hickory","POP_MAX":89462,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.5541447,35.6011977],"properties":{"NAME":"Asheville","NAMEASCII":"Asheville","POP_MAX":142755,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.2599954,36.1054305],"properties":{"NAME":"Winston-Salem","NAMEASCII":"Winston-Salem","POP_MAX":281683,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.7047179,36.0773185],"properties":{"NAME":"Kitty Hawk","NAMEASCII":"Kitty Hawk","POP_MAX":3413,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.519996,41.0703988],"properties":{"NAME":"Akron","NAMEASCII":"Akron","POP_MAX":703200,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.1052645,40.7428736],"properties":{"NAME":"Lima","NAMEASCII":"Lima","POP_MAX":68364,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.2697248,36.0106559],"properties":{"NAME":"Oak Ridge","NAMEASCII":"Oak Ridge","POP_MAX":33556,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.3902672,35.8459632],"properties":{"NAME":"Murfreesboro","NAMEASCII":"Murfreesboro","POP_MAX":115774,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.3594328,36.5300816],"properties":{"NAME":"Clarksville","NAMEASCII":"Clarksville","POP_MAX":132536,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.8138918,35.6148661],"properties":{"NAME":"Jackson","NAMEASCII":"Jackson","POP_MAX":63196,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.0552053829619,38.80433790389193],"properties":{"NAME":"Alexandria","NAMEASCII":"Alexandria","POP_MAX":127273,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.4607864,38.3035134],"properties":{"NAME":"Fredericksburg","NAMEASCII":"Fredericksburg","POP_MAX":133134,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.9416169,37.2711992],"properties":{"NAME":"Roanoke","NAMEASCII":"Roanoke","POP_MAX":198171,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.3953195,36.5862539],"properties":{"NAME":"Danville","NAMEASCII":"Danville","POP_MAX":45894,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.1666348,39.1787313],"properties":{"NAME":"Winchester","NAMEASCII":"Winchester","POP_MAX":53941,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.1760024,36.6115237],"properties":{"NAME":"Bristol","NAMEASCII":"Bristol","POP_MAX":37443,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.1038977,46.7212425],"properties":{"NAME":"Superior","NAMEASCII":"Superior","POP_MAX":27580,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.183336,43.4257072],"properties":{"NAME":"West Bend","NAMEASCII":"West Bend","POP_MAX":34530,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.4469117,43.7734379],"properties":{"NAME":"Fond du Lac","NAMEASCII":"Fond du Lac","POP_MAX":54299,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.5425131,44.0251022],"properties":{"NAME":"Oshkosh","NAMEASCII":"Oshkosh","POP_MAX":72698,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.4120724,45.6399131],"properties":{"NAME":"Rhinelander","NAMEASCII":"Rhinelander","POP_MAX":11483,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.8118341,42.7277136],"properties":{"NAME":"Racine","NAMEASCII":"Racine","POP_MAX":131654,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.6304757,45.1003854],"properties":{"NAME":"Marinette","NAMEASCII":"Marinette","POP_MAX":27169,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.7210783,40.0643103],"properties":{"NAME":"Wheeling","NAMEASCII":"Wheeling","POP_MAX":52492,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.9560604,39.6298149],"properties":{"NAME":"Morgantown","NAMEASCII":"Morgantown","POP_MAX":58808,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.4452883,38.4195787],"properties":{"NAME":"Huntington","NAMEASCII":"Huntington","POP_MAX":85396,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.183014,37.7801862],"properties":{"NAME":"Beckley","NAMEASCII":"Beckley","POP_MAX":37836,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.546898,39.7462677],"properties":{"NAME":"Wilmington","NAMEASCII":"Wilmington","POP_MAX":161560,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.7627741,39.6531726],"properties":{"NAME":"Cumberland","NAMEASCII":"Cumberland","POP_MAX":21316,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-74.4233232,39.3646373],"properties":{"NAME":"Atlantic City","NAMEASCII":"Atlantic City","POP_MAX":76573,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-74.1700053,40.7004214],"properties":{"NAME":"Newark","NAMEASCII":"Newark","POP_MAX":280123,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.9399677,42.8145817],"properties":{"NAME":"Schenectady","NAMEASCII":"Schenectady","POP_MAX":149255,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.9183224,42.0990182],"properties":{"NAME":"Binghamton","NAMEASCII":"Binghamton","POP_MAX":139895,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.2330671,43.1011792],"properties":{"NAME":"Utica","NAMEASCII":"Utica","POP_MAX":105150,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.9110619,43.9751569],"properties":{"NAME":"Watertown","NAMEASCII":"Watertown","POP_MAX":33821,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.0369434,43.094823],"properties":{"NAME":"Niagara Falls","NAMEASCII":"Niagara Falls","POP_MAX":153134,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.2355359,42.0973645],"properties":{"NAME":"Jamestown","NAMEASCII":"Jamestown","POP_MAX":45756,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.8080355,42.0901298],"properties":{"NAME":"Elmira","NAMEASCII":"Elmira","POP_MAX":62376,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.7280404,39.9629212],"properties":{"NAME":"York","NAMEASCII":"York","POP_MAX":218010,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.9222217,40.327085],"properties":{"NAME":"Johnstown","NAMEASCII":"Johnstown","POP_MAX":69286,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.6626791,41.4092928],"properties":{"NAME":"Scranton","NAMEASCII":"Scranton","POP_MAX":156196,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.8602452,40.7937232],"properties":{"NAME":"State College","NAMEASCII":"State College","POP_MAX":87926,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.0849931,42.1299207],"properties":{"NAME":"Erie","NAMEASCII":"Erie","POP_MAX":178182,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.8779373,41.2490442],"properties":{"NAME":"Wilkes-Barre","NAMEASCII":"Wilkes Barre","POP_MAX":158913,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-56.9899945,5.9504236],"properties":{"NAME":"Nieuw Nickerie","NAMEASCII":"Nieuw Nickerie","POP_MAX":15992,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-62.4099996,8.0204265],"properties":{"NAME":"Upata","NAMEASCII":"Upata","POP_MAX":53685,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-62.5333254,7.3503898],"properties":{"NAME":"El Manteco","NAMEASCII":"El Manteco","POP_MAX":2215,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-66.25448,9.33597],"properties":{"NAME":"Chaguaramas","NAMEASCII":"Chaguaramas","POP_MAX":15000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-64.7200137,10.1303752],"properties":{"NAME":"Barcelona","NAMEASCII":"Barcelona","POP_MAX":600954,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-64.2600159,8.8903475],"properties":{"NAME":"El Tigre","NAMEASCII":"El Tigre","POP_MAX":197440,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-66.9699797,10.6003982],"properties":{"NAME":"Maiquetía","NAMEASCII":"Maiquetia","POP_MAX":315442,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-67.4399768,8.9303967],"properties":{"NAME":"Calabozo","NAMEASCII":"Calabozo","POP_MAX":117132,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-65.3200029,9.3403976],"properties":{"NAME":"Zaraza","NAMEASCII":"Zaraza","POP_MAX":41483,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-66.3799899,9.8504181],"properties":{"NAME":"Altagracia de Orituco","NAMEASCII":"Altagracia de Orituco","POP_MAX":40052,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-62.0599952,9.0604922],"properties":{"NAME":"Tucupita","NAMEASCII":"Tucupita","POP_MAX":51534,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-63.8499893,10.9603762],"properties":{"NAME":"Porlamar","NAMEASCII":"Porlamar","POP_MAX":196934,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-55.0200114,5.0403758],"properties":{"NAME":"Brokopondo","NAMEASCII":"Brokopondo","POP_MAX":8340,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-56.3199838,5.8904273],"properties":{"NAME":"Totness","NAMEASCII":"Totness","POP_MAX":1685,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-68.2043746,44.3878965],"properties":{"NAME":"Bar Harbor","NAMEASCII":"Bar Harbor","POP_MAX":6090,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-70.2152596,44.1007048],"properties":{"NAME":"Lewiston","NAMEASCII":"Lewiston","POP_MAX":57688,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-68.01246423427497,46.67557721227555],"properties":{"NAME":"Presque Isle","NAMEASCII":"Presque Isle","POP_MAX":9466,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.7199909,42.3003754],"properties":{"NAME":"Ann Arbor","NAMEASCII":"Ann Arbor","POP_MAX":265976,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.5871896,42.2921588],"properties":{"NAME":"Kalamazoo","NAMEASCII":"Kalamazoo","POP_MAX":183381,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.2483637,43.2345819],"properties":{"NAME":"Muskegon","NAMEASCII":"Muskegon","POP_MAX":101177,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.6875381,43.0128642],"properties":{"NAME":"Flint","NAMEASCII":"Flint","POP_MAX":295212,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.6699494,42.9637199],"properties":{"NAME":"Grand Rapids","NAMEASCII":"Grand Rapids","POP_MAX":535829,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.2902238,42.6518526],"properties":{"NAME":"Pontiac","NAMEASCII":"Pontiac","POP_MAX":67994,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.4136084,44.2512124],"properties":{"NAME":"Cadillac","NAMEASCII":"Cadillac","POP_MAX":14097,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.6221745,44.7684418],"properties":{"NAME":"Traverse City","NAMEASCII":"Traverse City","POP_MAX":43189,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.9551868,45.3737537],"properties":{"NAME":"Petoskey","NAMEASCII":"Petoskey","POP_MAX":12667,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.0643604,45.7456948],"properties":{"NAME":"Escanaba","NAMEASCII":"Escanaba","POP_MAX":17318,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.4065876,46.5467312],"properties":{"NAME":"Marquette","NAMEASCII":"Marquette","POP_MAX":26591,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.5808053,47.1272901],"properties":{"NAME":"Hancock","NAMEASCII":"Hancock","POP_MAX":16355,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-2.4299915,36.8303475],"properties":{"NAME":"Almería","NAMEASCII":"Almeria","POP_MAX":179405,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-4.4199992,36.7204059],"properties":{"NAME":"Málaga","NAMEASCII":"Malaga","POP_MAX":550058,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-3.7999854,37.7703935],"properties":{"NAME":"Jaén","NAMEASCII":"Jaen","POP_MAX":116400,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-6.9299494,37.2503736],"properties":{"NAME":"Huelva","NAMEASCII":"Huelva","POP_MAX":144174,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-1.8699998,39.0003443],"properties":{"NAME":"Albacete","NAMEASCII":"Albacete","POP_MAX":158094,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-4.0167164,39.8670355],"properties":{"NAME":"Toledo","NAMEASCII":"Toledo","POP_MAX":74632,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-3.1665874,40.6337071],"properties":{"NAME":"Guadalajara","NAMEASCII":"Guadalajara","POP_MAX":72850,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-3.7999854,43.3804645],"properties":{"NAME":"Santander","NAMEASCII":"Santander","POP_MAX":208763,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-5.6700004,40.9704049],"properties":{"NAME":"Salamanca","NAMEASCII":"Salamanca","POP_MAX":162353,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-3.6799669,42.3503982],"properties":{"NAME":"Burgos","NAMEASCII":"Burgos","POP_MAX":170183,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[0.6300284,6.9003915],"properties":{"NAME":"Kpalimé","NAMEASCII":"Kpalime","POP_MAX":100479,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[1.1499967,8.9904706],"properties":{"NAME":"Sokodé","NAMEASCII":"Sokode","POP_MAX":117811,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[0.4708134,10.3595602],"properties":{"NAME":"Mango","NAMEASCII":"Mango","POP_MAX":42626,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[11.220028,33.1403919],"properties":{"NAME":"Ben Gardane","NAMEASCII":"Ben Gardane","POP_MAX":19843,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[11.0999837,33.5103951],"properties":{"NAME":"Zarzis","NAMEASCII":"Zarzis","POP_MAX":159161,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.7000081,32.0170496],"properties":{"NAME":"Dehibat","NAMEASCII":"Dehibat","POP_MAX":3525,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[1.2499906,41.1203699],"properties":{"NAME":"Tarragona","NAMEASCII":"Tarragona","POP_MAX":126291,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[8.1299841,33.9304212],"properties":{"NAME":"Tozeur","NAMEASCII":"Tozeur","POP_MAX":39504,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[9.1900227,36.7304053],"properties":{"NAME":"Béja","NAMEASCII":"Beja","POP_MAX":59567,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[9.8549951,37.2904228],"properties":{"NAME":"Bizerte","NAMEASCII":"Bizerte","POP_MAX":139843,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.7300321,36.4603443],"properties":{"NAME":"Nabeul","NAMEASCII":"Nabeul","POP_MAX":115149,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[8.7147546,36.1826351],"properties":{"NAME":"El Kef","NAMEASCII":"El Kef","POP_MAX":47979,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[8.829993,35.1803965],"properties":{"NAME":"Qasserine","NAMEASCII":"Qasserine","POP_MAX":81987,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.099993,33.900423],"properties":{"NAME":"Gabès","NAMEASCII":"Gabes","POP_MAX":219517,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[8.7800219,34.4204429],"properties":{"NAME":"Gafsa","NAMEASCII":"Gafsa","POP_MAX":126803,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[10.099993,35.6803919],"properties":{"NAME":"Qairouan","NAMEASCII":"Qairouan","POP_MAX":144522,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[35.8865841,34.8846345],"properties":{"NAME":"Tartus","NAMEASCII":"Tartus","POP_MAX":162980,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[39.0199849,35.9303766],"properties":{"NAME":"Ar Raqqah","NAMEASCII":"Ar Raqqah","POP_MAX":177636,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[36.7299955,35.1503467],"properties":{"NAME":"Hamah","NAMEASCII":"Hamah","POP_MAX":460602,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[38.2833374,34.5504092],"properties":{"NAME":"Tadmur","NAMEASCII":"Tadmur","POP_MAX":55111,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[40.9186287,34.4504153],"properties":{"NAME":"Abu Kamal","NAMEASCII":"Abu Kamal","POP_MAX":80808,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[40.1299947,35.3303874],"properties":{"NAME":"Dayr az Zawr","NAMEASCII":"Dayr az Zawr","POP_MAX":309141,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[36.5665946,32.7004187],"properties":{"NAME":"As Suwayda","NAMEASCII":"As Suwayda","POP_MAX":72248,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[36.7333028,34.0170309],"properties":{"NAME":"Ad Nabk","NAMEASCII":"Ad Nabk","POP_MAX":50178,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[34.3499857,11.7704043],"properties":{"NAME":"Ad Damazīn","NAMEASCII":"Ad Damazin","POP_MAX":186051,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[36.3841768,18.3362309],"properties":{"NAME":"Haiya","NAMEASCII":"Haiya","POP_MAX":20000,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[43.3155367,14.1950883],"properties":{"NAME":"Zabīd","NAMEASCII":"Zabid","POP_MAX":152504,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[43.6021342,15.6917411],"properties":{"NAME":"Hajjah","NAMEASCII":"Hajjah","POP_MAX":208287,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[44.8837614,13.058181],"properties":{"NAME":"Lahij","NAMEASCII":"Lahij","POP_MAX":66288,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[8.2800008,47.0504214],"properties":{"NAME":"Luzern","NAMEASCII":"Luzern","POP_MAX":250000,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[8.9666772,46.0003821],"properties":{"NAME":"Lugano","NAMEASCII":"Lugano","POP_MAX":105388,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[-132.3715949,56.4712675],"properties":{"NAME":"Wrangell","NAMEASCII":"Wrangell","POP_MAX":2070,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-166.0718893,66.2569751],"properties":{"NAME":"Shishmaref","NAMEASCII":"Shishmaref","POP_MAX":254,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-135.438617,58.1154049],"properties":{"NAME":"Hoonah","NAMEASCII":"Hoonah","POP_MAX":361,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-174.2004887,52.1964897],"properties":{"NAME":"Atka","NAMEASCII":"Atka","POP_MAX":61,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-168.8676876,52.9384341],"properties":{"NAME":"Nikolski","NAMEASCII":"Nikolski","POP_MAX":18,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-154.4550273,57.5722856],"properties":{"NAME":"Karluk","NAMEASCII":"Karluk","POP_MAX":96,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-163.415023,54.8512114],"properties":{"NAME":"False Pass","NAMEASCII":"False Pass","POP_MAX":35,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-164.4859034,67.7314922],"properties":{"NAME":"Kivalina","NAMEASCII":"Kivalina","POP_MAX":374,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-154.8971967,59.7203457],"properties":{"NAME":"Newhalen","NAMEASCII":"Newhalen","POP_MAX":160,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-157.5691266,57.56456],"properties":{"NAME":"Pilot Point","NAMEASCII":"Pilot Point","POP_MAX":68,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-158.4022282,56.295671],"properties":{"NAME":"Chignik","NAMEASCII":"Chignik","POP_MAX":118,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-156.6613784,58.6887032],"properties":{"NAME":"King Salmon","NAMEASCII":"King Salmon","POP_MAX":292,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-161.9157864,59.7492328],"properties":{"NAME":"Quinhagak","NAMEASCII":"Quinhagak","POP_MAX":250,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-159.5221857,61.5787077],"properties":{"NAME":"Aniak","NAMEASCII":"Aniak","POP_MAX":501,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-163.5532833,63.0345878],"properties":{"NAME":"Kotlit","NAMEASCII":"Kotlit","POP_MAX":1002,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-160.7880516,63.8734255],"properties":{"NAME":"Unalakleet","NAMEASCII":"Unalakleet","POP_MAX":741,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-161.1574717,64.9402687],"properties":{"NAME":"Koyuk","NAMEASCII":"Koyuk","POP_MAX":254,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-155.5957845,62.9568148],"properties":{"NAME":"McGrath","NAMEASCII":"McGrath","POP_MAX":138,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-154.2549878,66.0491842],"properties":{"NAME":"Hughes","NAMEASCII":"Hughes","POP_MAX":78,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-157.8514091,67.0864852],"properties":{"NAME":"Ambler","NAMEASCII":"Ambler","POP_MAX":258,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-168.0875027,65.6095986],"properties":{"NAME":"Wales","NAMEASCII":"Wales","POP_MAX":99,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-162.5965975,66.8986931],"properties":{"NAME":"Kotzebue","NAMEASCII":"Kotzebue","POP_MAX":3194,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-149.439442,61.5817308],"properties":{"NAME":"Wasilla","NAMEASCII":"Wasilla","POP_MAX":8521,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-144.0605197,65.8258903],"properties":{"NAME":"Circle","NAMEASCII":"Circle","POP_MAX":100,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-148.9140994,63.7330982],"properties":{"NAME":"Denali Park","NAMEASCII":"Denali Park","POP_MAX":1826,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-139.7272183,59.5473071],"properties":{"NAME":"Yakutat","NAMEASCII":"Yakutat","POP_MAX":109,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-151.5482797,59.6429344],"properties":{"NAME":"Homer","NAMEASCII":"Homer","POP_MAX":6560,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-143.346403,63.3857033],"properties":{"NAME":"Tanacross","NAMEASCII":"Tanacross","POP_MAX":136,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-150.1074891,67.4104706],"properties":{"NAME":"Wiseman","NAMEASCII":"Wiseman","POP_MAX":14,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[16.3665873,61.3520032],"properties":{"NAME":"Bollnäs","NAMEASCII":"Bollnas","POP_MAX":13398,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[17.1666418,60.6669804],"properties":{"NAME":"Gävle","NAMEASCII":"Gavle","POP_MAX":68635,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[16.3665873,56.6670178],"properties":{"NAME":"Kalmar","NAMEASCII":"Kalmar","POP_MAX":35024,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[14.8167077,56.8836971],"properties":{"NAME":"Växjö","NAMEASCII":"Vaxjo","POP_MAX":59600,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[15.2199906,59.2803467],"properties":{"NAME":"Örebro","NAMEASCII":"Orebro","POP_MAX":98573,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[16.1786918,58.5954273],"properties":{"NAME":"Norrköping","NAMEASCII":"Norrkoping","POP_MAX":88639,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[12.8555871,56.6717721],"properties":{"NAME":"Halmstad","NAMEASCII":"Halmstad","POP_MAX":55657,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[13.4999406,59.3671373],"properties":{"NAME":"Karlstad","NAMEASCII":"Karlstad","POP_MAX":74141,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[20.9500284,64.7720787],"properties":{"NAME":"Skellefteå","NAMEASCII":"Skelleftea","POP_MAX":31311,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[18.3000093,57.6336513],"properties":{"NAME":"Visby","NAMEASCII":"Visby","POP_MAX":22593,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[34.4000085,45.7170402],"properties":{"NAME":"Dzhankoy","NAMEASCII":"Dzhankoy","POP_MAX":43879,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.3630692,45.1968911],"properties":{"NAME":"Yevpatoriya","NAMEASCII":"Yevpatoriya","POP_MAX":105223,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.4880981,45.3685085],"properties":{"NAME":"Kerch","NAMEASCII":"Kerch","POP_MAX":152195,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.0987349,44.9491543],"properties":{"NAME":"Simferopol","NAMEASCII":"Simferopol","POP_MAX":358108,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.6006649,46.6325372],"properties":{"NAME":"Kherson","NAMEASCII":"Kherson","POP_MAX":320477,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[31.3333223,47.550365],"properties":{"NAME":"Voznesensk","NAMEASCII":"Voznesensk","POP_MAX":43996,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[31.8902909,51.0540788],"properties":{"NAME":"Nizhyn","NAMEASCII":"Nizhyn","POP_MAX":116288,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[26.2528055,50.6165861],"properties":{"NAME":"Rivne","NAMEASCII":"Rivne","POP_MAX":255106,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[25.9215596,48.305306],"properties":{"NAME":"Chernivtsi","NAMEASCII":"Chernivtsi","POP_MAX":298251,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[24.7093855,48.9347508],"properties":{"NAME":"Ivano-Frankivsk","NAMEASCII":"Ivano-Frankivsk","POP_MAX":241239,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[25.5821488,49.5359802],"properties":{"NAME":"Ternopil","NAMEASCII":"Ternopil","POP_MAX":244768,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[25.3333785,50.7471983],"properties":{"NAME":"Lutsk","NAMEASCII":"Lutsk","POP_MAX":213661,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[24.7166202,51.2170663],"properties":{"NAME":"Kovel","NAMEASCII":"Kovel","POP_MAX":71301,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[32.0709,49.4347203],"properties":{"NAME":"Cherkasy","NAMEASCII":"Cherkasy","POP_MAX":297568,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[32.2602941,48.5040536],"properties":{"NAME":"Kirovohrad","NAMEASCII":"Kirovohrad","POP_MAX":249454,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[28.8373506,45.3503443],"properties":{"NAME":"Izmayil","NAMEASCII":"Izmayil","POP_MAX":83194,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[28.4815584,49.225379],"properties":{"NAME":"Vinnytsya","NAMEASCII":"Vinnytsya","POP_MAX":352115,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[28.6500236,50.9504159],"properties":{"NAME":"Korosten","NAMEASCII":"Korosten","POP_MAX":72984,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[33.4796512,51.8734086],"properties":{"NAME":"Shostka","NAMEASCII":"Shostka","POP_MAX":96825,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[34.4062097,47.5665914],"properties":{"NAME":"Nikopol","NAMEASCII":"Nikopol","POP_MAX":130500,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[37.5980562,49.7217829],"properties":{"NAME":"Kupyansk","NAMEASCII":"Kupyansk","POP_MAX":78870,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[38.4273596,48.9204106],"properties":{"NAME":"Lysychansk","NAMEASCII":"Lysychansk","POP_MAX":124421,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[39.3343843,48.5697602],"properties":{"NAME":"Luhansk","NAMEASCII":"Luhansk","POP_MAX":452000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[34.5702823,49.5740399],"properties":{"NAME":"Poltava","NAMEASCII":"Poltava","POP_MAX":317847,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[33.4296285,49.0835272],"properties":{"NAME":"Kremenchuk","NAMEASCII":"Kremenchuk","POP_MAX":232742,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[35.3774682,46.8378245],"properties":{"NAME":"Melitopol","NAMEASCII":"Melitopol","POP_MAX":158000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[52.1637821,16.239408],"properties":{"NAME":"Al Ghaydah","NAMEASCII":"Al Ghaydah","POP_MAX":27404,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[44.8341003,14.4294926],"properties":{"NAME":"Rida","NAMEASCII":"Rida","POP_MAX":45233,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[54.023927,12.651875],"properties":{"NAME":"Hadiboh","NAMEASCII":"Hadiboh","POP_MAX":11396,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[48.7873474,15.942992],"properties":{"NAME":"Saywun","NAMEASCII":"Saywun","POP_MAX":68747,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[55.9427762,25.7915381],"properties":{"NAME":"Ras al Khaymah","NAMEASCII":"Ras al Khaymah","POP_MAX":160849,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[56.3374808,25.1234394],"properties":{"NAME":"Al Fujayrah","NAMEASCII":"Al Fujayrah","POP_MAX":94163,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[55.7399979,24.2304706],"properties":{"NAME":"Al Ayn","NAMEASCII":"Al Ayn","POP_MAX":408733,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[54.3649397,39.5123802],"properties":{"NAME":"Balkanabat","NAMEASCII":"Balkanabat","POP_MAX":110827,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[59.6000207,37.3503416],"properties":{"NAME":"Kaka","NAMEASCII":"Kaka","POP_MAX":38381,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[64.5457653,39.7210755],"properties":{"NAME":"Kogon","NAMEASCII":"Kogon","POP_MAX":107566,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[60.3557369,41.3911286],"properties":{"NAME":"Khiwa","NAMEASCII":"Khiwa","POP_MAX":149751,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[59.7707596,42.9311379],"properties":{"NAME":"Chimboy","NAMEASCII":"Chimboy","POP_MAX":36917,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[58.9000118,43.0704059],"properties":{"NAME":"Qunghirot","NAMEASCII":"Qunghirot","POP_MAX":57758,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[64.201807,41.582228],"properties":{"NAME":"Zarafshon","NAMEASCII":"Zarafshon","POP_MAX":63543,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[65.3549666,40.1104057],"properties":{"NAME":"Navoi","NAMEASCII":"Navoi","POP_MAX":214828,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[65.1997306,37.8248088],"properties":{"NAME":"Atamyrat","NAMEASCII":"Atamyrat","POP_MAX":33242,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[66.8314656,39.0617875],"properties":{"NAME":"Shahrisabz","NAMEASCII":"Shahrisabz","POP_MAX":498545,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[65.800004,38.8704297],"properties":{"NAME":"Qarshi","NAMEASCII":"Qarshi","POP_MAX":386361,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[70.9400004,40.5404053],"properties":{"NAME":"Qoqon","NAMEASCII":"Qoqon","POP_MAX":350000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[68.688975,37.9793988],"properties":{"NAME":"Kuybyshevskiy","NAMEASCII":"Kuybyshevskiy","POP_MAX":8925,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[69.7757303,37.9211595],"properties":{"NAME":"Kulob","NAMEASCII":"Kulob","POP_MAX":115164,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[69.0014624,39.9219159],"properties":{"NAME":"Uroteppa","NAMEASCII":"Uroteppa","POP_MAX":156621,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[67.8300093,40.1003805],"properties":{"NAME":"Jizzax","NAMEASCII":"Jizzax","POP_MAX":235352,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[70.154932,41.0303754],"properties":{"NAME":"Angren","NAMEASCII":"Angren","POP_MAX":202070,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[69.5950179,40.850438],"properties":{"NAME":"Olmaliq","NAMEASCII":"Olmaliq","POP_MAX":121207,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[99.1872168,10.5126774],"properties":{"NAME":"Chumphon","NAMEASCII":"Chumphon","POP_MAX":85686,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.7286307,8.1539584],"properties":{"NAME":"Thung Song","NAMEASCII":"Thung Song","POP_MAX":28223,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.6080179,7.5634001],"properties":{"NAME":"Trang","NAMEASCII":"Trang","POP_MAX":147820,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.2850732,6.5504903],"properties":{"NAME":"Yala","NAMEASCII":"Yala","POP_MAX":148140,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.8264542,19.9118712],"properties":{"NAME":"Chiang Rai","NAMEASCII":"Chiang Rai","POP_MAX":117127,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.4812557,18.2915566],"properties":{"NAME":"Lampang","NAMEASCII":"Lampang","POP_MAX":204081,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.7714611,18.7868494],"properties":{"NAME":"Nan","NAMEASCII":"Nan","POP_MAX":82483,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.9083097,19.1707019],"properties":{"NAME":"Phayao","NAMEASCII":"Phayao","POP_MAX":21058,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.1629195,18.1532963],"properties":{"NAME":"Phrae","NAMEASCII":"Phrae","POP_MAX":38538,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.2728869,16.8283126],"properties":{"NAME":"Phitsanulok","NAMEASCII":"Phitsanulok","POP_MAX":164017,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.7515234,17.0118673],"properties":{"NAME":"Sukhothai","NAMEASCII":"Sukhothai","POP_MAX":10276,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.0971871,17.6316227],"properties":{"NAME":"Uttaradit","NAMEASCII":"Uttaradit","POP_MAX":76630,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.5220284,14.0174247],"properties":{"NAME":"Kanchanaburi","NAMEASCII":"Kanchanaburi","POP_MAX":63699,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[98.5707686,16.7161747],"properties":{"NAME":"Mae Sot","NAMEASCII":"Mae Sot","POP_MAX":45781,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.1293392,16.8847433],"properties":{"NAME":"Tak","NAMEASCII":"Tak","POP_MAX":33146,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.026442,15.3818634],"properties":{"NAME":"Uthai Thani","NAMEASCII":"Uthai Thani","POP_MAX":22219,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.6186023,14.8040176],"properties":{"NAME":"Lop Buri","NAMEASCII":"Lop Buri","POP_MAX":57761,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.3767989,14.0572156],"properties":{"NAME":"Prachin Buri","NAMEASCII":"Prachin Buri","POP_MAX":79757,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.5684244,14.3587993],"properties":{"NAME":"Ayutthaya","NAMEASCII":"Ayutthaya","POP_MAX":145615,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.5333361,14.0171147],"properties":{"NAME":"Pathum Thani","NAMEASCII":"Pathum Thani","POP_MAX":154412,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.8799816,14.530365],"properties":{"NAME":"Saraburi","NAMEASCII":"Saraburi","POP_MAX":70769,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.4833134,13.8336892],"properties":{"NAME":"Nonthaburi","NAMEASCII":"Nonthaburi","POP_MAX":258550,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.9411759,13.1132939],"properties":{"NAME":"Phetchaburi","NAMEASCII":"Phetchaburi","POP_MAX":90497,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.9443282,12.5697095],"properties":{"NAME":"Hua Hin","NAMEASCII":"Hua Hin","POP_MAX":50456,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[99.821545,13.5418982],"properties":{"NAME":"Ratchaburi","NAMEASCII":"Ratchaburi","POP_MAX":106996,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.6114709,13.6069072],"properties":{"NAME":"Samut Prakan","NAMEASCII":"Samut Prakan","POP_MAX":388920,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[104.3298486,15.1202515],"properties":{"NAME":"Sisaket","NAMEASCII":"Sisaket","POP_MAX":44751,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[107.1000154,20.9604118],"properties":{"NAME":"Hong Gai","NAMEASCII":"Hong Gai","POP_MAX":172915,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[107.320002,21.0404328],"properties":{"NAME":"Cẩm Phả","NAMEASCII":"Cam Pha","POP_MAX":135477,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[100.9286608,13.1590275],"properties":{"NAME":"Si Racha","NAMEASCII":"Si Racha","POP_MAX":178916,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.9999743,13.4004081],"properties":{"NAME":"Chon Buri","NAMEASCII":"Chon Buri","POP_MAX":226618,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.0978918,12.6132727],"properties":{"NAME":"Chanthaburi","NAMEASCII":"Chanthaburi","POP_MAX":99819,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.4969372,13.6823548],"properties":{"NAME":"Aranyaprathet","NAMEASCII":"Aranyaprathet","POP_MAX":22472,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.2814559,12.671848],"properties":{"NAME":"Rayong","NAMEASCII":"Rayong","POP_MAX":37035,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[103.116641,15.0004397],"properties":{"NAME":"Buriram","NAMEASCII":"Buriram","POP_MAX":47292,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.0386189,15.8040082],"properties":{"NAME":"Chaiyaphum","NAMEASCII":"Chaiyaphum","POP_MAX":58350,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.4185957,15.5840216],"properties":{"NAME":"Bua Yai","NAMEASCII":"Bua Yai","POP_MAX":18269,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[103.4914502,14.886829],"properties":{"NAME":"Surin","NAMEASCII":"Surin","POP_MAX":62536,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[101.7315059,17.4918897],"properties":{"NAME":"Loei","NAMEASCII":"Loei","POP_MAX":35273,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.747878,17.8732617],"properties":{"NAME":"Nong Khai","NAMEASCII":"Nong Khai","POP_MAX":104505,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[104.1478959,17.1679043],"properties":{"NAME":"Sakhon Nakhon","NAMEASCII":"Sakhon Nakhon","POP_MAX":76237,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.7893225,17.4047632],"properties":{"NAME":"Udon Thani","NAMEASCII":"Udon Thani","POP_MAX":247231,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[103.9659948,22.5013513],"properties":{"NAME":"Lao Chi","NAMEASCII":"Lao Chi","POP_MAX":67206,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.3383142,20.8137024],"properties":{"NAME":"Hoa Binh","NAMEASCII":"Hoa Binh","POP_MAX":105260,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.5050223,21.1381787],"properties":{"NAME":"Sơn Tây","NAMEASCII":"Son Tay","POP_MAX":189547,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.9750195,20.254305],"properties":{"NAME":"Ninh Bình","NAMEASCII":"Ninh Binh","POP_MAX":130517,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.4299882,21.3304151],"properties":{"NAME":"Việt Trì","NAMEASCII":"Viet Tri","POP_MAX":350000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.2000187,21.2670081],"properties":{"NAME":"Bắc Giang","NAMEASCII":"Bac Giang","POP_MAX":53728,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[104.76946,17.3944796],"properties":{"NAME":"Nakhon Phanom","NAMEASCII":"Nakhon Phanom","POP_MAX":55377,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[105.900037,18.3337763],"properties":{"NAME":"Hà Tĩnh","NAMEASCII":"Ha Tinh","POP_MAX":165396,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[108.0499833,12.6670421],"properties":{"NAME":"Buon Me Thuot","NAMEASCII":"Buon Me Thuot","POP_MAX":349945,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[108.4199865,11.9304203],"properties":{"NAME":"Da Lat","NAMEASCII":"Da Lat","POP_MAX":256019,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[108.9833113,11.5670317],"properties":{"NAME":"Phan Rang","NAMEASCII":"Phan Rang","POP_MAX":179773,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.6000459,11.6503858],"properties":{"NAME":"Hon Quan","NAMEASCII":"Hon Quan","POP_MAX":40279,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[107.9833207,14.383759],"properties":{"NAME":"Kon Tum","NAMEASCII":"Kon Tum","POP_MAX":105489,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[108.8299873,15.1504305],"properties":{"NAME":"Quảng Ngãi","NAMEASCII":"Quang Ngai","POP_MAX":250000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[107.2000093,16.7503587],"properties":{"NAME":"Quảng Trị","NAMEASCII":"Quang Tri","POP_MAX":72722,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[101.8214229,6.4318412],"properties":{"NAME":"Narathiwat","NAMEASCII":"Narathiwat","POP_MAX":68112,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[107.0849776,10.3553744],"properties":{"NAME":"Vung Tau","NAMEASCII":"Vung Tau","POP_MAX":248767,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[108.1000577,10.933737],"properties":{"NAME":"Phan Thiet","NAMEASCII":"Phan Thiet","POP_MAX":336846,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.4200146,10.3803858],"properties":{"NAME":"Long Xuyen","NAMEASCII":"Long Xuyen","POP_MAX":350000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.1166739,10.7003921],"properties":{"NAME":"Châu Đốc","NAMEASCII":"Chau Doc","POP_MAX":70239,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.0913525,10.0153951],"properties":{"NAME":"Rạch Giá","NAMEASCII":"Rach Gia","POP_MAX":300000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.416698,10.5337356],"properties":{"NAME":"Tan An","NAMEASCII":"Tan An","POP_MAX":137498,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.3500354,10.3504134],"properties":{"NAME":"Mỹ Tho","NAMEASCII":"My Tho","POP_MAX":124143,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.7199963,9.2803754],"properties":{"NAME":"Bạc Liêu","NAMEASCII":"Bac Lieu","POP_MAX":225000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.1500052,9.1773584],"properties":{"NAME":"Cà Mau","NAMEASCII":"Ca Mau","POP_MAX":356636,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.9800321,9.6037407],"properties":{"NAME":"Sóc Trăng","NAMEASCII":"Soc Trang","POP_MAX":300000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[104.9833488,22.8336566],"properties":{"NAME":"Ha Giang","NAMEASCII":"Ha Giang","POP_MAX":38362,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[29.0800232,-9.7795207],"properties":{"NAME":"Kawambwa","NAMEASCII":"Kawambwa","POP_MAX":20589,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.7300187,-9.3495727],"properties":{"NAME":"Nchelenge","NAMEASCII":"Nchelenge","POP_MAX":23693,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[32.0599963,-10.5496028],"properties":{"NAME":"Chinsali","NAMEASCII":"Chinsali","POP_MAX":14015,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[31.1799467,-10.1995984],"properties":{"NAME":"Kasama","NAMEASCII":"Kasama","POP_MAX":200000,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.6599971,-13.9696008],"properties":{"NAME":"Kapiri Mposhi","NAMEASCII":"Kapiri Mposhi","POP_MAX":37942,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[27.0700166,-14.9796167],"properties":{"NAME":"Mumbwa","NAMEASCII":"Mumbwa","POP_MAX":19086,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[27.8500207,-12.5396106],"properties":{"NAME":"Chingola","NAMEASCII":"Chingola","POP_MAX":182015,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[27.8199967,-12.3695951],"properties":{"NAME":"Chililabombwe","NAMEASCII":"Chililabombwe","POP_MAX":82068,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[30.8099951,-14.5495137],"properties":{"NAME":"Nyimba","NAMEASCII":"Nyimba","POP_MAX":1336,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[33.1700061,-12.2895483],"properties":{"NAME":"Lundazi","NAMEASCII":"Lundazi","POP_MAX":11635,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[32.6400126,-13.6295699],"properties":{"NAME":"Chipata","NAMEASCII":"Chipata","POP_MAX":85963,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[24.4399963,-11.7395561],"properties":{"NAME":"Mwinilunga","NAMEASCII":"Mwinilunga","POP_MAX":13798,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[25.8200154,-13.4596061],"properties":{"NAME":"Kasempa","NAMEASCII":"Kasempa","POP_MAX":5622,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[26.39998,-12.1795809],"properties":{"NAME":"Solwezi","NAMEASCII":"Solwezi","POP_MAX":65000,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[26.9700227,-16.8094791],"properties":{"NAME":"Choma","NAMEASCII":"Choma","POP_MAX":46746,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[23.1200252,-15.2795984],"properties":{"NAME":"Mongu","NAMEASCII":"Mongu","POP_MAX":52534,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[24.7999743,-14.7796289],"properties":{"NAME":"Kaoma","NAMEASCII":"Kaoma","POP_MAX":14212,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[24.3000048,-17.4695422],"properties":{"NAME":"Sesheke","NAMEASCII":"Sesheke","POP_MAX":20149,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[23.2400179,-14.3895752],"properties":{"NAME":"Lukulu","NAMEASCII":"Lukulu","POP_MAX":3349,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[22.6800004,-14.9895902],"properties":{"NAME":"Kalabo","NAMEASCII":"Kalabo","POP_MAX":7731,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[23.2700419,-16.1195988],"properties":{"NAME":"Senanga","NAMEASCII":"Senanga","POP_MAX":10005,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[30.970037,-17.5196167],"properties":{"NAME":"Mazowe","NAMEASCII":"Mazowe","POP_MAX":9966,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[31.5700004,-17.3196289],"properties":{"NAME":"Shamva","NAMEASCII":"Shamva","POP_MAX":10317,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[25.8400142,-17.9296175],"properties":{"NAME":"Victoria Falls","NAMEASCII":"Victoria Falls","POP_MAX":35761,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[30.0499898,-20.3295744],"properties":{"NAME":"Zvishavane","NAMEASCII":"Zvishavane","POP_MAX":35896,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[29.7999792,-18.9296081],"properties":{"NAME":"Kwekwe","NAMEASCII":"Kwekwe","POP_MAX":99149,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[27.8199967,-20.4795394],"properties":{"NAME":"Plumtree","NAMEASCII":"Plumtree","POP_MAX":2148,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[29.9899934,-22.2096146],"properties":{"NAME":"Beitbridge","NAMEASCII":"Beitbridge","POP_MAX":26459,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[29.0100016,-20.9396146],"properties":{"NAME":"Gwanda","NAMEASCII":"Gwanda","POP_MAX":14450,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[31.6600207,-21.0495821],"properties":{"NAME":"Chiredzi","NAMEASCII":"Chiredzi","POP_MAX":28205,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[30.8200203,-20.0596167],"properties":{"NAME":"Masvingo","NAMEASCII":"Masvingo","POP_MAX":76311,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[29.6799865,-16.8195561],"properties":{"NAME":"Karoi","NAMEASCII":"Karoi","POP_MAX":25030,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[30.1800077,-17.3596264],"properties":{"NAME":"Chinhoyi","NAMEASCII":"Chinhoyi","POP_MAX":61739,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[28.8000402,-16.5295996],"properties":{"NAME":"Kariba","NAMEASCII":"Kariba","POP_MAX":25531,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[31.9000061,-27.2961776],"properties":{"NAME":"Golela","NAMEASCII":"Golela","POP_MAX":3695,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[167.1766068,-15.5125557],"properties":{"NAME":"Luganville","NAMEASCII":"Luganville","POP_MAX":13397,"ISO_A2":"VU","SOV_A3":"VUT"}},{"type":"Point","coordinates":[-85.9600092,15.9103583],"properties":{"NAME":"Trujillo","NAMEASCII":"Trujillo","POP_MAX":9646,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-84.4799962,15.7504197],"properties":{"NAME":"Brus Laguna","NAMEASCII":"Brus Laguna","POP_MAX":4067,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-83.7716415,15.2620258],"properties":{"NAME":"Puerto Lempira","NAMEASCII":"Puerto Lempira","POP_MAX":4856,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-86.2299669,14.6704081],"properties":{"NAME":"Juticalpa","NAMEASCII":"Juticalpa","POP_MAX":37442,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-87.6499836,14.4603951],"properties":{"NAME":"Comayagua","NAMEASCII":"Comayagua","POP_MAX":71142,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-87.1908126,13.3006726],"properties":{"NAME":"Choluteca","NAMEASCII":"Choluteca","POP_MAX":99429,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-58.3800131,3.9003937],"properties":{"NAME":"Kumaka","NAMEASCII":"Kumaka","POP_MAX":2190,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-58.6300236,6.4104214],"properties":{"NAME":"Bartica","NAMEASCII":"Bartica","POP_MAX":11524,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-58.5000574,7.2704206],"properties":{"NAME":"Anna Regina","NAMEASCII":"Anna Regina","POP_MAX":3113,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-14.3949976,65.2674231],"properties":{"NAME":"Egilsstaðir","NAMEASCII":"Egilsstadir","POP_MAX":2265,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-19.6389928,65.746412],"properties":{"NAME":"Sauðárkrókur","NAMEASCII":"Saudarkrokur","POP_MAX":2682,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-20.996946,63.9334219],"properties":{"NAME":"Selfoss","NAMEASCII":"Selfoss","POP_MAX":6275,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-1.6985116,37.6885639],"properties":{"NAME":"Lorca","NAMEASCII":"Lorca","POP_MAX":86119,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-0.9800283,37.6004297],"properties":{"NAME":"Cartagena","NAMEASCII":"Cartagena","POP_MAX":201274,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-5.8299907,43.3504922],"properties":{"NAME":"Oviedo","NAMEASCII":"Oviedo","POP_MAX":235651,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-8.5410914,42.882898],"properties":{"NAME":"Santiago de Compostela","NAMEASCII":"Santiago de Compostela","POP_MAX":92430,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-6.9699728,38.8804291],"properties":{"NAME":"Badajoz","NAMEASCII":"Badajoz","POP_MAX":140133,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-2.4299915,42.470365],"properties":{"NAME":"Logroño","NAMEASCII":"Logrono","POP_MAX":143698,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-1.9799931,43.3203906],"properties":{"NAME":"San Sebastián","NAMEASCII":"San Sebastian","POP_MAX":357468,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[29.4769498,4.9151121],"properties":{"NAME":"Maridi","NAMEASCII":"Maridi","POP_MAX":14224,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[30.6800288,4.0903821],"properties":{"NAME":"Yei","NAMEASCII":"Yei","POP_MAX":185000,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[32.2000394,10.43369],"properties":{"NAME":"Melut","NAMEASCII":"Melut","POP_MAX":6407,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[33.0666015,8.6003911],"properties":{"NAME":"Nasir","NAMEASCII":"Nasir","POP_MAX":1741,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[28.1166711,8.5337285],"properties":{"NAME":"Gogrial","NAMEASCII":"Gogrial","POP_MAX":50065,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[32.9799918,14.2503821],"properties":{"NAME":"El Manaqil","NAMEASCII":"El Manaqil","POP_MAX":151827,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[33.4200166,16.6804922],"properties":{"NAME":"Shendi","NAMEASCII":"Shendi","POP_MAX":186611,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[33.9832898,18.0170256],"properties":{"NAME":"Berber","NAMEASCII":"Berber","POP_MAX":49556,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[30.4165824,19.6336969],"properties":{"NAME":"Kerma","NAMEASCII":"Kerma","POP_MAX":3928,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[32.2999816,13.990398],"properties":{"NAME":"Ed Dueim","NAMEASCII":"Ed Dueim","POP_MAX":87068,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[31.1999971,12.910438],"properties":{"NAME":"Umm Ruwaba","NAMEASCII":"Umm Ruwaba","POP_MAX":55742,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[33.5902388,4.7721234],"properties":{"NAME":"Kapoeta","NAMEASCII":"Kapoeta","POP_MAX":7042,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[-73.7499793,18.2003736],"properties":{"NAME":"Les Cayes","NAMEASCII":"Les Cayes","POP_MAX":175457,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-72.6832485,19.4504265],"properties":{"NAME":"Gonaïves","NAMEASCII":"Gonaives","POP_MAX":166678,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-4.6166797,55.4503996],"properties":{"NAME":"Ayr","NAMEASCII":"Ayr","POP_MAX":69042,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.105049991692299,57.145133499698055],"properties":{"NAME":"Aberdeen","NAMEASCII":"Aberdeen","POP_MAX":189364,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.43637522000611,56.3926089503458],"properties":{"NAME":"Perth","NAMEASCII":"Perth","POP_MAX":39654,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.0000084,56.470389],"properties":{"NAME":"Dundee","NAMEASCII":"Dundee","POP_MAX":151592,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.2300131,54.5803752],"properties":{"NAME":"Middlesbrough","NAMEASCII":"Middlesbrough","POP_MAX":416042,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.502674527924457,52.40074087605872],"properties":{"NAME":"Coventry","NAMEASCII":"Coventry","POP_MAX":388271,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.3500222,51.3837486],"properties":{"NAME":"Bath","NAMEASCII":"Bath","POP_MAX":93238,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.5299502,50.7004053],"properties":{"NAME":"Exeter","NAMEASCII":"Exeter","POP_MAX":113118,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[0.1166231,52.2003913],"properties":{"NAME":"Cambridge","NAMEASCII":"Cambridge","POP_MAX":128488,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-0.3299905,53.7504258],"properties":{"NAME":"Kingston upon Hull","NAMEASCII":"Kingston upon Hull","POP_MAX":302296,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-7.3332839,55.0003754],"properties":{"NAME":"Londonderry/Derry","NAMEASCII":"Londonderry","POP_MAX":83652,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-6.047722990732365,54.51034008127803],"properties":{"NAME":"Lisburn","NAMEASCII":"Lisburn","POP_MAX":12899,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-5.5500336,50.1337215],"properties":{"NAME":"Penzance","NAMEASCII":"Penzance","POP_MAX":20812,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.072104058604134,53.9511680622694],"properties":{"NAME":"York","NAMEASCII":"York","POP_MAX":158947,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.0500053,53.8303951],"properties":{"NAME":"Blackpool","NAMEASCII":"Blackpool","POP_MAX":272792,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.5500007,55.0670897],"properties":{"NAME":"Dumfries","NAMEASCII":"Dumfries","POP_MAX":31044,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-0.4299844,54.2803935],"properties":{"NAME":"Scarborough","NAMEASCII":"Scarborough","POP_MAX":70571,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-4.1599893,50.3853858],"properties":{"NAME":"Plymouth","NAMEASCII":"Plymouth","POP_MAX":247297,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[27.4102543,37.7512215],"properties":{"NAME":"Söke","NAMEASCII":"Soke","POP_MAX":77341,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[27.8900183,39.6503821],"properties":{"NAME":"Balıkesir","NAMEASCII":"Balikesir","POP_MAX":261516,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[26.4063879,40.1459332],"properties":{"NAME":"Çanakkale","NAMEASCII":"Canakkale","POP_MAX":87791,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[26.5699955,41.6704397],"properties":{"NAME":"Edirne","NAMEASCII":"Edirne","POP_MAX":126470,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[27.5099898,40.9908688],"properties":{"NAME":"Tekirdağ","NAMEASCII":"Tekirdag","POP_MAX":122287,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[29.9306172,40.776024],"properties":{"NAME":"İzmit","NAMEASCII":"Izmit","POP_MAX":466504,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[31.6061222,40.736259],"properties":{"NAME":"Bolu","NAMEASCII":"Bolu","POP_MAX":96629,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[30.5500109,38.7503854],"properties":{"NAME":"Afyon","NAMEASCII":"Afyon","POP_MAX":156992,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[29.0800232,37.7703935],"properties":{"NAME":"Denizli","NAMEASCII":"Denizli","POP_MAX":372344,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[27.4399682,38.6303927],"properties":{"NAME":"Manisa","NAMEASCII":"Manisa","POP_MAX":243971,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[38.2799267,37.7703935],"properties":{"NAME":"Adıyaman","NAMEASCII":"Adiyaman","POP_MAX":223744,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[38.3000288,38.3704344],"properties":{"NAME":"Malatya","NAMEASCII":"Malatya","POP_MAX":461574,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.8799792,36.9203937],"properties":{"NAME":"Tarsus","NAMEASCII":"Tarsus","POP_MAX":894318,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.9332999,36.1170577],"properties":{"NAME":"Samandagi","NAMEASCII":"Samandagi","POP_MAX":93638,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[36.1700297,36.5804144],"properties":{"NAME":"İskenderun","NAMEASCII":"Iskenderun","POP_MAX":297943,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.8330476,40.65368],"properties":{"NAME":"Amasya","NAMEASCII":"Amasya","POP_MAX":82896,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[37.8699259,41.0004289],"properties":{"NAME":"Ordu","NAMEASCII":"Ordu","POP_MAX":155117,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[37.0349898,39.7454151],"properties":{"NAME":"Sivas","NAMEASCII":"Sivas","POP_MAX":264022,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.9068933,41.568172],"properties":{"NAME":"Bafra","NAMEASCII":"Bafra","POP_MAX":97452,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[41.2900272,39.9203915],"properties":{"NAME":"Erzurum","NAMEASCII":"Erzurum","POP_MAX":420691,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[39.4927726,39.7526498],"properties":{"NAME":"Erzincan","NAMEASCII":"Erzincan","POP_MAX":129407,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[43.0513151,39.7198352],"properties":{"NAME":"Ağrı","NAMEASCII":"Agri","POP_MAX":87854,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[40.2300402,37.920436],"properties":{"NAME":"Diyarbakır","NAMEASCII":"Diyarbakir","POP_MAX":644763,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[41.4969397,38.7490159],"properties":{"NAME":"Muş","NAMEASCII":"Mus","POP_MAX":82536,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[1.1699955,52.0703475],"properties":{"NAME":"Ipswich","NAMEASCII":"Ipswich","POP_MAX":143767,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[1.3000134,52.630365],"properties":{"NAME":"Norwich","NAMEASCII":"Norwich","POP_MAX":190756,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[81.7000154,7.7170083],"properties":{"NAME":"Batticaloa","NAMEASCII":"Batticaloa","POP_MAX":129222,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[80.3999397,9.4004197],"properties":{"NAME":"Kilinochchi","NAMEASCII":"Kilinochchi","POP_MAX":103717,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[80.5427734,5.9489767],"properties":{"NAME":"Matara","NAMEASCII":"Matara","POP_MAX":68244,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[81.0499259,6.9836939],"properties":{"NAME":"Badulla","NAMEASCII":"Badulla","POP_MAX":47587,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[79.8800232,6.7803988],"properties":{"NAME":"Moratuwa","NAMEASCII":"Moratuwa","POP_MAX":200000,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[127.7458353,34.7367802],"properties":{"NAME":"Yeosu","NAMEASCII":"Yeosu","POP_MAX":341994,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[128.7250004,36.5659192],"properties":{"NAME":"Andong","NAMEASCII":"Andong","POP_MAX":129319,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.5219307,33.5101367],"properties":{"NAME":"Jeju","NAMEASCII":"Jeju","POP_MAX":408364,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[-0.1699744,50.8303457],"properties":{"NAME":"Brighton","NAMEASCII":"Brighton","POP_MAX":503008,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.9500114,58.9669808],"properties":{"NAME":"Kirkwall","NAMEASCII":"Kirkwall","POP_MAX":8500,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-4.2332664,57.467124],"properties":{"NAME":"Inverness","NAMEASCII":"Inverness","POP_MAX":45158,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.248076337369831,51.751827978066444],"properties":{"NAME":"Oxford","NAMEASCII":"Oxford","POP_MAX":192796,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-0.4200108,51.8803591],"properties":{"NAME":"Luton","NAMEASCII":"Luton","POP_MAX":235958,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.0800222,50.8003475],"properties":{"NAME":"Portsmouth","NAMEASCII":"Portsmouth","POP_MAX":442252,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-0.248404030339169,52.567187150649296],"properties":{"NAME":"Peterborough","NAMEASCII":"Peterborough","POP_MAX":140141,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.165706334543335,52.941084202004],"properties":{"NAME":"Nottingham","NAMEASCII":"Nottingham","POP_MAX":825600,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.1800068,53.0003683],"properties":{"NAME":"Stoke","NAMEASCII":"Stoke","POP_MAX":390801,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[31.7800134,41.4303768],"properties":{"NAME":"Zonguldak","NAMEASCII":"Zonguldak","POP_MAX":156918,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[34.0516577,37.5062752],"properties":{"NAME":"Ereğli","NAMEASCII":"Eregli","POP_MAX":92117,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[33.2150162,37.1815405],"properties":{"NAME":"Karaman","NAMEASCII":"Karaman","POP_MAX":120399,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[29.4200024,38.6803638],"properties":{"NAME":"Uşak","NAMEASCII":"Usak","POP_MAX":152862,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[37.1199975,36.7204059],"properties":{"NAME":"Kilis","NAMEASCII":"Kilis","POP_MAX":82301,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[33.5299841,39.8503699],"properties":{"NAME":"Kırıkkale","NAMEASCII":"Kirikkale","POP_MAX":211138,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[43.0974621,40.6084632],"properties":{"NAME":"Kars","NAMEASCII":"Kars","POP_MAX":77486,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[40.7427221,37.3115068],"properties":{"NAME":"Mardin","NAMEASCII":"Mardin","POP_MAX":71373,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[41.1400105,37.890412],"properties":{"NAME":"Batman","NAMEASCII":"Batman","POP_MAX":302074,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[43.399976,38.4954397],"properties":{"NAME":"Van","NAMEASCII":"Van","POP_MAX":371713,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.8235909,33.1256641],"properties":{"NAME":"Al Qunaytirah","NAMEASCII":"Al Qunaytirah","POP_MAX":4318,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[33.1999267,0.440424],"properties":{"NAME":"Jinja","NAMEASCII":"Jinja","POP_MAX":301619,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[33.6000057,1.7103982],"properties":{"NAME":"Soroti","NAMEASCII":"Soroti","POP_MAX":1038,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[30.9000154,3.0203699],"properties":{"NAME":"Arua","NAMEASCII":"Arua","POP_MAX":250000,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.47998,2.4703776],"properties":{"NAME":"Pakwach","NAMEASCII":"Pakwach","POP_MAX":17541,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.720017,3.650409],"properties":{"NAME":"Moyo","NAMEASCII":"Moyo","POP_MAX":22434,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.4600236,0.0603955],"properties":{"NAME":"Entebbe","NAMEASCII":"Entebbe","POP_MAX":175128,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[31.3700126,0.5904407],"properties":{"NAME":"Mubende","NAMEASCII":"Mubende","POP_MAX":18936,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.0500227,0.4004265],"properties":{"NAME":"Mityana","NAMEASCII":"Mityana","POP_MAX":41131,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.8700244,3.3004045],"properties":{"NAME":"Kitgum","NAMEASCII":"Kitgum","POP_MAX":56891,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.8900232,2.2603904],"properties":{"NAME":"Lira","NAMEASCII":"Lira","POP_MAX":135445,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[32.0699182,1.7003988],"properties":{"NAME":"Masindi-Port","NAMEASCII":"Masindi-Port","POP_MAX":8319,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[34.1699967,1.0904102],"properties":{"NAME":"Mbale","NAMEASCII":"Mbale","POP_MAX":402368,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[34.1699967,0.7103817],"properties":{"NAME":"Tororo","NAMEASCII":"Tororo","POP_MAX":150000,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[34.1200256,3.5203911],"properties":{"NAME":"Kaabong","NAMEASCII":"Kaabong","POP_MAX":1137,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[34.6399939,2.5403475],"properties":{"NAME":"Moroto","NAMEASCII":"Moroto","POP_MAX":371,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[18.2200142,46.0804289],"properties":{"NAME":"Pécs","NAMEASCII":"Pecs","POP_MAX":186262,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[17.6300244,47.7003559],"properties":{"NAME":"Győr","NAMEASCII":"Gyor","POP_MAX":136081,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[17.7999882,46.3670264],"properties":{"NAME":"Kaposvár","NAMEASCII":"Kaposvar","POP_MAX":108528,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[19.1332401,47.7836583],"properties":{"NAME":"Vác","NAMEASCII":"Vac","POP_MAX":35293,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[20.780013,48.100409],"properties":{"NAME":"Miskolc","NAMEASCII":"Miskolc","POP_MAX":247757,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[20.1500256,46.2503927],"properties":{"NAME":"Szeged","NAMEASCII":"Szeged","POP_MAX":187765,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[21.6300386,47.5304696],"properties":{"NAME":"Debrecen","NAMEASCII":"Debrecen","POP_MAX":231286,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[20.1793778,47.1863562],"properties":{"NAME":"Szolnok","NAMEASCII":"Szolnok","POP_MAX":109261,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[32.7749397,-9.2846155],"properties":{"NAME":"Tunduma","NAMEASCII":"Tunduma","POP_MAX":36556,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[33.6400032,-9.2495788],"properties":{"NAME":"Tukuyu","NAMEASCII":"Tukuyu","POP_MAX":127570,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[31.6200232,-7.9595801],"properties":{"NAME":"Sumbawanga","NAMEASCII":"Sumbawanga","POP_MAX":89161,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[31.0500321,-6.3595744],"properties":{"NAME":"Mpanda","NAMEASCII":"Mpanda","POP_MAX":73338,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[30.5999821,-7.4328939],"properties":{"NAME":"Kipili","NAMEASCII":"Kipili","POP_MAX":1533,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[30.4332739,-6.8161873],"properties":{"NAME":"Karema","NAMEASCII":"Karema","POP_MAX":16385,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[32.1666048,-2.8661959],"properties":{"NAME":"Geita","NAMEASCII":"Geita","POP_MAX":1536,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[33.5500345,-2.3829179],"properties":{"NAME":"Nyahanga","NAMEASCII":"Nyahanga","POP_MAX":16092,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[32.5800162,-3.8195744],"properties":{"NAME":"Kahama","NAMEASCII":"Kahama","POP_MAX":36014,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[33.4200166,-3.6595841],"properties":{"NAME":"Shinyanga","NAMEASCII":"Shinyanga","POP_MAX":107362,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[33.1800313,-4.2096281],"properties":{"NAME":"Nzega","NAMEASCII":"Nzega","POP_MAX":26584,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[32.7700305,-5.6295414],"properties":{"NAME":"Sikonge","NAMEASCII":"Sikonge","POP_MAX":27113,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[31.3100162,-2.6296212],"properties":{"NAME":"Biharamulo","NAMEASCII":"Biharamulo","POP_MAX":34038,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[31.7999605,-1.3196236],"properties":{"NAME":"Bukoba","NAMEASCII":"Bukoba","POP_MAX":100504,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[30.6500048,-2.4695276],"properties":{"NAME":"Ngara","NAMEASCII":"Ngara","POP_MAX":16890,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[31.7299906,-0.3296065],"properties":{"NAME":"Masaka","NAMEASCII":"Masaka","POP_MAX":65373,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[30.9600118,-3.2796073],"properties":{"NAME":"Kakonko","NAMEASCII":"Kakonko","POP_MAX":24688,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[30.1000126,-4.5795797],"properties":{"NAME":"Kasulu","NAMEASCII":"Kasulu","POP_MAX":37349,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[30.2613981,-4.4565381],"properties":{"NAME":"Kanyato","NAMEASCII":"Kanyato","POP_MAX":232,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[30.3900207,-5.1195984],"properties":{"NAME":"Uvinza","NAMEASCII":"Uvinza","POP_MAX":80350,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[29.6100166,-4.879613],"properties":{"NAME":"Kigoma","NAMEASCII":"Kigoma","POP_MAX":164268,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[29.9200236,-0.1296187],"properties":{"NAME":"Katwe","NAMEASCII":"Katwe","POP_MAX":1957,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[30.6500048,-0.5996159],"properties":{"NAME":"Mbarara","NAMEASCII":"Mbarara","POP_MAX":83700,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[29.9799682,-1.249602],"properties":{"NAME":"Kabale","NAMEASCII":"Kabale","POP_MAX":44600,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[36.9800061,-7.3996142],"properties":{"NAME":"Mikumi","NAMEASCII":"Mikumi","POP_MAX":16780,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[36.6800244,-8.1295955],"properties":{"NAME":"Ifakara","NAMEASCII":"Ifakara","POP_MAX":49528,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[36.9900313,-6.8395967],"properties":{"NAME":"Kilosa","NAMEASCII":"Kilosa","POP_MAX":91889,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[39.7700166,-5.2395394],"properties":{"NAME":"Chake Chake","NAMEASCII":"Chake Chake","POP_MAX":49959,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[38.950015,-7.7296199],"properties":{"NAME":"Kibiti","NAMEASCII":"Kibiti","POP_MAX":30163,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[38.8900187,-6.4396212],"properties":{"NAME":"Bagamoyo","NAMEASCII":"Bagamoyo","POP_MAX":82426,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[39.650024,-7.9162752],"properties":{"NAME":"Kilindoni","NAMEASCII":"Kilindoni","POP_MAX":12409,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[36.4799849,-6.3496008],"properties":{"NAME":"Mpwapwa","NAMEASCII":"Mpwapwa","POP_MAX":19806,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[34.7700118,-9.3296256],"properties":{"NAME":"Njombe","NAMEASCII":"Njombe","POP_MAX":46724,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.6900073,-7.7696175],"properties":{"NAME":"Iringa","NAMEASCII":"Iringa","POP_MAX":111820,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[38.7999467,-10.7295919],"properties":{"NAME":"Masasi","NAMEASCII":"Masasi","POP_MAX":36032,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[40.189991,-10.2696199],"properties":{"NAME":"Mtwara","NAMEASCII":"Mtwara","POP_MAX":96602,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[37.3700081,-11.0895699],"properties":{"NAME":"Tunduru","NAMEASCII":"Tunduru","POP_MAX":600,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[34.7666011,-11.2829431],"properties":{"NAME":"Mbamba Bay","NAMEASCII":"Mbamba Bay","POP_MAX":8997,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[34.9000297,-5.7796098],"properties":{"NAME":"Manyoni","NAMEASCII":"Manyoni","POP_MAX":310,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[34.4800036,-5.6996146],"properties":{"NAME":"Itigi","NAMEASCII":"Itigi","POP_MAX":19711,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[34.7400394,-4.8196167],"properties":{"NAME":"Singida","NAMEASCII":"Singida","POP_MAX":62432,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.5199918,-3.2495833],"properties":{"NAME":"Ngorongoro","NAMEASCII":"Ngorongoro","POP_MAX":10836,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.5500158,-3.3496289],"properties":{"NAME":"Oldeani","NAMEASCII":"Oldeani","POP_MAX":8000,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.530017,-3.8495984],"properties":{"NAME":"Mbulu","NAMEASCII":"Mbulu","POP_MAX":13430,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.7500036,-4.2195499],"properties":{"NAME":"Babati","NAMEASCII":"Babati","POP_MAX":34291,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[37.7200126,-4.0695849],"properties":{"NAME":"Same","NAMEASCII":"Same","POP_MAX":17455,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[37.3399841,-3.3396037],"properties":{"NAME":"Moshi","NAMEASCII":"Moshi","POP_MAX":721018,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[33.7999934,-1.4895874],"properties":{"NAME":"Musoma","NAMEASCII":"Musoma","POP_MAX":133156,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[38.5400142,-5.0895744],"properties":{"NAME":"Korogwe","NAMEASCII":"Korogwe","POP_MAX":50000,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[1.3000134,51.1337122],"properties":{"NAME":"Dover","NAMEASCII":"Dover","POP_MAX":36384,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[6.6500227,46.5304273],"properties":{"NAME":"Lausanne","NAMEASCII":"Lausanne","POP_MAX":265702,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[7.590017,47.580389],"properties":{"NAME":"Basel","NAMEASCII":"Basel","POP_MAX":830000,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[12.2999621,58.2671011],"properties":{"NAME":"Trollhättan","NAMEASCII":"Trollhattan","POP_MAX":44543,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[12.939247443030592,57.717756121714984],"properties":{"NAME":"Borås","NAMEASCII":"Boras","POP_MAX":65008,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[14.1332869,56.0336715],"properties":{"NAME":"Kristianstad","NAMEASCII":"Kristianstad","POP_MAX":32188,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[12.723269742553532,56.041291180968074],"properties":{"NAME":"Helsingborg","NAMEASCII":"Helsingborg","POP_MAX":91304,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[-0.4836407,38.3512199],"properties":{"NAME":"Alicante","NAMEASCII":"Alicante","POP_MAX":315863,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-0.0500076,39.9704142],"properties":{"NAME":"Castello","NAMEASCII":"Castello","POP_MAX":180610,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[28.4200118,12.6904256],"properties":{"NAME":"En Nuhud","NAMEASCII":"En Nuhud","POP_MAX":108008,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[27.7333353,11.0337309],"properties":{"NAME":"Muglad","NAMEASCII":"Muglad","POP_MAX":19997,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[29.7400345,-2.3495866],"properties":{"NAME":"Nyanza","NAMEASCII":"Nyanza","POP_MAX":225209,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[29.7599816,-2.0696037],"properties":{"NAME":"Gitarama","NAMEASCII":"Gitarama","POP_MAX":87613,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[29.7300093,-2.5896236],"properties":{"NAME":"Butare","NAMEASCII":"Butare","POP_MAX":77000,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[29.262906,-1.6846659],"properties":{"NAME":"Gisenyi","NAMEASCII":"Gisenyi","POP_MAX":83623,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[28.8999825,-2.4796045],"properties":{"NAME":"Cyangugu","NAMEASCII":"Cyangugu","POP_MAX":19900,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[30.060015,-1.5795561],"properties":{"NAME":"Byumba","NAMEASCII":"Byumba","POP_MAX":70593,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[29.6300154,-1.4996126],"properties":{"NAME":"Ruhengeri","NAMEASCII":"Ruhengeri","POP_MAX":86685,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[-85.8199919,11.4403727],"properties":{"NAME":"Rivas","NAMEASCII":"Rivas","POP_MAX":31941,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-83.6999921,10.9204045],"properties":{"NAME":"San Juan de Nicaragua","NAMEASCII":"San Juan de Nicaragua","POP_MAX":1000,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[10.2700085,13.9874007],"properties":{"NAME":"Gouré","NAMEASCII":"Goure","POP_MAX":14639,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[3.4466524,11.8881749],"properties":{"NAME":"Gaya","NAMEASCII":"Gaya","POP_MAX":33051,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[1.453079,14.2120382],"properties":{"NAME":"Tillabéri","NAMEASCII":"Tillaberi","POP_MAX":19262,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[0.9194681,14.7317997],"properties":{"NAME":"Ayorou","NAMEASCII":"Ayorou","POP_MAX":26290,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[5.2599267,13.790436],"properties":{"NAME":"Birni Nkonni","NAMEASCII":"Birni Nkonni","POP_MAX":65252,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[5.9585921,14.0761808],"properties":{"NAME":"Madaoua","NAMEASCII":"Madaoua","POP_MAX":24804,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[23.8258736,44.3262724],"properties":{"NAME":"Craiova","NAMEASCII":"Craiova","POP_MAX":304142,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[27.3259183,44.2062797],"properties":{"NAME":"Călărași","NAMEASCII":"Calarasi","POP_MAX":73224,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[15.6500419,46.5404783],"properties":{"NAME":"Maribor","NAMEASCII":"Maribor","POP_MAX":114228,"ISO_A2":"SI","SOV_A3":"SVN"}},{"type":"Point","coordinates":[21.8865087,45.2969625],"properties":{"NAME":"Reșița","NAMEASCII":"Resita","POP_MAX":83324,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[21.2234484,45.7588206],"properties":{"NAME":"Timișoara","NAMEASCII":"Timisoara","POP_MAX":315053,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[26.6596541,47.7484149],"properties":{"NAME":"Botoșani","NAMEASCII":"Botosani","POP_MAX":114783,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[23.5790669,47.659454],"properties":{"NAME":"Baia Mare","NAMEASCII":"Baia Mare","POP_MAX":136553,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[24.5578186,46.5582033],"properties":{"NAME":"Tirgu Mures","NAMEASCII":"Tirgu Mures","POP_MAX":149433,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[24.8758353,44.8563176],"properties":{"NAME":"Pitești","NAMEASCII":"Pitesti","POP_MAX":171021,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[25.6071602,45.6475354],"properties":{"NAME":"Brașov","NAMEASCII":"Brasov","POP_MAX":311044,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[26.036488,44.9469064],"properties":{"NAME":"Ploiești","NAMEASCII":"Ploiesti","POP_MAX":232542,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[26.9196382,46.5784347],"properties":{"NAME":"Bacău","NAMEASCII":"Bacau","POP_MAX":199668,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[-79.9299897,-6.8296232],"properties":{"NAME":"Pimentel","NAMEASCII":"Pimentel","POP_MAX":15552,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-79.7499748,-5.9795976],"properties":{"NAME":"Olmos","NAMEASCII":"Olmos","POP_MAX":9800,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-80.819987,-5.5596232],"properties":{"NAME":"Sechura","NAMEASCII":"Sechura","POP_MAX":23020,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-80.1700009,-5.0895744],"properties":{"NAME":"Chulucanas","NAMEASCII":"Chulucanas","POP_MAX":68835,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-80.6799956,-4.8895866],"properties":{"NAME":"Sullana","NAMEASCII":"Sullana","POP_MAX":160789,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-72.8900059,-13.6395951],"properties":{"NAME":"Abancay","NAMEASCII":"Abancay","POP_MAX":55111,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-72.7199905,-16.6196199],"properties":{"NAME":"Camaná","NAMEASCII":"Camana","POP_MAX":20956,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-71.2299781,-14.2895813],"properties":{"NAME":"Sicuani","NAMEASCII":"Sicuani","POP_MAX":33575,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-70.0333069,-15.8329496],"properties":{"NAME":"Puno","NAMEASCII":"Puno","POP_MAX":116552,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-70.5999907,-14.8795711],"properties":{"NAME":"Ayaviri","NAMEASCII":"Ayaviri","POP_MAX":19310,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-69.6699958,-16.0796012],"properties":{"NAME":"Ilave","NAMEASCII":"Ilave","POP_MAX":16033,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-69.0449952,-16.5645845],"properties":{"NAME":"Desaguadero","NAMEASCII":"Desaguadero","POP_MAX":5329,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.1599943,-10.0695805],"properties":{"NAME":"Huarmey","NAMEASCII":"Huarmey","POP_MAX":16172,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.0400017,-7.6196008],"properties":{"NAME":"Cajabamba","NAMEASCII":"Cajabamba","POP_MAX":13486,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.8099805,-5.7095882],"properties":{"NAME":"Jaén","NAMEASCII":"Jaen","POP_MAX":52493,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.650042,-6.5495886],"properties":{"NAME":"Chota","NAMEASCII":"Chota","POP_MAX":14240,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.9899976,-9.2896281],"properties":{"NAME":"Tingo María","NAMEASCII":"Tingo Maria","POP_MAX":53177,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.9666563,-6.0496191],"properties":{"NAME":"Moyobamba","NAMEASCII":"Moyobamba","POP_MAX":47734,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.7399777,-7.1696024],"properties":{"NAME":"Juanjuí","NAMEASCII":"Juanjui","POP_MAX":37715,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.5200169,-8.1796183],"properties":{"NAME":"Tocache","NAMEASCII":"Tocache","POP_MAX":29029,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.870012,-6.2296081],"properties":{"NAME":"Chachapoyas","NAMEASCII":"Chachapoyas","POP_MAX":25978,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-70.5083425,-3.916261],"properties":{"NAME":"Caballococha","NAMEASCII":"Caballococha","POP_MAX":3195,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-71.9166803,-2.3327917],"properties":{"NAME":"Puca Urco","NAMEASCII":"Puca Urco","POP_MAX":10,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.4024789,-2.9020593],"properties":{"NAME":"Andoas","NAMEASCII":"Andoas","POP_MAX":10,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.7666004,-2.5161397],"properties":{"NAME":"Soldado Bartra","NAMEASCII":"Soldado Bartra","POP_MAX":10,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.3999819,-0.9329289],"properties":{"NAME":"Nuevo Rocafuerte","NAMEASCII":"Nuevo Rocafuerte","POP_MAX":40,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-73.9099954,-5.0696273],"properties":{"NAME":"Requena","NAMEASCII":"Requena","POP_MAX":18000,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.2500004,-12.9496114],"properties":{"NAME":"Huanta","NAMEASCII":"Huanta","POP_MAX":18627,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-73.7899768,-15.0196142],"properties":{"NAME":"Coracora","NAMEASCII":"Coracora","POP_MAX":7420,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.1399884,-13.4196085],"properties":{"NAME":"Chincha Alta","NAMEASCII":"Chincha Alta","POP_MAX":153076,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.7399612,-14.1895874],"properties":{"NAME":"Santiago","NAMEASCII":"Santiago","POP_MAX":10449,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.3400114,-11.1296191],"properties":{"NAME":"San Ramon","NAMEASCII":"San Ramon","POP_MAX":14708,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.0100222,-11.1496179],"properties":{"NAME":"Junín","NAMEASCII":"Junin","POP_MAX":15320,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.5000275,-11.7996041],"properties":{"NAME":"Jauja","NAMEASCII":"Jauja","POP_MAX":21057,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.7999905,-10.6996195],"properties":{"NAME":"Pativilca","NAMEASCII":"Pativilca","POP_MAX":31905,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.2699712,-11.5596187],"properties":{"NAME":"Chancay","NAMEASCII":"Chancay","POP_MAX":26958,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.7399777,-12.5196118],"properties":{"NAME":"Chilca","NAMEASCII":"Chilca","POP_MAX":12884,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-57.8999907,-21.0695809],"properties":{"NAME":"Fuerte Olimpo","NAMEASCII":"Fuerte Olimpo","POP_MAX":2475,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-60.7832772,-19.9161112],"properties":{"NAME":"Capitan Pablo Lagerenza","NAMEASCII":"Capitan Pablo Lagerenza","POP_MAX":1200,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.9399882,-22.2896098],"properties":{"NAME":"La Victoria","NAMEASCII":"La Victoria","POP_MAX":5000,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.0500167,-23.3396232],"properties":{"NAME":"Horqueta","NAMEASCII":"Horqueta","POP_MAX":16171,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.2399793,-23.4694861],"properties":{"NAME":"Belén","NAMEASCII":"Belen","POP_MAX":11359,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.1000137,-24.4196089],"properties":{"NAME":"Rosario","NAMEASCII":"Rosario","POP_MAX":5123,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-57.3600236,-25.5096199],"properties":{"NAME":"Itá","NAMEASCII":"Ita","POP_MAX":41090,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-58.2999921,-26.8694853],"properties":{"NAME":"Pilar","NAMEASCII":"Pilar","POP_MAX":28435,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-55.7599921,-22.5445813],"properties":{"NAME":"Pedro Juan Caballero","NAMEASCII":"Pedro Juan Caballero","POP_MAX":102787,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-56.5199974,-22.1296195],"properties":{"NAME":"Bella Vista","NAMEASCII":"Bella Vista","POP_MAX":16852,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-55.940007,-26.0295882],"properties":{"NAME":"Abaí","NAMEASCII":"Abai","POP_MAX":3024,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-55.64315131187634,-24.125302399264495],"properties":{"NAME":"Ygatimí","NAMEASCII":"Ygatimi","POP_MAX":2809,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-55.6465764251629,-27.089777914206802],"properties":{"NAME":"Hohenau","NAMEASCII":"Hohenau","POP_MAX":5306,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-85.949984,11.9337276],"properties":{"NAME":"Granada‎","NAMEASCII":"Granada","POP_MAX":105219,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-87.1300411,12.6303776],"properties":{"NAME":"Chinandega","NAMEASCII":"Chinandega","POP_MAX":139023,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-85.9166527,12.9170785],"properties":{"NAME":"Matagalpa","NAMEASCII":"Matagalpa","POP_MAX":109089,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-28.6447568,38.5346559],"properties":{"NAME":"Horta","NAMEASCII":"Horta","POP_MAX":6611,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-27.2166698,38.6503915],"properties":{"NAME":"Angra do Heroísmo","NAMEASCII":"Angra do Heroismo","POP_MAX":12045,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.533314,37.1337398],"properties":{"NAME":"Portimão","NAMEASCII":"Portimao","POP_MAX":61226,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-7.9332732,37.0170803],"properties":{"NAME":"Faro","NAMEASCII":"Faro","POP_MAX":41355,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.4166803,40.2003744],"properties":{"NAME":"Coimbra","NAMEASCII":"Coimbra","POP_MAX":106582,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-12.0499728,8.8804256],"properties":{"NAME":"Makeni","NAMEASCII":"Makeni","POP_MAX":87679,"ISO_A2":"SL","SOV_A3":"SLE"}},{"type":"Point","coordinates":[-16.2400013,14.6603829],"properties":{"NAME":"Diourbel","NAMEASCII":"Diourbel","POP_MAX":148024,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-16.2500007,15.6103766],"properties":{"NAME":"Louga","NAMEASCII":"Louga","POP_MAX":85075,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-16.9300108,14.8103996],"properties":{"NAME":"Thiès","NAMEASCII":"Thies","POP_MAX":293001,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-14.9500283,12.910438],"properties":{"NAME":"Kolda","NAMEASCII":"Kolda","POP_MAX":69267,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-13.6800283,13.7803591],"properties":{"NAME":"Tambacounda","NAMEASCII":"Tambacounda","POP_MAX":89212,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-12.1799907,12.5604336],"properties":{"NAME":"Kédougou","NAMEASCII":"Kedougou","POP_MAX":18226,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-7.7169814,4.3753776],"properties":{"NAME":"Harper","NAMEASCII":"Harper","POP_MAX":32661,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-9.4899998,7.0104106],"properties":{"NAME":"Gbarnga","NAMEASCII":"Gbarnga","POP_MAX":45835,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-10.8499943,8.4404783],"properties":{"NAME":"Koidu","NAMEASCII":"Koidu","POP_MAX":87539,"ISO_A2":"SL","SOV_A3":"SLE"}},{"type":"Point","coordinates":[-11.1899736,7.8804092],"properties":{"NAME":"Kenema","NAMEASCII":"Kenema","POP_MAX":143137,"ISO_A2":"SL","SOV_A3":"SLE"}},{"type":"Point","coordinates":[-8.1300053,6.0703904],"properties":{"NAME":"Zwedru","NAMEASCII":"Zwedru","POP_MAX":25678,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[12.6088838,13.3170541],"properties":{"NAME":"Diffa","NAMEASCII":"Diffa","POP_MAX":30988,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[13.110817,14.2531726],"properties":{"NAME":"Nguigmi","NAMEASCII":"Nguigmi","POP_MAX":17897,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[20.3107393,42.6603276],"properties":{"NAME":"Pec","NAMEASCII":"Pec","POP_MAX":105163,"ISO_A2":"-99","SOV_A3":"KOS"}},{"type":"Point","coordinates":[43.9628357,26.3663867],"properties":{"NAME":"Buraydah","NAMEASCII":"Buraydah","POP_MAX":398581,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[41.7000797,27.5235771],"properties":{"NAME":"Hail","NAMEASCII":"Hail","POP_MAX":385257,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[41.0206897,30.9900063],"properties":{"NAME":"Arar","NAMEASCII":"Arar","POP_MAX":222016,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[43.4948022,29.6202191],"properties":{"NAME":"Rafha","NAMEASCII":"Rafha","POP_MAX":64755,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[38.070017,-0.9295699],"properties":{"NAME":"Mwingi","NAMEASCII":"Mwingi","POP_MAX":11219,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[37.4500032,-0.5195691],"properties":{"NAME":"Embu","NAMEASCII":"Embu","POP_MAX":58620,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[37.259989,-1.5095345],"properties":{"NAME":"Machakos","NAMEASCII":"Machakos","POP_MAX":144925,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[37.0600012,0.020398],"properties":{"NAME":"Nanyuki","NAMEASCII":"Nanyuki","POP_MAX":36142,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[36.6800244,1.1104606],"properties":{"NAME":"Maralal","NAMEASCII":"Maralal","POP_MAX":20841,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[37.1199975,-1.7496232],"properties":{"NAME":"Konza","NAMEASCII":"Konza","POP_MAX":2004,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[35.5700146,3.130389],"properties":{"NAME":"Lodwar","NAMEASCII":"Lodwar","POP_MAX":20219,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[35.7200313,0.0503703],"properties":{"NAME":"Eldama Ravine","NAMEASCII":"Eldama Ravine","POP_MAX":17581,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[35.1200162,-0.6795593],"properties":{"NAME":"Sotik","NAMEASCII":"Sotik","POP_MAX":71285,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[36.800017,-2.5396008],"properties":{"NAME":"Namanga","NAMEASCII":"Namanga","POP_MAX":13193,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[36.4299621,-0.7095833],"properties":{"NAME":"Naivasha","NAMEASCII":"Naivasha","POP_MAX":43983,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[35.2800065,-0.3595788],"properties":{"NAME":"Kericho","NAMEASCII":"Kericho","POP_MAX":98852,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.9899467,1.0304655],"properties":{"NAME":"Kitale","NAMEASCII":"Kitale","POP_MAX":150495,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.5599987,0.5703902],"properties":{"NAME":"Bungoma","NAMEASCII":"Bungoma","POP_MAX":55962,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.7300142,0.2904073],"properties":{"NAME":"Kakamega","NAMEASCII":"Kakamega","POP_MAX":63426,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[40.0499996,1.7503699],"properties":{"NAME":"Wajir","NAMEASCII":"Wajir","POP_MAX":45771,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[39.6700227,-0.4396256],"properties":{"NAME":"Garissa","NAMEASCII":"Garissa","POP_MAX":67861,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[5.7833573,53.2503788],"properties":{"NAME":"Leeuwarden","NAMEASCII":"Leeuwarden","POP_MAX":125778,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[6.5800012,53.2204065],"properties":{"NAME":"Groningen","NAMEASCII":"Groningen","POP_MAX":216688,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[16.5155704,68.7879059],"properties":{"NAME":"Harstad","NAMEASCII":"Harstad","POP_MAX":19433,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[5.1200386,52.1003457],"properties":{"NAME":"Utrecht","NAMEASCII":"Utrecht","POP_MAX":640000,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[6.263280014851641,62.45979913939814],"properties":{"NAME":"Ålesund","NAMEASCII":"Alesund","POP_MAX":47772,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[5.6900297,58.845412],"properties":{"NAME":"Sandnes","NAMEASCII":"Sandnes","POP_MAX":46911,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[10.199231839963424,59.738481129257444],"properties":{"NAME":"Drammen","NAMEASCII":"Drammen","POP_MAX":90722,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[10.6691573,59.436978],"properties":{"NAME":"Moss","NAMEASCII":"Moss","POP_MAX":36901,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[11.5000109,64.0170602],"properties":{"NAME":"Steinkjer","NAMEASCII":"Steinkjer","POP_MAX":11274,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[21.5605855,57.3898678],"properties":{"NAME":"Ventspils","NAMEASCII":"Ventspils","POP_MAX":42884,"ISO_A2":"LV","SOV_A3":"LVA"}},{"type":"Point","coordinates":[21.1199406,55.720409],"properties":{"NAME":"Klaipėda","NAMEASCII":"Klaipeda","POP_MAX":192307,"ISO_A2":"LT","SOV_A3":"LTU"}},{"type":"Point","coordinates":[19.1332401,48.5837386],"properties":{"NAME":"Zvolen","NAMEASCII":"Zvolen","POP_MAX":44502,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[18.7493876,49.2198238],"properties":{"NAME":"Žilina","NAMEASCII":"Zilina","POP_MAX":87625,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[21.2500101,48.730448],"properties":{"NAME":"Košice","NAMEASCII":"Kosice","POP_MAX":236563,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[21.2393648,48.9997339],"properties":{"NAME":"Prešov","NAMEASCII":"Presov","POP_MAX":94718,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[23.8800305,54.9504043],"properties":{"NAME":"Kaunas","NAMEASCII":"Kaunas","POP_MAX":374643,"ISO_A2":"LT","SOV_A3":"LTU"}},{"type":"Point","coordinates":[23.7128055,56.6527035],"properties":{"NAME":"Jelgava","NAMEASCII":"Jelgava","POP_MAX":67207,"ISO_A2":"LV","SOV_A3":"LVA"}},{"type":"Point","coordinates":[47.3120369,24.1555656],"properties":{"NAME":"Al Kharj","NAMEASCII":"Al Kharj","POP_MAX":298428,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[50.0977245,26.4301376],"properties":{"NAME":"Dammam","NAMEASCII":"Ad Damman","POP_MAX":2054710,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[45.9600781,28.4336507],"properties":{"NAME":"Hafar al Batin","NAMEASCII":"Hafar al Batin","POP_MAX":249194,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[49.646003,27.0046424],"properties":{"NAME":"Al Jubayl","NAMEASCII":"Al Jubayl","POP_MAX":237274,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[62.328588,25.1389681],"properties":{"NAME":"Gwadar","NAMEASCII":"Gwadar","POP_MAX":51901,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[69.4385933,31.3489767],"properties":{"NAME":"Zhob","NAMEASCII":"Zhob","POP_MAX":88356,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[74.300002,35.9170958],"properties":{"NAME":"Gilgit","NAMEASCII":"Gilgit","POP_MAX":216760,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[74.4550313,31.1253727],"properties":{"NAME":"Kasur","NAMEASCII":"Kasur","POP_MAX":290643,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[71.4718025,32.452191],"properties":{"NAME":"Kundian","NAMEASCII":"Kundian","POP_MAX":35406,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[73.450028,30.8104049],"properties":{"NAME":"Okara","NAMEASCII":"Okara","POP_MAX":223648,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[72.3249804,31.2803762],"properties":{"NAME":"Jhang","NAMEASCII":"Jhang","POP_MAX":341210,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[72.6749849,32.0853658],"properties":{"NAME":"Sargodha","NAMEASCII":"Sargodha","POP_MAX":542603,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[70.6350577,30.060399],"properties":{"NAME":"Dera Ghazi Khan","NAMEASCII":"Dera Ghazi Khan","POP_MAX":236093,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[70.1302307,28.3006356],"properties":{"NAME":"Sadiqabad","NAMEASCII":"Sadiqabad","POP_MAX":189876,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[68.4000004,26.245438],"properties":{"NAME":"Nawabshah","NAMEASCII":"Nawabshah","POP_MAX":229504,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[76.1853649,42.4560248],"properties":{"NAME":"Balykchy","NAMEASCII":"Balykchy","POP_MAX":40527,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[75.7968099,41.1724856],"properties":{"NAME":"At Bashy","NAMEASCII":"At Bashy","POP_MAX":15601,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[73.0025101,40.9428872],"properties":{"NAME":"Jalal Abad","NAMEASCII":"Jalal Abad","POP_MAX":248899,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[72.9371911,41.8825714],"properties":{"NAME":"Toktogul","NAMEASCII":"Toktogul","POP_MAX":26115,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[72.2314461,41.3418551],"properties":{"NAME":"Tash Komur","NAMEASCII":"Tash Komur","POP_MAX":23594,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[72.2429183,42.5183724],"properties":{"NAME":"Talas","NAMEASCII":"Talas","POP_MAX":35172,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[72.7900166,40.5404053],"properties":{"NAME":"Osh","NAMEASCII":"Osh","POP_MAX":391277,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[70.5985742,32.9889799],"properties":{"NAME":"Bannu","NAMEASCII":"Bannu","POP_MAX":622419,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[70.8985559,31.828999],"properties":{"NAME":"Dera Ismail Khan","NAMEASCII":"Dera Ismail Khan","POP_MAX":101616,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[81.6166613,28.0503408],"properties":{"NAME":"Nepalganj","NAMEASCII":"Nepalganj","POP_MAX":64400,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[84.8665922,27.0004049],"properties":{"NAME":"Birganj","NAMEASCII":"Birganj","POP_MAX":133238,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[87.2833439,26.4837439],"properties":{"NAME":"Biratnagar","NAMEASCII":"Biratnagar","POP_MAX":182324,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[101.0314453,4.0118598],"properties":{"NAME":"Teluk Intan","NAMEASCII":"Teluk Intan","POP_MAX":101659,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[100.4000109,5.4170711],"properties":{"NAME":"Butterworth","NAMEASCII":"Butterworth","POP_MAX":821652,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[100.4793343,5.6497184],"properties":{"NAME":"Sungai Petani","NAMEASCII":"Sungai Petani","POP_MAX":358499,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[100.3729325,6.1133077],"properties":{"NAME":"Alor Setar","NAMEASCII":"Alor Setar","POP_MAX":336475,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[102.566597,2.0337376],"properties":{"NAME":"Muar","NAMEASCII":"Muar","POP_MAX":191346,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[102.9333447,1.8503638],"properties":{"NAME":"Batu Pahat","NAMEASCII":"Batu Pahat","POP_MAX":199619,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[103.317869,2.038311],"properties":{"NAME":"Keluang","NAMEASCII":"Keluang","POP_MAX":169828,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[101.9400203,2.7104922],"properties":{"NAME":"Seremban","NAMEASCII":"Seremban","POP_MAX":372917,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[101.8423002,3.7927],"properties":{"NAME":"Raub","NAMEASCII":"Raub","POP_MAX":40024,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[103.4478869,4.2332416],"properties":{"NAME":"Chukai","NAMEASCII":"Chukai","POP_MAX":82425,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[103.12,5.3304098],"properties":{"NAME":"Kuala Terengganu","NAMEASCII":"Kuala Terengganu","POP_MAX":350210,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[118.3359704,5.0463961],"properties":{"NAME":"Lahad Datu","NAMEASCII":"Lahad Datu","POP_MAX":105622,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[113.0359838,3.1664075],"properties":{"NAME":"Bintulu","NAMEASCII":"Bintulu","POP_MAX":151617,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[113.9845048,4.3999239],"properties":{"NAME":"Miri","NAMEASCII":"Miri","POP_MAX":228212,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[25.1000077,-30.7195345],"properties":{"NAME":"Colesberg","NAMEASCII":"Colesberg","POP_MAX":12423,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[19.383354,-29.132913],"properties":{"NAME":"Poffader","NAMEASCII":"Poffader","POP_MAX":4220,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[22.1333154,-30.949598],"properties":{"NAME":"Carnarvon","NAMEASCII":"Carnarvon","POP_MAX":5785,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[22.7300232,-29.6595475],"properties":{"NAME":"Prieska","NAMEASCII":"Prieska","POP_MAX":11236,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[23.4200069,-27.4495532],"properties":{"NAME":"Kuruman","NAMEASCII":"Kuruman","POP_MAX":10006,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[23.0333121,-34.032924],"properties":{"NAME":"Knysna","NAMEASCII":"Knysna","POP_MAX":63106,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[20.4300085,-34.0195915],"properties":{"NAME":"Swellendam","NAMEASCII":"Swellendam","POP_MAX":13674,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[19.2299267,-34.4095935],"properties":{"NAME":"Hermanus","NAMEASCII":"Hermanus","POP_MAX":25153,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[18.9600207,-33.6995593],"properties":{"NAME":"Paarl","NAMEASCII":"Paarl","POP_MAX":187865,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[20.0299812,-34.5295345],"properties":{"NAME":"Bredasdorp","NAMEASCII":"Bredasdorp","POP_MAX":14936,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[22.5699812,-32.3496159],"properties":{"NAME":"Beaufort West","NAMEASCII":"Beaufort West","POP_MAX":44737,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[33.9500101,-16.0995483],"properties":{"NAME":"Moatize","NAMEASCII":"Moatize","POP_MAX":42000,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[30.4100195,-15.6195776],"properties":{"NAME":"Luangwa","NAMEASCII":"Luangwa","POP_MAX":3065,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[32.8799979,-18.9696057],"properties":{"NAME":"Manica","NAMEASCII":"Manica","POP_MAX":4000,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[32.7700305,-20.4501355],"properties":{"NAME":"Espungabera","NAMEASCII":"Espungabera","POP_MAX":393,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[40.430028,-2.3796106],"properties":{"NAME":"Witu","NAMEASCII":"Witu","POP_MAX":5380,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[38.4666337,-2.9827779],"properties":{"NAME":"Tsavo","NAMEASCII":"Tsavo","POP_MAX":414,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[38.5699865,-3.369576],"properties":{"NAME":"Voi","NAMEASCII":"Voi","POP_MAX":36487,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[39.8500118,-3.609613],"properties":{"NAME":"Kilifi","NAMEASCII":"Kilifi","POP_MAX":80339,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[33.9333186,-9.9328963],"properties":{"NAME":"Karonga","NAMEASCII":"Karonga","POP_MAX":34207,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[37.0900252,-1.039589],"properties":{"NAME":"Thika","NAMEASCII":"Thika","POP_MAX":99322,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.6399939,-0.3595788],"properties":{"NAME":"Kendu Bay","NAMEASCII":"Kendu Bay","POP_MAX":91248,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.1499979,-0.8496264],"properties":{"NAME":"Karungu","NAMEASCII":"Karungu","POP_MAX":2376,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.7599865,-0.6695858],"properties":{"NAME":"Kisii","NAMEASCII":"Kisii","POP_MAX":28547,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[39.0000378,-13.1195752],"properties":{"NAME":"Montepuez","NAMEASCII":"Montepuez","POP_MAX":72279,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[40.3499812,-11.3195817],"properties":{"NAME":"Mocimboa","NAMEASCII":"Mocimboa","POP_MAX":27909,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[37.4994576,-13.1983817],"properties":{"NAME":"Marrupa","NAMEASCII":"Marrupa","POP_MAX":8762,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[36.5399812,-14.7896024],"properties":{"NAME":"Cuamba","NAMEASCII":"Cuamba","POP_MAX":73268,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[37.7400114,-15.1756771],"properties":{"NAME":"Ligonha","NAMEASCII":"Ligonha","POP_MAX":3500,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[27.7799991,-25.6296126],"properties":{"NAME":"Brits","NAMEASCII":"Brits","POP_MAX":122497,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[25.5900036,-27.6495927],"properties":{"NAME":"Bloemhof","NAMEASCII":"Bloemhof","POP_MAX":17122,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[27.099989,-26.6995731],"properties":{"NAME":"Potchefstroom","NAMEASCII":"Potchefstroom","POP_MAX":123669,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[26.4700016,-28.6995544],"properties":{"NAME":"Brandfort","NAMEASCII":"Brandfort","POP_MAX":12091,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[28.2999674,-28.2195837],"properties":{"NAME":"Bethlehem","NAMEASCII":"Bethlehem","POP_MAX":83654,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[33.0900109,-25.0195207],"properties":{"NAME":"Macia","NAMEASCII":"Macia","POP_MAX":23156,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[32.9563757,-21.5373043],"properties":{"NAME":"Massangena","NAMEASCII":"Massangena","POP_MAX":650,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[31.9630513,-22.8426509],"properties":{"NAME":"Mapai","NAMEASCII":"Mapai","POP_MAX":201,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[28.430037,-26.2695735],"properties":{"NAME":"Springs","NAMEASCII":"Springs","POP_MAX":236083,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.8899996,-27.3595845],"properties":{"NAME":"Volksrust","NAMEASCII":"Volksrust","POP_MAX":43378,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.9800105,-25.4696224],"properties":{"NAME":"Mbombela","NAMEASCII":"Mbombela","POP_MAX":348138,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[31.9400036,-25.4095744],"properties":{"NAME":"Komatipoort","NAMEASCII":"Komatipoort","POP_MAX":20508,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.4700252,-25.7596305],"properties":{"NAME":"Middelburg","NAMEASCII":"Middelburg","POP_MAX":154706,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.4500264,-26.469613],"properties":{"NAME":"Bethal","NAMEASCII":"Bethal","POP_MAX":101919,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.2400134,-26.9395068],"properties":{"NAME":"Standerton","NAMEASCII":"Standerton","POP_MAX":74021,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.4999975,-24.1996224],"properties":{"NAME":"Lebowakgomo","NAMEASCII":"Lebowakgomo","POP_MAX":33308,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.1699825,-23.8195422],"properties":{"NAME":"Tzaneen","NAMEASCII":"Tzaneen","POP_MAX":67245,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[31.4100101,-28.3296028],"properties":{"NAME":"Ulundi","NAMEASCII":"Ulundi","POP_MAX":20753,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.7800321,-28.5494861],"properties":{"NAME":"Ladysmith","NAMEASCII":"Ladysmith","POP_MAX":47375,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.4599906,-30.7195345],"properties":{"NAME":"Port Shepstone","NAMEASCII":"Port Shepstone","POP_MAX":52793,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[32.0833024,-27.5660836],"properties":{"NAME":"Ubomba","NAMEASCII":"Ubomba","POP_MAX":564,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[50.1665913,-14.2661719],"properties":{"NAME":"Sambava","NAMEASCII":"Sambava","POP_MAX":43465,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[48.4500036,-13.6829],"properties":{"NAME":"Ambanja","NAMEASCII":"Ambanja","POP_MAX":30621,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[46.1166577,-22.3996289],"properties":{"NAME":"Ihosy","NAMEASCII":"Ihosy","POP_MAX":16990,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[48.8166479,-15.8328463],"properties":{"NAME":"Mandritsara","NAMEASCII":"Mandritsara","POP_MAX":9705,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[44.4833207,-16.7495345],"properties":{"NAME":"Besalampy","NAMEASCII":"Besalampy","POP_MAX":1022,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[46.6333186,-16.0995483],"properties":{"NAME":"Marovoay","NAMEASCII":"Marovoay","POP_MAX":31253,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[47.9833654,-14.8660836],"properties":{"NAME":"Antsohihy","NAMEASCII":"Antsohihy","POP_MAX":21290,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[48.4166723,-17.8328792],"properties":{"NAME":"Ambatondrazaka","NAMEASCII":"Ambatondrazaka","POP_MAX":43134,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[45.3166031,-24.2161588],"properties":{"NAME":"Bekiy","NAMEASCII":"Bekiy","POP_MAX":4286,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[44.3332523,-21.4329179],"properties":{"NAME":"Manja","NAMEASCII":"Manja","POP_MAX":1536,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[45.4666198,-19.5161873],"properties":{"NAME":"Miandrivazo","NAMEASCII":"Miandrivazo","POP_MAX":20631,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[154.6711375,-5.4297422],"properties":{"NAME":"Sohano","NAMEASCII":"Sohano","POP_MAX":2338,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[155.6333321,-6.2162756],"properties":{"NAME":"Kieta","NAMEASCII":"Kieta","POP_MAX":6958,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[156.8350158,-8.0996232],"properties":{"NAME":"Gizo","NAMEASCII":"Gizo","POP_MAX":6154,"ISO_A2":"SB","SOV_A3":"SLB"}},{"type":"Point","coordinates":[143.6452266,-6.1443937],"properties":{"NAME":"Mendi","NAMEASCII":"Mendi","POP_MAX":26252,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[148.5650297,-10.0426054],"properties":{"NAME":"Abau","NAMEASCII":"Abau","POP_MAX":230,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[150.4590743,-10.3020727],"properties":{"NAME":"Alotau","NAMEASCII":"Alotau","POP_MAX":11624,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[148.2484082,-8.7691947],"properties":{"NAME":"Popondetta","NAMEASCII":"Popondetta","POP_MAX":28198,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[150.4099816,-5.4746155],"properties":{"NAME":"Hoskins","NAMEASCII":"Hoskins","POP_MAX":871,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[4.629991,52.3804319],"properties":{"NAME":"Haarlem","NAMEASCII":"Haarlem","POP_MAX":349957,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[-80.28002,7.7603906],"properties":{"NAME":"Las Tablas","NAMEASCII":"Las Tablas","POP_MAX":11358,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-80.9833362,8.1003699],"properties":{"NAME":"Santiago","NAMEASCII":"Santiago","POP_MAX":45955,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-78.1402281,8.3981812],"properties":{"NAME":"La Palma","NAMEASCII":"La Palma","POP_MAX":1845,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-5.9099858,35.0203805],"properties":{"NAME":"Ksar El Kebir","NAMEASCII":"Ksar El Kebir","POP_MAX":306600,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-6.1600222,35.2004212],"properties":{"NAME":"Larache","NAMEASCII":"Larache","POP_MAX":120082,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-4.019972,34.2203776],"properties":{"NAME":"Taza","NAMEASCII":"Taza","POP_MAX":199633,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-5.5700066,34.8103416],"properties":{"NAME":"Ouezzane","NAMEASCII":"Ouezzane","POP_MAX":69658,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-6.5799966,34.2704004],"properties":{"NAME":"Kenitra","NAMEASCII":"Kenitra","POP_MAX":551786,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-7.6200106,33.0104256],"properties":{"NAME":"Settat","NAMEASCII":"Settat","POP_MAX":161748,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-4.4499716,31.9404134],"properties":{"NAME":"Er Rachidia","NAMEASCII":"Er Rachidia","POP_MAX":228489,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-5.5599813,33.900423],"properties":{"NAME":"Meknes","NAMEASCII":"Meknes","POP_MAX":697628,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-9.7399846,29.7104203],"properties":{"NAME":"Tiznit","NAMEASCII":"Tiznit","POP_MAX":57705,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-8.5099821,33.2603587],"properties":{"NAME":"El Jadida","NAMEASCII":"El Jadida","POP_MAX":180470,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[27.9053145,47.7590861],"properties":{"NAME":"Bălți","NAMEASCII":"Balti","POP_MAX":151355,"ISO_A2":"MD","SOV_A3":"MDA"}},{"type":"Point","coordinates":[28.1944441,45.9078813],"properties":{"NAME":"Cahul","NAMEASCII":"Cahul","POP_MAX":63407,"ISO_A2":"MD","SOV_A3":"MDA"}},{"type":"Point","coordinates":[29.639989,46.8530949],"properties":{"NAME":"Tiraspol","NAMEASCII":"Tiraspol","POP_MAX":157000,"ISO_A2":"MD","SOV_A3":"MDA"}},{"type":"Point","coordinates":[33.266641,-9.716217],"properties":{"NAME":"Chitipa","NAMEASCII":"Chitipa","POP_MAX":13412,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.3000146,-11.5996163],"properties":{"NAME":"Nkhata Bay","NAMEASCII":"Nkhata Bay","POP_MAX":22108,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.3000146,-12.9162801],"properties":{"NAME":"Nkhotakota","NAMEASCII":"Nkhotakota","POP_MAX":59854,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.7300142,-19.6195919],"properties":{"NAME":"Dondo","NAMEASCII":"Dondo","POP_MAX":78648,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[34.6558585,-16.8921098],"properties":{"NAME":"Chiramba","NAMEASCII":"Chiramba","POP_MAX":556,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[38.2600313,-16.8495801],"properties":{"NAME":"Mocuba","NAMEASCII":"Mocuba","POP_MAX":68984,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[36.8197058,-17.6076733],"properties":{"NAME":"Nicuadala","NAMEASCII":"Nicuadala","POP_MAX":6945,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[35.2699812,-14.4595967],"properties":{"NAME":"Mangochi","NAMEASCII":"Mangochi","POP_MAX":97711,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.4332881,-13.7829455],"properties":{"NAME":"Salima","NAMEASCII":"Salima","POP_MAX":71181,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[35.3885509,-23.8660227],"properties":{"NAME":"Maxixe","NAMEASCII":"Maxixe","POP_MAX":119868,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[34.7302726,-24.0628865],"properties":{"NAME":"Panda","NAMEASCII":"Panda","POP_MAX":602,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[34.765981,-24.7256885],"properties":{"NAME":"Quissico","NAMEASCII":"Quissico","POP_MAX":1210,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[35.3165934,-21.9995499],"properties":{"NAME":"Vilanculos","NAMEASCII":"Vilanculos","POP_MAX":177,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[25.6100024,-32.1995475],"properties":{"NAME":"Cradock","NAMEASCII":"Cradock","POP_MAX":32898,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[25.3900158,-33.7596073],"properties":{"NAME":"Uitenhage","NAMEASCII":"Uitenhage","POP_MAX":228912,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[26.8800024,-33.5995137],"properties":{"NAME":"Port Alfred","NAMEASCII":"Port Alfred","POP_MAX":17959,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[26.5200244,-33.2995837],"properties":{"NAME":"Grahamstown","NAMEASCII":"Grahamstown","POP_MAX":91548,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.5283162,-31.6278511],"properties":{"NAME":"Port St. Johns","NAMEASCII":"Port St. Johns","POP_MAX":5939,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[26.7100386,-30.6895622],"properties":{"NAME":"Aliwal North","NAMEASCII":"Aliwal North","POP_MAX":44436,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[26.8800024,-31.8996175],"properties":{"NAME":"Queenstown","NAMEASCII":"Queenstown","POP_MAX":105309,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[32.4600236,-25.9695919],"properties":{"NAME":"Matola","NAMEASCII":"Matola","POP_MAX":543907,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[165.8567353,-10.7380183],"properties":{"NAME":"Lata","NAMEASCII":"Lata","POP_MAX":553,"ISO_A2":"SB","SOV_A3":"SLB"}},{"type":"Point","coordinates":[84.9035925,56.4926099],"properties":{"NAME":"Timiryazevskiy","NAMEASCII":"Timiryazevskiy","POP_MAX":7182,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.1626888,56.993122],"properties":{"NAME":"Asino","NAMEASCII":"Asino","POP_MAX":27070,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[77.5776831,60.7331521],"properties":{"NAME":"Strezhevoy","NAMEASCII":"Strezhevoy","POP_MAX":44784,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.0600061,44.290409],"properties":{"NAME":"Cherkessk","NAMEASCII":"Cherkessk","POP_MAX":116224,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.669976,43.0503813],"properties":{"NAME":"Vladikavkaz","NAMEASCII":"Vladikavkaz","POP_MAX":364630,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.4343925,45.1047262],"properties":{"NAME":"Blagodarnyy","NAMEASCII":"Blagodarnyy","POP_MAX":35995,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.8787064,44.4091097],"properties":{"NAME":"Zelenokumsk","NAMEASCII":"Zelenokumsk","POP_MAX":41306,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.0832934,2.7837177],"properties":{"NAME":"Buurhakaba","NAMEASCII":"Buurhakaba","POP_MAX":31267,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[42.550002,3.8004773],"properties":{"NAME":"Luuq","NAMEASCII":"Luuq","POP_MAX":33820,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[41.8600183,3.9404429],"properties":{"NAME":"Mandera","NAMEASCII":"Mandera","POP_MAX":52885,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[173.333337,66.4170687],"properties":{"NAME":"Mukhomornoye","NAMEASCII":"Mukhomornoye","POP_MAX":100,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[179.3066674,63.0654645],"properties":{"NAME":"Beringovskiy","NAMEASCII":"Beringovskiy","POP_MAX":1861,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[166.44857353746198,68.05262665090873],"properties":{"NAME":"Bilibino","NAMEASCII":"Bilibino","POP_MAX":5757,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-179.4999844,68.933711],"properties":{"NAME":"Mys Shmidta","NAMEASCII":"Mys Shmidta","POP_MAX":492,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-179.1837225,66.3221317],"properties":{"NAME":"Egvekinot","NAMEASCII":"Egvekinot","POP_MAX":2248,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[21.8819612,55.0717664],"properties":{"NAME":"Sovetsk","NAMEASCII":"Sovetsk","POP_MAX":43309,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[30.2188167,69.4125706],"properties":{"NAME":"Nikel","NAMEASCII":"Nikel","POP_MAX":15866,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.8287349,67.9291211],"properties":{"NAME":"Monchegorsk","NAMEASCII":"Monchegorsk","POP_MAX":49868,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.6687353,67.609089],"properties":{"NAME":"Kirovsk","NAMEASCII":"Kirovsk","POP_MAX":29605,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.8974035,58.3978166],"properties":{"NAME":"Borovichi","NAMEASCII":"Borovichi","POP_MAX":57887,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[31.3543546,57.9947663],"properties":{"NAME":"Staraya Russa","NAMEASCII":"Staraya Russa","POP_MAX":34303,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.338739,59.9290926],"properties":{"NAME":"Volkhov","NAMEASCII":"Volkhov","POP_MAX":45673,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.5143778,59.6448464],"properties":{"NAME":"Tikhvin","NAMEASCII":"Tikhvin","POP_MAX":62075,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[28.9176558,61.1013208],"properties":{"NAME":"Svetogorsk","NAMEASCII":"Svetogorsk","POP_MAX":30115,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[30.1333439,59.5706649],"properties":{"NAME":"Gatchina","NAMEASCII":"Gatchina","POP_MAX":90486,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[29.8389949,58.7363489],"properties":{"NAME":"Luga","NAMEASCII":"Luga","POP_MAX":40114,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.2448429,52.7652405],"properties":{"NAME":"Klintsy","NAMEASCII":"Klintsy","POP_MAX":66336,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.8604126,53.9509046],"properties":{"NAME":"Roslavl","NAMEASCII":"Roslavl","POP_MAX":56971,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.2161014,55.1464905],"properties":{"NAME":"Safonovo","NAMEASCII":"Safonovo","POP_MAX":46637,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.2917981,55.2121971],"properties":{"NAME":"Vyazma","NAMEASCII":"Vyazma","POP_MAX":55500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.3243025,63.7547764],"properties":{"NAME":"Segezha","NAMEASCII":"Segezha","POP_MAX":33354,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.9287479,57.2191288],"properties":{"NAME":"Vichuga","NAMEASCII":"Vichuga","POP_MAX":39071,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.5093562,58.3797557],"properties":{"NAME":"Sharya","NAMEASCII":"Sharya","POP_MAX":35532,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.5243798,58.4846847],"properties":{"NAME":"Buy","NAMEASCII":"Buy","POP_MAX":26486,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.460024,56.2503766],"properties":{"NAME":"Dzerzhinsk","NAMEASCII":"Dzerzhinsk","POP_MAX":256537,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.1643925,55.3247225],"properties":{"NAME":"Vyska","NAMEASCII":"Vyska","POP_MAX":61664,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.3443766,56.8691244],"properties":{"NAME":"Kimry","NAMEASCII":"Kimry","POP_MAX":52070,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.6899979,57.7647286],"properties":{"NAME":"Bezhetsk","NAMEASCII":"Bezhetsk","POP_MAX":34736,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.7730794,56.2235049],"properties":{"NAME":"Nelidovo","NAMEASCII":"Nelidovo","POP_MAX":25349,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.051761,57.8721639],"properties":{"NAME":"Bologoye","NAMEASCII":"Bologoye","POP_MAX":25142,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.9787329,57.0290629],"properties":{"NAME":"Torzhok","NAMEASCII":"Torzhok","POP_MAX":48546,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.1143884,59.4647799],"properties":{"NAME":"Sokol","NAMEASCII":"Sokol","POP_MAX":42174,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.9099751,59.1404328],"properties":{"NAME":"Cherepovets","NAMEASCII":"Cherepovets","POP_MAX":311850,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.8199971,58.0503443],"properties":{"NAME":"Rybinsk","NAMEASCII":"Rybinsk","POP_MAX":216724,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.4043025,57.1891565],"properties":{"NAME":"Rostov","NAMEASCII":"Rostov","POP_MAX":33803,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.2700236,54.5203788],"properties":{"NAME":"Kaluga","NAMEASCII":"Kaluga","POP_MAX":338978,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.3048205,54.0851858],"properties":{"NAME":"Kirov","NAMEASCII":"Kirov","POP_MAX":39319,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.620028,55.080448],"properties":{"NAME":"Obninsk","NAMEASCII":"Obninsk","POP_MAX":107392,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[35.2743737,51.6947632],"properties":{"NAME":"Lgov","NAMEASCII":"Lgov","POP_MAX":23500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[35.4043916,52.3547746],"properties":{"NAME":"Zheleznogorsk","NAMEASCII":"Zheleznogorsk","POP_MAX":97900,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.9343477,52.4947661],"properties":{"NAME":"Gryazi","NAMEASCII":"Gryazi","POP_MAX":47413,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.02939,55.3847964],"properties":{"NAME":"Yegoryevsk","NAMEASCII":"Yegoryevsk","POP_MAX":89795,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.5299467,55.3804297],"properties":{"NAME":"Podolsk","NAMEASCII":"Podolsk","POP_MAX":320635,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.9808846,56.1806909],"properties":{"NAME":"Solnechnogorsk","NAMEASCII":"Solnechnogorsk","POP_MAX":58891,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.4800179,55.8704256],"properties":{"NAME":"Noginsk","NAMEASCII":"Noginsk","POP_MAX":229731,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.4300044,54.9303797],"properties":{"NAME":"Serpukhov","NAMEASCII":"Serpukhov","POP_MAX":135584,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.6043607,52.4247962],"properties":{"NAME":"Livny","NAMEASCII":"Livny","POP_MAX":52915,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.5471643,53.2647449],"properties":{"NAME":"Mtsensk","NAMEASCII":"Mtsensk","POP_MAX":47609,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.5420015,46.4775106],"properties":{"NAME":"Salsk","NAMEASCII":"Salsk","POP_MAX":61000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.7861303,48.1865019],"properties":{"NAME":"Belaya Kalitva","NAMEASCII":"Belaya Kalitva","POP_MAX":48098,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.2700378,47.7203805],"properties":{"NAME":"Shakhty","NAMEASCII":"Shakhty","POP_MAX":221312,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.3974202,48.9378514],"properties":{"NAME":"Millerovo","NAMEASCII":"Millerovo","POP_MAX":38527,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.1215385,53.1491189],"properties":{"NAME":"Yefremov","NAMEASCII":"Yefremov","POP_MAX":45497,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.1143554,53.7746879],"properties":{"NAME":"Bogoroditsk","NAMEASCII":"Bogoroditsk","POP_MAX":39553,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.4000089,50.0803915],"properties":{"NAME":"Kamyshin","NAMEASCII":"Kamyshin","POP_MAX":128626,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.8773348,50.047732],"properties":{"NAME":"Pallasovka","NAMEASCII":"Pallasovka","POP_MAX":17139,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.6517952,49.7721932],"properties":{"NAME":"Frolovo","NAMEASCII":"Frolovo","POP_MAX":40882,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.7743623,48.794811],"properties":{"NAME":"Volzhskiy","NAMEASCII":"Volzhskiy","POP_MAX":323293,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.2174548,50.0678599],"properties":{"NAME":"Mikhaylovka","NAMEASCII":"Mikhaylovka","POP_MAX":58898,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.0030586,50.7734499],"properties":{"NAME":"Uryupinsk","NAMEASCII":"Uryupinsk","POP_MAX":41644,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.8399536,51.3004203],"properties":{"NAME":"Starsy Oskol","NAMEASCII":"Starsy Oskol","POP_MAX":226977,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.6930798,50.6534831],"properties":{"NAME":"Alekseyevka","NAMEASCII":"Alekseyevka","POP_MAX":39848,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.0986975,50.2090916],"properties":{"NAME":"Valuyki","NAMEASCII":"Valuyki","POP_MAX":35887,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.064375,44.1147608],"properties":{"NAME":"Tuapse","NAMEASCII":"Tuapse","POP_MAX":99145,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.0643843,44.5747585],"properties":{"NAME":"Gelendzhik","NAMEASCII":"Gelendzhik","POP_MAX":55508,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.7442724,44.6347807],"properties":{"NAME":"Labinsk","NAMEASCII":"Labinsk","POP_MAX":61945,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.130037,45.0003915],"properties":{"NAME":"Armavir","NAMEASCII":"Armavir","POP_MAX":199548,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.9443823,45.6247461],"properties":{"NAME":"Timashevsk","NAMEASCII":"Timashevsk","POP_MAX":44024,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.1377461,45.8531043],"properties":{"NAME":"Tikhoretsk","NAMEASCII":"Tikhoretsk","POP_MAX":64387,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.2633903,46.6987891],"properties":{"NAME":"Yeysk","NAMEASCII":"Yeysk","POP_MAX":87814,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.1800223,54.1703744],"properties":{"NAME":"Saransk","NAMEASCII":"Saransk","POP_MAX":303394,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.0443811,53.1947233],"properties":{"NAME":"Kamenka","NAMEASCII":"Kamenka","POP_MAX":16560,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.5999873,53.1204126],"properties":{"NAME":"Kuznetsk","NAMEASCII":"Kuznetsk","POP_MAX":95574,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.2217863,52.4621841],"properties":{"NAME":"Serdobsk","NAMEASCII":"Serdobsk","POP_MAX":36652,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.39307,54.9434538],"properties":{"NAME":"Kasimov","NAMEASCII":"Kasimov","POP_MAX":36663,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.9086975,54.349149],"properties":{"NAME":"Sasovo","NAMEASCII":"Sasovo","POP_MAX":31325,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.5043811,52.5947341],"properties":{"NAME":"Kotovsk","NAMEASCII":"Kotovsk","POP_MAX":33077,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.8043628,53.4547333],"properties":{"NAME":"Morshansk","NAMEASCII":"Morshansk","POP_MAX":49350,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.3300248,56.3603699],"properties":{"NAME":"Kovrov","NAMEASCII":"Kovrov","POP_MAX":154224,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.0400073,55.5704181],"properties":{"NAME":"Murom","NAMEASCII":"Murom","POP_MAX":131287,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.9269209,54.0673832],"properties":{"NAME":"Rayevskiy","NAMEASCII":"Rayevskiy","POP_MAX":20060,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[58.6387357,52.7091199],"properties":{"NAME":"Sibay","NAMEASCII":"Sibay","POP_MAX":61590,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[55.7843363,52.7747748],"properties":{"NAME":"Kumertau","NAMEASCII":"Kumertau","POP_MAX":65321,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[55.9299605,53.3703457],"properties":{"NAME":"Salavat","NAMEASCII":"Salavat","POP_MAX":159893,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.1187015,54.1291366],"properties":{"NAME":"Belebey","NAMEASCII":"Belebey","POP_MAX":62582,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.6943347,54.6047923],"properties":{"NAME":"Tuymazy","NAMEASCII":"Tuymazy","POP_MAX":68829,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.2630855,56.0835134],"properties":{"NAME":"Neftekamsk","NAMEASCII":"Neftekamsk","POP_MAX":126805,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.5702364,54.1056496],"properties":{"NAME":"Troitsk","NAMEASCII":"Troitsk","POP_MAX":82338,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.2935091,54.7488662],"properties":{"NAME":"Yemanzhelinsk","NAMEASCII":"Yemanzhelinsk","POP_MAX":42023,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.6819185,53.0473938],"properties":{"NAME":"Kartaly","NAMEASCII":"Kartaly","POP_MAX":28503,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.2726176,54.9979983],"properties":{"NAME":"Asha","NAMEASCII":"Asha","POP_MAX":38883,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.0949259,54.9954144],"properties":{"NAME":"Miass","NAMEASCII":"Miass","POP_MAX":167500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.5595487,55.6999968],"properties":{"NAME":"Kyshtym","NAMEASCII":"Kyshtym","POP_MAX":50911,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[64.4332657,54.9086756],"properties":{"NAME":"Kurtamysh","NAMEASCII":"Kurtamysh","POP_MAX":17936,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[63.6332629,56.0836684],"properties":{"NAME":"Shadrinsk","NAMEASCII":"Shadrinsk","POP_MAX":79479,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.0635583,69.7301481],"properties":{"NAME":"Varnek","NAMEASCII":"Varnek","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.3041634,68.8078788],"properties":{"NAME":"Bugrino","NAMEASCII":"Bugrino","POP_MAX":300,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[74.92531301724216,67.92211738288061],"properties":{"NAME":"Yamburg","NAMEASCII":"Yamburg","POP_MAX":48488,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[77.5199605,67.7503982],"properties":{"NAME":"Nakhodka","NAMEASCII":"Nakhodka","POP_MAX":159551,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.8943225,63.5947604],"properties":{"NAME":"Sosnogorsk","NAMEASCII":"Sosnogorsk","POP_MAX":29343,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.9580863,57.5784609],"properties":{"NAME":"Sovetsk","NAMEASCII":"Sovetsk","POP_MAX":17869,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[50.1880371,58.7184947],"properties":{"NAME":"Slobodskoy","NAMEASCII":"Slobodskoy","POP_MAX":48962,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.2451725,59.313833],"properties":{"NAME":"Kirs","NAMEASCII":"Kirs","POP_MAX":11385,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.1591829,58.6589376],"properties":{"NAME":"Omutninsk","NAMEASCII":"Omutninsk","POP_MAX":32800,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.3137329,58.3041272],"properties":{"NAME":"Kotelnich","NAMEASCII":"Kotelnich","POP_MAX":28431,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[47.8749483,56.6353919],"properties":{"NAME":"Yoshkar Ola","NAMEASCII":"Yoshkar Ola","POP_MAX":324406,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.9350203,56.4204696],"properties":{"NAME":"Kamensk Uralskiy","NAMEASCII":"Kamensk Uralskiy","POP_MAX":182500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.1880468,56.4434139],"properties":{"NAME":"Polevskoy","NAMEASCII":"Polevskoy","POP_MAX":65770,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[65.25828,58.0536515],"properties":{"NAME":"Tavda","NAMEASCII":"Tavda","POP_MAX":39480,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.869753,57.3651923],"properties":{"NAME":"Artemovskiy","NAMEASCII":"Artemovskiy","POP_MAX":44689,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.2147635,57.4902492],"properties":{"NAME":"Nevyansk","NAMEASCII":"Nevyansk","POP_MAX":28170,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.5497819,58.0501892],"properties":{"NAME":"Verkhnyaya Salda","NAMEASCII":"Verkhnyaya Salda","POP_MAX":48992,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[59.7982515,58.6436414],"properties":{"NAME":"Nizhnyaya Tura","NAMEASCII":"Nizhnyaya Tura","POP_MAX":56084,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.0098148,59.7601624],"properties":{"NAME":"Karpinsk","NAMEASCII":"Karpinsk","POP_MAX":30807,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.4132527,60.6936454],"properties":{"NAME":"Ivdel","NAMEASCII":"Ivdel","POP_MAX":19379,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.7586344,56.599115],"properties":{"NAME":"Krasnoufimsk","NAMEASCII":"Krasnoufimsk","POP_MAX":43121,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.7987211,56.4791482],"properties":{"NAME":"Sarapul","NAMEASCII":"Sarapul","POP_MAX":101344,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.1843493,56.4547569],"properties":{"NAME":"Mozhga","NAMEASCII":"Mozhga","POP_MAX":47270,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.9900272,57.0304065],"properties":{"NAME":"Votkinsk","NAMEASCII":"Votkinsk","POP_MAX":98633,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.6287666,58.123208],"properties":{"NAME":"Glazov","NAMEASCII":"Glazov","POP_MAX":100676,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[47.4686682,55.5091299],"properties":{"NAME":"Kanash","NAMEASCII":"Kanash","POP_MAX":49886,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.4243908,55.4848161],"properties":{"NAME":"Shumerlya","NAMEASCII":"Shumerlya","POP_MAX":35230,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.5999873,54.8503587],"properties":{"NAME":"Alatyr","NAMEASCII":"Alatyr","POP_MAX":46427,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.9998881,51.1602997],"properties":{"NAME":"Sol-lletsk","NAMEASCII":"Sol-lletsk","POP_MAX":27419,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[59.5400244,50.754588],"properties":{"NAME":"Dombarovskiy","NAMEASCII":"Dombarovskiy","POP_MAX":9556,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.5787487,51.4191211],"properties":{"NAME":"Mednogorsk","NAMEASCII":"Mednogorsk","POP_MAX":30676,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[58.4543025,51.474725],"properties":{"NAME":"Gay","NAMEASCII":"Gay","POP_MAX":41619,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.2617606,52.7821129],"properties":{"NAME":"Buzuluk","NAMEASCII":"Buzuluk","POP_MAX":87714,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[51.3473978,53.3778129],"properties":{"NAME":"Otradnyy","NAMEASCII":"Otradnyy","POP_MAX":50127,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.42006336630951,53.50809356149513],"properties":{"NAME":"Tolyatti","NAMEASCII":"Tolyatti","POP_MAX":702879,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.1200166,51.5004081],"properties":{"NAME":"Engels","NAMEASCII":"Engels","POP_MAX":196011,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.7943754,52.0147695],"properties":{"NAME":"Pugachev","NAMEASCII":"Pugachev","POP_MAX":26690,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[47.374307,52.0347166],"properties":{"NAME":"Volsk","NAMEASCII":"Volsk","POP_MAX":70500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.9961059,51.8764575],"properties":{"NAME":"Atkarsk","NAMEASCII":"Atkarsk","POP_MAX":27554,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.1630912,51.5535057],"properties":{"NAME":"Balashov","NAMEASCII":"Balashov","POP_MAX":98107,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[52.3199483,54.9004073],"properties":{"NAME":"Almetyevsk","NAMEASCII":"Almetyevsk","POP_MAX":140437,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[50.6406709,55.3647717],"properties":{"NAME":"Chistopol","NAMEASCII":"Chistopol","POP_MAX":62200,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[51.8200305,55.6404397],"properties":{"NAME":"Nizhnekamsk","NAMEASCII":"Nizhnekamsk","POP_MAX":234297,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.5600134,54.2504212],"properties":{"NAME":"Dimitrovgrad","NAMEASCII":"Dimitrovgrad","POP_MAX":132226,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[65.0859391,62.9669951],"properties":{"NAME":"Peregrebnoye","NAMEASCII":"Peregrebnoye","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.9700146,64.2504568],"properties":{"NAME":"Saranpaul","NAMEASCII":"Saranpaul","POP_MAX":2985,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[64.7547965,60.1401392],"properties":{"NAME":"Uray","NAMEASCII":"Uray","POP_MAX":39878,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[80.25137,61.1011916],"properties":{"NAME":"Laryak","NAMEASCII":"Laryak","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[74.4940987,62.0446224],"properties":{"NAME":"Kogalym","NAMEASCII":"Kogalym","POP_MAX":58192,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[76.0953446,61.0607548],"properties":{"NAME":"Megion","NAMEASCII":"Megion","POP_MAX":48691,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[74.8200219,54.1604783],"properties":{"NAME":"Cherlak","NAMEASCII":"Cherlak","POP_MAX":12122,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[74.5682544,55.048667],"properties":{"NAME":"Kalachinsk","NAMEASCII":"Kalachinsk","POP_MAX":24059,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[71.3500012,55.5669558],"properties":{"NAME":"Nazyvayevsk","NAMEASCII":"Nazyvayevsk","POP_MAX":12284,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[71.2682491,54.9287002],"properties":{"NAME":"Isikul","NAMEASCII":"Isikul","POP_MAX":21136,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[69.4498071,56.1502277],"properties":{"NAME":"Ishim","NAMEASCII":"Ishim","POP_MAX":67762,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[68.371475,56.3819448],"properties":{"NAME":"Golyshmanovo","NAMEASCII":"Golyshmanovo","POP_MAX":13424,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[66.2982682,56.6736324],"properties":{"NAME":"Yalutorovsk","NAMEASCII":"Yalutorovsk","POP_MAX":35892,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[85.1800097,52.534066],"properties":{"NAME":"Biysk","NAMEASCII":"Biysk","POP_MAX":215430,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[82.195024,51.1570958],"properties":{"NAME":"Zmeinogorsk","NAMEASCII":"Zmeinogorsk","POP_MAX":11514,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[82.7776757,52.4917688],"properties":{"NAME":"Aleysk","NAMEASCII":"Aleysk","POP_MAX":28019,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[83.958844,53.3992586],"properties":{"NAME":"Novoaltaysk","NAMEASCII":"Novoaltaysk","POP_MAX":91386,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[81.3387972,53.7936015],"properties":{"NAME":"Kamenna Obi","NAMEASCII":"Kamenna Obi","POP_MAX":44564,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[81.487677,50.988088],"properties":{"NAME":"Gornyak","NAMEASCII":"Gornyak","POP_MAX":15668,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[78.9472635,52.5826677],"properties":{"NAME":"Kulunda","NAMEASCII":"Kulunda","POP_MAX":15345,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[78.6695544,53.0049416],"properties":{"NAME":"Slavgorod","NAMEASCII":"Slavgorod","POP_MAX":34141,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[87.867701,52.7917505],"properties":{"NAME":"Tashtagol","NAMEASCII":"Tashtagol","POP_MAX":22779,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[85.9376896,54.2981443],"properties":{"NAME":"Guryevsk","NAMEASCII":"Guryevsk","POP_MAX":38757,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[84.8854024,55.7257575],"properties":{"NAME":"Yurga","NAMEASCII":"Yurga","POP_MAX":84220,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[85.6108361,55.2801774],"properties":{"NAME":"Topki","NAMEASCII":"Topki","POP_MAX":24672,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[87.760369,56.2107666],"properties":{"NAME":"Mariinsk","NAMEASCII":"Mariinsk","POP_MAX":43122,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[89.9530517,54.49144],"properties":{"NAME":"Shira","NAMEASCII":"Shira","POP_MAX":9358,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[83.3688024,54.2336263],"properties":{"NAME":"Cherepanovo","NAMEASCII":"Cherepanovo","POP_MAX":20125,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[80.2811356,55.1959448],"properties":{"NAME":"Kargat","NAMEASCII":"Kargat","POP_MAX":10881,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[82.7076542,54.9980499],"properties":{"NAME":"Ob","NAMEASCII":"Ob","POP_MAX":39949,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[78.0218937,53.7273006],"properties":{"NAME":"Karasuk","NAMEASCII":"Karasuk","POP_MAX":28589,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[78.3518994,55.3572787],"properties":{"NAME":"Barabinsk","NAMEASCII":"Barabinsk","POP_MAX":31508,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[75.9665153,55.2219381],"properties":{"NAME":"Tatarsk","NAMEASCII":"Tatarsk","POP_MAX":25150,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.1650362,5.0854118],"properties":{"NAME":"Ferfer","NAMEASCII":"Ferfer","POP_MAX":6000,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[45.5165909,2.7670003],"properties":{"NAME":"Jawhar","NAMEASCII":"Jawhar","POP_MAX":111308,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[54.6917932,16.9924369],"properties":{"NAME":"Mirbat","NAMEASCII":"Mirbat","POP_MAX":1120,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[51.1233288,10.5820272],"properties":{"NAME":"Hurdiyo","NAMEASCII":"Hurdiyo","POP_MAX":176,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[49.1659806,9.5004136],"properties":{"NAME":"Qardho","NAMEASCII":"Qardho","POP_MAX":1341,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[50.7500183,11.9669556],"properties":{"NAME":"Caluula","NAMEASCII":"Caluula","POP_MAX":513,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[56.5169531,23.2253898],"properties":{"NAME":"Ibri","NAMEASCII":"Ibri","POP_MAX":101640,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[47.6243693,42.8747331],"properties":{"NAME":"Kaspiysk","NAMEASCII":"Kaspiysk","POP_MAX":81752,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.2774043,42.0578062],"properties":{"NAME":"Derbent","NAMEASCII":"Derbent","POP_MAX":105965,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[47.113031,42.8334953],"properties":{"NAME":"Buynaksk","NAMEASCII":"Buynaksk","POP_MAX":75800,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[128.8961527,37.7558724],"properties":{"NAME":"Gangneung","NAMEASCII":"Gangneung","POP_MAX":180611,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[128.5911584,38.208713],"properties":{"NAME":"Sokcho","NAMEASCII":"Sokcho","POP_MAX":85430,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[127.1403942,35.8314162],"properties":{"NAME":"Jeonju","NAMEASCII":"Jeonju","POP_MAX":711424,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.7160215,35.9817657],"properties":{"NAME":"Gunsan","NAMEASCII":"Gunsan","POP_MAX":244080,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.3958402,34.8068018],"properties":{"NAME":"Mokpo","NAMEASCII":"Mokpo","POP_MAX":268402,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[123.3800036,10.5503754],"properties":{"NAME":"San Carlos","NAMEASCII":"San Carlos","POP_MAX":6353,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[123.3085868,10.9587484],"properties":{"NAME":"Cadiz","NAMEASCII":"Cadiz","POP_MAX":283157,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[123.5070243,7.852969],"properties":{"NAME":"Pagadian","NAMEASCII":"Pagadian","POP_MAX":159590,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[123.8444197,8.1462069],"properties":{"NAME":"Ozamis","NAMEASCII":"Ozamis","POP_MAX":97806,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.5833785,15.4837952],"properties":{"NAME":"Tarlac","NAMEASCII":"Tarlac","POP_MAX":183930,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.9617016,15.5020886],"properties":{"NAME":"Cabanatuan","NAMEASCII":"Cabanatuan","POP_MAX":220250,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.2827767,14.8295716],"properties":{"NAME":"Olongapo","NAMEASCII":"Olongapo","POP_MAX":304388,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.3408093,16.0478951],"properties":{"NAME":"Dagupan","NAMEASCII":"Dagupan","POP_MAX":163676,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[121.3226098,14.0695663],"properties":{"NAME":"San Pablo","NAMEASCII":"San Pablo","POP_MAX":240830,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[121.0299662,14.6504352],"properties":{"NAME":"Quezon City","NAMEASCII":"Quezon City","POP_MAX":2761720,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.9999939,14.5504413],"properties":{"NAME":"Pasay City","NAMEASCII":"Pasay City","POP_MAX":403064,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[124.2153531,8.1712441],"properties":{"NAME":"Iligan","NAMEASCII":"Iligan","POP_MAX":464599,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[124.6075256,11.0642975],"properties":{"NAME":"Ormac","NAMEASCII":"Ormac","POP_MAX":167584,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.0000081,11.250436],"properties":{"NAME":"Tacloban","NAMEASCII":"Tacloban","POP_MAX":280006,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.5435925,8.9495429],"properties":{"NAME":"Butuan","NAMEASCII":"Butuan","POP_MAX":190557,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.8016646,7.382145],"properties":{"NAME":"Tagum","NAMEASCII":"Tagum","POP_MAX":6726,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.4888155,9.7842981],"properties":{"NAME":"Surigao","NAMEASCII":"Surigao","POP_MAX":87832,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.1299743,8.830377],"properties":{"NAME":"Gingoog","NAMEASCII":"Gingoog","POP_MAX":218,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[102.1666215,68.4837384],"properties":{"NAME":"Yessey","NAMEASCII":"Yessey","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[107.7833329,55.900398],"properties":{"NAME":"Ulkan","NAMEASCII":"Ulkan","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[108.1119433,57.7857351],"properties":{"NAME":"Kirensk","NAMEASCII":"Kirensk","POP_MAX":13308,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[104.1226778,56.5762482],"properties":{"NAME":"Zheleznogorsk Ilimskiy","NAMEASCII":"Zheleznogorsk Ilimskiy","POP_MAX":28456,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[101.2426985,56.0930994],"properties":{"NAME":"Vikhorevka","NAMEASCII":"Vikhorevka","POP_MAX":166,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[97.8144323,55.9606527],"properties":{"NAME":"Biryusinsk","NAMEASCII":"Biryusinsk","POP_MAX":9583,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[99.0996185787628,58.69455775991616],"properties":{"NAME":"Kodinskiy","NAMEASCII":"Kodinskiy","POP_MAX":15670,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[93.4355265,54.3487356],"properties":{"NAME":"Artemovsk","NAMEASCII":"Artemovsk","POP_MAX":4948,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[94.3153177,55.8103776],"properties":{"NAME":"Uyar","NAMEASCII":"Uyar","POP_MAX":13167,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[89.8207084,55.3291667],"properties":{"NAME":"Uzhur","NAMEASCII":"Uzhur","POP_MAX":19212,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[91.4004052,53.0894326],"properties":{"NAME":"Sayanogorsk","NAMEASCII":"Sayanogorsk","POP_MAX":55642,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[90.1236356,61.5995075],"properties":{"NAME":"Podkamennaya Tunguska","NAMEASCII":"Podkamennaya","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.5833349,67.467108],"properties":{"NAME":"Igarka","NAMEASCII":"Igarka","POP_MAX":7470,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[89.2499939,71.450379],"properties":{"NAME":"Agapa","NAMEASCII":"Agapa","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[97.5000329,70.7669841],"properties":{"NAME":"Boyarka","NAMEASCII":"Boyarka","POP_MAX":35968,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[111.5100305,74.0165015],"properties":{"NAME":"Nordvik","NAMEASCII":"Nordvik","POP_MAX":0,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[104.2500085,77.7169733],"properties":{"NAME":"Chelyuskin","NAMEASCII":"Chelyuskin","POP_MAX":885,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[114.8899792,56.3315344],"properties":{"NAME":"Taksimo","NAMEASCII":"Taksimo","POP_MAX":10359,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[106.5003621,51.2807575],"properties":{"NAME":"Gusinoozyorsk","NAMEASCII":"Gusinoozyorsk","POP_MAX":24083,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[114.5228182,51.1030681],"properties":{"NAME":"Aginskoye","NAMEASCII":"Aginskoye","POP_MAX":11491,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[129.6166772,49.7503858],"properties":{"NAME":"Progress","NAMEASCII":"Progress","POP_MAX":146,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[128.4637243,50.9191],"properties":{"NAME":"Belogorsk","NAMEASCII":"Belogorsk","POP_MAX":70203,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[121.613083,56.5312122],"properties":{"NAME":"Nyukzha","NAMEASCII":"Nyukzha","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[116.548586,52.0089559],"properties":{"NAME":"Nerchinsk","NAMEASCII":"Nerchinsk","POP_MAX":15360,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.0497823,44.2702035],"properties":{"NAME":"Kavalerovo","NAMEASCII":"Kavalerovo","POP_MAX":18657,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[132.8197892,44.6001575],"properties":{"NAME":"Spassk Dalniy","NAMEASCII":"Spassk Dalniy","POP_MAX":45900,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[143.1833427,73.2203744],"properties":{"NAME":"Shalaurova","NAMEASCII":"Shalaurova","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[153.9000012,70.8503898],"properties":{"NAME":"Logashkino","NAMEASCII":"Logashkino","POP_MAX":0,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.6000329,70.0170557],"properties":{"NAME":"Ust Kuyga","NAMEASCII":"Ust Kuyga","POP_MAX":1517,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[129.1272497,61.4934416],"properties":{"NAME":"Pokrovsk","NAMEASCII":"Pokrovsk","POP_MAX":9763,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[120.3167281,63.4456997],"properties":{"NAME":"Verkhnevilyuysk","NAMEASCII":"Verkhnevilyuysk","POP_MAX":6341,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[112.5578218,59.451499],"properties":{"NAME":"Vitim","NAMEASCII":"Vitim","POP_MAX":3843,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[120.3925891,60.503192],"properties":{"NAME":"Olyokminsk","NAMEASCII":"Olyokminsk","POP_MAX":10000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[125.2500187,64.9004429],"properties":{"NAME":"Tunguskhaya","NAMEASCII":"Tunguskhaya","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[123.9255,68.4106163],"properties":{"NAME":"Natara","NAMEASCII":"Natara","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[114.0000077,70.1336894],"properties":{"NAME":"Zhilinda","NAMEASCII":"Zhilinda","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[127.0336824,72.5996887],"properties":{"NAME":"Trofimovsk","NAMEASCII":"Trofimovsk","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[139.5000016,57.3669751],"properties":{"NAME":"Tukchi","NAMEASCII":"Tukchi","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[136.8974214,50.2228375],"properties":{"NAME":"Amursk","NAMEASCII":"Amursk","POP_MAX":46993,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[134.2649206,46.8202545],"properties":{"NAME":"Bikin","NAMEASCII":"Bikin","POP_MAX":19659,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[134.7474751,47.5328467],"properties":{"NAME":"Vyazemskiy","NAMEASCII":"Vyazemskiy","POP_MAX":15247,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.0241178,51.1177958],"properties":{"NAME":"Chegdomyn","NAMEASCII":"Chegdomyn","POP_MAX":14855,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[152.4165775,59.0337209],"properties":{"NAME":"Siglan","NAMEASCII":"Siglan","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[151.166628,60.2004197],"properties":{"NAME":"Karamken","NAMEASCII":"Karamken","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[152.2501794,61.8669847],"properties":{"NAME":"Strelka","NAMEASCII":"Strelka","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[156.0850358,50.6904834],"properties":{"NAME":"Severo Kurilsk","NAMEASCII":"Severo Kurilsk","POP_MAX":2422,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.0899727,48.4615497],"properties":{"NAME":"Krasnogorsk","NAMEASCII":"Krasnogorsk","POP_MAX":3304,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[143.0850024,49.2415538],"properties":{"NAME":"Poronaysk","NAMEASCII":"Poronaysk","POP_MAX":16677,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.8000069,48.6337356],"properties":{"NAME":"Makarov","NAMEASCII":"Makarov","POP_MAX":6663,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.8000069,47.3504289],"properties":{"NAME":"Dolinsk","NAMEASCII":"Dolinsk","POP_MAX":11989,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[141.8699344,46.6802889],"properties":{"NAME":"Nevelsk","NAMEASCII":"Nevelsk","POP_MAX":17000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.8519598,-1.2008699],"properties":{"NAME":"Buur Gaabo","NAMEASCII":"Buur Gaabo","POP_MAX":3096,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[-3.6665827,16.416994],"properties":{"NAME":"Goundam","NAMEASCII":"Goundam","POP_MAX":8456,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[0.8563712,19.4548706],"properties":{"NAME":"Aguelhok","NAMEASCII":"Aguelhok","POP_MAX":9000,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-0.3499893,16.9003754],"properties":{"NAME":"Bourem","NAMEASCII":"Bourem","POP_MAX":30000,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-115.94008409781253,30.558464923969392],"properties":{"NAME":"San Quintín","NAMEASCII":"San Quintin","POP_MAX":5433,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-114.1665821,28.9336977],"properties":{"NAME":"Punta Prieta","NAMEASCII":"Punta Prieta","POP_MAX":527,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-114.8496153,31.0241128],"properties":{"NAME":"San Felipe","NAMEASCII":"San Felipe","POP_MAX":20750,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-112.2833637,27.3170781],"properties":{"NAME":"Santa Rosalía","NAMEASCII":"Santa Rosalia","POP_MAX":11899,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-114.1699669,27.990422],"properties":{"NAME":"Guerrero Negro","NAMEASCII":"Guerrero Negro","POP_MAX":13054,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.5316521,28.7076392],"properties":{"NAME":"Piedras Negras","NAMEASCII":"Piedras Negras","POP_MAX":139619,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.9826911,25.7592145],"properties":{"NAME":"San Pedro de las Colonias","NAMEASCII":"San Pedro de las Colonias","POP_MAX":53688,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.70184027972485,27.28889159011016],"properties":{"NAME":"Sierra Mojada","NAMEASCII":"Sierra Mojada","POP_MAX":10,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.1799494,25.420398],"properties":{"NAME":"Parras","NAMEASCII":"Parras","POP_MAX":32253,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.8695856,28.4257442],"properties":{"NAME":"Cuauhtémoc","NAMEASCII":"Cuauhtemoc","POP_MAX":90835,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-107.9118993,30.4184908],"properties":{"NAME":"Nuevo Casas Grandes","NAMEASCII":"Nuevo Casas Grandes","POP_MAX":54826,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.41002,29.5404049],"properties":{"NAME":"Ojinaga","NAMEASCII":"Ojinaga","POP_MAX":22128,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.5099952,30.6104429],"properties":{"NAME":"Villa Ahumada","NAMEASCII":"Villa Ahumada","POP_MAX":9326,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.8200373,26.8004429],"properties":{"NAME":"Santa Barbara","NAMEASCII":"Santa Barbara","POP_MAX":10800,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.1700511,27.6904144],"properties":{"NAME":"Ciudad Camargo","NAMEASCII":"Ciudad Camargo","POP_MAX":37743,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.6999858,24.8704057],"properties":{"NAME":"Cuencame","NAMEASCII":"Cuencame","POP_MAX":8876,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.3399891,24.8304081],"properties":{"NAME":"Papasquiaro","NAMEASCII":"Papasquiaro","POP_MAX":22750,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.7999868,22.8504256],"properties":{"NAME":"Escuinapa","NAMEASCII":"Escuinapa","POP_MAX":28248,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-108.0900021,25.4703691],"properties":{"NAME":"Guamúchil","NAMEASCII":"Guamuchil","POP_MAX":62695,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-108.4699789,25.5704922],"properties":{"NAME":"Guasave","NAMEASCII":"Guasave","POP_MAX":96860,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-108.6199956,26.4204144],"properties":{"NAME":"El Fuerte","NAMEASCII":"El Fuerte","POP_MAX":11171,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-107.3699943,24.3304645],"properties":{"NAME":"Eldorado","NAMEASCII":"Eldorado","POP_MAX":17365,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.900023,23.920412],"properties":{"NAME":"La Cruz","NAMEASCII":"La Cruz","POP_MAX":11900,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-109.5630388,31.3223375],"properties":{"NAME":"Agua Prieta","NAMEASCII":"Agua Prieta","POP_MAX":86083,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-109.9249805,27.4666038],"properties":{"NAME":"Ciudad Obregon","NAMEASCII":"Ciudad Obregon","POP_MAX":288002,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-109.4546216,27.0818986],"properties":{"NAME":"Navajoa","NAMEASCII":"Navajoa","POP_MAX":116093,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-112.1642495,30.7161471],"properties":{"NAME":"Caborca","NAMEASCII":"Caborca","POP_MAX":57357,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.1333399,29.0171035],"properties":{"NAME":"Mazatlán","NAMEASCII":"Mazatlan","POP_MAX":500000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.3000481,30.9904197],"properties":{"NAME":"Cananea","NAMEASCII":"Cananea","POP_MAX":33433,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-109.6300373,26.8304153],"properties":{"NAME":"Huatabampo","NAMEASCII":"Huatabampo","POP_MAX":30426,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.5800025,22.7704305],"properties":{"NAME":"Zacatecas","NAMEASCII":"Zacatecas","POP_MAX":234481,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.3899789,24.2904153],"properties":{"NAME":"Juan Aldama","NAMEASCII":"Juan Aldama","POP_MAX":14162,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.5699679,22.7704305],"properties":{"NAME":"Valparaíso","NAMEASCII":"Valparaiso","POP_MAX":10545,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.8599854,23.1704319],"properties":{"NAME":"Fresnillo","NAMEASCII":"Fresnillo","POP_MAX":105488,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.5700312,24.8603805],"properties":{"NAME":"Linares","NAMEASCII":"Linares","POP_MAX":57731,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.6500169,23.6603762],"properties":{"NAME":"Matehuala","NAMEASCII":"Matehuala","POP_MAX":67717,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.7500037,21.9803754],"properties":{"NAME":"Tamuín","NAMEASCII":"Tamuin","POP_MAX":14748,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.7799502,21.2704187],"properties":{"NAME":"Tamazunchale","NAMEASCII":"Tamazunchale","POP_MAX":72685,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.7199962,23.0003906],"properties":{"NAME":"Tula","NAMEASCII":"Tula","POP_MAX":9054,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.0699677,22.9204214],"properties":{"NAME":"Aldama","NAMEASCII":"Aldama","POP_MAX":12292,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.1600139,24.8504328],"properties":{"NAME":"San Fernando","NAMEASCII":"San Fernando","POP_MAX":29171,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.8799748,18.9203813],"properties":{"NAME":"Tecoman","NAMEASCII":"Tecoman","POP_MAX":91321,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.2449819,20.6770958],"properties":{"NAME":"Puerto Vallarta","NAMEASCII":"Puerto Vallarta","POP_MAX":187134,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.5600037,20.2803758],"properties":{"NAME":"La Barca","NAMEASCII":"La Barca","POP_MAX":35345,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.4600004,19.7104106],"properties":{"NAME":"Ciudad Guzman","NAMEASCII":"Ciudad Guzman","POP_MAX":92161,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.9299905,21.3704126],"properties":{"NAME":"Lagos de Moreno","NAMEASCII":"Lagos de Moreno","POP_MAX":94127,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.189493,19.7333808],"properties":{"NAME":"Morelia","NAMEASCII":"Morelia","POP_MAX":644306,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.199974,17.9587087],"properties":{"NAME":"Lázaro Cárdenas","NAMEASCII":"Lazaro Cardenas","POP_MAX":160087,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.2800208,19.9803683],"properties":{"NAME":"Zamora","NAMEASCII":"Zamora","POP_MAX":214947,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.1499677,18.7803898],"properties":{"NAME":"Coalcoman","NAMEASCII":"Coalcoman","POP_MAX":10715,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.0700078,19.4203766],"properties":{"NAME":"Uruapan","NAMEASCII":"Uruapan","POP_MAX":264531,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.2699675,21.9304043],"properties":{"NAME":"Tuxpan","NAMEASCII":"Tuxpan","POP_MAX":26115,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.8799913,21.5053915],"properties":{"NAME":"Tepic","NAMEASCII":"Tepic","POP_MAX":318781,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.8999901,21.2304212],"properties":{"NAME":"Compostela","NAMEASCII":"Compostela","POP_MAX":16162,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.4599817,22.4004273],"properties":{"NAME":"Tecuala","NAMEASCII":"Tecuala","POP_MAX":14921,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-91.8244802,18.6536593],"properties":{"NAME":"Ciudad del Carmen","NAMEASCII":"Ciudad del Carmen","POP_MAX":156195,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-90.7200029,19.3504326],"properties":{"NAME":"Champotón","NAMEASCII":"Champoton","POP_MAX":26636,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-95.1999878,16.167061],"properties":{"NAME":"Salina Cruz","NAMEASCII":"Salina Cruz","POP_MAX":81063,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.0658883,15.8591803],"properties":{"NAME":"Puerto Escondido","NAMEASCII":"Puerto Escondido","POP_MAX":19488,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.4699878,15.7303951],"properties":{"NAME":"Pochutla","NAMEASCII":"Pochutla","POP_MAX":24481,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.3999921,16.917041],"properties":{"NAME":"Mitla","NAMEASCII":"Mitla","POP_MAX":7547,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.6800173,17.2704045],"properties":{"NAME":"Tlaxiaco","NAMEASCII":"Tlaxiaco","POP_MAX":21391,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.7899848,17.8103715],"properties":{"NAME":"Huajuapan de León","NAMEASCII":"Huajuapan de Leon","POP_MAX":47844,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.379984,18.4503583],"properties":{"NAME":"Tehuacan","NAMEASCII":"Tehuacan","POP_MAX":241429,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.3599852,19.8204297],"properties":{"NAME":"Teziutlán","NAMEASCII":"Teziutlan","POP_MAX":177796,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-92.6499884,18.5803762],"properties":{"NAME":"Frontera","NAMEASCII":"Frontera","POP_MAX":22621,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-91.4299854,17.4803658],"properties":{"NAME":"Tenosique","NAMEASCII":"Tenosique","POP_MAX":32415,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.2000092,20.5704098],"properties":{"NAME":"Salamanca","NAMEASCII":"Salamanca","POP_MAX":197524,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.2799785,21.0204081],"properties":{"NAME":"Guanajuato","NAMEASCII":"Guanajuato","POP_MAX":112200,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.6199506,18.5703768],"properties":{"NAME":"Taxco","NAMEASCII":"Taxco","POP_MAX":53217,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.09466591520858,16.964354518988458],"properties":{"NAME":"Ayutla","NAMEASCII":"Ayutla","POP_MAX":9897,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.6500169,18.3203921],"properties":{"NAME":"Ciudad Altamirano","NAMEASCII":"Ciudad Altamirano","POP_MAX":24533,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.2700308,17.5204151],"properties":{"NAME":"Petatlán","NAMEASCII":"Petatlan","POP_MAX":31910,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.73558896806964,20.106423601457994],"properties":{"NAME":"Pachuca","NAMEASCII":"Pachuca","POP_MAX":319581,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.65317928548968,19.28930795148478],"properties":{"NAME":"Toluca","NAMEASCII":"Toluca","POP_MAX":1531000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.1099817,19.8104045],"properties":{"NAME":"Zumpango","NAMEASCII":"Zumpango","POP_MAX":250000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-94.5300029,17.9804645],"properties":{"NAME":"Minatitlán","NAMEASCII":"Minatitlan","POP_MAX":201902,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-94.4200096,18.1204043],"properties":{"NAME":"Coatzacoalcos","NAMEASCII":"Coatzacoalcos","POP_MAX":287285,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.44394909450384,20.525714761967706],"properties":{"NAME":"Poza Rica de Hidalgo","NAMEASCII":"Poza Rica de Hidalgo","POP_MAX":254481,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.9199862,18.9203813],"properties":{"NAME":"Córdoba","NAMEASCII":"Cordoba","POP_MAX":220563,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-95.2999817,18.4703829],"properties":{"NAME":"Santiago Tuxtla","NAMEASCII":"Santiago Tuxtla","POP_MAX":15681,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.4099821,20.9604118],"properties":{"NAME":"Tuxpam","NAMEASCII":"Tuxpam","POP_MAX":109049,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.1899862,22.060448],"properties":{"NAME":"Pánuco","NAMEASCII":"Panuco","POP_MAX":35316,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-93.2200312,15.6903976],"properties":{"NAME":"Pijijiapan","NAMEASCII":"Pijijiapan","POP_MAX":23675,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-86.7114549,21.2083906],"properties":{"NAME":"Isla Mujeres","NAMEASCII":"Isla Mujeres","POP_MAX":12491,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-88.049985,19.5803927],"properties":{"NAME":"Felipe Carrillo Puerto","NAMEASCII":"Felipe Carrillo Puerto","POP_MAX":24807,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-88.1499789,21.1304273],"properties":{"NAME":"Tizimín","NAMEASCII":"Tizimin","POP_MAX":41993,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-88.2000017,20.6704037],"properties":{"NAME":"Valladolid","NAMEASCII":"Valladolid","POP_MAX":48479,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-89.020055,20.9304136],"properties":{"NAME":"Izamal","NAMEASCII":"Izamal","POP_MAX":14954,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-89.5300238,20.4003943],"properties":{"NAME":"Ticul","NAMEASCII":"Ticul","POP_MAX":30519,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-12.4833055,22.7303813],"properties":{"NAME":"Zouirat","NAMEASCII":"Zouirat","POP_MAX":56345,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-5.7799679,25.3804004],"properties":{"NAME":"Chegga","NAMEASCII":"Chegga","POP_MAX":10,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-13.4999876,17.0003951],"properties":{"NAME":"Magta Lajar","NAMEASCII":"Magta Lajar","POP_MAX":10,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-14.2699665,16.5903943],"properties":{"NAME":"Bogue","NAMEASCII":"Bogue","POP_MAX":10415,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-14.7000436,17.5503874],"properties":{"NAME":"Boutilimit","NAMEASCII":"Boutilimit","POP_MAX":14142,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-12.1833238,15.1670187],"properties":{"NAME":"Sélibaby","NAMEASCII":"Selibaby","POP_MAX":460,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-8.0800084,12.750422],"properties":{"NAME":"Kati","NAMEASCII":"Kati","POP_MAX":66895,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-7.4499952,13.550399],"properties":{"NAME":"Banamba","NAMEASCII":"Banamba","POP_MAX":30591,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-8.4400122,11.9404197],"properties":{"NAME":"Kangaba","NAMEASCII":"Kangaba","POP_MAX":17232,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-9.5899679,15.2304256],"properties":{"NAME":"Nioro du Sahel","NAMEASCII":"Nioro du Sahel","POP_MAX":14421,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-10.820022,13.8003837],"properties":{"NAME":"Bafoulabé","NAMEASCII":"Bafoulabe","POP_MAX":26823,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-11.4066012,12.6169934],"properties":{"NAME":"Satadougou","NAMEASCII":"Satadougou","POP_MAX":706,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-10.5666266,15.1337132],"properties":{"NAME":"Yélimané","NAMEASCII":"Yelimane","POP_MAX":988,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-9.4833077,13.0504037],"properties":{"NAME":"Kita","NAMEASCII":"Kita","POP_MAX":46435,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-5.4699868,12.3904181],"properties":{"NAME":"Koutiala","NAMEASCII":"Koutiala","POP_MAX":104927,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-5.6799998,11.3204059],"properties":{"NAME":"Sikasso","NAMEASCII":"Sikasso","POP_MAX":225753,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-7.4899669,11.4204256],"properties":{"NAME":"Bougouni","NAMEASCII":"Bougouni","POP_MAX":35450,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-8.1666181,16.2504151],"properties":{"NAME":"Timbedra","NAMEASCII":"Timbedra","POP_MAX":245,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-7.2500074,16.6170593],"properties":{"NAME":"Nema","NAMEASCII":"Nema","POP_MAX":200000,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-6.0699502,13.6703658],"properties":{"NAME":"Markala","NAMEASCII":"Markala","POP_MAX":53738,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-6.1333055,14.7337376],"properties":{"NAME":"Sokolo","NAMEASCII":"Sokolo","POP_MAX":4374,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-4.9000474,13.3004142],"properties":{"NAME":"San","NAMEASCII":"San","POP_MAX":41386,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[12.1899947,10.6204228],"properties":{"NAME":"Biu","NAMEASCII":"Biu","POP_MAX":95005,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[13.6900065,11.5203937],"properties":{"NAME":"Bama","NAMEASCII":"Bama","POP_MAX":118121,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.34998,5.100398],"properties":{"NAME":"Aba","NAMEASCII":"Aba","POP_MAX":897560,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.559993,4.5704045],"properties":{"NAME":"Opobo","NAMEASCII":"Opobo","POP_MAX":34911,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.0333068,5.7837154],"properties":{"NAME":"Orlu","NAMEASCII":"Orlu","POP_MAX":9351,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[8.1299841,7.1903996],"properties":{"NAME":"Oturkpo","NAMEASCII":"Oturkpo","POP_MAX":68220,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[8.3300236,4.9604065],"properties":{"NAME":"Calabar","NAMEASCII":"Calabar","POP_MAX":461796,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[9.7800126,7.8704098],"properties":{"NAME":"Wukari","NAMEASCII":"Wukari","POP_MAX":92933,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[11.3600195,8.9003727],"properties":{"NAME":"Jalingo","NAMEASCII":"Jalingo","POP_MAX":117757,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.4699397,10.4003587],"properties":{"NAME":"Kontagora","NAMEASCII":"Kontagora","POP_MAX":98754,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[6.0100101,9.0804134],"properties":{"NAME":"Bida","NAMEASCII":"Bida","POP_MAX":173849,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[3.3500175,7.1604273],"properties":{"NAME":"Abeokuta","NAMEASCII":"Abeokuta","POP_MAX":593100,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[3.9200085,6.820448],"properties":{"NAME":"Ijebu Ode","NAMEASCII":"Ijebu Ode","POP_MAX":209175,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.1999821,7.2503959],"properties":{"NAME":"Akure","NAMEASCII":"Akure","POP_MAX":420594,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.7599996,7.5304305],"properties":{"NAME":"Ikare","NAMEASCII":"Ikare","POP_MAX":1099931,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.5899841,7.200399],"properties":{"NAME":"Owo","NAMEASCII":"Owo","POP_MAX":276574,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[4.840004,7.0904057],"properties":{"NAME":"Ondo","NAMEASCII":"Ondo","POP_MAX":257005,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.2199808,7.6303727],"properties":{"NAME":"Ado Ekiti","NAMEASCII":"Ado Ekiti","POP_MAX":446749,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[4.5600211,7.4804336],"properties":{"NAME":"Ife","NAMEASCII":"Ife","POP_MAX":482365,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[4.5600211,7.7703642],"properties":{"NAME":"Oshogbo","NAMEASCII":"Oshogbo","POP_MAX":408245,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[3.9299821,7.8504368],"properties":{"NAME":"Oyo","NAMEASCII":"Oyo","POP_MAX":736072,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.0699971,6.2104336],"properties":{"NAME":"Awka","NAMEASCII":"Awka","POP_MAX":500000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[6.779989,6.140412],"properties":{"NAME":"Onitsha","NAMEASCII":"Onitsha","POP_MAX":73374,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[10.1900134,11.6804098],"properties":{"NAME":"Azare","NAMEASCII":"Azare","POP_MAX":105687,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[9.8400089,10.3103642],"properties":{"NAME":"Bauchi","NAMEASCII":"Bauchi","POP_MAX":316149,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[11.1699536,10.2904429],"properties":{"NAME":"Gombe","NAMEASCII":"Gombe","POP_MAX":270366,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[11.2130517,10.0457033],"properties":{"NAME":"Kumo","NAMEASCII":"Kumo","POP_MAX":35712,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.6800044,5.8904273],"properties":{"NAME":"Sapele","NAMEASCII":"Sapele","POP_MAX":309162,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.383363,6.8670343],"properties":{"NAME":"Nsukka","NAMEASCII":"Nsukka","POP_MAX":111017,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[6.7399397,7.8003882],"properties":{"NAME":"Lokoja","NAMEASCII":"Lokoja","POP_MAX":60579,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[6.7399397,7.1104045],"properties":{"NAME":"Idah","NAMEASCII":"Idah","POP_MAX":75087,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[8.5200378,8.4904236],"properties":{"NAME":"Lafia","NAMEASCII":"Lafia","POP_MAX":127236,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.8736173,8.8490322],"properties":{"NAME":"Keffi","NAMEASCII":"Keffi","POP_MAX":85911,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.3200077,11.5203937],"properties":{"NAME":"Funtua","NAMEASCII":"Funtua","POP_MAX":180475,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.5999906,12.9904073],"properties":{"NAME":"Katsina","NAMEASCII":"Katsina","POP_MAX":432149,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[6.6599963,12.1704057],"properties":{"NAME":"Gusau","NAMEASCII":"Gusau","POP_MAX":226857,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[10.4499975,12.8803882],"properties":{"NAME":"Nguru","NAMEASCII":"Nguru","POP_MAX":111014,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[11.0399873,12.8704922],"properties":{"NAME":"Gashua","NAMEASCII":"Gashua","POP_MAX":125817,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[11.0799849,11.7103821],"properties":{"NAME":"Potiskum","NAMEASCII":"Potiskum","POP_MAX":86002,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[4.1999397,12.4504144],"properties":{"NAME":"Birnin Kebbi","NAMEASCII":"Birnin Kebbi","POP_MAX":108164,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[4.5169746,11.4231903],"properties":{"NAME":"Koko","NAMEASCII":"Koko","POP_MAX":25792,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[13.2700321,10.2703408],"properties":{"NAME":"Mubi","NAMEASCII":"Mubi","POP_MAX":225705,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[12.0400297,9.4604419],"properties":{"NAME":"Numan","NAMEASCII":"Numan","POP_MAX":77617,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[10.4566638,30.1679118],"properties":{"NAME":"Dirj","NAMEASCII":"Dirj","POP_MAX":931,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[10.9700175,31.8804429],"properties":{"NAME":"Nalut","NAMEASCII":"Nalut","POP_MAX":66609,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[21.3395137,41.039057],"properties":{"NAME":"Bitola","NAMEASCII":"Bitola","POP_MAX":86528,"ISO_A2":"MK","SOV_A3":"MKD"}},{"type":"Point","coordinates":[17.5833606,28.5504136],"properties":{"NAME":"Zillah","NAMEASCII":"Zillah","POP_MAX":10,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[14.2599975,32.6604212],"properties":{"NAME":"Al Khums","NAMEASCII":"Al Khums","POP_MAX":201943,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[14.4708374,24.3703587],"properties":{"NAME":"Tajarhi","NAMEASCII":"Tajarhi","POP_MAX":1500,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[15.0333353,27.5170142],"properties":{"NAME":"Umm al Abid","NAMEASCII":"Umm al Abid","POP_MAX":300,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[12.7199882,32.7604151],"properties":{"NAME":"Az Zawiyah","NAMEASCII":"Az Zawiyah","POP_MAX":200000,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[13.0199698,32.1703736],"properties":{"NAME":"Gharyan","NAMEASCII":"Gharyan","POP_MAX":146810,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[12.9833313,31.433726],"properties":{"NAME":"Mizdah","NAMEASCII":"Mizdah","POP_MAX":26107,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[13.9899882,31.770398],"properties":{"NAME":"Bani Walid","NAMEASCII":"Bani Walid","POP_MAX":65392,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[20.8299841,32.5004568],"properties":{"NAME":"Al Marj","NAMEASCII":"Al Marj","POP_MAX":169540,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[21.6200134,32.7604151],"properties":{"NAME":"Al Bayda","NAMEASCII":"Al Bayda","POP_MAX":1794,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[21.8621691,32.828137],"properties":{"NAME":"Shahhat","NAMEASCII":"Shahhat","POP_MAX":45000,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[19.2000061,30.2570278],"properties":{"NAME":"El Agheila","NAMEASCII":"El Agheila","POP_MAX":100,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[19.2166459,29.2337053],"properties":{"NAME":"Maradah","NAMEASCII":"Maradah","POP_MAX":2500,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[20.0154602,31.6606372],"properties":{"NAME":"Qaminis","NAMEASCII":"Qaminis","POP_MAX":5348,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[18.2666263,30.6704134],"properties":{"NAME":"As Sidr","NAMEASCII":"As Sidr","POP_MAX":50,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[24.5165808,29.7503921],"properties":{"NAME":"Al Jaghbub","NAMEASCII":"Al Jaghbub","POP_MAX":1744,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[35.9041544,33.850116],"properties":{"NAME":"Zahlé","NAMEASCII":"Zahle","POP_MAX":78145,"ISO_A2":"LB","SOV_A3":"LBN"}},{"type":"Point","coordinates":[22.3499947,53.8337024],"properties":{"NAME":"Ełk","NAMEASCII":"Elk","POP_MAX":55769,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[18.5300211,54.5203788],"properties":{"NAME":"Gdynia","NAMEASCII":"Gdynia","POP_MAX":314664,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[17.0300093,51.1104319],"properties":{"NAME":"Wrocław","NAMEASCII":"Wroclaw","POP_MAX":634893,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[14.5300069,53.4203943],"properties":{"NAME":"Szczecin","NAMEASCII":"Szczecin","POP_MAX":407811,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[15.5000252,51.9504065],"properties":{"NAME":"Zielona Góra","NAMEASCII":"Zielona Gora","POP_MAX":118433,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[16.8999397,52.4057534],"properties":{"NAME":"Poznań","NAMEASCII":"Poznan","POP_MAX":623997,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[18.7500077,53.4803906],"properties":{"NAME":"Grudziądz","NAMEASCII":"Grudziadz","POP_MAX":102443,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[18.0100012,53.1204126],"properties":{"NAME":"Bydgoszcz","NAMEASCII":"Bydgoszcz","POP_MAX":366452,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[19.020017,50.2603805],"properties":{"NAME":"Katowice","NAMEASCII":"Katowice","POP_MAX":2746000,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[18.6700126,50.3303762],"properties":{"NAME":"Gliwice","NAMEASCII":"Gliwice","POP_MAX":507670,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[20.6600203,50.8903937],"properties":{"NAME":"Kielce","NAMEASCII":"Kielce","POP_MAX":215733,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[23.182319226878395,53.13169570980265],"properties":{"NAME":"Białystok","NAMEASCII":"Bialystok","POP_MAX":291855,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[22.5727201,51.2503976],"properties":{"NAME":"Lublin","NAMEASCII":"Lublin","POP_MAX":360044,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[21.995991522124438,50.02865490248002],"properties":{"NAME":"Rzeszów","NAMEASCII":"Rzeszow","POP_MAX":245686,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[54.6330371,59.0161768],"properties":{"NAME":"Kudymkar","NAMEASCII":"Kudymkar","POP_MAX":32423,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[56.9543424,57.4347746],"properties":{"NAME":"Kungur","NAMEASCII":"Kungur","POP_MAX":66389,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[55.7442871,58.0747355],"properties":{"NAME":"Krasnokamsk","NAMEASCII":"Krasnokamsk","POP_MAX":52689,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.8130497,58.2934302],"properties":{"NAME":"Chusovoy","NAMEASCII":"Chusovoy","POP_MAX":72113,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.5887223,58.8691315],"properties":{"NAME":"Gubakha","NAMEASCII":"Gubakha","POP_MAX":31424,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[89.9500028,48.9336914],"properties":{"NAME":"Olgiy","NAMEASCII":"Olgiy","POP_MAX":34934,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[101.7500577,19.2504645],"properties":{"NAME":"Xaignabouri","NAMEASCII":"Xaignabouri","POP_MAX":16200,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[105.8183365,15.1220602],"properties":{"NAME":"Pakxe","NAMEASCII":"Pakxe","POP_MAX":102775,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[103.1959972,19.4518958],"properties":{"NAME":"Phonsavan","NAMEASCII":"Phonsavan","POP_MAX":37507,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[102.1416101,19.8845343],"properties":{"NAME":"Louangphrabang","NAMEASCII":"Louangphrabang","POP_MAX":107142,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[104.8361226,17.4111969],"properties":{"NAME":"Thakhek","NAMEASCII":"Thakhek","POP_MAX":76928,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[111.2333032,44.3337138],"properties":{"NAME":"Ulaan-Uul","NAMEASCII":"Ulaan-Uul","POP_MAX":3726,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[126.3866418,38.3366897],"properties":{"NAME":"Pyongsan","NAMEASCII":"Pyongsan","POP_MAX":66260,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.3570922,37.9371017],"properties":{"NAME":"Ongjin","NAMEASCII":"Ongjin","POP_MAX":69195,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.7143831,38.039421],"properties":{"NAME":"Haeju","NAMEASCII":"Haeju","POP_MAX":224231,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[129.3204162,40.9604313],"properties":{"NAME":"Kilchu","NAMEASCII":"Kilchu","POP_MAX":101165,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[129.2303959,42.2304313],"properties":{"NAME":"Musan","NAMEASCII":"Musan","POP_MAX":80146,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[130.4027274,42.3376858],"properties":{"NAME":"Rason","NAMEASCII":"Rason","POP_MAX":60864,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[126.6032177,40.9732213],"properties":{"NAME":"Kanggye","NAMEASCII":"Kanggye","POP_MAX":299514,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.4501098,40.6170931],"properties":{"NAME":"Taedong","NAMEASCII":"Taedong","POP_MAX":1884,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[125.2163256,39.6812846],"properties":{"NAME":"Chongju","NAMEASCII":"Chongju","POP_MAX":141769,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[128.1927331,41.3927305],"properties":{"NAME":"Hyeson","NAMEASCII":"Hyeson","POP_MAX":227461,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[96.7832808,48.9664284],"properties":{"NAME":"Hodrogo","NAMEASCII":"Hodrogo","POP_MAX":10,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[18.7399825,-28.0195959],"properties":{"NAME":"Karasburg","NAMEASCII":"Karasburg","POP_MAX":6054,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[17.150002,-26.4995337],"properties":{"NAME":"Bethanie","NAMEASCII":"Bethanie","POP_MAX":10363,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[16.4299943,-28.5494861],"properties":{"NAME":"Oranjemund","NAMEASCII":"Oranjemund","POP_MAX":8496,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[17.9599267,-24.6195967],"properties":{"NAME":"Mariental","NAMEASCII":"Mariental","POP_MAX":13380,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[17.0800321,-23.3195727],"properties":{"NAME":"Rehoboth","NAMEASCII":"Rehoboth","POP_MAX":25219,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[16.1400378,-20.1095361],"properties":{"NAME":"Outjo","NAMEASCII":"Outjo","POP_MAX":6557,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[13.8200244,-18.0595837],"properties":{"NAME":"Opuwo","NAMEASCII":"Opuwo","POP_MAX":4857,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[15.5800203,-21.9995499],"properties":{"NAME":"Usakos","NAMEASCII":"Usakos","POP_MAX":9147,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[16.9100166,-21.9796028],"properties":{"NAME":"Okahandja","NAMEASCII":"Okahandja","POP_MAX":20879,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[16.6400073,-20.4595406],"properties":{"NAME":"Otjiwarongo","NAMEASCII":"Otjiwarongo","POP_MAX":24815,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[15.880002,-17.3995207],"properties":{"NAME":"Oshikango","NAMEASCII":"Oshikango","POP_MAX":12423,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[18.6199898,-17.6095337],"properties":{"NAME":"Cuangar","NAMEASCII":"Cuangar","POP_MAX":500,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[24.2600073,-17.4996179],"properties":{"NAME":"Katima Mulilo","NAMEASCII":"Katima Mulilo","POP_MAX":25027,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[21.4299991,-18.0195345],"properties":{"NAME":"Mucusso","NAMEASCII":"Mucusso","POP_MAX":100,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[-12.9921892,27.462909],"properties":{"NAME":"Dawra","NAMEASCII":"Dawra","POP_MAX":10,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-13.8481922,26.5481866],"properties":{"NAME":"Lemsid","NAMEASCII":"Lemsid","POP_MAX":100,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-11.1000308,28.4303951],"properties":{"NAME":"Tan Tan","NAMEASCII":"Tan Tan","POP_MAX":64868,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[157.2333378,57.5504006],"properties":{"NAME":"Utkholok","NAMEASCII":"Utkholok","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[156.3593859,52.4389813],"properties":{"NAME":"Bol'sheretsk","NAMEASCII":"Bol'sheretsk","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[164.1720053,59.9673883],"properties":{"NAME":"Il'pyrskiy","NAMEASCII":"Il'pyrskiy","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[165.8183435,60.3320654],"properties":{"NAME":"Korf","NAMEASCII":"Korf","POP_MAX":400,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-14.5333096,23.8837476],"properties":{"NAME":"Bir Anzarane","NAMEASCII":"Bir Anzarane","POP_MAX":6597,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[98.5000752,3.6203591],"properties":{"NAME":"Binjai","NAMEASCII":"Binjai","POP_MAX":564979,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[99.2733614,1.3887382],"properties":{"NAME":"Padangsidempuan","NAMEASCII":"Padangsidempuan","POP_MAX":266882,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[98.9666617,2.017072],"properties":{"NAME":"Tarutung","NAMEASCII":"Tarutung","POP_MAX":1305,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[99.1300109,3.3303768],"properties":{"NAME":"Tebingtinggi","NAMEASCII":"Tebingtinggi","POP_MAX":268043,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[127.4359834,0.6963774],"properties":{"NAME":"Tidore","NAMEASCII":"Tidore","POP_MAX":60611,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[100.3614603,-0.3031482],"properties":{"NAME":"Bukittinggi","NAMEASCII":"Bukittinggi","POP_MAX":506964,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[100.7833467,-0.6662785],"properties":{"NAME":"Sawahlunto","NAMEASCII":"Sawahlunto","POP_MAX":50354,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[100.4166508,-0.4495992],"properties":{"NAME":"Padangpanjang","NAMEASCII":"Padangpanjang","POP_MAX":44096,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[128.9404911,-3.3281315],"properties":{"NAME":"Amahai","NAMEASCII":"Amahai","POP_MAX":47653,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[116.1350195,-8.5795422],"properties":{"NAME":"Mataram","NAMEASCII":"Mataram","POP_MAX":499409,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[116.2923225,-8.7223242],"properties":{"NAME":"Praya","NAMEASCII":"Praya","POP_MAX":35183,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[122.6163293,-5.4698612],"properties":{"NAME":"Baubau","NAMEASCII":"Baubau","POP_MAX":24412,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[122.7900138,-0.9395951],"properties":{"NAME":"Luwuk","NAMEASCII":"Luwuk","POP_MAX":47778,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[120.7600085,-1.3895935],"properties":{"NAME":"Poso","NAMEASCII":"Poso","POP_MAX":47110,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[136.048481,-1.1614937],"properties":{"NAME":"Biak","NAMEASCII":"Biak","POP_MAX":103610,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[136.88998,-4.5496073],"properties":{"NAME":"Timika","NAMEASCII":"Timika","POP_MAX":26021,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-51.8100007,3.9104706],"properties":{"NAME":"Saint-Georges","NAMEASCII":"Saint-Georges","POP_MAX":2742,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-6.350462402562247,53.70888678916407],"properties":{"NAME":"Drogheda","NAMEASCII":"Drogheda","POP_MAX":36533,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-6.395592071318646,53.99979607515591],"properties":{"NAME":"Dundalk","NAMEASCII":"Dundalk","POP_MAX":38884,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-9.0488123,53.272393],"properties":{"NAME":"Galway","NAMEASCII":"Galway","POP_MAX":75594,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-7.2522553,52.6545496],"properties":{"NAME":"Kilkenny","NAMEASCII":"Kilkenny","POP_MAX":21589,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-9.5166649,52.0504004],"properties":{"NAME":"Killarney","NAMEASCII":"Killarney","POP_MAX":11902,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-8.4833171,54.267061],"properties":{"NAME":"Sligo","NAMEASCII":"Sligo","POP_MAX":20228,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-15.482804,11.582953],"properties":{"NAME":"Bolama","NAMEASCII":"Bolama","POP_MAX":10769,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[-14.6660146,12.1669951],"properties":{"NAME":"Bafatá","NAMEASCII":"Bafata","POP_MAX":29704,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[17.999976,3.8704214],"properties":{"NAME":"Mbaïki","NAMEASCII":"Mbaiki","POP_MAX":67132,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[15.8666178,4.9336898],"properties":{"NAME":"Carnot","NAMEASCII":"Carnot","POP_MAX":38071,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[16.3833304,6.3169904],"properties":{"NAME":"Bozoum","NAMEASCII":"Bozoum","POP_MAX":40201,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[19.1800073,6.9803866],"properties":{"NAME":"Kaga Bandoro","NAMEASCII":"Kaga Bandoro","POP_MAX":56520,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[10.3200313,44.8104289],"properties":{"NAME":"Parma","NAMEASCII":"Parma","POP_MAX":166011,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[12.2200187,44.4203752],"properties":{"NAME":"Ravenna","NAMEASCII":"Ravenna","POP_MAX":134631,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.6099267,44.8504265],"properties":{"NAME":"Ferrara","NAMEASCII":"Ferrara","POP_MAX":130992,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.3400207,44.500422],"properties":{"NAME":"Bologna","NAMEASCII":"Bologna","POP_MAX":488172,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[9.5150719,40.9142849],"properties":{"NAME":"Olbia","NAMEASCII":"Olbia","POP_MAX":45366,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[9.1039815,39.2223979],"properties":{"NAME":"Cagliari","NAMEASCII":"Cagliari","POP_MAX":291511,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[10.4000264,43.7204696],"properties":{"NAME":"Pisa","NAMEASCII":"Pisa","POP_MAX":203336,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[10.3022747,43.5511337],"properties":{"NAME":"Livorno","NAMEASCII":"Livorno","POP_MAX":156274,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.3499943,43.3170317],"properties":{"NAME":"Siena","NAMEASCII":"Siena","POP_MAX":52625,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.8749751,43.4617257],"properties":{"NAME":"Arezzo","NAMEASCII":"Arezzo","POP_MAX":91589,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[16.6000097,38.9003762],"properties":{"NAME":"Catanzaro","NAMEASCII":"Catanzaro","POP_MAX":95251,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[14.7699406,40.6803967],"properties":{"NAME":"Salerno","NAMEASCII":"Salerno","POP_MAX":954265,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[14.7499934,41.1337024],"properties":{"NAME":"Benevento","NAMEASCII":"Benevento","POP_MAX":61791,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[16.8727579,41.1142204],"properties":{"NAME":"Bari","NAMEASCII":"Bari","POP_MAX":500577,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[15.5599698,41.4604783],"properties":{"NAME":"Foggia","NAMEASCII":"Foggia","POP_MAX":155203,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[18.1499926,40.3603904],"properties":{"NAME":"Lecce","NAMEASCII":"Lecce","POP_MAX":162582,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[17.9300061,40.6403475],"properties":{"NAME":"Brindisi","NAMEASCII":"Brindisi","POP_MAX":104437,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[17.2299971,40.5083917],"properties":{"NAME":"Taranto","NAMEASCII":"Taranto","POP_MAX":202033,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[15.5499963,38.2004706],"properties":{"NAME":"Messina","NAMEASCII":"Messina","POP_MAX":252026,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[12.4386617,37.8054043],"properties":{"NAME":"Marsala","NAMEASCII":"Marsala","POP_MAX":77784,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[15.2899605,37.0703587],"properties":{"NAME":"Siracusa","NAMEASCII":"Siracusa","POP_MAX":123657,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[14.2186564,42.4554305],"properties":{"NAME":"Pescara","NAMEASCII":"Pescara","POP_MAX":314789,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[13.3900248,42.3503982],"properties":{"NAME":"L'Aquila","NAMEASCII":"L'Aquila","POP_MAX":68503,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.7999926,42.1004134],"properties":{"NAME":"Civitavecchia","NAMEASCII":"Civitavecchia","POP_MAX":61316,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[13.4999406,43.6003736],"properties":{"NAME":"Ancona","NAMEASCII":"Ancona","POP_MAX":100507,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[12.3899825,43.1103776],"properties":{"NAME":"Perugia","NAMEASCII":"Perugia","POP_MAX":149125,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[35.0776932,29.5269949],"properties":{"NAME":"Al Aqabah","NAMEASCII":"Al Aqabah","POP_MAX":95048,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[35.7047351,31.1851107],"properties":{"NAME":"Al Karak","NAMEASCII":"Al Karak","POP_MAX":80062,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[25.1332873,5.0336579],"properties":{"NAME":"Zemio","NAMEASCII":"Zemio","POP_MAX":20000,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[23.316654,5.6170073],"properties":{"NAME":"Yakossi","NAMEASCII":"Yakossi","POP_MAX":500,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[9.6699934,45.7004004],"properties":{"NAME":"Bergamo","NAMEASCII":"Bergamo","POP_MAX":200000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[13.8000256,45.6503776],"properties":{"NAME":"Trieste","NAMEASCII":"Trieste","POP_MAX":216035,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.3600195,46.5004291],"properties":{"NAME":"Bolzano","NAMEASCII":"Bolzano","POP_MAX":95895,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[11.1199825,46.0804289],"properties":{"NAME":"Trento","NAMEASCII":"Trento","POP_MAX":107808,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[10.9900162,45.4403904],"properties":{"NAME":"Verona","NAMEASCII":"Verona","POP_MAX":347459,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[97.966361,4.6735765],"properties":{"NAME":"Langsa","NAMEASCII":"Langsa","POP_MAX":117256,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[104.6714789497856,35.00272112392498],"properties":{"NAME":"Longxi","NAMEASCII":"Longxi","POP_MAX":355037,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.6800927,35.5303752],"properties":{"NAME":"Pingliang","NAMEASCII":"Pingliang","POP_MAX":207256,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[95.7999816,40.5004336],"properties":{"NAME":"Anxi","NAMEASCII":"Anxi","POP_MAX":17886,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.0305904,34.4361784],"properties":{"NAME":"Minxian","NAMEASCII":"Minxian","POP_MAX":67826,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[102.1739078,38.4956981],"properties":{"NAME":"Jinchang","NAMEASCII":"Jinchang","POP_MAX":144363,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[101.4241862,36.0450983],"properties":{"NAME":"Guide","NAMEASCII":"Guide","POP_MAX":7642,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.6199743,21.9504289],"properties":{"NAME":"Qinzhou","NAMEASCII":"Qinzhou","POP_MAX":245376,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.7566772,22.0973708],"properties":{"NAME":"Pingxiang","NAMEASCII":"Pingxiang","POP_MAX":31109,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.6666898,24.5003766],"properties":{"NAME":"Yishan","NAMEASCII":"Yishan","POP_MAX":47062,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.1000484,21.4804059],"properties":{"NAME":"Beihai","NAMEASCII":"Beihai","POP_MAX":728978,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.08299950401414,24.695252134251945],"properties":{"NAME":"Hechi","NAMEASCII":"Hechi","POP_MAX":3830000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.1300207,27.6804151],"properties":{"NAME":"Tongren","NAMEASCII":"Tongren","POP_MAX":118290,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.5166638,31.0504419],"properties":{"NAME":"Fengjie","NAMEASCII":"Fengjie","POP_MAX":49168,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.1943957,40.2247656],"properties":{"NAME":"Changping","NAMEASCII":"Changping","POP_MAX":614821,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.5000008,27.3003866],"properties":{"NAME":"Shaowu","NAMEASCII":"Shaowu","POP_MAX":112585,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.99504789877176,25.073515108609563],"properties":{"NAME":"Longyan","NAMEASCII":"Longyan","POP_MAX":367896,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.6700162,24.5203754],"properties":{"NAME":"Zhangzhou","NAMEASCII":"Zhangzhou","POP_MAX":3531147,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.0200114,25.4303457],"properties":{"NAME":"Putian","NAMEASCII":"Putian","POP_MAX":376558,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.6200264,27.0704265],"properties":{"NAME":"Fuan","NAMEASCII":"Fuan","POP_MAX":92470,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.3166621,25.8669857],"properties":{"NAME":"Changting","NAMEASCII":"Changting","POP_MAX":87458,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.1699857,26.6303758],"properties":{"NAME":"Nanping","NAMEASCII":"Nanping","POP_MAX":213054,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.5300577,26.6803727],"properties":{"NAME":"Ninde","NAMEASCII":"Ninde","POP_MAX":314077,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.3500028,33.2504368],"properties":{"NAME":"Jieshou","NAMEASCII":"Jieshou","POP_MAX":141993,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.7800354,30.950448],"properties":{"NAME":"Tongling","NAMEASCII":"Tongling","POP_MAX":562832,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.4851484740624,31.672563922240595],"properties":{"NAME":"Maanshan","NAMEASCII":"Maanshan","POP_MAX":1366302,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.82,32.9004065],"properties":{"NAME":"Fuyang","NAMEASCII":"Fuyang","POP_MAX":170023,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.9700024,21.8504092],"properties":{"NAME":"Yangjiang","NAMEASCII":"Yangjiang","POP_MAX":872363,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.1199816,24.3004922],"properties":{"NAME":"Meizhou","NAMEASCII":"Meizhou","POP_MAX":414930,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.6800179,23.7304236],"properties":{"NAME":"Heyuan","NAMEASCII":"Heyuan","POP_MAX":330961,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.0300927,23.7003996],"properties":{"NAME":"Qingyuan","NAMEASCII":"Qingyuan","POP_MAX":706717,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.4500248,23.0504134],"properties":{"NAME":"Zhaoqing","NAMEASCII":"Zhaoqing","POP_MAX":480000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.3825354,24.7815222],"properties":{"NAME":"Lianxian","NAMEASCII":"Lianxian","POP_MAX":203639,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.0800122,22.5803904],"properties":{"NAME":"Jiangmen","NAMEASCII":"Jiangmen","POP_MAX":532419,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.8700179,21.9204049],"properties":{"NAME":"Maoming","NAMEASCII":"Maoming","POP_MAX":1217715,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.3190108,-6.3356482],"properties":{"NAME":"Indramayu","NAMEASCII":"Indramayu","POP_MAX":123263,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[106.899976,-6.9096183],"properties":{"NAME":"Sukabumi","NAMEASCII":"Sukabumi","POP_MAX":276414,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[109.0154024,-7.7188196],"properties":{"NAME":"Cilacap","NAMEASCII":"Cilacap","POP_MAX":1174964,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[111.034659,-6.7415149],"properties":{"NAME":"Pati","NAMEASCII":"Pati","POP_MAX":122785,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[109.6700394,-6.8795943],"properties":{"NAME":"Pakalongan","NAMEASCII":"Pakalongan","POP_MAX":272000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[109.1199955,-6.8695691],"properties":{"NAME":"Tegal","NAMEASCII":"Tegal","POP_MAX":237084,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[110.4900927,-7.3095422],"properties":{"NAME":"Salatiga","NAMEASCII":"Salatiga","POP_MAX":176000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[110.1799825,-7.4695841],"properties":{"NAME":"Magelang","NAMEASCII":"Magelang","POP_MAX":111461,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[106.1496342,-6.1099772],"properties":{"NAME":"Serang","NAMEASCII":"Serang","POP_MAX":164767,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[106.972323,-6.2172575],"properties":{"NAME":"Bekasi","NAMEASCII":"Bekasi","POP_MAX":2378211,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[108.9654697,0.9119809],"properties":{"NAME":"Singkawang","NAMEASCII":"Singkawang","POP_MAX":248012,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[105.3000219,-5.4496041],"properties":{"NAME":"Bandar Lampung","NAMEASCII":"Bandar Lampung","POP_MAX":881801,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[104.2314567,-3.4431632],"properties":{"NAME":"Perabumulih","NAMEASCII":"Perabumulih","POP_MAX":103470,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[115.1841208,-8.7151125],"properties":{"NAME":"Kuta","NAMEASCII":"Kuta","POP_MAX":30012,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[115.094398,-8.1151993],"properties":{"NAME":"Singaraja","NAMEASCII":"Singaraja","POP_MAX":234468,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[113.8496293,-7.0049096],"properties":{"NAME":"Sumenep","NAMEASCII":"Sumenep","POP_MAX":84656,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[114.3695975,-8.1950179],"properties":{"NAME":"Banyuwangi","NAMEASCII":"Banyuwangi","POP_MAX":172424,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.0499975,-6.8995414],"properties":{"NAME":"Tuban","NAMEASCII":"Tuban","POP_MAX":76242,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[113.1500337,-7.7496187],"properties":{"NAME":"Probolinggo","NAMEASCII":"Probolinggo","POP_MAX":181656,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.9000232,-7.6295744],"properties":{"NAME":"Pasuruan","NAMEASCII":"Pasuruan","POP_MAX":500000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.4299743,-7.4695841],"properties":{"NAME":"Mojokerto","NAMEASCII":"Mojokerto","POP_MAX":112557,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[111.5149914,-7.634587],"properties":{"NAME":"Madiun","NAMEASCII":"Madiun","POP_MAX":186099,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.0000264,-7.7896163],"properties":{"NAME":"Kediri","NAMEASCII":"Kediri","POP_MAX":235143,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.1499914,-8.0695992],"properties":{"NAME":"Blitar","NAMEASCII":"Blitar","POP_MAX":132416,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[120.253011,-9.6582361],"properties":{"NAME":"Waingapu","NAMEASCII":"Waingapu","POP_MAX":48828,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[122.212323,-8.618868],"properties":{"NAME":"Maumere","NAMEASCII":"Maumere","POP_MAX":104285,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[121.6489465,-8.8623157],"properties":{"NAME":"Ende","NAMEASCII":"Ende","POP_MAX":77205,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[119.8530871,-3.0968278],"properties":{"NAME":"Makale","NAMEASCII":"Makale","POP_MAX":9960,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[120.2363195,-3.0999284],"properties":{"NAME":"Palopo","NAMEASCII":"Palopo","POP_MAX":2444,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[120.3333679,-4.5328125],"properties":{"NAME":"Watampone","NAMEASCII":"Watampone","POP_MAX":81629,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[119.6522208,-3.7857263],"properties":{"NAME":"Pinrang","NAMEASCII":"Pinrang","POP_MAX":182731,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[118.9660095,-3.533597],"properties":{"NAME":"Majene","NAMEASCII":"Majene","POP_MAX":272377,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[4.3800321,45.4303911],"properties":{"NAME":"Saint-Étienne","NAMEASCII":"Saint-Etienne","POP_MAX":265684,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[5.720002,45.1803805],"properties":{"NAME":"Grenoble","NAMEASCII":"Grenoble","POP_MAX":388574,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-79.9499884,-4.3795919],"properties":{"NAME":"Macará","NAMEASCII":"Macara","POP_MAX":13035,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.9699966,-4.0695849],"properties":{"NAME":"Zamora","NAMEASCII":"Zamora","POP_MAX":15276,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.6099669,-0.9295699],"properties":{"NAME":"Latacunga","NAMEASCII":"Latacunga","POP_MAX":94972,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-79.599984,-2.1796228],"properties":{"NAME":"Milagro","NAMEASCII":"Milagro","POP_MAX":109970,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-79.5400135,-1.7995943],"properties":{"NAME":"Babahoyo","NAMEASCII":"Babahoyo","POP_MAX":76279,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-80.0900057,-0.6895845],"properties":{"NAME":"Chone","NAMEASCII":"Chone","POP_MAX":44751,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-80.5800017,-1.3495959],"properties":{"NAME":"Jipijapa","NAMEASCII":"Jipijapa","POP_MAX":35901,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-77.9363387,-2.8543103],"properties":{"NAME":"Yaupi","NAMEASCII":"Yaupi","POP_MAX":293,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.1199968,-2.309589],"properties":{"NAME":"Macas","NAMEASCII":"Macas","POP_MAX":23687,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.1599943,0.0503703],"properties":{"NAME":"Cayambe","NAMEASCII":"Cayambe","POP_MAX":27881,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.6199921,-1.2696008],"properties":{"NAME":"Ambato","NAMEASCII":"Ambato","POP_MAX":281425,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-77.8099899,-0.9795927],"properties":{"NAME":"Tena","NAMEASCII":"Tena","POP_MAX":31126,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-75.5904871,7.0305902],"properties":{"NAME":"Yarumal","NAMEASCII":"Yarumal","POP_MAX":35315,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.4200159,6.4804429],"properties":{"NAME":"Puerto Berrío","NAMEASCII":"Puerto Berrio","POP_MAX":33983,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-76.7399777,8.1003699],"properties":{"NAME":"Turbo","NAMEASCII":"Turbo","POP_MAX":50508,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.3700283,5.550448],"properties":{"NAME":"Tunja","NAMEASCII":"Tunja","POP_MAX":161412,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.8199492,5.6203921],"properties":{"NAME":"Chiquinquirá","NAMEASCII":"Chiquinquira","POP_MAX":53975,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.0200497,5.8304568],"properties":{"NAME":"Duitama","NAMEASCII":"Duitama","POP_MAX":101156,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.150023,8.3304075],"properties":{"NAME":"Ayapel","NAMEASCII":"Ayapel","POP_MAX":23639,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.8160031,9.2418506],"properties":{"NAME":"Lorica","NAMEASCII":"Lorica","POP_MAX":52771,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.2699827,6.4603408],"properties":{"NAME":"Socorro","NAMEASCII":"Socorro","POP_MAX":24895,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-72.9099789,11.5403408],"properties":{"NAME":"Riohacha","NAMEASCII":"Riohacha","POP_MAX":133186,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-80.4402944,22.1444481],"properties":{"NAME":"Cienfuegos","NAMEASCII":"Cienfuegos","POP_MAX":186644,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-82.7999954,21.8837146],"properties":{"NAME":"Nueva Gerona","NAMEASCII":"Nueva Gerona","POP_MAX":25566,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-79.4425,21.9301459],"properties":{"NAME":"Sancti Spíritus","NAMEASCII":"Sancti Spiritus","POP_MAX":127069,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-82.6199805,9.5203866],"properties":{"NAME":"Sixaola","NAMEASCII":"Sixaola","POP_MAX":1823,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-84.8335895,9.9701641],"properties":{"NAME":"Puntarenas","NAMEASCII":"Puntarenas","POP_MAX":57102,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-83.5300025,8.9603691],"properties":{"NAME":"Ciudad Cortés","NAMEASCII":"Ciudad Cortes","POP_MAX":3850,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-84.4399728,10.3304922],"properties":{"NAME":"Quesada","NAMEASCII":"Quesada","POP_MAX":31106,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-85.433323,10.6337553],"properties":{"NAME":"Liberia","NAMEASCII":"Liberia","POP_MAX":45380,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-85.6300035,11.0704212],"properties":{"NAME":"La Cruz","NAMEASCII":"La Cruz","POP_MAX":4319,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-78.9854985,1.2671038],"properties":{"NAME":"Valdez","NAMEASCII":"Valdez","POP_MAX":11441,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.860055,1.2703992],"properties":{"NAME":"San Lorenzo","NAMEASCII":"San Lorenzo","POP_MAX":20209,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-79.6699797,0.9304199],"properties":{"NAME":"Esmeraldas","NAMEASCII":"Esmeraldas","POP_MAX":173101,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-89.5597636,13.9946096],"properties":{"NAME":"Santa Ana","NAMEASCII":"Santa Ana","POP_MAX":234478,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-78.6274852,22.1098507],"properties":{"NAME":"Morón","NAMEASCII":"Moron","POP_MAX":66060,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-77.2644418,21.5456474],"properties":{"NAME":"Nuevitas","NAMEASCII":"Nuevitas","POP_MAX":54022,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-77.1166472,20.3437569],"properties":{"NAME":"Manzanillo","NAMEASCII":"Manzanillo","POP_MAX":128188,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-76.6432911,20.3795429],"properties":{"NAME":"Bayamo","NAMEASCII":"Bayamo","POP_MAX":192632,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-75.718593,20.9629181],"properties":{"NAME":"Banes","NAMEASCII":"Banes","POP_MAX":53104,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-76.9543832,20.9601276],"properties":{"NAME":"Las Tunas","NAMEASCII":"Las Tunas","POP_MAX":203684,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-69.2999667,18.4503583],"properties":{"NAME":"San Pedro de Macorís","NAMEASCII":"San Pedro de Macoris","POP_MAX":217899,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-75.6811276,4.5342827],"properties":{"NAME":"Armenia","NAMEASCII":"Armenia","POP_MAX":315328,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.6799907,4.8103898],"properties":{"NAME":"Pereira","NAMEASCII":"Pereira","POP_MAX":568750,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.7499958,5.1903408],"properties":{"NAME":"Honda","NAMEASCII":"Honda","POP_MAX":35469,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.77031723675944,2.109486387069812],"properties":{"NAME":"San Vicente del Caguán","NAMEASCII":"San Vicente del Caguan","POP_MAX":1500,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.6199943,1.6104043],"properties":{"NAME":"Florencia","NAMEASCII":"Florencia","POP_MAX":130337,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.8599868,2.560398],"properties":{"NAME":"Guapi","NAMEASCII":"Guapi","POP_MAX":13853,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.3302446,2.9310472],"properties":{"NAME":"Neiva","NAMEASCII":"Neiva","POP_MAX":352855,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.6499667,2.2103935],"properties":{"NAME":"Garzón","NAMEASCII":"Garzon","POP_MAX":56603,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.6499996,0.8303744],"properties":{"NAME":"Ipiales","NAMEASCII":"Ipiales","POP_MAX":109618,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.0504533,3.8724024],"properties":{"NAME":"Buenaventura","NAMEASCII":"Buenaventura","POP_MAX":252805,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-76.21001,4.0903821],"properties":{"NAME":"Tuluá","NAMEASCII":"Tulua","POP_MAX":165501,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-78.1299962,0.3603772],"properties":{"NAME":"Ibarra","NAMEASCII":"Ibarra","POP_MAX":146741,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-75.1299984,9.7203744],"properties":{"NAME":"El Carmen de Bolívar","NAMEASCII":"El Carmen de Bolivar","POP_MAX":60980,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.7564014,7.1217475],"properties":{"NAME":"Juradó","NAMEASCII":"Jurado","POP_MAX":2351,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.2745484,5.6851801],"properties":{"NAME":"Nuquí","NAMEASCII":"Nuqui","POP_MAX":2741,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-76.6600084,5.6904136],"properties":{"NAME":"Quibdó","NAMEASCII":"Quibdo","POP_MAX":92780,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.9800169,9.0003408],"properties":{"NAME":"El Banco","NAMEASCII":"El Banco","POP_MAX":54522,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.2500004,11.010399],"properties":{"NAME":"Ciénaga","NAMEASCII":"Cienaga","POP_MAX":131171,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.3799573,9.2904265],"properties":{"NAME":"Sincelejo","NAMEASCII":"Sincelejo","POP_MAX":261187,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.5720386,9.5358378],"properties":{"NAME":"Tolú","NAMEASCII":"Tolu","POP_MAX":27390,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-70.7616346,7.0906641],"properties":{"NAME":"Arauca","NAMEASCII":"Arauca","POP_MAX":69264,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-71.7400245,6.4603408],"properties":{"NAME":"Tame","NAMEASCII":"Tame","POP_MAX":29099,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-72.66002,7.3903874],"properties":{"NAME":"Pamplona","NAMEASCII":"Pamplona","POP_MAX":53587,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.3500037,8.240413],"properties":{"NAME":"Ocaña","NAMEASCII":"Ocana","POP_MAX":83511,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-71.340023,4.794551],"properties":{"NAME":"Orocue","NAMEASCII":"Orocue","POP_MAX":2835,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-67.9060983,3.8540399],"properties":{"NAME":"Inírida","NAMEASCII":"Inirida","POP_MAX":9065,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.689983,3.6904065],"properties":{"NAME":"San Martín","NAMEASCII":"San Martin","POP_MAX":16273,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-67.4930227,6.1850346],"properties":{"NAME":"Puerto Carreño","NAMEASCII":"Puerto Carreno","POP_MAX":10216,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-82.761884,22.8133995],"properties":{"NAME":"Artemisa","NAMEASCII":"Artemisa","POP_MAX":68073,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-81.577486,23.0415251],"properties":{"NAME":"Matanzas","NAMEASCII":"Matanzas","POP_MAX":146733,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-80.9057957,22.7195809],"properties":{"NAME":"Colón","NAMEASCII":"Colon","POP_MAX":63882,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-80.0710922,22.8090328],"properties":{"NAME":"Sagua la Grande","NAMEASCII":"Sagua la Grande","POP_MAX":62073,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-61.0800291,14.6104118],"properties":{"NAME":"Fort-de-France","NAMEASCII":"Fort-de-France","POP_MAX":253995,"ISO_A2":"MQ","SOV_A3":"FRA"}},{"type":"Point","coordinates":[18.6150288,4.3303416],"properties":{"NAME":"Zongo","NAMEASCII":"Zongo","POP_MAX":17667,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[18.6199898,3.6604342],"properties":{"NAME":"Libenge","NAMEASCII":"Libenge","POP_MAX":27053,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[21.0500223,1.5103587],"properties":{"NAME":"Bongandanga","NAMEASCII":"Bongandanga","POP_MAX":4105,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.2665795,-1.1829394],"properties":{"NAME":"Ikela","NAMEASCII":"Ikela","POP_MAX":291,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[20.4199833,2.3834062],"properties":{"NAME":"Binga","NAMEASCII":"Binga","POP_MAX":64639,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[19.8000211,1.2337089],"properties":{"NAME":"Basankusu","NAMEASCII":"Basankusu","POP_MAX":52216,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[20.8600081,-0.2195874],"properties":{"NAME":"Boende","NAMEASCII":"Boende","POP_MAX":32091,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[21.0199467,4.2903699],"properties":{"NAME":"Gbadolite","NAMEASCII":"Gbadolite","POP_MAX":50493,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[20.8699816,3.3403762],"properties":{"NAME":"Businga","NAMEASCII":"Businga","POP_MAX":34247,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[19.8800162,4.190376],"properties":{"NAME":"Bosobolo","NAMEASCII":"Bosobolo","POP_MAX":14553,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[16.5277661,20.458737],"properties":{"NAME":"Zouar","NAMEASCII":"Zouar","POP_MAX":204,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[14.7146984,13.4589575],"properties":{"NAME":"Bol","NAMEASCII":"Bol","POP_MAX":3303,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[9.4185876,1.1164034],"properties":{"NAME":"Calatrava","NAMEASCII":"Calatrava","POP_MAX":628,"ISO_A2":"GQ","SOV_A3":"GNQ"}},{"type":"Point","coordinates":[11.3165596,1.6336845],"properties":{"NAME":"Mongomo","NAMEASCII":"Mongomo","POP_MAX":6560,"ISO_A2":"GQ","SOV_A3":"GNQ"}},{"type":"Point","coordinates":[18.3332889,13.2170602],"properties":{"NAME":"Ati","NAMEASCII":"Ati","POP_MAX":25373,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[19.6833357,13.3004142],"properties":{"NAME":"Oum Hadjer","NAMEASCII":"Oum Hadjer","POP_MAX":19271,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[18.6999849,12.1837382],"properties":{"NAME":"Mongo","NAMEASCII":"Mongo","POP_MAX":27763,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[16.8500203,8.6504397],"properties":{"NAME":"Doba","NAMEASCII":"Doba","POP_MAX":29597,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[14.9666211,9.3504228],"properties":{"NAME":"Pala","NAMEASCII":"Pala","POP_MAX":35466,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[15.3871639,10.2859471],"properties":{"NAME":"Bongor","NAMEASCII":"Bongor","POP_MAX":193941,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[15.8000069,9.3170657],"properties":{"NAME":"Kelo","NAMEASCII":"Kelo","POP_MAX":96224,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[18.0913916,42.6609477],"properties":{"NAME":"Dubrovnik","NAMEASCII":"Dubrovnik","POP_MAX":36994,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[16.4699918,43.5204043],"properties":{"NAME":"Split","NAMEASCII":"Split","POP_MAX":214741,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[15.2622619,44.1201351],"properties":{"NAME":"Zadar","NAMEASCII":"Zadar","POP_MAX":71258,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[31.0000093,30.7904319],"properties":{"NAME":"Tanta","NAMEASCII":"Tanta","POP_MAX":404901,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[32.2599841,30.5903408],"properties":{"NAME":"Ismaïlia","NAMEASCII":"Ismailia","POP_MAX":656135,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.3800378,31.0504419],"properties":{"NAME":"El Mansura","NAMEASCII":"El Mansura","POP_MAX":600000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.8200109,31.4203935],"properties":{"NAME":"Dumyat","NAMEASCII":"Dumyat","POP_MAX":299459,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[27.2300069,31.3504236],"properties":{"NAME":"Matruh","NAMEASCII":"Matruh","POP_MAX":103470,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[28.9499536,30.8170711],"properties":{"NAME":"El Alamein","NAMEASCII":"El Alamein","POP_MAX":7400,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[28.4332926,31.0337763],"properties":{"NAME":"El Daba","NAMEASCII":"El Daba","POP_MAX":14212,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[25.1500305,31.5669737],"properties":{"NAME":"Salum","NAMEASCII":"Salum","POP_MAX":7330,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.4700158,31.0504419],"properties":{"NAME":"Damanhûr","NAMEASCII":"Damanhur","POP_MAX":500000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.7100012,28.3004289],"properties":{"NAME":"Samalut","NAMEASCII":"Samalut","POP_MAX":152097,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.8399674,27.730412],"properties":{"NAME":"Mallawi","NAMEASCII":"Mallawi","POP_MAX":217365,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.8099951,28.4903915],"properties":{"NAME":"Beni Mazar","NAMEASCII":"Beni Mazar","POP_MAX":79553,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.0900297,29.0803813],"properties":{"NAME":"Beni Suef","NAMEASCII":"Beni Suef","POP_MAX":489450,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.3900207,31.4603911],"properties":{"NAME":"Rashid","NAMEASCII":"Rashid","POP_MAX":199509,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[27.9665511,27.067145],"properties":{"NAME":"Qasr Farafra","NAMEASCII":"Qasr Farafra","POP_MAX":5000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[28.883291,25.7004326],"properties":{"NAME":"El Qasr","NAMEASCII":"El Qasr","POP_MAX":1716,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[32.5499406,25.2904059],"properties":{"NAME":"Isna","NAMEASCII":"Isna","POP_MAX":100000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[32.7200077,26.1504568],"properties":{"NAME":"Qena","NAMEASCII":"Qena","POP_MAX":302027,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.8800073,26.3303683],"properties":{"NAME":"Girga","NAMEASCII":"Girga","POP_MAX":128250,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.7000183,26.5504065],"properties":{"NAME":"Sohag","NAMEASCII":"Sohag","POP_MAX":600000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[35.4841801,23.9459918],"properties":{"NAME":"Berenice","NAMEASCII":"Berenice","POP_MAX":10,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[33.9333186,26.7337287],"properties":{"NAME":"Bur Safaga","NAMEASCII":"Bur Safaga","POP_MAX":32944,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[33.6147973,28.239389],"properties":{"NAME":"El Tur","NAMEASCII":"El Tur","POP_MAX":27628,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[33.8005619,31.1248818],"properties":{"NAME":"El Arish","NAMEASCII":"El Arish","POP_MAX":178651,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[24.4300227,0.770378],"properties":{"NAME":"Yangambi","NAMEASCII":"Yangambi","POP_MAX":35531,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.7799849,2.7404645],"properties":{"NAME":"Aketi","NAMEASCII":"Aketi","POP_MAX":58601,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[30.0332983,1.9504352],"properties":{"NAME":"Mongbwalu","NAMEASCII":"Mongbwalu","POP_MAX":2819,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[27.2665938,1.0838473],"properties":{"NAME":"Bafwasende","NAMEASCII":"Bafwasende","POP_MAX":149,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[30.240004,1.5604073],"properties":{"NAME":"Bunia","NAMEASCII":"Bunia","POP_MAX":96764,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[27.9899605,2.1404236],"properties":{"NAME":"Wamba","NAMEASCII":"Wamba","POP_MAX":146871,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.5900223,1.2404269],"properties":{"NAME":"Basoko","NAMEASCII":"Basoko","POP_MAX":43709,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[36.6574934,15.1103813],"properties":{"NAME":"Tessenei","NAMEASCII":"Tessenei","POP_MAX":15255,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[37.8866691,15.5490367],"properties":{"NAME":"Agordat","NAMEASCII":"Agordat","POP_MAX":28600,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[39.4500362,15.6101182],"properties":{"NAME":"Massawa","NAMEASCII":"Massawa","POP_MAX":142564,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[38.45435135296248,15.781441409744621],"properties":{"NAME":"Keren","NAMEASCII":"Keren","POP_MAX":150000,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[38.8163281,14.8859764],"properties":{"NAME":"Mendefera","NAMEASCII":"Mendefera","POP_MAX":257390,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[42.7125244,11.1562299],"properties":{"NAME":"Ali Sabih","NAMEASCII":"Ali Sabih","POP_MAX":40074,"ISO_A2":"DJ","SOV_A3":"DJI"}},{"type":"Point","coordinates":[43.2855643,11.973441],"properties":{"NAME":"Obock","NAMEASCII":"Obock","POP_MAX":17776,"ISO_A2":"DJ","SOV_A3":"DJI"}},{"type":"Point","coordinates":[7.0800223,50.7204557],"properties":{"NAME":"Bonn","NAMEASCII":"Bonn","POP_MAX":680543,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.6200411,51.9704053],"properties":{"NAME":"Münster","NAMEASCII":"Munster","POP_MAX":270184,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[6.779989,51.2203736],"properties":{"NAME":"Düsseldorf","NAMEASCII":"Dusseldorf","POP_MAX":1220000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.9999991,48.4003906],"properties":{"NAME":"Ulm","NAMEASCII":"Ulm","POP_MAX":172955,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.470015,49.5003752],"properties":{"NAME":"Mannheim","NAMEASCII":"Mannheim","POP_MAX":2362000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.8699483,48.0004151],"properties":{"NAME":"Freiburg","NAMEASCII":"Freiburg","POP_MAX":254889,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.650004,50.5837199],"properties":{"NAME":"Gießen","NAMEASCII":"Giessen","POP_MAX":82358,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.2500284,50.0803915],"properties":{"NAME":"Wiesbaden","NAMEASCII":"Wiesbaden","POP_MAX":617126,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.5799825,53.550438],"properties":{"NAME":"Bremerhaven","NAMEASCII":"Bremerhaven","POP_MAX":137751,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.049989,52.280438],"properties":{"NAME":"Osnabrück","NAMEASCII":"Osnabruck","POP_MAX":231268,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.7166573,52.3669702],"properties":{"NAME":"Hanover","NAMEASCII":"Hannover","POP_MAX":722490,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.920004,51.5204328],"properties":{"NAME":"Göttingen","NAMEASCII":"Gottingen","POP_MAX":139419,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[12.070002,50.8703691],"properties":{"NAME":"Gera","NAMEASCII":"Gera","POP_MAX":104659,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.5800061,50.9304429],"properties":{"NAME":"Jena","NAMEASCII":"Jena","POP_MAX":104712,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.4333154,54.7837478],"properties":{"NAME":"Flensburg","NAMEASCII":"Flensburg","POP_MAX":97930,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[10.6699841,53.8703927],"properties":{"NAME":"Lübeck","NAMEASCII":"Lubeck","POP_MAX":235390,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[10.130017,54.3303904],"properties":{"NAME":"Kiel","NAMEASCII":"Kiel","POP_MAX":269427,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[7.5999906,50.3504783],"properties":{"NAME":"Koblenz","NAMEASCII":"Koblenz","POP_MAX":312633,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[6.9700032,49.2503904],"properties":{"NAME":"Saarbrücken","NAMEASCII":"Saarbrucken","POP_MAX":770001,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[13.3600008,49.740438],"properties":{"NAME":"Pizen","NAMEASCII":"Pizen","POP_MAX":164180,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[12.1200248,49.0204045],"properties":{"NAME":"Regensburg","NAMEASCII":"Regensburg","POP_MAX":164359,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[12.1333056,47.8503467],"properties":{"NAME":"Rosenheim","NAMEASCII":"Rosenheim","POP_MAX":92809,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.916678,50.3170437],"properties":{"NAME":"Hof","NAMEASCII":"Hof","POP_MAX":56153,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.950028,49.8004344],"properties":{"NAME":"Würzburg","NAMEASCII":"Wurzburg","POP_MAX":168561,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.4499882,48.7704197],"properties":{"NAME":"Ingolstadt","NAMEASCII":"Ingolstadt","POP_MAX":163325,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[13.8480847,44.8687199],"properties":{"NAME":"Pula","NAMEASCII":"Pula","POP_MAX":61599,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[15.5833276,49.4003813],"properties":{"NAME":"Jihlava","NAMEASCII":"Jihlava","POP_MAX":53921,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[17.6500232,49.2304175],"properties":{"NAME":"Zlín","NAMEASCII":"Zlin","POP_MAX":124610,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[16.6099833,49.2003935],"properties":{"NAME":"Brno","NAMEASCII":"Brno","POP_MAX":388277,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[15.7600093,50.0404197],"properties":{"NAME":"Pardubice","NAMEASCII":"Pardubice","POP_MAX":107064,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[14.3299674,51.7704175],"properties":{"NAME":"Cottbus","NAMEASCII":"Cottbus","POP_MAX":105067,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[13.0699926,52.4004049],"properties":{"NAME":"Potsdam","NAMEASCII":"Potsdam","POP_MAX":218095,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.6200036,52.1304214],"properties":{"NAME":"Magdeburg","NAMEASCII":"Magdeburg","POP_MAX":229826,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[12.4099812,51.3354053],"properties":{"NAME":"Leipzig","NAMEASCII":"Leipzig","POP_MAX":542529,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[18.6800378,45.5503837],"properties":{"NAME":"Osijek","NAMEASCII":"Osijek","POP_MAX":95077,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[18.2499865,49.830355],"properties":{"NAME":"Ostrava","NAMEASCII":"Ostrava","POP_MAX":478963,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[28.160286,59.3776276],"properties":{"NAME":"Narva","NAMEASCII":"Narva","POP_MAX":66980,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[79.9833243,32.2003976],"properties":{"NAME":"Gar","NAMEASCII":"Gar","POP_MAX":10000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[89.1650378,42.9353754],"properties":{"NAME":"Turpan","NAMEASCII":"Turpan","POP_MAX":651853,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[85.5333215,38.1337563],"properties":{"NAME":"Quiemo","NAMEASCII":"Quiemo","POP_MAX":65572,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[89.53021785838968,46.99112308175973],"properties":{"NAME":"Koktokay","NAMEASCII":"Koktokay","POP_MAX":80000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.471442,0.916829],"properties":{"NAME":"Tanjungpinang","NAMEASCII":"Tanjungpinang","POP_MAX":226666,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[108.2,4.2169894],"properties":{"NAME":"Telukbutun","NAMEASCII":"Telukbutun","POP_MAX":140,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[110.429993,35.4704305],"properties":{"NAME":"Hancheng","NAMEASCII":"Hancheng","POP_MAX":222135,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.5000756,34.500438],"properties":{"NAME":"Weinan","NAMEASCII":"Weinan","POP_MAX":172321,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.4200008,39.3003776],"properties":{"NAME":"Shuozhou","NAMEASCII":"Shuozhou","POP_MAX":570000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.7199825,38.4104319],"properties":{"NAME":"Xinzhou","NAMEASCII":"Xinzhou","POP_MAX":279607,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.8300016,35.500377],"properties":{"NAME":"Jincheng","NAMEASCII":"Jincheng","POP_MAX":760000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.8999808,37.0400246],"properties":{"NAME":"Jiexiu","NAMEASCII":"Jiexiu","POP_MAX":77178,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.1052819,36.1838753],"properties":{"NAME":"Changzhi","NAMEASCII":"Changzhi","POP_MAX":706000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.0000077,31.6203813],"properties":{"NAME":"Guangshui","NAMEASCII":"Guangshui","POP_MAX":154771,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.2010339823121,31.031409824168122],"properties":{"NAME":"Jingmen","NAMEASCII":"Jingmen","POP_MAX":400000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.5000052,30.300436],"properties":{"NAME":"Zicheng","NAMEASCII":"Zicheng","POP_MAX":237042,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.400002,29.7003951],"properties":{"NAME":"Shishou","NAMEASCII":"Shishou","POP_MAX":231787,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.9000138,30.9203982],"properties":{"NAME":"Xiaogan","NAMEASCII":"Xiaogan","POP_MAX":160437,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.880015,29.7204197],"properties":{"NAME":"Puqi","NAMEASCII":"Puqi","POP_MAX":205164,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.8136389,32.8081641],"properties":{"NAME":"Yunxian","NAMEASCII":"Yunxian","POP_MAX":133558,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.851715,29.6321047],"properties":{"NAME":"Jinshi","NAMEASCII":"Jinshi","POP_MAX":274000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.0300927,25.8004265],"properties":{"NAME":"Chenzhou","NAMEASCII":"Chenzhou","POP_MAX":322997,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.6780493,27.4409465],"properties":{"NAME":"Zhijiang","NAMEASCII":"Zhijiang","POP_MAX":113907,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.9000232,27.8504305],"properties":{"NAME":"Xiangtan","NAMEASCII":"Xiangtan","POP_MAX":2586948,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.7780561,29.4019459],"properties":{"NAME":"Zigong","NAMEASCII":"Zigong","POP_MAX":1105000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.0800024,29.9804297],"properties":{"NAME":"Yaan","NAMEASCII":"Yaan","POP_MAX":340000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.9655627,31.5759396],"properties":{"NAME":"Langzhong","NAMEASCII":"Langzhong","POP_MAX":60542,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[101.9166626,30.950448],"properties":{"NAME":"Rongzhag","NAMEASCII":"Rongzhag","POP_MAX":70000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[100.9781669,22.7806883],"properties":{"NAME":"Simao","NAMEASCII":"Simao","POP_MAX":162725,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.2496984,23.3723576],"properties":{"NAME":"Wenshan","NAMEASCII":"Wenshan","POP_MAX":152388,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.8166499,25.6004645],"properties":{"NAME":"Zhanyi","NAMEASCII":"Zhanyi","POP_MAX":652604,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.4166744,26.3504187],"properties":{"NAME":"Huize","NAMEASCII":"Huize","POP_MAX":5170,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.9300004,40.9603797],"properties":{"NAME":"Chengde","NAMEASCII":"Chengde","POP_MAX":449325,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.8700134,38.3203858],"properties":{"NAME":"Cangzhou","NAMEASCII":"Cangzhou","POP_MAX":527681,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.46889650311108,38.85834026064811],"properties":{"NAME":"Baoding","NAMEASCII":"Baoding","POP_MAX":1107000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.330037,38.3704344],"properties":{"NAME":"Huanghua","NAMEASCII":"Huanghua","POP_MAX":120000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.9999983,38.5004265],"properties":{"NAME":"Dingzhou","NAMEASCII":"Dingzhou","POP_MAX":152934,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.3700016,37.3703921],"properties":{"NAME":"Nangong","NAMEASCII":"Nangong","POP_MAX":82386,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.6800085,36.850398],"properties":{"NAME":"Linqing","NAMEASCII":"Linqing","POP_MAX":110046,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.5000288,37.0499724],"properties":{"NAME":"Xiangtai","NAMEASCII":"Xiangtai","POP_MAX":611739,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.9799996,35.7003906],"properties":{"NAME":"Puyang","NAMEASCII":"Puyang","POP_MAX":666322,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.2200459,35.9503754],"properties":{"NAME":"Hebi","NAMEASCII":"Hebi","POP_MAX":244662,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.8200187,34.0203898],"properties":{"NAME":"Xuchang","NAMEASCII":"Xuchang","POP_MAX":449258,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.6300468,33.6304136],"properties":{"NAME":"Zhoukou","NAMEASCII":"Zhoukou","POP_MAX":377061,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.0800215,32.6803683],"properties":{"NAME":"Dengzhou","NAMEASCII":"Dengzhou","POP_MAX":59338,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.8199768,42.3003754],"properties":{"NAME":"Tieling","NAMEASCII":"Tieling","POP_MAX":340000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.4199776,41.5504212],"properties":{"NAME":"Chaoyang","NAMEASCII":"Chaoyang","POP_MAX":470296,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.3459818,41.2563306],"properties":{"NAME":"Huanren","NAMEASCII":"Huanren","POP_MAX":116621,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.9618896,39.6822923],"properties":{"NAME":"Zhuanghe","NAMEASCII":"Zhuanghe","POP_MAX":261510,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.6199841,35.7904368],"properties":{"NAME":"Yishui","NAMEASCII":"Yishui","POP_MAX":94115,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.0799841,34.7904203],"properties":{"NAME":"Shanxian","NAMEASCII":"Shanxian","POP_MAX":74459,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.6200451,35.5104281],"properties":{"NAME":"Pingyi","NAMEASCII":"Pingyi","POP_MAX":78254,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.9400069,36.7903758],"properties":{"NAME":"Pingdu","NAMEASCII":"Pingdu","POP_MAX":91077,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.6600427,36.2004118],"properties":{"NAME":"Laiwu","NAMEASCII":"Laiwu","POP_MAX":124108,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.9844426355911,37.38045002658038],"properties":{"NAME":"Buizhou","NAMEASCII":"Buizhou","POP_MAX":115893,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.9700166,36.4304236],"properties":{"NAME":"Liaocheng","NAMEASCII":"Liaocheng","POP_MAX":226930,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.4500109,35.4303813],"properties":{"NAME":"Rizhao","NAMEASCII":"Rizhao","POP_MAX":865000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.3000223,37.450413],"properties":{"NAME":"Dezhou","NAMEASCII":"Dezhou","POP_MAX":379555,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.3600187,27.9703457],"properties":{"NAME":"Linchuan","NAMEASCII":"Linchuan","POP_MAX":241104,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.7700288,28.2004092],"properties":{"NAME":"Fengcheng","NAMEASCII":"Fengcheng","POP_MAX":61469,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.9999983,27.1304228],"properties":{"NAME":"Jian","NAMEASCII":"Jian","POP_MAX":520248,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.9699979,28.4703927],"properties":{"NAME":"Shangrao","NAMEASCII":"Shangrao","POP_MAX":1144577,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.1800203,29.2704214],"properties":{"NAME":"Jingdezhen","NAMEASCII":"Jingdezhen","POP_MAX":457298,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.9000093,32.4904057],"properties":{"NAME":"Taizhou","NAMEASCII":"Taizhou","POP_MAX":612356,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.7733597,34.1298664],"properties":{"NAME":"Shuyang","NAMEASCII":"Shuyang","POP_MAX":1770000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.226193115,34.58701405953807],"properties":{"NAME":"Lianyungang","NAMEASCII":"Lianyungang","POP_MAX":715600,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.9000093,28.4504197],"properties":{"NAME":"Lishui","NAMEASCII":"Lishui","POP_MAX":172777,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.4499922,28.6804057],"properties":{"NAME":"Jiaojing","NAMEASCII":"Jiaojing","POP_MAX":471500,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.8699947,28.9704397],"properties":{"NAME":"Quzhou","NAMEASCII":"Quzhou","POP_MAX":370000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[132.5655928,34.2509701],"properties":{"NAME":"Kure","NAMEASCII":"Kure","POP_MAX":196991,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[133.0666475,35.466994],"properties":{"NAME":"Matsue","NAMEASCII":"Matsue","POP_MAX":156811,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[134.2332946,35.500377],"properties":{"NAME":"Tottori","NAMEASCII":"Tottori","POP_MAX":154098,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[129.7177046,33.1631295],"properties":{"NAME":"Sasebo","NAMEASCII":"Sasebo","POP_MAX":237444,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[124.8200191,45.1803805],"properties":{"NAME":"Songyuan","NAMEASCII":"Songyuan","POP_MAX":495900,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[128.2200183,43.3504922],"properties":{"NAME":"Dunhua","NAMEASCII":"Dunhua","POP_MAX":191870,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.1700752,44.4304004],"properties":{"NAME":"Nongan","NAMEASCII":"Nongan","POP_MAX":141482,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.7800402,45.330423],"properties":{"NAME":"Taonan","NAMEASCII":"Taonan","POP_MAX":116611,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.7173287,42.2788522],"properties":{"NAME":"Liuhe","NAMEASCII":"Liuhe","POP_MAX":68938,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.2614298,42.6229397],"properties":{"NAME":"Huinan","NAMEASCII":"Huinan","POP_MAX":66315,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.0561193,42.9426359],"properties":{"NAME":"Panshi","NAMEASCII":"Panshi","POP_MAX":86216,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[127.3459631,43.7162838],"properties":{"NAME":"Jiaohe","NAMEASCII":"Jiaohe","POP_MAX":123018,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.9359623,41.8363469],"properties":{"NAME":"Linjiang","NAMEASCII":"Linjiang","POP_MAX":84315,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.7343444,43.3247831],"properties":{"NAME":"Wangqing","NAMEASCII":"Wangqing","POP_MAX":88732,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.0043632,42.5347538],"properties":{"NAME":"Helong","NAMEASCII":"Helong","POP_MAX":85756,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.9487264,44.4091097],"properties":{"NAME":"Shulan","NAMEASCII":"Shulan","POP_MAX":78764,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.8443493,44.1447331],"properties":{"NAME":"Jiutai","NAMEASCII":"Jiutai","POP_MAX":205399,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.8200146,33.870399],"properties":{"NAME":"Kitakyūshū","NAMEASCII":"Kitakyushu","POP_MAX":997536,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[130.700642,32.8009294],"properties":{"NAME":"Kumamoto","NAMEASCII":"Kumamoto","POP_MAX":718232,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[131.5978999,33.243228],"properties":{"NAME":"Ōita","NAMEASCII":"Oita","POP_MAX":448907,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[105.6686299,38.8390104],"properties":{"NAME":"Alxa Zuoqi","NAMEASCII":"Alxa Zuoqi","POP_MAX":56387,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.0333016,43.5170711],"properties":{"NAME":"Linxi","NAMEASCII":"Linxi","POP_MAX":679,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.1999816,43.5837337],"properties":{"NAME":"Kailu","NAMEASCII":"Kailu","POP_MAX":2809,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.1833606,43.9837093],"properties":{"NAME":"Bairin Zuoqi","NAMEASCII":"Bairin Zuoqi","POP_MAX":50000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.5166548,50.6516227],"properties":{"NAME":"Yitulihe","NAMEASCII":"Yitulihe","POP_MAX":19645,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.7300362,49.2804144],"properties":{"NAME":"Yakeshi","NAMEASCII":"Yakeshi","POP_MAX":116284,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.9333736,48.7838039],"properties":{"NAME":"Bugt","NAMEASCII":"Bugt","POP_MAX":17457,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.2721919,41.0896224],"properties":{"NAME":"Wuyuan","NAMEASCII":"Wuyuan","POP_MAX":30057,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.9711063,41.767643],"properties":{"NAME":"Bayan Obo","NAMEASCII":"Bayan Obo","POP_MAX":27476,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.1443493,40.4546999],"properties":{"NAME":"Fengzhen","NAMEASCII":"Fengzhen","POP_MAX":99174,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.9799906,46.6304212],"properties":{"NAME":"Suihua","NAMEASCII":"Suihua","POP_MAX":252245,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[131.3500081,46.6704187],"properties":{"NAME":"Shuangyashan","NAMEASCII":"Shuangyashan","POP_MAX":500000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[127.9700077,45.2204297],"properties":{"NAME":"Shangzhi","NAMEASCII":"Shangzhi","POP_MAX":96980,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[132.019993,47.2703821],"properties":{"NAME":"Fujin","NAMEASCII":"Fujin","POP_MAX":89442,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.2999898,47.8803965],"properties":{"NAME":"Yian","NAMEASCII":"Yian","POP_MAX":39924,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.409976,46.3903583],"properties":{"NAME":"Tailai","NAMEASCII":"Tailai","POP_MAX":75992,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.1800158,47.3404037],"properties":{"NAME":"Longjiang","NAMEASCII":"Longjiang","POP_MAX":106384,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.5100215,47.9203683],"properties":{"NAME":"Gannan","NAMEASCII":"Gannan","POP_MAX":59239,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.9300195,47.4504228],"properties":{"NAME":"Hailun","NAMEASCII":"Hailun","POP_MAX":109881,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[131.8800016,45.5503837],"properties":{"NAME":"Mishan","NAMEASCII":"Mishan","POP_MAX":87257,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[128.0500028,46.9503758],"properties":{"NAME":"Tieli","NAMEASCII":"Tieli","POP_MAX":109636,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.2799816,45.3503443],"properties":{"NAME":"Shuangcheng","NAMEASCII":"Shuangcheng","POP_MAX":130710,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.98,46.0804289],"properties":{"NAME":"Zhaodong","NAMEASCII":"Zhaodong","POP_MAX":179980,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.2759509,46.2663607],"properties":{"NAME":"Lanxi","NAMEASCII":"Lanxi","POP_MAX":72528,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.8659501,48.0263308],"properties":{"NAME":"Keshan","NAMEASCII":"Keshan","POP_MAX":72403,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.285948,47.1363593],"properties":{"NAME":"Nancha","NAMEASCII":"Nancha","POP_MAX":121367,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.5059346,48.2363438],"properties":{"NAME":"Xinqing","NAMEASCII":"Xinqing","POP_MAX":55415,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[132.9922334,45.7690267],"properties":{"NAME":"Hulin","NAMEASCII":"Hulin","POP_MAX":42559,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.5759468,45.756366],"properties":{"NAME":"Boli","NAMEASCII":"Boli","POP_MAX":95260,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.4659371,44.3313367],"properties":{"NAME":"Ningan","NAMEASCII":"Ningan","POP_MAX":54636,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[136.7627526,35.4230949],"properties":{"NAME":"Gifu","NAMEASCII":"Gifu","POP_MAX":412895,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[136.5166695,34.7170657],"properties":{"NAME":"Tsu","NAMEASCII":"Tsu","POP_MAX":500000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[137.9700175,36.2404352],"properties":{"NAME":"Matsumoto","NAMEASCII":"Matsumoto","POP_MAX":224926,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[138.3853926,34.9858348],"properties":{"NAME":"Shizuoka","NAMEASCII":"Shizuoka","POP_MAX":701561,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[137.7327193,34.7180733],"properties":{"NAME":"Hamamatsu","NAMEASCII":"Hamamatsu","POP_MAX":977023,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[143.1700101,42.9304144],"properties":{"NAME":"Obihiro","NAMEASCII":"Obihiro","POP_MAX":173890,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[141.5500057,42.6504057],"properties":{"NAME":"Tomakomai","NAMEASCII":"Tomakomai","POP_MAX":174806,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[143.8999914,43.8503583],"properties":{"NAME":"Kitami","NAMEASCII":"Kitami","POP_MAX":113137,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.9783093,43.1887191],"properties":{"NAME":"Otaru","NAMEASCII":"Otaru","POP_MAX":143792,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[136.2200468,36.0704197],"properties":{"NAME":"Fukui","NAMEASCII":"Fukui","POP_MAX":248707,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[135.3333309,35.4504059],"properties":{"NAME":"Maizuru","NAMEASCII":"Maizuru","POP_MAX":92465,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[135.1677079,34.2231165],"properties":{"NAME":"Wakayama","NAMEASCII":"Wakayama","POP_MAX":440006,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.4800451,36.3704273],"properties":{"NAME":"Mito","NAMEASCII":"Mito","POP_MAX":353892,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[138.5833134,35.6503937],"properties":{"NAME":"Kōfu","NAMEASCII":"Kofu","POP_MAX":197540,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.8900459,37.0553467],"properties":{"NAME":"Iwaki","NAMEASCII":"Iwaki","POP_MAX":357309,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[138.8600406,37.450413],"properties":{"NAME":"Nagaoka","NAMEASCII":"Nagaoka","POP_MAX":195318,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.3200032,38.2704922],"properties":{"NAME":"Yamagata","NAMEASCII":"Yamagata","POP_MAX":272209,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.830214,38.7004142],"properties":{"NAME":"Tsuruoka","NAMEASCII":"Tsuruoka","POP_MAX":99820,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[16.8999397,-4.8295902],"properties":{"NAME":"Kenge","NAMEASCII":"Kenge","POP_MAX":241,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[16.23998,-2.1595207],"properties":{"NAME":"Bolobo","NAMEASCII":"Bolobo","POP_MAX":27862,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[19.0000183,-7.2829289],"properties":{"NAME":"Kahemba","NAMEASCII":"Kahemba","POP_MAX":50000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[18.599991,-4.5496073],"properties":{"NAME":"Bulungu","NAMEASCII":"Bulungu","POP_MAX":48344,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[16.5166556,-5.5829293],"properties":{"NAME":"Lusanga","NAMEASCII":"Lusanga","POP_MAX":177,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[19.5300118,-4.0396126],"properties":{"NAME":"Mangai","NAMEASCII":"Mangai","POP_MAX":37188,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[16.8299698,-6.4796187],"properties":{"NAME":"Kasongo-Lunda","NAMEASCII":"Kasongo-Lunda","POP_MAX":20060,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[16.9200419,-3.0196232],"properties":{"NAME":"Mushie","NAMEASCII":"Mushie","POP_MAX":33062,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[22.8700146,-6.5095394],"properties":{"NAME":"Dibaya","NAMEASCII":"Dibaya","POP_MAX":603,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[21.5699906,-4.8396155],"properties":{"NAME":"Mweka","NAMEASCII":"Mweka","POP_MAX":50675,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[21.4100004,-5.3495068],"properties":{"NAME":"Luebo","NAMEASCII":"Luebo","POP_MAX":35183,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[22.2599743,-5.5096004],"properties":{"NAME":"Demba","NAMEASCII":"Demba","POP_MAX":22263,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[20.6099975,-4.3195955],"properties":{"NAME":"Ilebo","NAMEASCII":"Ilebo","POP_MAX":107093,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[12.3549975,-5.9229085],"properties":{"NAME":"Moanda","NAMEASCII":"Moanda","POP_MAX":153915,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[14.4333203,-5.549598],"properties":{"NAME":"Kimpese","NAMEASCII":"Kimpese","POP_MAX":10578,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[15.179993,-4.5795797],"properties":{"NAME":"Kasangulu","NAMEASCII":"Kasangulu","POP_MAX":27961,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[14.8600126,-5.2496163],"properties":{"NAME":"Mbanza-Ngungu","NAMEASCII":"Mbanza-Ngungu","POP_MAX":197545,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[12.9300012,-4.9695817],"properties":{"NAME":"Tshela","NAMEASCII":"Tshela","POP_MAX":38845,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[28.4325175,-3.0382267],"properties":{"NAME":"Mwenga","NAMEASCII":"Mwenga","POP_MAX":2216,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.6700411,-3.5995361],"properties":{"NAME":"Kampene","NAMEASCII":"Kampene","POP_MAX":37034,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.430004,-2.5095768],"properties":{"NAME":"Kalima","NAMEASCII":"Kalima","POP_MAX":194,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.583328,-0.7328894],"properties":{"NAME":"Lubutu","NAMEASCII":"Lubutu","POP_MAX":1313,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[24.4799939,-6.1296142],"properties":{"NAME":"Kabinda","NAMEASCII":"Kabinda","POP_MAX":59004,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[25.7499939,-5.3895561],"properties":{"NAME":"Lubao","NAMEASCII":"Lubao","POP_MAX":43068,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.4300321,-4.9695817],"properties":{"NAME":"Lusambo","NAMEASCII":"Lusambo","POP_MAX":41416,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.9600256,-6.7396028],"properties":{"NAME":"Gandajika","NAMEASCII":"Gandajika","POP_MAX":154425,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.591413638094178,-3.532144326154365],"properties":{"NAME":"Lodja","NAMEASCII":"Lodja","POP_MAX":68244,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[22.3333032,-10.6996195],"properties":{"NAME":"Dilolo","NAMEASCII":"Dilolo","POP_MAX":7854,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[28.0166772,-5.9495735],"properties":{"NAME":"Nyunzu","NAMEASCII":"Nyunzu","POP_MAX":15397,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.4499792,-10.3662032],"properties":{"NAME":"Kasaji","NAMEASCII":"Kasaji","POP_MAX":11969,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[28.6999947,-8.6995866],"properties":{"NAME":"Luanza","NAMEASCII":"Luanza","POP_MAX":861,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.7199841,-7.0595833],"properties":{"NAME":"Moba","NAMEASCII":"Moba","POP_MAX":10006,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[25.8400142,-9.2095813],"properties":{"NAME":"Bukama","NAMEASCII":"Bukama","POP_MAX":38770,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[24.1700386,-7.5696297],"properties":{"NAME":"Kaniama","NAMEASCII":"Kaniama","POP_MAX":36481,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[27.2500057,-11.7596065],"properties":{"NAME":"Kipushi","NAMEASCII":"Kipushi","POP_MAX":113347,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.6000195,-10.8695833],"properties":{"NAME":"Kambove","NAMEASCII":"Kambove","POP_MAX":36702,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.9799963,-5.3794791],"properties":{"NAME":"Kongolo","NAMEASCII":"Kongolo","POP_MAX":105202,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.9100264,-6.0496191],"properties":{"NAME":"Kabalo","NAMEASCII":"Kabalo","POP_MAX":29833,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.4500264,0.4904468],"properties":{"NAME":"Beni","NAMEASCII":"Beni","POP_MAX":332903,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[101.3964359,-2.0631441],"properties":{"NAME":"Sungaipenuh","NAMEASCII":"Sungaipenuh","POP_MAX":95913,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.9500459,-2.5329346],"properties":{"NAME":"Sampit","NAMEASCII":"Sampit","POP_MAX":92710,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[114.38447569161237,-2.983715131744292],"properties":{"NAME":"Kualakapuas","NAMEASCII":"Kualakapuas","POP_MAX":35632,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[113.9099873,-2.2095951],"properties":{"NAME":"Palangkaraya","NAMEASCII":"Palangkaraya","POP_MAX":148289,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-91.469983,15.3203943],"properties":{"NAME":"Huehuetenango","NAMEASCII":"Huehuetenango","POP_MAX":85992,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-89.8832839,16.9336808],"properties":{"NAME":"Flores","NAMEASCII":"Flores","POP_MAX":38035,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.1199878,16.7804344],"properties":{"NAME":"La Libertad","NAMEASCII":"La Libertad","POP_MAX":8646,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.820032,13.9397296],"properties":{"NAME":"San Jose","NAMEASCII":"San Jose","POP_MAX":18655,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-90.7799992,14.3004049],"properties":{"NAME":"Escuintla","NAMEASCII":"Escuintla","POP_MAX":107638,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-91.5099805,14.530365],"properties":{"NAME":"Mazatenango","NAMEASCII":"Mazatenango","POP_MAX":64652,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-71.6500299,19.8669902],"properties":{"NAME":"Monte Cristi","NAMEASCII":"Monte Cristi","POP_MAX":17001,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-71.099986,18.2003736],"properties":{"NAME":"Barahona","NAMEASCII":"Barahona","POP_MAX":90128,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-68.4499669,18.7170087],"properties":{"NAME":"Bávaro","NAMEASCII":"Bavaro","POP_MAX":795,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-54.0325346,5.4976241],"properties":{"NAME":"Saint-Laurent-du-Maroni","NAMEASCII":"Saint-Laurent-du-Maroni","POP_MAX":24287,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-53.2199921,5.4804265],"properties":{"NAME":"Iracoubo","NAMEASCII":"Iracoubo","POP_MAX":1536,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-14.6500208,13.4336361],"properties":{"NAME":"Bansang","NAMEASCII":"Bansang","POP_MAX":7615,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[-16.6599498,13.2803638],"properties":{"NAME":"Brikama","NAMEASCII":"Brikama","POP_MAX":195136,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[-0.8399852,9.4004197],"properties":{"NAME":"Tamale","NAMEASCII":"Tamale","POP_MAX":360579,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-0.0166504,9.4337252],"properties":{"NAME":"Yendi","NAMEASCII":"Yendi","POP_MAX":42972,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-0.8499846,10.7903866],"properties":{"NAME":"Bolgatanga","NAMEASCII":"Bolgatanga","POP_MAX":82177,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-0.239996,11.0603959],"properties":{"NAME":"Bawku","NAMEASCII":"Bawku","POP_MAX":73594,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-2.5000131,10.0604053],"properties":{"NAME":"Wa","NAMEASCII":"Wa","POP_MAX":78107,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-1.6599868,6.190409],"properties":{"NAME":"Obuasi","NAMEASCII":"Obuasi","POP_MAX":180117,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-2.5900076,7.4503837],"properties":{"NAME":"Berekum","NAMEASCII":"Berekum","POP_MAX":46287,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-0.6300497,5.3504344],"properties":{"NAME":"Winneba","NAMEASCII":"Winneba","POP_MAX":44254,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-1.249986,5.1103715],"properties":{"NAME":"Cape Coast","NAMEASCII":"Cape Coast","POP_MAX":143015,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-0.7800147,6.5504645],"properties":{"NAME":"Nkawkaw","NAMEASCII":"Nkawkaw","POP_MAX":62667,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-0.2600206,6.0904151],"properties":{"NAME":"Koforidua","NAMEASCII":"Koforidua","POP_MAX":156653,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[0.0100146,5.640365],"properties":{"NAME":"Tema","NAMEASCII":"Tema","POP_MAX":209000,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[0.4699865,6.6004098],"properties":{"NAME":"Ho","NAMEASCII":"Ho","POP_MAX":93044,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[14.820015,-0.8795988],"properties":{"NAME":"Ewo","NAMEASCII":"Ewo","POP_MAX":10650,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[13.9332991,1.0170813],"properties":{"NAME":"Mékambo","NAMEASCII":"Mekambo","POP_MAX":3170,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[12.8665942,0.5670829],"properties":{"NAME":"Makokou","NAMEASCII":"Makokou","POP_MAX":17070,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[11.5666219,0.7837105],"properties":{"NAME":"Mitzik","NAMEASCII":"Mitzik","POP_MAX":4111,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[11.4833711,2.083657],"properties":{"NAME":"Bitam","NAMEASCII":"Bitam","POP_MAX":17637,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[75.7200187,32.2703416],"properties":{"NAME":"Pathankot","NAMEASCII":"Pathankot","POP_MAX":253987,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.0299833,29.4903821],"properties":{"NAME":"Sirsa","NAMEASCII":"Sirsa","POP_MAX":181639,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.9699682,29.4004134],"properties":{"NAME":"Panipat","NAMEASCII":"Panipat","POP_MAX":292808,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.9699682,29.680448],"properties":{"NAME":"Karnal","NAMEASCII":"Karnal","POP_MAX":225049,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.3500248,34.2004305],"properties":{"NAME":"Baramula","NAMEASCII":"Baramula","POP_MAX":167986,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.5700256,14.7504291],"properties":{"NAME":"Proddatur","NAMEASCII":"Proddatur","POP_MAX":197451,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.48663840446497,15.464096780310284],"properties":{"NAME":"Nandyal","NAMEASCII":"Nandyal","POP_MAX":188654,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.4899882,13.7803591],"properties":{"NAME":"Hindupur","NAMEASCII":"Hindupur","POP_MAX":168312,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.4199996,13.6504187],"properties":{"NAME":"Tirupati","NAMEASCII":"Tirupati","POP_MAX":287035,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.05770666642721,15.505577334845766],"properties":{"NAME":"Ongole","NAMEASCII":"Ongole","POP_MAX":202860,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[83.40137201021288,18.110991898813182],"properties":{"NAME":"Vizianagaram","NAMEASCII":"Vizianagaram","POP_MAX":179358,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[81.7899841,17.0303416],"properties":{"NAME":"Rajahmundry","NAMEASCII":"Rajahmundry","POP_MAX":304804,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[81.1799955,16.2004181],"properties":{"NAME":"Machilipatnam","NAMEASCII":"Machilipatnam","POP_MAX":192827,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.1600577,17.2804297],"properties":{"NAME":"Khammam","NAMEASCII":"Khammam","POP_MAX":290839,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.3399951,15.860413],"properties":{"NAME":"Chirala","NAMEASCII":"Chirala","POP_MAX":253000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.1099926,18.4604352],"properties":{"NAME":"Karimnagar","NAMEASCII":"Karimnagar","POP_MAX":288251,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.1000284,18.6703965],"properties":{"NAME":"Nizamabad","NAMEASCII":"Nizamabad","POP_MAX":388505,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.5699926,8.9003727],"properties":{"NAME":"Kollam","NAMEASCII":"Kollam","POP_MAX":394163,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.3700048,9.5004136],"properties":{"NAME":"Alappuzha","NAMEASCII":"Alappuzha","POP_MAX":176783,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.9000175,19.8204297],"properties":{"NAME":"Puri","NAMEASCII":"Puri","POP_MAX":201026,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[83.9700577,21.4704065],"properties":{"NAME":"Sambalpur","NAMEASCII":"Sambalpur","POP_MAX":310852,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[84.8299536,22.2304118],"properties":{"NAME":"Raurkela","NAMEASCII":"Raurkela","POP_MAX":625831,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.6368672,10.5625733],"properties":{"NAME":"Kavaratti","NAMEASCII":"Kavaratti","POP_MAX":10688,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.9199971,12.5703813],"properties":{"NAME":"Mandya","NAMEASCII":"Mandya","POP_MAX":285034,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.1333597,13.1337061],"properties":{"NAME":"Kolar","NAMEASCII":"Kolar","POP_MAX":144625,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.5600284,13.9303758],"properties":{"NAME":"Shivamogga","NAMEASCII":"Shivamogga","POP_MAX":654055,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.3550093,16.2103658],"properties":{"NAME":"Raichur","NAMEASCII":"Raichur","POP_MAX":255240,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.3750175,15.2803967],"properties":{"NAME":"Hosapete","NAMEASCII":"Hosapete","POP_MAX":286007,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.5175317,17.9229228],"properties":{"NAME":"Bidar","NAMEASCII":"Bidar","POP_MAX":300136,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.575024,16.8604037],"properties":{"NAME":"Sangli","NAMEASCII":"Sangli","POP_MAX":601214,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.7600069,19.2703858],"properties":{"NAME":"Parbhani","NAMEASCII":"Parbhani","POP_MAX":378326,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.5250012,20.5603587],"properties":{"NAME":"Malegaon","NAMEASCII":"Malegaon","POP_MAX":690844,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[92.7359826,11.6670256],"properties":{"NAME":"Port Blair","NAMEASCII":"Port Blair","POP_MAX":127562,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[92.8000097,26.6337606],"properties":{"NAME":"Tezpur","NAMEASCII":"Tezpur","POP_MAX":58851,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[92.7900362,24.7904106],"properties":{"NAME":"Silchar","NAMEASCII":"Silchar","POP_MAX":152393,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[94.1165702,25.6669979],"properties":{"NAME":"Kohima","NAMEASCII":"Kohima","POP_MAX":92113,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[91.8800142,25.5704922],"properties":{"NAME":"Shillong","NAMEASCII":"Shillong","POP_MAX":375527,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[177.4166019,-17.7995996],"properties":{"NAME":"Nandi","NAMEASCII":"Nandi","POP_MAX":42284,"ISO_A2":"FJ","SOV_A3":"FJI"}},{"type":"Point","coordinates":[177.4666247,-17.6160966],"properties":{"NAME":"Lautoka","NAMEASCII":"Lautoka","POP_MAX":55894,"ISO_A2":"FJ","SOV_A3":"FJI"}},{"type":"Point","coordinates":[10.2166267,-0.6996098],"properties":{"NAME":"Lambaréné","NAMEASCII":"Lambarene","POP_MAX":25310,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[10.3832316,-0.3329138],"properties":{"NAME":"Bifoum","NAMEASCII":"Bifoum","POP_MAX":134,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[11.3832739,-2.3829179],"properties":{"NAME":"Ndende","NAMEASCII":"Ndende","POP_MAX":6200,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[11.0166813,-1.8661535],"properties":{"NAME":"Mouila","NAMEASCII":"Mouila","POP_MAX":28000,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[9.2499674,-1.5662235],"properties":{"NAME":"Omboué","NAMEASCII":"Omboue","POP_MAX":1667,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[13.2000105,-1.5655001],"properties":{"NAME":"Moanda","NAMEASCII":"Moanda","POP_MAX":30151,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[13.679547493075411,-0.656775369164836],"properties":{"NAME":"Okandja","NAMEASCII":"Okandja","POP_MAX":7155,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[12.4833101,-1.1329166],"properties":{"NAME":"Koulamoutou","NAMEASCII":"Koulamoutou","POP_MAX":16222,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[-1.6499874,49.6503919],"properties":{"NAME":"Cherbourg","NAMEASCII":"Cherbourg","POP_MAX":60991,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-0.3499893,49.1837537],"properties":{"NAME":"Caen","NAMEASCII":"Caen","POP_MAX":190099,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-3.3665752,47.7504045],"properties":{"NAME":"Lorient","NAMEASCII":"Lorient","POP_MAX":84952,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-4.4950076,48.3904429],"properties":{"NAME":"Brest","NAMEASCII":"Brest","POP_MAX":144899,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[0.202581510662092,48.00439087635541],"properties":{"NAME":"Le Mans","NAMEASCII":"Le Mans","POP_MAX":144515,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-1.5900169,47.2103858],"properties":{"NAME":"Nantes","NAMEASCII":"Nantes","POP_MAX":438537,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[0.6333357,44.2004144],"properties":{"NAME":"Agen","NAMEASCII":"Agen","POP_MAX":58223,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[8.7282938,41.9270648],"properties":{"NAME":"Ajaccio","NAMEASCII":"Ajaccio","POP_MAX":54364,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[9.4500069,42.7031673],"properties":{"NAME":"Bastia","NAMEASCII":"Bastia","POP_MAX":41001,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[5.9188216,43.1341865],"properties":{"NAME":"Toulon","NAMEASCII":"Toulon","POP_MAX":357693,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.2099743,43.3504922],"properties":{"NAME":"Béziers","NAMEASCII":"Beziers","POP_MAX":81438,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.8699857,43.6103988],"properties":{"NAME":"Montpellier","NAMEASCII":"Montpellier","POP_MAX":327254,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[4.3500081,43.8303854],"properties":{"NAME":"Nîmes","NAMEASCII":"Nimes","POP_MAX":169547,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.4166801,46.117145],"properties":{"NAME":"Vichy","NAMEASCII":"Vichy","POP_MAX":43158,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.1666695,46.9837329],"properties":{"NAME":"Nevers","NAMEASCII":"Nevers","POP_MAX":45929,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.5665934,47.8004273],"properties":{"NAME":"Auxerre","NAMEASCII":"Auxerre","POP_MAX":41516,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[5.0300183,47.3304043],"properties":{"NAME":"Dijon","NAMEASCII":"Dijon","POP_MAX":169946,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[2.3999979,47.0837268],"properties":{"NAME":"Bourges","NAMEASCII":"Bourges","POP_MAX":72340,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[0.6999467,47.3803754],"properties":{"NAME":"Tours","NAMEASCII":"Tours","POP_MAX":236096,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.9000284,47.9004212],"properties":{"NAME":"Orléans","NAMEASCII":"Orleans","POP_MAX":217301,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.0833341,49.9337337],"properties":{"NAME":"Dieppe","NAMEASCII":"Dieppe","POP_MAX":42461,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.0799751,49.4304053],"properties":{"NAME":"Rouen","NAMEASCII":"Rouen","POP_MAX":532559,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[2.1333475,48.8004696],"properties":{"NAME":"Versailles","NAMEASCII":"Versailles","POP_MAX":85416,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.5333325,45.1504081],"properties":{"NAME":"Brive","NAMEASCII":"Brive","POP_MAX":55448,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[4.0833577,48.3403943],"properties":{"NAME":"Troyes","NAMEASCII":"Troyes","POP_MAX":61703,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[4.029976,49.2503904],"properties":{"NAME":"Reims","NAMEASCII":"Reims","POP_MAX":196565,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.8333142,50.9504159],"properties":{"NAME":"Calais","NAMEASCII":"Calais","POP_MAX":92201,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[2.300004,49.9003766],"properties":{"NAME":"Amiens","NAMEASCII":"Amiens","POP_MAX":143086,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[7.34998,47.7504045],"properties":{"NAME":"Mulhouse","NAMEASCII":"Mulhouse","POP_MAX":215454,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[6.2000244,48.6836808],"properties":{"NAME":"Nancy","NAMEASCII":"Nancy","POP_MAX":268976,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[6.1800256,49.1203467],"properties":{"NAME":"Metz","NAMEASCII":"Metz","POP_MAX":409186,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-72.5499492,-47.2662764],"properties":{"NAME":"Cochrane","NAMEASCII":"Cochrane","POP_MAX":4441,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-69.6833025,-20.9828678],"properties":{"NAME":"Lagunas","NAMEASCII":"Lagunas","POP_MAX":10,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-69.8000137,-20.2696297],"properties":{"NAME":"Pozo Almonte","NAMEASCII":"Pozo Almonte","POP_MAX":10830,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-68.0166342,-23.1828886],"properties":{"NAME":"Toconao","NAMEASCII":"Toconao","POP_MAX":378,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.2200045,-28.4695943],"properties":{"NAME":"Huasco","NAMEASCII":"Huasco","POP_MAX":2558,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.0499984,-26.3696191],"properties":{"NAME":"Diego de Almagro","NAMEASCII":"Diego de Almagro","POP_MAX":18137,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.8300283,-27.0696281],"properties":{"NAME":"Caldera","NAMEASCII":"Caldera","POP_MAX":10259,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.3436145,-29.9529146],"properties":{"NAME":"Coquimbo","NAMEASCII":"Coquimbo","POP_MAX":161317,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.7399821,-30.0294991],"properties":{"NAME":"Vicuña","NAMEASCII":"Vicuna","POP_MAX":13496,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.1700076,-31.6296081],"properties":{"NAME":"Illapel","NAMEASCII":"Illapel","POP_MAX":26340,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.9799675,-31.7795731],"properties":{"NAME":"Salamanca","NAMEASCII":"Salamanca","POP_MAX":20214,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.5999907,-32.8295866],"properties":{"NAME":"Los Andes","NAMEASCII":"Los Andes","POP_MAX":56859,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.6099807,-33.5995137],"properties":{"NAME":"San Antonio","NAMEASCII":"San Antonio","POP_MAX":104292,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.3400137,-38.2395406],"properties":{"NAME":"Victoria","NAMEASCII":"Victoria","POP_MAX":24555,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.1699889,-38.7094861],"properties":{"NAME":"Carahue","NAMEASCII":"Carahue","POP_MAX":11875,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.8299838,-39.8495198],"properties":{"NAME":"Los Lagos","NAMEASCII":"Los Lagos","POP_MAX":12813,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.1600153,-37.0895849],"properties":{"NAME":"Lota","NAMEASCII":"Lota","POP_MAX":49763,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.6499854,-37.6095532],"properties":{"NAME":"Lebu","NAMEASCII":"Lebu","POP_MAX":22345,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.5999884,-43.0996057],"properties":{"NAME":"Quellón","NAMEASCII":"Quellon","POP_MAX":7029,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.419983,-35.329589],"properties":{"NAME":"Constitución","NAMEASCII":"Constitucion","POP_MAX":37917,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-51.1785185,68.8192701],"properties":{"NAME":"Qasigiannguit","NAMEASCII":"Qasigiannguit","POP_MAX":1341,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[18.0400252,1.6403766],"properties":{"NAME":"Impfondo","NAMEASCII":"Impfondo","POP_MAX":20859,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[14.5800297,1.6403766],"properties":{"NAME":"Sembe","NAMEASCII":"Sembe","POP_MAX":9679,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[15.2166833,2.0337376],"properties":{"NAME":"Moloundou","NAMEASCII":"Moloundou","POP_MAX":12244,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[19.9147428,39.615423],"properties":{"NAME":"Kerkira","NAMEASCII":"Kerkira","POP_MAX":38517,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[22.3793986,37.5091433],"properties":{"NAME":"Tripoli","NAMEASCII":"Tripoli","POP_MAX":28970,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[22.4296797,37.0737177],"properties":{"NAME":"Sparti","NAMEASCII":"Sparti","POP_MAX":16187,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[21.4077266,38.6217627],"properties":{"NAME":"Agrinio","NAMEASCII":"Agrinio","POP_MAX":75233,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[21.4499979,37.6837321],"properties":{"NAME":"Pirgos","NAMEASCII":"Pirgos","POP_MAX":22399,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[22.4200162,39.6304092],"properties":{"NAME":"Larissa","NAMEASCII":"Larissa","POP_MAX":128758,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[20.8508614,39.6679004],"properties":{"NAME":"Ioanina","NAMEASCII":"Ioanina","POP_MAX":86304,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[26.5546476,39.1104151],"properties":{"NAME":"Mitilini","NAMEASCII":"Mitilini","POP_MAX":29328,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[26.1358101,38.3681089],"properties":{"NAME":"Hios","NAMEASCII":"Hios","POP_MAX":26891,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[23.6123982,38.4639946],"properties":{"NAME":"Chalkida","NAMEASCII":"Chalkida","POP_MAX":71842,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[26.0985514,35.2004212],"properties":{"NAME":"Sitia","NAMEASCII":"Sitia","POP_MAX":8833,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[22.5024918,40.2723338],"properties":{"NAME":"Katerini","NAMEASCII":"Katerini","POP_MAX":53293,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[23.5497147,41.0859792],"properties":{"NAME":"Seres","NAMEASCII":"Seres","POP_MAX":55886,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[24.8835868,41.1417898],"properties":{"NAME":"Xanthi","NAMEASCII":"Xanthi","POP_MAX":50570,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[24.9332995,37.450413],"properties":{"NAME":"Ermoupoli","NAMEASCII":"Ermoupoli","POP_MAX":12260,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[27.2888147,36.8937287],"properties":{"NAME":"Kos","NAMEASCII":"Kos","POP_MAX":19244,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[28.2225044,36.441224],"properties":{"NAME":"Rodos","NAMEASCII":"Rodos","POP_MAX":56969,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[41.671606,42.1556555],"properties":{"NAME":"Poti","NAMEASCII":"Poti","POP_MAX":47149,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[45.0500044,41.5703683],"properties":{"NAME":"Rustavi","NAMEASCII":"Rustavi","POP_MAX":157063,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[42.6872029,37.1445402],"properties":{"NAME":"Zakho","NAMEASCII":"Zakho","POP_MAX":134863,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[42.4497497,36.3759825],"properties":{"NAME":"Tall Afar","NAMEASCII":"Tall Afar","POP_MAX":144465,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[43.6769616,34.5970471],"properties":{"NAME":"Tikrit","NAMEASCII":"Tikrit","POP_MAX":56591,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[34.9780789,32.8223573],"properties":{"NAME":"Haifa","NAMEASCII":"Haifa","POP_MAX":1011000,"ISO_A2":"IL","SOV_A3":"IS1"}},{"type":"Point","coordinates":[35.2955094,32.7039844],"properties":{"NAME":"Nazareth","NAMEASCII":"Nazareth","POP_MAX":151459,"ISO_A2":"IL","SOV_A3":"IS1"}},{"type":"Point","coordinates":[44.0244856,32.6149201],"properties":{"NAME":"Karbala","NAMEASCII":"Karbala","POP_MAX":510692,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[39.5300313,9.6803768],"properties":{"NAME":"Debre Birhan","NAMEASCII":"Debre Birhan","POP_MAX":65231,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[40.0165649,11.1837476],"properties":{"NAME":"Bati","NAMEASCII":"Bati","POP_MAX":19260,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.4699833,14.2804319],"properties":{"NAME":"Adigrat","NAMEASCII":"Adigrat","POP_MAX":104021,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[38.7200032,14.1304153],"properties":{"NAME":"Aksum","NAMEASCII":"Aksum","POP_MAX":47487,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[38.4099963,6.7504265],"properties":{"NAME":"Yirga Alem","NAMEASCII":"Yirga Alem","POP_MAX":36292,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[37.8500305,7.5503776],"properties":{"NAME":"Hosaina","NAMEASCII":"Hosaina","POP_MAX":89300,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[38.3100024,6.4104214],"properties":{"NAME":"Dila","NAMEASCII":"Dila","POP_MAX":47021,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[37.9700232,8.5304212],"properties":{"NAME":"Giyon","NAMEASCII":"Giyon","POP_MAX":114534,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[37.8500305,8.9803937],"properties":{"NAME":"Hagere Hiywet","NAMEASCII":"Hagere Hiywet","POP_MAX":43920,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[36.5300077,9.0904645],"properties":{"NAME":"Nekemte","NAMEASCII":"Nekemte","POP_MAX":73018,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.1399259,7.9504049],"properties":{"NAME":"Asela","NAMEASCII":"Asela","POP_MAX":82240,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[38.590037,7.200399],"properties":{"NAME":"Shashemene","NAMEASCII":"Shashemene","POP_MAX":114350,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[34.7999841,8.5337285],"properties":{"NAME":"Dembi Dolo","NAMEASCII":"Dembi Dolo","POP_MAX":27780,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[35.833306,9.1670231],"properties":{"NAME":"Gimbi","NAMEASCII":"Gimbi","POP_MAX":31809,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[34.5333337,10.066994],"properties":{"NAME":"Asosa","NAMEASCII":"Asosa","POP_MAX":30512,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[42.7899873,9.3504228],"properties":{"NAME":"Jijiga","NAMEASCII":"Jijiga","POP_MAX":56821,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[13.1000166,54.3004181],"properties":{"NAME":"Stralsund","NAMEASCII":"Stralsund","POP_MAX":61368,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[12.1499971,54.0703805],"properties":{"NAME":"Rostock","NAMEASCII":"Rostock","POP_MAX":203080,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[26.6000195,67.4170593],"properties":{"NAME":"Sodankylä","NAMEASCII":"Sodankyla","POP_MAX":8942,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[25.7499939,62.2603457],"properties":{"NAME":"Jyväskylä","NAMEASCII":"Jyvaskyla","POP_MAX":98136,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[27.6949397,62.8942863],"properties":{"NAME":"Kuopio","NAMEASCII":"Kuopio","POP_MAX":91900,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[28.1833337,61.0670593],"properties":{"NAME":"Lappeenranta","NAMEASCII":"Lappeenranta","POP_MAX":59276,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[25.6660197,60.4003559],"properties":{"NAME":"Porvoo","NAMEASCII":"Porvoo","POP_MAX":12242,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[57.4449068,49.4730642],"properties":{"NAME":"Oktyabrsk","NAMEASCII":"Oktyabrsk","POP_MAX":28196,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[57.334991,49.9031671],"properties":{"NAME":"Algha","NAMEASCII":"Algha","POP_MAX":28267,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[55.8739949,48.6916907],"properties":{"NAME":"Bayghanin","NAMEASCII":"Bayghanin","POP_MAX":7657,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[58.1441923,48.8267729],"properties":{"NAME":"Embi","NAMEASCII":"Embi","POP_MAX":18760,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[61.2399206,52.1929757],"properties":{"NAME":"Zhetiqara","NAMEASCII":"Zhetiqara","POP_MAX":46740,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[62.0502071,53.750555],"properties":{"NAME":"Komsomolets","NAMEASCII":"Komsomolets","POP_MAX":9838,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[62.5749296,52.6980095],"properties":{"NAME":"Tobol","NAMEASCII":"Tobol","POP_MAX":7155,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[64.5999739,52.4579983],"properties":{"NAME":"Qusmuryn","NAMEASCII":"Qusmuryn","POP_MAX":8049,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[66.7500236,44.1670056],"properties":{"NAME":"Shieli","NAMEASCII":"Shieli","POP_MAX":29832,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.5797867,47.6713654],"properties":{"NAME":"Makhambet","NAMEASCII":"Makhambet","POP_MAX":8905,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.1449296,50.1914958],"properties":{"NAME":"Chapaev","NAMEASCII":"Chapaev","POP_MAX":6000,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[46.8772314,49.4276406],"properties":{"NAME":"Zhanibek","NAMEASCII":"Zhanibek","POP_MAX":8212,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[53.0348917,51.171436],"properties":{"NAME":"Aqsay","NAMEASCII":"Aqsay","POP_MAX":34799,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[66.3774882,51.9569694],"properties":{"NAME":"Esil","NAMEASCII":"Esil","POP_MAX":13504,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[66.3074666,51.1020604],"properties":{"NAME":"Derzhavinsk","NAMEASCII":"Derzhavinsk","POP_MAX":15848,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[69.8327811,51.6324156],"properties":{"NAME":"Zhaltyr","NAMEASCII":"Zhaltyr","POP_MAX":694,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[70.4099552,52.6403644],"properties":{"NAME":"Makinsk","NAMEASCII":"Makinsk","POP_MAX":23020,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[71.9597314,52.4501951],"properties":{"NAME":"Aqsu","NAMEASCII":"Aqsu","POP_MAX":8543,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[71.7098759,51.7502379],"properties":{"NAME":"Zholymbet","NAMEASCII":"Zholymbet","POP_MAX":6876,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[73.1049328,51.6303227],"properties":{"NAME":"Erymentau","NAMEASCII":"Erymentau","POP_MAX":25141,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[73.6191133,46.119548],"properties":{"NAME":"Saryshaghan","NAMEASCII":"Saryshaghan","POP_MAX":4365,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[70.7999056,48.0252714],"properties":{"NAME":"Qarazhal","NAMEASCII":"Qarazhal","POP_MAX":22170,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[71.6499312,48.6903213],"properties":{"NAME":"Atasu","NAMEASCII":"Atasu","POP_MAX":19616,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[72.3414135,53.6367635],"properties":{"NAME":"Kishkenekol","NAMEASCII":"Kishkenekol","POP_MAX":6779,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[69.7637931,53.8481201],"properties":{"NAME":"Tayynsha","NAMEASCII":"Tayynsha","POP_MAX":13148,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[70.4399792,54.9053166],"properties":{"NAME":"Bulaevo","NAMEASCII":"Bulaevo","POP_MAX":9886,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[75.449906,53.3453085],"properties":{"NAME":"Ertis","NAMEASCII":"Ertis","POP_MAX":9216,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[76.0899703,53.0803634],"properties":{"NAME":"Kachiry","NAMEASCII":"Kachiry","POP_MAX":8931,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[84.8598225,47.4752275],"properties":{"NAME":"Zaysan","NAMEASCII":"Zaysan","POP_MAX":17600,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[84.2548466,49.7452698],"properties":{"NAME":"Zyryanovsk","NAMEASCII":"Zyryanovsk","POP_MAX":49658,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[83.5149434,50.3553876],"properties":{"NAME":"Ridder","NAMEASCII":"Ridder","POP_MAX":56756,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[81.0549385,49.6003174],"properties":{"NAME":"Shar","NAMEASCII":"Shar","POP_MAX":9087,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[81.6048274,47.1001858],"properties":{"NAME":"Urzhar","NAMEASCII":"Urzhar","POP_MAX":14826,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[79.9149047,45.42034],"properties":{"NAME":"Sarqan","NAMEASCII":"Sarqan","POP_MAX":76919,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[77.9699589,45.2653365],"properties":{"NAME":"Ushtobe","NAMEASCII":"Ushtobe","POP_MAX":20492,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[79.4702807,43.5420825],"properties":{"NAME":"Shonzhy","NAMEASCII":"Shonzhy","POP_MAX":3902,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[77.0687219,43.8843872],"properties":{"NAME":"Qapshaghay","NAMEASCII":"Qapshaghay","POP_MAX":42167,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[75.2138997,43.5345895],"properties":{"NAME":"Otar","NAMEASCII":"Otar","POP_MAX":11238,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.859718,32.0114944],"properties":{"NAME":"Qomsheh","NAMEASCII":"Qomsheh","POP_MAX":118301,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[51.5799934,33.9804181],"properties":{"NAME":"Kashan","NAMEASCII":"Kashan","POP_MAX":250000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[51.4699743,32.7004187],"properties":{"NAME":"Khomeini Shahr","NAMEASCII":"Khomeini Shahr","POP_MAX":437138,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[53.6714937,28.9718349],"properties":{"NAME":"Fasa","NAMEASCII":"Fasa","POP_MAX":124458,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[55.1714538,37.2518205],"properties":{"NAME":"Gonbad-e Kavus","NAMEASCII":"Gonbad-e Kavus","POP_MAX":159982,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[54.4800232,36.8303475],"properties":{"NAME":"Gorgan","NAMEASCII":"Gorgan","POP_MAX":281023,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[52.3633048,36.4713255],"properties":{"NAME":"Amol","NAMEASCII":"Amol","POP_MAX":221650,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[53.100004,36.5503904],"properties":{"NAME":"Sari","NAMEASCII":"Sari","POP_MAX":271467,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[53.3743025,35.5547923],"properties":{"NAME":"Semnan","NAMEASCII":"Semnan","POP_MAX":124826,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[50.968059,35.8023046],"properties":{"NAME":"Karaj","NAMEASCII":"Karaj","POP_MAX":1423000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[50.2614693,30.5818142],"properties":{"NAME":"Behbehan","NAMEASCII":"Behbehan","POP_MAX":85707,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.4700024,32.3803866],"properties":{"NAME":"Dezful","NAMEASCII":"Dezful","POP_MAX":315482,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.3500097,33.4804228],"properties":{"NAME":"Khorramabad","NAMEASCII":"Khorramabad","POP_MAX":375198,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[46.4300236,33.6304136],"properties":{"NAME":"Ilam","NAMEASCII":"Ilam","POP_MAX":152894,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[45.2802746,31.3098576],"properties":{"NAME":"As Samawah","NAMEASCII":"As Samawah","POP_MAX":174978,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[46.2675529,31.0429488],"properties":{"NAME":"An Nasiriyah","NAMEASCII":"An Nasiriyah","POP_MAX":451547,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[47.1511682,31.8416081],"properties":{"NAME":"Al Amarah","NAMEASCII":"Al Amarah","POP_MAX":345007,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[45.8303702,32.4907158],"properties":{"NAME":"Al Kut","NAMEASCII":"Al Kut","POP_MAX":321521,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[50.3314392,35.0218274],"properties":{"NAME":"Saveh","NAMEASCII":"Saveh","POP_MAX":175533,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[49.7000048,34.080412],"properties":{"NAME":"Arak","NAMEASCII":"Arak","POP_MAX":503647,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[50.2666369,44.5170618],"properties":{"NAME":"Fort Shevchenko","NAMEASCII":"Fort Shevchenko","POP_MAX":5213,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[52.8000223,43.3003919],"properties":{"NAME":"Zhangaozen","NAMEASCII":"Zhangaozen","POP_MAX":8895,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[45.7200411,36.770377],"properties":{"NAME":"Mahabad","NAMEASCII":"Mahabad","POP_MAX":162434,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[44.9700093,38.5303988],"properties":{"NAME":"Khvoy","NAMEASCII":"Khvoy","POP_MAX":202728,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[46.2200105,37.420389],"properties":{"NAME":"Maragheh","NAMEASCII":"Maragheh","POP_MAX":151385,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[45.5772074,34.5123753],"properties":{"NAME":"Qasr-e Shirin","NAMEASCII":"Qasr-e Shirin","POP_MAX":11202,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[47.5936735,35.8740751],"properties":{"NAME":"Bijar","NAMEASCII":"Bijar","POP_MAX":53871,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[45.4308597,35.5612777],"properties":{"NAME":"As Sulaymaniyah","NAMEASCII":"As Sulaymaniyah","POP_MAX":723170,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[44.6572635,33.7476416],"properties":{"NAME":"Baqubah","NAMEASCII":"Baqubah","POP_MAX":299479,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[60.8937919,33.5064935],"properties":{"NAME":"Yazdan","NAMEASCII":"Yazdan","POP_MAX":2000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[60.6128788,35.2233397],"properties":{"NAME":"Torbat-e Jam","NAMEASCII":"Torbat-e Jam","POP_MAX":104578,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[58.5014831,37.111829],"properties":{"NAME":"Quchan","NAMEASCII":"Quchan","POP_MAX":145531,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[60.629932,25.3004053],"properties":{"NAME":"Chabahar","NAMEASCII":"Chabahar","POP_MAX":65801,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[74.18234179634925,30.126337570600114],"properties":{"NAME":"Abohar","NAMEASCII":"Abohar","POP_MAX":130603,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.384991,30.320409],"properties":{"NAME":"Patiala","NAMEASCII":"Patiala","POP_MAX":329224,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.6350203,25.3504281],"properties":{"NAME":"Bhilwara","NAMEASCII":"Bhilwara","POP_MAX":389911,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.329932,25.7903754],"properties":{"NAME":"Pali","NAMEASCII":"Pali","POP_MAX":210103,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.7900402,26.1504568],"properties":{"NAME":"Tonk","NAMEASCII":"Tonk","POP_MAX":181734,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.1400024,27.6103935],"properties":{"NAME":"Sikar","NAMEASCII":"Sikar","POP_MAX":400000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.33224321624638,28.015083438515255],"properties":{"NAME":"Bikaner","NAMEASCII":"Bikaner","POP_MAX":576015,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.50741092611864,27.20937409378136],"properties":{"NAME":"Bharatpur","NAMEASCII":"Bharatpur","POP_MAX":229384,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.6049259,27.5453587],"properties":{"NAME":"Alwar","NAMEASCII":"Alwar","POP_MAX":283228,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[68.8048335,42.4368787],"properties":{"NAME":"Arys","NAMEASCII":"Arys","POP_MAX":42648,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[74.030251,44.9387415],"properties":{"NAME":"Burylbaytal","NAMEASCII":"Burylbaytal","POP_MAX":100,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[73.7448421,43.5952576],"properties":{"NAME":"Shu","NAMEASCII":"Shu","POP_MAX":42439,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[72.7049572,42.9203634],"properties":{"NAME":"Qulan","NAMEASCII":"Qulan","POP_MAX":13128,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[73.2548978,42.9152991],"properties":{"NAME":"Oytal","NAMEASCII":"Oytal","POP_MAX":22673,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[70.459978,43.185386],"properties":{"NAME":"Qaratau","NAMEASCII":"Qaratau","POP_MAX":37881,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[80.8000187,25.8803699],"properties":{"NAME":"Fatehpur","NAMEASCII":"Fatehpur","POP_MAX":166480,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[82.1700126,26.7503943],"properties":{"NAME":"Faizabad","NAMEASCII":"Faizabad","POP_MAX":153047,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[81.60611406683459,27.56742665546232],"properties":{"NAME":"Bahraich","NAMEASCII":"Bahraich","POP_MAX":182218,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[82.5699882,25.145376],"properties":{"NAME":"Mirzapur","NAMEASCII":"Mirzapur","POP_MAX":245817,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.5574682,25.4529541],"properties":{"NAME":"Jhansi","NAMEASCII":"Jhansi","POP_MAX":826494,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.9050345,27.880377],"properties":{"NAME":"Shahjahanpur","NAMEASCII":"Shahjahanpur","POP_MAX":320434,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.0249849,28.8153587],"properties":{"NAME":"Rampur","NAMEASCII":"Rampur","POP_MAX":296418,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.4180537,28.3473332],"properties":{"NAME":"Bareilly","NAMEASCII":"Bareilly","POP_MAX":817000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.0149597,26.7854568],"properties":{"NAME":"Etawah","NAMEASCII":"Etawah","POP_MAX":257448,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.0500057,30.320409],"properties":{"NAME":"Dehra Dun","NAMEASCII":"Dehra Dun","POP_MAX":714223,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[88.31851641697797,22.584697601843814],"properties":{"NAME":"Haora","NAMEASCII":"Haora","POP_MAX":4841638,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[89.566667,26.4837439],"properties":{"NAME":"Alipur Duar","NAMEASCII":"Alipur Duar","POP_MAX":127342,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[88.0583353,22.0256698],"properties":{"NAME":"Haldia","NAMEASCII":"Haldia","POP_MAX":200762,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[88.41362605099683,22.85282090770563],"properties":{"NAME":"Bhatpara","NAMEASCII":"Bhatpara","POP_MAX":483129,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[87.33387196534922,22.399723290749197],"properties":{"NAME":"Medinipur","NAMEASCII":"Medinipur","POP_MAX":169127,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[88.4550036,26.720422],"properties":{"NAME":"Siliguri","NAMEASCII":"Siliguri","POP_MAX":515574,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[87.4799727,25.7854144],"properties":{"NAME":"Purnia","NAMEASCII":"Purnia","POP_MAX":198453,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.3799458,26.1204328],"properties":{"NAME":"Muzaffarpur","NAMEASCII":"Muzaffarpur","POP_MAX":333200,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[84.3800069,24.7704118],"properties":{"NAME":"Aurangabad","NAMEASCII":"Aurangabad","POP_MAX":95929,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[82.1599873,22.0904203],"properties":{"NAME":"Bilaspur","NAMEASCII":"Bilaspur","POP_MAX":543454,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.17240563336235,21.284520155461166],"properties":{"NAME":"Burhanpur","NAMEASCII":"Burhanpur","POP_MAX":197233,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.7900402,23.1904049],"properties":{"NAME":"Ujjain","NAMEASCII":"Ujjain","POP_MAX":513350,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.0299833,23.3503951],"properties":{"NAME":"Ratlam","NAMEASCII":"Ratlam","POP_MAX":307229,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.7500146,23.8503904],"properties":{"NAME":"Sagar","NAMEASCII":"Sagar","POP_MAX":328240,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.1500419,12.9203858],"properties":{"NAME":"Vellore","NAMEASCII":"Vellore","POP_MAX":177081,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.0999674,12.2603744],"properties":{"NAME":"Tiruvannamalai","NAMEASCII":"Tiruvannamalai","POP_MAX":138243,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.5800085,9.4203927],"properties":{"NAME":"Rajapalaiyam","NAMEASCII":"Rajapalaiyam","POP_MAX":369991,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.770004,11.7204073],"properties":{"NAME":"Cuddalore","NAMEASCII":"Cuddalore","POP_MAX":158569,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.083337,10.9503768],"properties":{"NAME":"Karur","NAMEASCII":"Karur","POP_MAX":76915,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.7166739,12.8337244],"properties":{"NAME":"Kanchipuram","NAMEASCII":"Kanchipuram","POP_MAX":155029,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.689976,8.730409],"properties":{"NAME":"Tirunelveli","NAMEASCII":"Tirunelveli","POP_MAX":542200,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.4299918,8.180365],"properties":{"NAME":"Nagercoil","NAMEASCII":"Nagercoil","POP_MAX":224329,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.1500419,10.7704136],"properties":{"NAME":"Thanjavur","NAMEASCII":"Thanjavur","POP_MAX":219571,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.38752768454357,10.951296280928258],"properties":{"NAME":"Kumbakonam","NAMEASCII":"Kumbakonam","POP_MAX":139264,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.9699682,10.3204153],"properties":{"NAME":"Valparai","NAMEASCII":"Valparai","POP_MAX":114308,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.3299979,11.0804206],"properties":{"NAME":"Tiruppur","NAMEASCII":"Tiruppur","POP_MAX":650000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.850013,20.4170083],"properties":{"NAME":"Daman","NAMEASCII":"Daman","POP_MAX":39737,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.9200345,20.8503927],"properties":{"NAME":"Navsari","NAMEASCII":"Navsari","POP_MAX":163000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[69.67359109934806,23.23382675654731],"properties":{"NAME":"Bhuj","NAMEASCII":"Bhuj","POP_MAX":289429,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.1299536,21.7784239],"properties":{"NAME":"Bhavnagar","NAMEASCII":"Bhavnagar","POP_MAX":554978,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.64355575894791,23.218993822470544],"properties":{"NAME":"Gandhinagar","NAMEASCII":"Gandhinagar","POP_MAX":195891,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[93.6166007,27.1003988],"properties":{"NAME":"Itanagar","NAMEASCII":"Itanagar","POP_MAX":44971,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[92.7200146,23.710399],"properties":{"NAME":"Aizawl","NAMEASCII":"Aizawl","POP_MAX":283021,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[91.2799991,23.8354043],"properties":{"NAME":"Agartala","NAMEASCII":"Agartala","POP_MAX":203264,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[15.9199996,-0.4796232],"properties":{"NAME":"Owando","NAMEASCII":"Owando","POP_MAX":34070,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[15.6400166,-0.0095744],"properties":{"NAME":"Makoua","NAMEASCII":"Makoua","POP_MAX":11355,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[13.3500272,-3.6896081],"properties":{"NAME":"Sibiti","NAMEASCII":"Sibiti","POP_MAX":22811,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[12.7199882,-2.9396281],"properties":{"NAME":"Mossendjo","NAMEASCII":"Mossendjo","POP_MAX":30936,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[12.670017,-4.1796041],"properties":{"NAME":"Loubomo","NAMEASCII":"Loubomo","POP_MAX":103894,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[15.8500297,-1.8794861],"properties":{"NAME":"Gamboma","NAMEASCII":"Gamboma","POP_MAX":20877,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[14.7499934,-2.5396008],"properties":{"NAME":"Djambala","NAMEASCII":"Djambala","POP_MAX":9651,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[10.616654,55.0704228],"properties":{"NAME":"Svendborg","NAMEASCII":"Svendborg","POP_MAX":29180,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[10.3833349,55.4003768],"properties":{"NAME":"Odense","NAMEASCII":"Odense","POP_MAX":158222,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[8.4500162,55.4670394],"properties":{"NAME":"Esbjerg","NAMEASCII":"Esbjerg","POP_MAX":72205,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[10.5332999,57.4336894],"properties":{"NAME":"Frederikshavn","NAMEASCII":"Frederikshavn","POP_MAX":24103,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[9.9165934,57.0337138],"properties":{"NAME":"Aalborg","NAMEASCII":"Aalborg","POP_MAX":122219,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-5.2000291,9.6004075],"properties":{"NAME":"Ferkessédougou","NAMEASCII":"Ferkessedougou","POP_MAX":62008,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-9.0199768,9.270376],"properties":{"NAME":"Kérouané","NAMEASCII":"Kerouane","POP_MAX":15406,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-9.1666346,11.4170925],"properties":{"NAME":"Siguiri","NAMEASCII":"Siguiri","POP_MAX":50159,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-12.1000214,10.3803858],"properties":{"NAME":"Mamou","NAMEASCII":"Mamou","POP_MAX":71153,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-14.6050106,10.6854059],"properties":{"NAME":"Kamsar","NAMEASCII":"Kamsar","POP_MAX":34973,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-13.5499846,10.3803858],"properties":{"NAME":"Fria","NAMEASCII":"Fria","POP_MAX":23729,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-7.5800131,9.510413],"properties":{"NAME":"Odienné","NAMEASCII":"Odienne","POP_MAX":49857,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-9.4800004,8.5503683],"properties":{"NAME":"Macenta","NAMEASCII":"Macenta","POP_MAX":43102,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-9.2699874,7.5704281],"properties":{"NAME":"Yomou","NAMEASCII":"Yomou","POP_MAX":3614,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-10.7500004,10.0404065],"properties":{"NAME":"Faranah","NAMEASCII":"Faranah","POP_MAX":19469,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-10.1200131,9.1904584],"properties":{"NAME":"Kissidougou","NAMEASCII":"Kissidougou","POP_MAX":66815,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-7.5499891,7.4004126],"properties":{"NAME":"Man","NAMEASCII":"Man","POP_MAX":146974,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-6.6700169,7.9504049],"properties":{"NAME":"Séguéla","NAMEASCII":"Seguela","POP_MAX":51157,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-5.8799876,6.1504114],"properties":{"NAME":"Gagnoa","NAMEASCII":"Gagnoa","POP_MAX":123184,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-6.6100206,5.7904075],"properties":{"NAME":"Soubré","NAMEASCII":"Soubre","POP_MAX":108933,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-6.6399671,4.7704181],"properties":{"NAME":"San-Pedro","NAMEASCII":"San-Pedro","POP_MAX":210273,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-6.0832827,4.9503813],"properties":{"NAME":"Sassandra","NAMEASCII":"Sassandra","POP_MAX":38411,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-2.8000206,8.0304258],"properties":{"NAME":"Bondoukou","NAMEASCII":"Bondoukou","POP_MAX":58297,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-4.2800336,5.9403467],"properties":{"NAME":"Agboville","NAMEASCII":"Agboville","POP_MAX":81770,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-4.7100074,6.6504584],"properties":{"NAME":"Dimbokro","NAMEASCII":"Dimbokro","POP_MAX":67349,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-3.7499884,5.2003919],"properties":{"NAME":"Grand Bassam","NAMEASCII":"Grand Bassam","POP_MAX":73772,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-4.3899494,5.3203587],"properties":{"NAME":"Dabou","NAMEASCII":"Dabou","POP_MAX":72913,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-7.4899669,6.5504645],"properties":{"NAME":"Guiglo","NAMEASCII":"Guiglo","POP_MAX":39134,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-3.4900043,6.730376],"properties":{"NAME":"Abengourou","NAMEASCII":"Abengourou","POP_MAX":104020,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[40.2844555,33.0384601],"properties":{"NAME":"Ar Rutbah","NAMEASCII":"Ar Rutbah","POP_MAX":22370,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[43.7772656,33.347666],"properties":{"NAME":"Al Fallujah","NAMEASCII":"Al Fallujah","POP_MAX":231819,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[44.4217224,32.4721381],"properties":{"NAME":"Al Hillah","NAMEASCII":"Al Hillah","POP_MAX":594605,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[-61.5329989,16.241475],"properties":{"NAME":"Pointe-à-Pitre","NAMEASCII":"Pointe-a-Pitre","POP_MAX":145511,"ISO_A2":"GP","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-61.7054837,16.0104101],"properties":{"NAME":"Basse-terre","NAMEASCII":"Basse-terre","POP_MAX":307,"ISO_A2":"GP","SOV_A3":"FRA"}},{"type":"Point","coordinates":[55.7128161,-21.0335107],"properties":{"NAME":"St.-Benoit","NAMEASCII":"St.-Benoit","POP_MAX":35310,"ISO_A2":"RE","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-60.6199797,-3.2895809],"properties":{"NAME":"Manacapuru","NAMEASCII":"Manacapuru","POP_MAX":59102,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-57.7200275,-3.3896264],"properties":{"NAME":"Maués","NAMEASCII":"Maues","POP_MAX":32561,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.670023,-4.5696061],"properties":{"NAME":"Pedreiras","NAMEASCII":"Pedreiras","POP_MAX":13638,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.8799679,-4.4795858],"properties":{"NAME":"Codó","NAMEASCII":"Codo","POP_MAX":83288,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.1500031,-4.1295813],"properties":{"NAME":"Coroatá","NAMEASCII":"Coroata","POP_MAX":34129,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.3599996,-3.7395276],"properties":{"NAME":"Chapadinha","NAMEASCII":"Chapadinha","POP_MAX":40804,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.0899974,-2.519602],"properties":{"NAME":"Pinheiro","NAMEASCII":"Pinheiro","POP_MAX":38893,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.2599612,-5.5096004],"properties":{"NAME":"Barra do Corda","NAMEASCII":"Barra do Corda","POP_MAX":48901,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.0000029,-3.2095858],"properties":{"NAME":"Viana","NAMEASCII":"Viana","POP_MAX":26689,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.2399976,-6.0395422],"properties":{"NAME":"Colinas","NAMEASCII":"Colinas","POP_MAX":25158,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.1400108,-1.1964787],"properties":{"NAME":"Viseu","NAMEASCII":"Viseu","POP_MAX":18958,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.0900045,-1.7496232],"properties":{"NAME":"Capitão Poço","NAMEASCII":"Capitao Poco","POP_MAX":32704,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.9300308,-1.2895996],"properties":{"NAME":"Castanhal","NAMEASCII":"Castanhal","POP_MAX":137406,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.3399893,-0.6094861],"properties":{"NAME":"Salinópolis","NAMEASCII":"Salinopolis","POP_MAX":40998,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.7899996,-1.9395858],"properties":{"NAME":"Alenquer","NAMEASCII":"Alenquer","POP_MAX":26290,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.8699854,-1.7595967],"properties":{"NAME":"Oriximiná","NAMEASCII":"Oriximina","POP_MAX":35581,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.9480471,-7.1006144],"properties":{"NAME":"Xinguara","NAMEASCII":"Xinguara","POP_MAX":4047,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.115693,-4.4394588],"properties":{"NAME":"Jacundá","NAMEASCII":"Jacunda","POP_MAX":51375,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.0299943,-3.8295996],"properties":{"NAME":"Uruará","NAMEASCII":"Uruara","POP_MAX":10,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.2100021,-3.1996122],"properties":{"NAME":"Altamira","NAMEASCII":"Altamira","POP_MAX":70888,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.4900059,-2.9595752],"properties":{"NAME":"Paragominas","NAMEASCII":"Paragominas","POP_MAX":69613,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.509986,-2.2396191],"properties":{"NAME":"Cametá","NAMEASCII":"Cameta","POP_MAX":45200,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-61.7806324,-11.7302026],"properties":{"NAME":"Rolim de Moura","NAMEASCII":"Rolim de Moura","POP_MAX":24516,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-63.0799846,-9.9396142],"properties":{"NAME":"Ariquemes","NAMEASCII":"Ariquemes","POP_MAX":58096,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-65.3597162,-9.6953914],"properties":{"NAME":"Abunã","NAMEASCII":"Abuna","POP_MAX":1929,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.4199844,-6.3195768],"properties":{"NAME":"Tocantinópolis","NAMEASCII":"Tocantinopolis","POP_MAX":8750,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.0599876,-11.7196089],"properties":{"NAME":"Gurupi","NAMEASCII":"Gurupi","POP_MAX":64789,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.7900161,-20.4696175],"properties":{"NAME":"Aquidauana","NAMEASCII":"Aquidauana","POP_MAX":40803,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.200012,-19.6795882],"properties":{"NAME":"Paranaíba","NAMEASCII":"Paranaiba","POP_MAX":32217,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.249997,-19.4496281],"properties":{"NAME":"Sete Lagoas","NAMEASCII":"Sete Lagoas","POP_MAX":201334,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.8999832,-20.1495337],"properties":{"NAME":"Divinópolis","NAMEASCII":"Divinopolis","POP_MAX":193832,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.5199992,-19.4796004],"properties":{"NAME":"Ipatinga","NAMEASCII":"Ipatinga","POP_MAX":407894,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.9500131,-19.5795943],"properties":{"NAME":"Araxá","NAMEASCII":"Araxa","POP_MAX":82595,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.0099506,-21.2495699],"properties":{"NAME":"Lavras","NAMEASCII":"Lavras","POP_MAX":81472,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.9500247,-21.1196037],"properties":{"NAME":"Ubá","NAMEASCII":"Uba","POP_MAX":97828,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.2799858,-20.8895919],"properties":{"NAME":"Campo Belo","NAMEASCII":"Campo Belo","POP_MAX":47491,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.8999502,-20.4096212],"properties":{"NAME":"Ponte Nova","NAMEASCII":"Ponte Nova","POP_MAX":48187,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.429986,-18.7595927],"properties":{"NAME":"Curvelo","NAMEASCII":"Curvelo","POP_MAX":63954,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.8699921,-17.1995845],"properties":{"NAME":"Paracatu","NAMEASCII":"Paracatu","POP_MAX":70753,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.8100497,-17.1096159],"properties":{"NAME":"Bocaiúva","NAMEASCII":"Bocaiuva","POP_MAX":32114,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.0699492,-16.8596053],"properties":{"NAME":"Araçuaí","NAMEASCII":"Aracuai","POP_MAX":22005,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.3099768,-15.7996183],"properties":{"NAME":"Janaúba","NAMEASCII":"Janauba","POP_MAX":56572,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-58.76552308381893,-11.429763587670966],"properties":{"NAME":"Juina","NAMEASCII":"Juina","POP_MAX":980,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.259999,-15.8796134],"properties":{"NAME":"Barra do Garças","NAMEASCII":"Barra do Garcas","POP_MAX":52398,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-59.3499797,-15.219602],"properties":{"NAME":"Pontes e Lacerda","NAMEASCII":"Pontes e Lacerda","POP_MAX":29381,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-57.1900082,-15.0695853],"properties":{"NAME":"Barra do Bugres","NAMEASCII":"Barra do Bugres","POP_MAX":31311,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.639983,-16.4694999],"properties":{"NAME":"Rondonópolis","NAMEASCII":"Rondonopolis","POP_MAX":152912,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-57.0899884,-29.7696183],"properties":{"NAME":"Uruguaiana","NAMEASCII":"Uruguaiana","POP_MAX":123480,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-56.0099768,-28.6596085],"properties":{"NAME":"São Borja","NAMEASCII":"Sao Borja","POP_MAX":59613,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.1399899,-29.709622],"properties":{"NAME":"Novo Hamburgo","NAMEASCII":"Novo Hamburgo","POP_MAX":876990,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.1200076,-32.0494791],"properties":{"NAME":"Rio Grande","NAMEASCII":"Rio Grande","POP_MAX":187838,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.8100007,-30.8396305],"properties":{"NAME":"Camaquã","NAMEASCII":"Camaqua","POP_MAX":53169,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.5199667,-29.1694999],"properties":{"NAME":"Bento Gonçalves","NAMEASCII":"Bento Goncalves","POP_MAX":94271,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.9400021,-28.4996183],"properties":{"NAME":"Vacaria","NAMEASCII":"Vacaria","POP_MAX":56765,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-53.9199494,-28.3895475],"properties":{"NAME":"Ijuí","NAMEASCII":"Ijui","POP_MAX":71202,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.4599681,-27.8695276],"properties":{"NAME":"Santa Rosa","NAMEASCII":"Santa Rosa","POP_MAX":59281,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.9299675,-23.4095414],"properties":{"NAME":"Maringá","NAMEASCII":"Maringa","POP_MAX":328335,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-53.4600291,-24.959576],"properties":{"NAME":"Cascavel","NAMEASCII":"Cascavel","POP_MAX":257172,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.4199893,-24.0496057],"properties":{"NAME":"Campo Murao","NAMEASCII":"Campo Murao","POP_MAX":75401,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.5299897,-25.5234692],"properties":{"NAME":"Foz do Iguaçu","NAMEASCII":"Foz do Iguacu","POP_MAX":440455,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.5999899,-26.2396012],"properties":{"NAME":"São Francisco do Sul","NAMEASCII":"Sao Francisco do Sul","POP_MAX":36224,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.0799677,-26.2396012],"properties":{"NAME":"Porto União","NAMEASCII":"Porto Uniao","POP_MAX":71578,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.6800108,-26.8996126],"properties":{"NAME":"Itajaí","NAMEASCII":"Itajai","POP_MAX":327126,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.660012,-28.2296089],"properties":{"NAME":"Imbituba","NAMEASCII":"Imbituba","POP_MAX":43450,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.3099889,-27.8095829],"properties":{"NAME":"Lajes","NAMEASCII":"Lajes","POP_MAX":164676,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.8399984,-3.1195137],"properties":{"NAME":"Granja","NAMEASCII":"Granja","POP_MAX":25879,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.4200076,-7.2295988],"properties":{"NAME":"Crato","NAMEASCII":"Crato","POP_MAX":273883,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.5800236,-3.4995422],"properties":{"NAME":"Itapipoca","NAMEASCII":"Itapipoca","POP_MAX":55784,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0400308,-3.3995483],"properties":{"NAME":"Paracuru","NAMEASCII":"Paracuru","POP_MAX":21196,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.1199907,-2.8896053],"properties":{"NAME":"Acaraú","NAMEASCII":"Acarau","POP_MAX":28389,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.3100308,-5.999493],"properties":{"NAME":"Tauá","NAMEASCII":"Taua","POP_MAX":29188,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.6660039,-5.1655904],"properties":{"NAME":"Crateús","NAMEASCII":"Crateus","POP_MAX":52933,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.8799889,-4.3295691],"properties":{"NAME":"Baturité","NAMEASCII":"Baturite","POP_MAX":22417,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.7200574,-4.3195955],"properties":{"NAME":"Ipú","NAMEASCII":"Ipu","POP_MAX":26678,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.0299681,-6.7695752],"properties":{"NAME":"Floriano","NAMEASCII":"Floriano","POP_MAX":48587,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.7899921,-4.2695727],"properties":{"NAME":"Piripiri","NAMEASCII":"Piripiri","POP_MAX":44864,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-36.5800259,-10.2696199],"properties":{"NAME":"Penedo","NAMEASCII":"Penedo","POP_MAX":42097,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.2800161,-14.7896024],"properties":{"NAME":"Itabuna","NAMEASCII":"Itabuna","POP_MAX":221938,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.5299492,-17.0395943],"properties":{"NAME":"Itamaraju","NAMEASCII":"Itamaraju","POP_MAX":47628,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.7899827,-14.2295849],"properties":{"NAME":"Guanambi","NAMEASCII":"Guanambi","POP_MAX":58877,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0800283,-16.4296057],"properties":{"NAME":"Porto Seguro","NAMEASCII":"Porto Seguro","POP_MAX":123173,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0800283,-13.3596122],"properties":{"NAME":"Valença","NAMEASCII":"Valenca","POP_MAX":63231,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0100068,-11.6495874],"properties":{"NAME":"Serrinha","NAMEASCII":"Serrinha","POP_MAX":56829,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.7899943,-10.9696289],"properties":{"NAME":"Tucano","NAMEASCII":"Tucano","POP_MAX":31203,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.1900122,-10.4496089],"properties":{"NAME":"Senhor do Bonfim","NAMEASCII":"Senhor do Bonfim","POP_MAX":48471,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.1099984,-9.5995833],"properties":{"NAME":"Remanso","NAMEASCII":"Remanso","POP_MAX":37945,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.6299854,-15.2396008],"properties":{"NAME":"Itambé","NAMEASCII":"Itambe","POP_MAX":23558,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.4400206,-13.2495414],"properties":{"NAME":"Bom Jesus da Lapa","NAMEASCII":"Bom Jesus da Lapa","POP_MAX":40691,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.2999797,-12.5196118],"properties":{"NAME":"Itaberaba","NAMEASCII":"Itaberaba","POP_MAX":47301,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.8599807,-18.7296203],"properties":{"NAME":"São Mateus","NAMEASCII":"Sao Mateus","POP_MAX":77117,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.2900084,-7.0195858],"properties":{"NAME":"Patos","NAMEASCII":"Patos","POP_MAX":92575,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.0949677,-22.5195699],"properties":{"NAME":"Volta Redonda","NAMEASCII":"Volta Redonda","POP_MAX":456362,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.1999836,-22.509493],"properties":{"NAME":"Petrópolis","NAMEASCII":"Petropolis","POP_MAX":286071,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.4399921,-6.4695935],"properties":{"NAME":"Nova Cruz","NAMEASCII":"Nova Cruz","POP_MAX":23166,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.10002,-6.4596199],"properties":{"NAME":"Caicó","NAMEASCII":"Caico","POP_MAX":54934,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-36.9100574,-5.579622],"properties":{"NAME":"Açu","NAMEASCII":"Acu","POP_MAX":36125,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.4500245,-11.2696106],"properties":{"NAME":"Estância","NAMEASCII":"Estancia","POP_MAX":55654,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-96.6833081,49.5170925],"properties":{"NAME":"Steinbach","NAMEASCII":"Steinbach","POP_MAX":9729,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-98.8500234,55.8004557],"properties":{"NAME":"Nelson House","NAMEASCII":"Nelson House","POP_MAX":2500,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-92.0832789,55.8503752],"properties":{"NAME":"Shamattawa","NAMEASCII":"Shamattawa","POP_MAX":870,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-95.2665988,54.9504043],"properties":{"NAME":"Oxford House","NAMEASCII":"Oxford House","POP_MAX":184,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-102.4665469,51.2170663],"properties":{"NAME":"Yorkton","NAMEASCII":"Yorkton","POP_MAX":15172,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-107.766611,50.2837382],"properties":{"NAME":"Swift Current","NAMEASCII":"Swift Current","POP_MAX":14906,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-107.9832902,52.0504004],"properties":{"NAME":"Biggar","NAMEASCII":"Biggar","POP_MAX":2192,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-109.1332976,51.4669735],"properties":{"NAME":"Kindersley","NAMEASCII":"Kindersley","POP_MAX":4383,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-108.4347356,54.1301184],"properties":{"NAME":"Meadow Lake","NAMEASCII":"Meadow Lake","POP_MAX":5882,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-102.3832961,52.8504291],"properties":{"NAME":"Hudson Bay","NAMEASCII":"Hudson Bay","POP_MAX":2157,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-112.8332784,49.7004922],"properties":{"NAME":"Lethbridge","NAMEASCII":"Lethbridge","POP_MAX":70617,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-111.9000021,50.5670543],"properties":{"NAME":"Brooks","NAMEASCII":"Brooks","POP_MAX":14163,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-116.1832807,51.4336939],"properties":{"NAME":"Lake Louise","NAMEASCII":"Lake Louise","POP_MAX":1248,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-113.2665853,54.7170335],"properties":{"NAME":"Athabasca","NAMEASCII":"Athabasca","POP_MAX":2539,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-111.1499962,58.7170994],"properties":{"NAME":"Fort Chipewyan","NAMEASCII":"Fort Chipewyan","POP_MAX":3222,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-128.1172809,52.1484048],"properties":{"NAME":"Bella Bella","NAMEASCII":"Bella Bella","POP_MAX":1400,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-131.8332815,53.2404053],"properties":{"NAME":"Sandspit","NAMEASCII":"Sandspit","POP_MAX":538,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-125.2499882,50.0170878],"properties":{"NAME":"Campbell River","NAMEASCII":"Campbell River","POP_MAX":33430,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-127.4999801,50.7170709],"properties":{"NAME":"Port Hardy","NAMEASCII":"Port Hardy","POP_MAX":2295,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-123.9342911,49.1460202],"properties":{"NAME":"Nanaimo","NAMEASCII":"Nanaimo","POP_MAX":84905,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-122.4832837,52.9836768],"properties":{"NAME":"Quesnel","NAMEASCII":"Quesnel","POP_MAX":13788,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-122.2999874,49.0503768],"properties":{"NAME":"Abbotsford","NAMEASCII":"Abbotsford","POP_MAX":151683,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-120.233266,55.7669694],"properties":{"NAME":"Dawson Creek","NAMEASCII":"Dawson Creek","POP_MAX":10802,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-119.5832799,49.5003752],"properties":{"NAME":"Penticton","NAMEASCII":"Penticton","POP_MAX":37721,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-117.2832911,49.4836579],"properties":{"NAME":"Nelson","NAMEASCII":"Nelson","POP_MAX":11779,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-121.9332656,50.6837138],"properties":{"NAME":"Lillooet","NAMEASCII":"Lillooet","POP_MAX":2893,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-124.5499793,49.883711],"properties":{"NAME":"Powell River","NAMEASCII":"Powell River","POP_MAX":12779,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-118.1833395,51.0004645],"properties":{"NAME":"Revelstoke","NAMEASCII":"Revelstoke","POP_MAX":7668,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-125.7665975,54.2170123],"properties":{"NAME":"Burns Lake","NAMEASCII":"Burns Lake","POP_MAX":2635,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-130.033288,58.4503457],"properties":{"NAME":"Dease Lake","NAMEASCII":"Dease Lake","POP_MAX":303,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-83.1765874,64.1537702],"properties":{"NAME":"Coral Harbour","NAMEASCII":"Coral Harbour","POP_MAX":834,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-96.0166563,64.3169902],"properties":{"NAME":"Baker Lake","NAMEASCII":"Baker Lake","POP_MAX":1584,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-126.8499681,65.283727],"properties":{"NAME":"Norman Wells","NAMEASCII":"Norman Wells","POP_MAX":1027,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-134.8949809,67.4915251],"properties":{"NAME":"Fort McPherson","NAMEASCII":"Fort McPherson","POP_MAX":1069,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-139.0000017,61.3503754],"properties":{"NAME":"Burwash Landing","NAMEASCII":"Burwash Landing","POP_MAX":73,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-61.1276748,1.8162315],"properties":{"NAME":"Caracaraí","NAMEASCII":"Caracarai","POP_MAX":11368,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.1799874,-0.0395984],"properties":{"NAME":"Porto Santana","NAMEASCII":"Porto Santana","POP_MAX":83927,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-80.0833395,43.9170726],"properties":{"NAME":"Orangeville","NAMEASCII":"Orangeville","POP_MAX":32640,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.9333299,45.967025],"properties":{"NAME":"Little Current","NAMEASCII":"Little Current","POP_MAX":1595,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-83.4000104,47.8337069],"properties":{"NAME":"Chapleau","NAMEASCII":"Chapleau","POP_MAX":2663,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-84.7833368,48.0004151],"properties":{"NAME":"Wawa","NAMEASCII":"Wawa","POP_MAX":2174,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-83.6665833,49.7004922],"properties":{"NAME":"Hearst","NAMEASCII":"Hearst","POP_MAX":5043,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-86.366651,48.7503951],"properties":{"NAME":"Marathon","NAMEASCII":"Marathon","POP_MAX":4627,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-91.9166482,50.2629643],"properties":{"NAME":"Sioux Lookout","NAMEASCII":"Sioux Lookout","POP_MAX":4570,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-93.8333012,51.0336924],"properties":{"NAME":"Red Lake","NAMEASCII":"Red Lake","POP_MAX":1765,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.0665945,52.6170325],"properties":{"NAME":"Deer Lake","NAMEASCII":"Deer Lake","POP_MAX":3743,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-91.7999886,51.7170357],"properties":{"NAME":"Cat Lake","NAMEASCII":"Cat Lake","POP_MAX":277,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-74.7333301,45.0170571],"properties":{"NAME":"Cornwall","NAMEASCII":"Cornwall","POP_MAX":48821,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-76.4833008,44.2337199],"properties":{"NAME":"Kingston","NAMEASCII":"Kingston","POP_MAX":114195,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.7000037,44.3837624],"properties":{"NAME":"Barrie","NAMEASCII":"Barrie","POP_MAX":182041,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-80.0330066,45.3337044],"properties":{"NAME":"Parry Sound","NAMEASCII":"Parry Sound","POP_MAX":7105,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.1333012,44.7336894],"properties":{"NAME":"Wiarton","NAMEASCII":"Wiarton","POP_MAX":2182,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.6833122,47.3837085],"properties":{"NAME":"Cobalt","NAMEASCII":"Cobalt","POP_MAX":1372,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.0165642,49.0670166],"properties":{"NAME":"Cochrane","NAMEASCII":"Cochrane","POP_MAX":4441,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-88.2499728,49.0170455],"properties":{"NAME":"Nipigon","NAMEASCII":"Nipigon","POP_MAX":1204,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-91.616589,48.7503951],"properties":{"NAME":"Atikokan","NAMEASCII":"Atikokan","POP_MAX":3625,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-68.5166812,48.4337478],"properties":{"NAME":"Rimouski","NAMEASCII":"Rimouski","POP_MAX":35584,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-70.6666533,46.117145],"properties":{"NAME":"Saint-Georges","NAMEASCII":"Saint-Georges","POP_MAX":26149,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-71.9666773,46.0504049],"properties":{"NAME":"Victoriaville","NAMEASCII":"Victoriaville","POP_MAX":41500,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-59.609783,50.4813231],"properties":{"NAME":"Chevery","NAMEASCII":"Chevery","POP_MAX":284,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-73.8665872,50.4170634],"properties":{"NAME":"Mistassini","NAMEASCII":"Mistassini","POP_MAX":2645,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-69.9990971,60.0248232],"properties":{"NAME":"Kangirsuk","NAMEASCII":"Kangirsuk","POP_MAX":549,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-72.733323,46.5503744],"properties":{"NAME":"Shawinigan","NAMEASCII":"Shawinigan","POP_MAX":49161,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.6332823,49.7503858],"properties":{"NAME":"Matagami","NAMEASCII":"Matagami","POP_MAX":1966,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-75.5000275,46.5503744],"properties":{"NAME":"Mont-Laurier","NAMEASCII":"Mont-Laurier","POP_MAX":11642,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.1166472,45.8502621],"properties":{"NAME":"Pembroke","NAMEASCII":"Pembroke","POP_MAX":15551,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.616565,53.7836279],"properties":{"NAME":"Radisson","NAMEASCII":"Radisson","POP_MAX":270,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.0766751,45.2670418],"properties":{"NAME":"Saint John","NAMEASCII":"Saint John","POP_MAX":87857,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-68.3332815,47.3794194],"properties":{"NAME":"Edmundston","NAMEASCII":"Edmundston","POP_MAX":17894,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-65.3193569,43.7656089],"properties":{"NAME":"Shelburne","NAMEASCII":"Shelburne","POP_MAX":3167,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-61.9981901,45.6269165],"properties":{"NAME":"Antigonish","NAMEASCII":"Antigonish","POP_MAX":6739,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.1291195,44.9805994],"properties":{"NAME":"Windsor","NAMEASCII":"Windsor","POP_MAX":3864,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-65.7604928,44.6225851],"properties":{"NAME":"Digby","NAMEASCII":"Digby","POP_MAX":3949,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-58.566565,48.5504073],"properties":{"NAME":"Stephenville","NAMEASCII":"Stephenville","POP_MAX":7054,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-53.9899968,47.3004319],"properties":{"NAME":"Argentia","NAMEASCII":"Argentia","POP_MAX":1063,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-55.5999502,51.3837486],"properties":{"NAME":"St. Anthony","NAMEASCII":"St. Anthony","POP_MAX":224,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-59.1500436,47.5670048],"properties":{"NAME":"Channel-Port aux Basques","NAMEASCII":"Channel-Port aux Basques","POP_MAX":4220,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-56.8665912,48.8170319],"properties":{"NAME":"Buchans","NAMEASCII":"Buchans","POP_MAX":685,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-58.1166441,49.4836579],"properties":{"NAME":"Trout River","NAMEASCII":"Trout River","POP_MAX":452,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-63.980679,53.5264085],"properties":{"NAME":"Churchill Falls","NAMEASCII":"Churchill Falls","POP_MAX":100,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-56.949997,51.4503854],"properties":{"NAME":"Forteau","NAMEASCII":"Forteau","POP_MAX":448,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[10.1799882,5.1703937],"properties":{"NAME":"Bafang","NAMEASCII":"Bafang","POP_MAX":93145,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[10.8999959,5.7303854],"properties":{"NAME":"Foumban","NAMEASCII":"Foumban","POP_MAX":92673,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[10.4099483,5.4904258],"properties":{"NAME":"Bafoussam","NAMEASCII":"Bafoussam","POP_MAX":290768,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[9.4399816,4.6403744],"properties":{"NAME":"Kumba","NAMEASCII":"Kumba","POP_MAX":144413,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[8.983317,5.7503583],"properties":{"NAME":"Eyumojok","NAMEASCII":"Eyumojok","POP_MAX":5798,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[9.1900227,4.0303858],"properties":{"NAME":"Limbe","NAMEASCII":"Limbe","POP_MAX":212474,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[16.0666056,3.5336977],"properties":{"NAME":"Nola","NAMEASCII":"Nola","POP_MAX":26809,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[9.9100305,2.9404265],"properties":{"NAME":"Kribi","NAMEASCII":"Kribi","POP_MAX":55224,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[19.0833207,5.7337702],"properties":{"NAME":"Sibut","NAMEASCII":"Sibut","POP_MAX":34267,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[17.4499837,6.4837244],"properties":{"NAME":"Bossangoa","NAMEASCII":"Bossangoa","POP_MAX":63064,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[22.7833016,10.2836992],"properties":{"NAME":"Birao","NAMEASCII":"Birao","POP_MAX":10178,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[20.330118,43.8897357],"properties":{"NAME":"Čačak","NAMEASCII":"Cacak","POP_MAX":170000,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[21.8999963,43.3304159],"properties":{"NAME":"Niš","NAMEASCII":"Nis","POP_MAX":250000,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[22.4000175,8.0670903],"properties":{"NAME":"Ouadda","NAMEASCII":"Ouadda","POP_MAX":5434,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[22.8166329,4.7337537],"properties":{"NAME":"Bangassou","NAMEASCII":"Bangassou","POP_MAX":32841,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[19.8499406,45.2503762],"properties":{"NAME":"Novi Sad","NAMEASCII":"Novi Sad","POP_MAX":225457,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[21.6399605,-21.6996199],"properties":{"NAME":"Ghanzi","NAMEASCII":"Ghanzi","POP_MAX":6306,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[-72.5929555,-48.4668778],"properties":{"NAME":"Villa O'Higgins","NAMEASCII":"Villa O'Higgins","POP_MAX":250,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-69.1399506,-30.2155859],"properties":{"NAME":"Rodeo","NAMEASCII":"Rodeo","POP_MAX":701,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.28317987818585,-43.72388054357429],"properties":{"NAME":"Las Plumas","NAMEASCII":"Las Plumas","POP_MAX":605,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.2333041,-42.282963],"properties":{"NAME":"Gastre","NAMEASCII":"Gastre","POP_MAX":557,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.9500068,-42.3995967],"properties":{"NAME":"Telsen","NAMEASCII":"Telsen","POP_MAX":500,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.5833086,-35.4661181],"properties":{"NAME":"Malargüe","NAMEASCII":"Malargue","POP_MAX":11847,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.0166765,-33.5661824],"properties":{"NAME":"Tunuyán","NAMEASCII":"Tunuyan","POP_MAX":22834,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.549996,-33.4661369],"properties":{"NAME":"La Paz","NAMEASCII":"La Paz","POP_MAX":4400,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.2665743,-37.382952],"properties":{"NAME":"Chos Malal","NAMEASCII":"Chos Malal","POP_MAX":8556,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.3665941,-38.5162679],"properties":{"NAME":"Las Lajas","NAMEASCII":"Las Lajas","POP_MAX":1218,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.1800114,-18.1895499],"properties":{"NAME":"Aiquile","NAMEASCII":"Aiquile","POP_MAX":8224,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.3099612,-19.2996114],"properties":{"NAME":"Padilla","NAMEASCII":"Padilla","POP_MAX":2920,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.2099838,-20.6395813],"properties":{"NAME":"Camargo","NAMEASCII":"Camargo","POP_MAX":4715,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-67.370007,-14.3095801],"properties":{"NAME":"Reyes","NAMEASCII":"Reyes","POP_MAX":7376,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.8499612,-14.8196264],"properties":{"NAME":"San Borja","NAMEASCII":"San Borja","POP_MAX":19640,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.0527676,-13.2600834],"properties":{"NAME":"Magdalena","NAMEASCII":"Magdalena","POP_MAX":3445,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.7099884,-13.2895906],"properties":{"NAME":"San Ramón","NAMEASCII":"San Ramon","POP_MAX":6490,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-50.9299768,-17.8195984],"properties":{"NAME":"Rio Verde","NAMEASCII":"Rio Verde","POP_MAX":48318,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.2799836,-17.2995268],"properties":{"NAME":"Pires do Rio","NAMEASCII":"Pires do Rio","POP_MAX":24822,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.9599679,-16.3195866],"properties":{"NAME":"Anápolis","NAMEASCII":"Anapolis","POP_MAX":319587,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.1300092,-15.3096224],"properties":{"NAME":"Goianésia","NAMEASCII":"Goianesia","POP_MAX":47883,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.4700236,-14.469622],"properties":{"NAME":"Niquelândia","NAMEASCII":"Niquelandia","POP_MAX":27541,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.2100043,-18.3996146],"properties":{"NAME":"Itumbiara","NAMEASCII":"Itumbiara","POP_MAX":79582,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.7500043,-17.8795947],"properties":{"NAME":"Jataí","NAMEASCII":"Jatai","POP_MAX":76547,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.5599807,-17.5695361],"properties":{"NAME":"Mineiros","NAMEASCII":"Mineiros","POP_MAX":38951,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.3399893,-15.5394791],"properties":{"NAME":"Formosa","NAMEASCII":"Formosa","POP_MAX":81232,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-59.0400245,-34.0895613],"properties":{"NAME":"Zárate","NAMEASCII":"Zarate","POP_MAX":88781,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.7333132,-37.1828609],"properties":{"NAME":"Carhué","NAMEASCII":"Carhue","POP_MAX":7190,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-63.1665943,-37.6995735],"properties":{"NAME":"Darregueira","NAMEASCII":"Darregueira","POP_MAX":3412,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.8000297,-37.6655188],"properties":{"NAME":"Benito Juárez","NAMEASCII":"Juarez","POP_MAX":10609,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-56.6766028,-36.7162227],"properties":{"NAME":"Mar de Ajó","NAMEASCII":"Mar de Ajo","POP_MAX":13610,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.0946723,-35.184895],"properties":{"NAME":"Lobos","NAMEASCII":"Lobos","POP_MAX":18278,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.0166244,-35.5662154],"properties":{"NAME":"Chascomús","NAMEASCII":"Chascomus","POP_MAX":21054,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.9588737,-34.5845699],"properties":{"NAME":"Junín","NAMEASCII":"Junin","POP_MAX":85007,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-57.95443598989702,-34.9233210985585],"properties":{"NAME":"La Plata","NAMEASCII":"La Plata","POP_MAX":694253,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.5699827,-33.8995988],"properties":{"NAME":"Pergamino","NAMEASCII":"Pergamino","POP_MAX":87652,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.11045422563519,-34.569909861977045],"properties":{"NAME":"Luján","NAMEASCII":"Lujan","POP_MAX":81749,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.8699996,-36.7796297],"properties":{"NAME":"Azul","NAMEASCII":"Azul","POP_MAX":53941,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.62430936499161,-39.921105210718316],"properties":{"NAME":"Villalonga","NAMEASCII":"Villalonga","POP_MAX":2838,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.4500208,-36.2162532],"properties":{"NAME":"Victorica","NAMEASCII":"Victorica","POP_MAX":4458,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-63.77002,-35.6595947],"properties":{"NAME":"General Pico","NAMEASCII":"General Pico","POP_MAX":57029,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.9332823,-40.7328768],"properties":{"NAME":"San Antonio Oeste","NAMEASCII":"San Antonio Oeste","POP_MAX":8492,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.7999807,-40.5828601],"properties":{"NAME":"Sierra Colorado","NAMEASCII":"Sierra Colorado","POP_MAX":1522,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.4699679,-33.6895858],"properties":{"NAME":"Mercedes","NAMEASCII":"Mercedes","POP_MAX":49345,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.1200245,-32.1796004],"properties":{"NAME":"Río Tercero","NAMEASCII":"Rio Tercero","POP_MAX":53389,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.0332833,-27.6495927],"properties":{"NAME":"Belen","NAMEASCII":"Belen","POP_MAX":11359,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.166592,-22.4329085],"properties":{"NAME":"Rinconada","NAMEASCII":"Rinconada","POP_MAX":6692,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.8700045,-24.2196212],"properties":{"NAME":"San Pedro","NAMEASCII":"San Pedro","POP_MAX":58430,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.7899836,-23.8195422],"properties":{"NAME":"Libertador General San Martín","NAMEASCII":"Libertador General San Martin","POP_MAX":49267,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.499999,-29.1655208],"properties":{"NAME":"Chilecito","NAMEASCII":"Chilecito","POP_MAX":20343,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.3166604,-30.3495829],"properties":{"NAME":"Chamical","NAMEASCII":"Chamical","POP_MAX":8989,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.6000397,-23.5996073],"properties":{"NAME":"Los Blancos","NAMEASCII":"Los Blancos","POP_MAX":1145,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.9666042,-26.0829183],"properties":{"NAME":"Cafayate","NAMEASCII":"Cafayate","POP_MAX":11785,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.4833004,-24.8996313],"properties":{"NAME":"Cerrillos","NAMEASCII":"Cerrillos","POP_MAX":11498,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.3500175,-24.1829309],"properties":{"NAME":"San Antonio de los Cobres","NAMEASCII":"San Antonio de los Cobres","POP_MAX":4000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.8333071,-28.466132],"properties":{"NAME":"Añatuya","NAMEASCII":"Anatuya","POP_MAX":14133,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.1499874,-28.6495833],"properties":{"NAME":"Frias","NAMEASCII":"Frias","POP_MAX":13594,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.8665868,-25.7996281],"properties":{"NAME":"Monte Quemado","NAMEASCII":"Monte Quemado","POP_MAX":11387,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.6166466,-25.9495414],"properties":{"NAME":"Juan José Castelli","NAMEASCII":"Juan Jose Castelli","POP_MAX":9421,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.199996,-27.2162858],"properties":{"NAME":"Charata","NAMEASCII":"Charata","POP_MAX":18297,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.6000068,-24.6995919],"properties":{"NAME":"Las Lomitas","NAMEASCII":"Las Lomitas","POP_MAX":7683,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.0799797,-29.1795768],"properties":{"NAME":"Mercedes","NAMEASCII":"Mercedes","POP_MAX":30649,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.0299827,-31.3895711],"properties":{"NAME":"Concordia","NAMEASCII":"Concordia","POP_MAX":145210,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.5666144,-30.9329065],"properties":{"NAME":"Sunchales","NAMEASCII":"Sunchales","POP_MAX":12655,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.5832894,-30.7828898],"properties":{"NAME":"San Justo","NAMEASCII":"San Justo","POP_MAX":9607,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.2165935,-29.4661743],"properties":{"NAME":"Vera","NAMEASCII":"Vera","POP_MAX":9979,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.6500131,-29.1395276],"properties":{"NAME":"Reconquista","NAMEASCII":"Reconquista","POP_MAX":90184,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-61.9700007,-33.7495821],"properties":{"NAME":"Venado Tuerto","NAMEASCII":"Venado Tuerto","POP_MAX":72340,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-49.3899675,-20.7996232],"properties":{"NAME":"São José do Rio Preto","NAMEASCII":"Sao Jose do Rio Preto","POP_MAX":374699,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.40165165116371,-22.56537941724602],"properties":{"NAME":"Limeira","NAMEASCII":"Limeira","POP_MAX":289665,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.5599945,-23.0195394],"properties":{"NAME":"Taubaté","NAMEASCII":"Taubate","POP_MAX":403560,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.5700175,-22.2896098],"properties":{"NAME":"Jaú","NAMEASCII":"Jau","POP_MAX":119206,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.4199821,-22.659613],"properties":{"NAME":"Assis","NAMEASCII":"Assis","POP_MAX":87471,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.8800245,-23.9795841],"properties":{"NAME":"Itapeva","NAMEASCII":"Itapeva","POP_MAX":62957,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.449999,-22.8795996],"properties":{"NAME":"Botucatu","NAMEASCII":"Botucatu","POP_MAX":113862,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.2200037,-21.4595829],"properties":{"NAME":"Novo Horizonte","NAMEASCII":"Novo Horizonte","POP_MAX":30158,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.3799494,-20.9095906],"properties":{"NAME":"Andradina","NAMEASCII":"Andradina","POP_MAX":52406,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.2600436,-20.2696297],"properties":{"NAME":"Fernandópolis","NAMEASCII":"Fernandopolis","POP_MAX":61931,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.2000068,-8.8296045],"properties":{"NAME":"Barreiros","NAMEASCII":"Barreiros","POP_MAX":35565,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.1300253,-8.0596256],"properties":{"NAME":"Salgueiro","NAMEASCII":"Salgueiro","POP_MAX":42152,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-34.9999931,-7.5596045],"properties":{"NAME":"Goiana","NAMEASCII":"Goiana","POP_MAX":71549,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.3200253,-7.4996081],"properties":{"NAME":"Timbaúba","NAMEASCII":"Timbauba","POP_MAX":57534,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-88.1883745,17.498711],"properties":{"NAME":"Belize City","NAMEASCII":"Belize City","POP_MAX":63028,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[-88.5599797,18.0904319],"properties":{"NAME":"Orange Walk","NAMEASCII":"Orange Walk","POP_MAX":20835,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[-88.8100161,16.1003467],"properties":{"NAME":"Punta Gorda","NAMEASCII":"Punta Gorda","POP_MAX":7748,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[17.6500232,5.2670028],"properties":{"NAME":"Bossembélé","NAMEASCII":"Bossembele","POP_MAX":7287,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[9.9400028,4.9604065],"properties":{"NAME":"Nkongsamba","NAMEASCII":"Nkongsamba","POP_MAX":117063,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[10.1199918,3.8004773],"properties":{"NAME":"Edéa","NAMEASCII":"Edea","POP_MAX":203149,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[10.0700207,6.400422],"properties":{"NAME":"Wum","NAMEASCII":"Wum","POP_MAX":68836,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[10.6800093,6.2203813],"properties":{"NAME":"Kumbo","NAMEASCII":"Kumbo","POP_MAX":125486,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[11.2300016,4.7503935],"properties":{"NAME":"Bafia","NAMEASCII":"Bafia","POP_MAX":69270,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[11.5000109,3.5203911],"properties":{"NAME":"Mbalmayo","NAMEASCII":"Mbalmayo","POP_MAX":80206,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[10.766619,3.650409],"properties":{"NAME":"Eséka","NAMEASCII":"Eseka","POP_MAX":22221,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.6799812,4.5804297],"properties":{"NAME":"Bertoua","NAMEASCII":"Bertoua","POP_MAX":218111,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.183319,3.9836961],"properties":{"NAME":"Abong Mbang","NAMEASCII":"Abong Mbang","POP_MAX":14661,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[14.366606,4.4336945],"properties":{"NAME":"Batouri","NAMEASCII":"Batouri","POP_MAX":43821,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.3000044,4.9336898],"properties":{"NAME":"Bélabo","NAMEASCII":"Belabo","POP_MAX":22553,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[14.2899698,6.5204922],"properties":{"NAME":"Meiganga","NAMEASCII":"Meiganga","POP_MAX":80100,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.5799873,7.3203658],"properties":{"NAME":"Ngaoundéré","NAMEASCII":"Ngaoundere","POP_MAX":231357,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[12.6333268,6.4669812],"properties":{"NAME":"Tibati","NAMEASCII":"Tibati","POP_MAX":35589,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[12.2332995,7.9670189],"properties":{"NAME":"Kontcha","NAMEASCII":"Kontcha","POP_MAX":8018,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.940017,9.9303874],"properties":{"NAME":"Guider","NAMEASCII":"Guider","POP_MAX":84647,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.6000378,7.8504368],"properties":{"NAME":"Mbe","NAMEASCII":"Mbe","POP_MAX":3950,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[19.448208,41.3177997],"properties":{"NAME":"Durrës","NAMEASCII":"Durres","POP_MAX":142432,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[19.5188496,42.0684516],"properties":{"NAME":"Shkodër","NAMEASCII":"Shkoder","POP_MAX":155767,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[3.2300248,51.2203736],"properties":{"NAME":"Brugge","NAMEASCII":"Brugge","POP_MAX":146469,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[4.870028,50.4703935],"properties":{"NAME":"Namur","NAMEASCII":"Namur","POP_MAX":106284,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[4.450002,50.4203965],"properties":{"NAME":"Charleroi","NAMEASCII":"Charleroi","POP_MAX":345367,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[48.9202592,39.9323029],"properties":{"NAME":"Şirvan","NAMEASCII":"Shirvan","POP_MAX":70684,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[47.7405896,40.6534217],"properties":{"NAME":"Goycay","NAMEASCII":"Goycay","POP_MAX":35348,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[48.8510644,38.7540027],"properties":{"NAME":"Lankaran","NAMEASCII":"Lankaran","POP_MAX":60180,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[47.1705468,41.1923293],"properties":{"NAME":"Saki","NAMEASCII":"Saki","POP_MAX":64968,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[46.7519677,39.8156433],"properties":{"NAME":"Stepanakert","NAMEASCII":"Stepanakert","POP_MAX":57473,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[46.4149857,39.2015206],"properties":{"NAME":"Kapan","NAMEASCII":"Kapan","POP_MAX":42288,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[66.8997302,36.7501199],"properties":{"NAME":"Balkh","NAMEASCII":"Balkh","POP_MAX":179969,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[64.7700927,35.9302216],"properties":{"NAME":"Meymaneh","NAMEASCII":"Meymaneh","POP_MAX":199795,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[65.1014937,36.9316592],"properties":{"NAME":"Andkhvoy","NAMEASCII":"Andkhvoy","POP_MAX":71730,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[66.8867594,32.1122634],"properties":{"NAME":"Qalat","NAMEASCII":"Qalat","POP_MAX":12191,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.4178287,33.5633118],"properties":{"NAME":"Ghazni","NAMEASCII":"Ghazni","POP_MAX":141000,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[70.5792472,37.1297608],"properties":{"NAME":"Feyzabad","NAMEASCII":"Feyzabad","POP_MAX":64704,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.8725297,36.7279507],"properties":{"NAME":"Kondoz","NAMEASCII":"Kondoz","POP_MAX":259809,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[70.4361035,34.4415269],"properties":{"NAME":"Jalalabad","NAMEASCII":"Jalalabad","POP_MAX":597971,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[69.1679121,35.0182617],"properties":{"NAME":"Charikar","NAMEASCII":"Charikar","POP_MAX":53676,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[102.9833158,13.5837561],"properties":{"NAME":"Sisophon","NAMEASCII":"Sisophon","POP_MAX":50302,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[102.9849329,11.617539],"properties":{"NAME":"Krong Koh Kong","NAMEASCII":"Krong Koh Kong","POP_MAX":33134,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[103.9166955,12.533691],"properties":{"NAME":"Pursat","NAMEASCII":"Pursat","POP_MAX":52476,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[105.4500386,12.0004419],"properties":{"NAME":"Kampong Cham","NAMEASCII":"Kampong Cham","POP_MAX":83233,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[104.6666239,12.2504783],"properties":{"NAME":"Kompong Chhnang","NAMEASCII":"Kompong Chhnang","POP_MAX":75244,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[104.1833459,10.6170897],"properties":{"NAME":"Kampot","NAMEASCII":"Kampot","POP_MAX":50105,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[104.7833093,10.9837598],"properties":{"NAME":"Takéo","NAMEASCII":"Takeo","POP_MAX":15264,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[90.3800024,24.750413],"properties":{"NAME":"Mymensingh","NAMEASCII":"Mymensingh","POP_MAX":330126,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[89.9500028,24.9004297],"properties":{"NAME":"Jamalpur","NAMEASCII":"Jamalpur","POP_MAX":167900,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[90.4999951,23.6204045],"properties":{"NAME":"Narayanganj","NAMEASCII":"Narayanganj","POP_MAX":223622,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[20.7400154,-8.4196037],"properties":{"NAME":"Lucapa","NAMEASCII":"Lucapa","POP_MAX":31041,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[18.4300272,-9.4195943],"properties":{"NAME":"Capenda-Camulemba","NAMEASCII":"Capenda-Camulemba","POP_MAX":80000,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[20.3900109,-9.6595797],"properties":{"NAME":"Saurimo","NAMEASCII":"Saurimo","POP_MAX":41316,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[21.31998,-10.5996256],"properties":{"NAME":"Muconda","NAMEASCII":"Muconda","POP_MAX":2324,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[19.2600024,-10.1496273],"properties":{"NAME":"Cacolo","NAMEASCII":"Cacolo","POP_MAX":984,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.6599825,-8.5795422],"properties":{"NAME":"Caxito","NAMEASCII":"Caxito","POP_MAX":28224,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[15.3700073,-8.1895919],"properties":{"NAME":"Camabatela","NAMEASCII":"Camabatela","POP_MAX":12837,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.9099837,-9.2995499],"properties":{"NAME":"Ndalatando","NAMEASCII":"Ndalatando","POP_MAX":8144,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.9799536,-10.7295919],"properties":{"NAME":"Quibala","NAMEASCII":"Quibala","POP_MAX":8915,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.9000101,-9.9996106],"properties":{"NAME":"Calulo","NAMEASCII":"Calulo","POP_MAX":795,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[15.1199967,-11.3595276],"properties":{"NAME":"Waku Kungo","NAMEASCII":"Waku Kungo","POP_MAX":12069,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.8499873,-7.3495915],"properties":{"NAME":"Songo","NAMEASCII":"Songo","POP_MAX":10579,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.2399987,-6.2696057],"properties":{"NAME":"Mbanza-Congo","NAMEASCII":"Mbanza-Congo","POP_MAX":60182,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[12.8600313,-7.2295988],"properties":{"NAME":"Nzeto","NAMEASCII":"Nzeto","POP_MAX":21059,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[12.3699837,-6.1296142],"properties":{"NAME":"Soyo","NAMEASCII":"Soyo","POP_MAX":67491,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[12.1899947,-5.5596232],"properties":{"NAME":"Cabinda","NAMEASCII":"Cabinda","POP_MAX":91791,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[16.1999825,-11.3195817],"properties":{"NAME":"Calucinga","NAMEASCII":"Calucinga","POP_MAX":531,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[17.4699825,-12.0195906],"properties":{"NAME":"Camacupa","NAMEASCII":"Camacupa","POP_MAX":19828,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.2399987,-13.0395801],"properties":{"NAME":"Cubal","NAMEASCII":"Cubal","POP_MAX":4837,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[20.3600386,-15.7895414],"properties":{"NAME":"Mavinga","NAMEASCII":"Mavinga","POP_MAX":30000,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[19.1699821,-15.1596057],"properties":{"NAME":"Cuito Caunavale","NAMEASCII":"Cuito Caunavale","POP_MAX":149,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[22.9999808,-17.3695483],"properties":{"NAME":"Luiana","NAMEASCII":"Luiana","POP_MAX":150,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[15.730037,-17.0696183],"properties":{"NAME":"Ondjiva","NAMEASCII":"Ondjiva","POP_MAX":10169,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.9200183,-17.3196289],"properties":{"NAME":"Chitado","NAMEASCII":"Chitado","POP_MAX":500,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.0800085,-15.7495955],"properties":{"NAME":"Chibemba","NAMEASCII":"Chibemba","POP_MAX":1502,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.6900065,-15.1896297],"properties":{"NAME":"Chibia","NAMEASCII":"Chibia","POP_MAX":1411,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.5500057,-14.8295483],"properties":{"NAME":"Quipungo","NAMEASCII":"Quipungo","POP_MAX":186,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[22.230002,-10.7095414],"properties":{"NAME":"Luau","NAMEASCII":"Luau","POP_MAX":18465,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[19.8600175,-13.6995915],"properties":{"NAME":"Cangamba","NAMEASCII":"Cangamba","POP_MAX":1307,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[21.4400244,-14.0996187],"properties":{"NAME":"Lumbala Nguimbo","NAMEASCII":"Lumbala Nguimbo","POP_MAX":25,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[22.9000386,-11.8895727],"properties":{"NAME":"Cazombo","NAMEASCII":"Cazombo","POP_MAX":298,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[-68.6665686,-12.499613],"properties":{"NAME":"Puerto Heath","NAMEASCII":"Puerto Heath","POP_MAX":10,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-69.4665973,-17.5996118],"properties":{"NAME":"Charaña","NAMEASCII":"Charana","POP_MAX":197,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-69.1666673,-15.4995849],"properties":{"NAME":"Puerto Acosta","NAMEASCII":"Puerto Acosta","POP_MAX":1123,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.4199945,-14.7195809],"properties":{"NAME":"Apolo","NAMEASCII":"Apolo","POP_MAX":4189,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-67.7200114,-16.1896203],"properties":{"NAME":"Coroico","NAMEASCII":"Coroico","POP_MAX":2361,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.4499669,-17.1696122],"properties":{"NAME":"Coro Coro","NAMEASCII":"Coro Coro","POP_MAX":1884,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.3832784,-19.0162695],"properties":{"NAME":"Sabaya","NAMEASCII":"Sabaya","POP_MAX":573,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.7799913,-18.8995841],"properties":{"NAME":"Challapata","NAMEASCII":"Challapata","POP_MAX":9114,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.2500308,-19.8496037],"properties":{"NAME":"Llica","NAMEASCII":"Llica","POP_MAX":553,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.7500283,-19.5695691],"properties":{"NAME":"Potosí","NAMEASCII":"Potosi","POP_MAX":179901,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.5999858,-22.0795967],"properties":{"NAME":"Villazón","NAMEASCII":"Villazon","POP_MAX":37215,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-65.7200043,-21.4395841],"properties":{"NAME":"Tupiza","NAMEASCII":"Tupiza","POP_MAX":28766,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.2600253,-17.3496012],"properties":{"NAME":"Montero","NAMEASCII":"Montero","POP_MAX":88616,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-61.8666219,-13.6829516],"properties":{"NAME":"Piso Firme","NAMEASCII":"Piso Firme","POP_MAX":72,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-59.7599805,-18.3295414],"properties":{"NAME":"Roboré","NAMEASCII":"Robore","POP_MAX":10036,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-57.7700245,-17.7796008],"properties":{"NAME":"Puerto Quijarro","NAMEASCII":"Puerto Quijarro","POP_MAX":10392,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-60.9600106,-16.3696094],"properties":{"NAME":"San Ignacio","NAMEASCII":"San Ignacio","POP_MAX":25391,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.0799846,-15.6995727],"properties":{"NAME":"Ascension","NAMEASCII":"Ascension","POP_MAX":14429,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-62.50002,-16.2896142],"properties":{"NAME":"San Javier","NAMEASCII":"San Javier","POP_MAX":4210,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-60.6799502,-16.7795068],"properties":{"NAME":"San Rafael","NAMEASCII":"San Rafael","POP_MAX":1201,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.1099992,-18.4895833],"properties":{"NAME":"Vallegrande","NAMEASCII":"Vallegrande","POP_MAX":8422,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-57.8499679,-18.9495552],"properties":{"NAME":"Puerto Suárez","NAMEASCII":"Puerto Suarez","POP_MAX":22000,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.2199502,-19.7995809],"properties":{"NAME":"Charagua","NAMEASCII":"Charagua","POP_MAX":3025,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.5000106,-21.2495699],"properties":{"NAME":"Villamontes","NAMEASCII":"Villamontes","POP_MAX":18761,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.3499846,-22.7295829],"properties":{"NAME":"Bermejo","NAMEASCII":"Bermejo","POP_MAX":36544,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[0.2699987,29.2365216],"properties":{"NAME":"Timimoun","NAMEASCII":"Timimoun","POP_MAX":49237,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-0.6399716,35.1903443],"properties":{"NAME":"Sidi bel Abbes","NAMEASCII":"Sidi bel Abbes","POP_MAX":208604,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-1.3200076,34.8904142],"properties":{"NAME":"Tlimcen","NAMEASCII":"Tlimcen","POP_MAX":229777,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-1.2513813,32.0492698],"properties":{"NAME":"Béni Ounif","NAMEASCII":"Beni Ounif","POP_MAX":5628,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-2.7333063,31.0170848],"properties":{"NAME":"Abadla","NAMEASCII":"Abadla","POP_MAX":14364,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-0.5799494,32.7604151],"properties":{"NAME":"Sefra","NAMEASCII":"Sefra","POP_MAX":63420,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[6.8999816,36.880422],"properties":{"NAME":"Skikda","NAMEASCII":"Skikda","POP_MAX":225181,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.9400166,11.1303658],"properties":{"NAME":"Kandi","NAMEASCII":"Kandi","POP_MAX":109701,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[2.089991,6.3603727],"properties":{"NAME":"Ouidah","NAMEASCII":"Ouidah","POP_MAX":83503,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[1.9899971,7.1903996],"properties":{"NAME":"Abomey","NAMEASCII":"Abomey","POP_MAX":82154,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[1.3899821,10.3204153],"properties":{"NAME":"Natitingou","NAMEASCII":"Natitingou","POP_MAX":80892,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[1.6800419,9.7004273],"properties":{"NAME":"Djougou","NAMEASCII":"Djougou","POP_MAX":202810,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[9.482253,24.5529057],"properties":{"NAME":"Djanet","NAMEASCII":"Djanet","POP_MAX":666,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[9.5500008,28.0503408],"properties":{"NAME":"I-n-Amenas","NAMEASCII":"I-n-Amenas","POP_MAX":216,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[5.1647387,23.69394],"properties":{"NAME":"In Amguel","NAMEASCII":"In Amguel","POP_MAX":3030,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[1.0099536,33.6903583],"properties":{"NAME":"El Bayadh","NAMEASCII":"El Bayadh","POP_MAX":67413,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[6.8599841,33.3704037],"properties":{"NAME":"El Oued","NAMEASCII":"El Oued","POP_MAX":177497,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[6.0544519,31.7023401],"properties":{"NAME":"Hassi Messaoud","NAMEASCII":"Hassi Messaoud","POP_MAX":18124,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[1.3199605,36.1704136],"properties":{"NAME":"Chlef","NAMEASCII":"Chlef","POP_MAX":449167,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[0.1400325,35.400409],"properties":{"NAME":"Mascara","NAMEASCII":"Mascara","POP_MAX":108230,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[0.0899839,35.940376],"properties":{"NAME":"Mostaganem","NAMEASCII":"Mostaganem","POP_MAX":188354,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[0.1400325,34.8403915],"properties":{"NAME":"Saïda","NAMEASCII":"Saida","POP_MAX":142213,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[1.3199605,35.380436],"properties":{"NAME":"Tiarat","NAMEASCII":"Tiarat","POP_MAX":184195,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[5.0700158,36.7603776],"properties":{"NAME":"Béjaïa","NAMEASCII":"Bejaia","POP_MAX":384937,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.8299975,36.4203467],"properties":{"NAME":"Blida","NAMEASCII":"Blida","POP_MAX":511348,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[3.9000097,36.3804783],"properties":{"NAME":"Bouïra","NAMEASCII":"Bouira","POP_MAX":110144,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.7700012,36.2704075],"properties":{"NAME":"Médéa","NAMEASCII":"Medea","POP_MAX":147707,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[7.9499951,36.2903805],"properties":{"NAME":"Souk Ahras","NAMEASCII":"Souk Ahras","POP_MAX":134947,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[8.1200105,35.4104342],"properties":{"NAME":"Tébessa","NAMEASCII":"Tebessa","POP_MAX":171742,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[17.8200386,43.3504922],"properties":{"NAME":"Mostar","NAMEASCII":"Mostar","POP_MAX":163067,"ISO_A2":"BA","SOV_A3":"BIH"}},{"type":"Point","coordinates":[25.5632869,41.9437822],"properties":{"NAME":"Khaskovo","NAMEASCII":"Khaskovo","POP_MAX":79699,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[25.6227148,42.4231328],"properties":{"NAME":"Stara Zagora","NAMEASCII":"Stara Zagora","POP_MAX":143431,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[24.6133707,43.4237693],"properties":{"NAME":"Pleven","NAMEASCII":"Pleven","POP_MAX":118675,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[25.6555293,43.0862447],"properties":{"NAME":"Turnovo","NAMEASCII":"Turnovo","POP_MAX":53115,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[22.6911108,42.2842782],"properties":{"NAME":"Kyustendil","NAMEASCII":"Kyustendil","POP_MAX":51067,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[27.8399955,43.5850515],"properties":{"NAME":"Dobrich","NAMEASCII":"Dobrich","POP_MAX":94831,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[27.8952893,43.2156425],"properties":{"NAME":"Varna","NAMEASCII":"Varna","POP_MAX":312770,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[25.9733394,43.8536914],"properties":{"NAME":"Ruse","NAMEASCII":"Ruse","POP_MAX":184270,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[15.4100048,47.0777582],"properties":{"NAME":"Graz","NAMEASCII":"Graz","POP_MAX":263234,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[14.3100203,46.6203443],"properties":{"NAME":"Klagenfurt","NAMEASCII":"Klagenfurt","POP_MAX":90610,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[14.2887813,48.3192328],"properties":{"NAME":"Linz","NAMEASCII":"Linz","POP_MAX":349161,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[13.4411788,48.5754623],"properties":{"NAME":"Passau","NAMEASCII":"Passau","POP_MAX":50560,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[13.0400203,47.8104783],"properties":{"NAME":"Salzburg","NAMEASCII":"Salzburg","POP_MAX":206279,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[11.4099906,47.2804073],"properties":{"NAME":"Innsbruck","NAMEASCII":"Innsbruck","POP_MAX":155214,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[26.0940555,52.1278634],"properties":{"NAME":"Pinsk","NAMEASCII":"Pinsk","POP_MAX":130777,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[29.2721561,52.0459562],"properties":{"NAME":"Mazyr","NAMEASCII":"Mazyr","POP_MAX":112137,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[30.32465,53.8985047],"properties":{"NAME":"Mahilyow","NAMEASCII":"Mahilyow","POP_MAX":369200,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[29.1927811,53.1265621],"properties":{"NAME":"Babruysk","NAMEASCII":"Babruysk","POP_MAX":220517,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[30.4215433,54.5153146],"properties":{"NAME":"Orsha","NAMEASCII":"Orsha","POP_MAX":135206,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[25.2846476,53.8884794],"properties":{"NAME":"Lida","NAMEASCII":"Lida","POP_MAX":100216,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[23.8340901,53.6778721],"properties":{"NAME":"Hrodna","NAMEASCII":"Hrodna","POP_MAX":317365,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[28.4921521,54.226004],"properties":{"NAME":"Barysaw","NAMEASCII":"Barysaw","POP_MAX":155389,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[45.4122045,39.2092204],"properties":{"NAME":"Naxcivan","NAMEASCII":"Naxcivan","POP_MAX":94788,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[89.1999711,23.1704319],"properties":{"NAME":"Jashore","NAMEASCII":"Jashore","POP_MAX":243987,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[90.3749898,22.700409],"properties":{"NAME":"Barishal","NAMEASCII":"Barishal","POP_MAX":202242,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[91.16998,23.4704136],"properties":{"NAME":"Comilla","NAMEASCII":"Comilla","POP_MAX":389411,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[21.8300264,-24.1695984],"properties":{"NAME":"Lokhwabe","NAMEASCII":"Lokhwabe","POP_MAX":1473,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[21.870024,-23.9696106],"properties":{"NAME":"Lehututu","NAMEASCII":"Lehututu","POP_MAX":1942,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[22.4000175,-26.0094861],"properties":{"NAME":"Tshabong","NAMEASCII":"Tshabong","POP_MAX":9679,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[22.4599621,-20.1596106],"properties":{"NAME":"Tsau","NAMEASCII":"Tsau","POP_MAX":1409,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[22.2699996,-19.6696146],"properties":{"NAME":"Nokaneng","NAMEASCII":"Nokaneng","POP_MAX":1763,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[21.8000024,-18.2995691],"properties":{"NAME":"Mohembo","NAMEASCII":"Mohembo","POP_MAX":757,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[23.4200069,-19.9895951],"properties":{"NAME":"Maun","NAMEASCII":"Maun","POP_MAX":49945,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[25.1500305,-17.8095731],"properties":{"NAME":"Kasane","NAMEASCII":"Kasane","POP_MAX":9250,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[26.1900187,-20.2094783],"properties":{"NAME":"Nata","NAMEASCII":"Nata","POP_MAX":4794,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[24.8800211,-21.1795483],"properties":{"NAME":"Mopipi","NAMEASCII":"Mopipi","POP_MAX":3301,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[27.130013,-22.5596191],"properties":{"NAME":"Palapye","NAMEASCII":"Palapye","POP_MAX":30650,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[29.6165795,-3.9507291],"properties":{"NAME":"Bururi","NAMEASCII":"Bururi","POP_MAX":20393,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[30.3172603,-2.8523466],"properties":{"NAME":"Muyinga","NAMEASCII":"Muyinga","POP_MAX":71076,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[25.680024,-25.2196118],"properties":{"NAME":"Lobatse","NAMEASCII":"Lobatse","POP_MAX":69804,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[25.339993,-24.9696012],"properties":{"NAME":"Kanye","NAMEASCII":"Kanye","POP_MAX":46831,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[131.816698,-13.8161735],"properties":{"NAME":"Pine Creek","NAMEASCII":"Pine Creek","POP_MAX":665,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[131.0999975,-13.2495414],"properties":{"NAME":"Adelaide River","NAMEASCII":"Adelaide River","POP_MAX":237,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[131.0500264,-12.5328926],"properties":{"NAME":"McMinns Lagoon","NAMEASCII":"McMinns Lagoon","POP_MAX":5025,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[133.4672432,-17.5527929],"properties":{"NAME":"Newcastle Waters","NAMEASCII":"Newcastle Waters","POP_MAX":10,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[120.0333345,-33.5828739],"properties":{"NAME":"Ravensthorpe","NAMEASCII":"Ravensthorpe","POP_MAX":1101,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.3499841,-33.2995837],"properties":{"NAME":"Wagin","NAMEASCII":"Wagin","POP_MAX":1598,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.1333048,-20.7829317],"properties":{"NAME":"Roebourne","NAMEASCII":"Roebourne","POP_MAX":19260,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[116.3250337,-21.6365747],"properties":{"NAME":"Pannawonica","NAMEASCII":"Pannawonica","POP_MAX":686,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.7930578,-22.6934611],"properties":{"NAME":"Tom Price","NAMEASCII":"Tom Price","POP_MAX":2723,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[114.1666642,-27.6661808],"properties":{"NAME":"Kalbarri","NAMEASCII":"Kalbarri","POP_MAX":1537,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.8166739,-28.0662081],"properties":{"NAME":"Mount Magnet","NAMEASCII":"Mount Magnet","POP_MAX":424,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[116.0000406,-29.2162671],"properties":{"NAME":"Morawa","NAMEASCII":"Morawa","POP_MAX":259,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[114.9166442,-29.2828263],"properties":{"NAME":"Port Denison","NAMEASCII":"Port Denison","POP_MAX":1213,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[118.2666723,-31.4828471],"properties":{"NAME":"Merredin","NAMEASCII":"Merredin","POP_MAX":2668,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.6666056,-34.632784],"properties":{"NAME":"Mount Barker","NAMEASCII":"Mount Barker","POP_MAX":1781,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.5500752,-33.6995593],"properties":{"NAME":"Katanning","NAMEASCII":"Katanning","POP_MAX":3934,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.1666361,-32.9328878],"properties":{"NAME":"Narrogin","NAMEASCII":"Narrogin","POP_MAX":4238,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.9000468,-31.3495735],"properties":{"NAME":"Gingin","NAMEASCII":"Gingin","POP_MAX":1446,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.6502429,-33.3442838],"properties":{"NAME":"Bunbury","NAMEASCII":"Bunbury","POP_MAX":26998,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.7702356,-32.23939],"properties":{"NAME":"Kwinana","NAMEASCII":"Kwinana","POP_MAX":20086,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[119.3166857,-31.216145],"properties":{"NAME":"Southern Cross","NAMEASCII":"Southern Cross","POP_MAX":187,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[128.9973352,-25.7884143],"properties":{"NAME":"Kaltukatjara","NAMEASCII":"Kaltukatjara","POP_MAX":355,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.2113468,-35.3546004],"properties":{"NAME":"Queanbeyan","NAMEASCII":"Queanbeyan","POP_MAX":32602,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.5466377,-28.1825834],"properties":{"NAME":"Tweed Heads","NAMEASCII":"Tweed Heads","POP_MAX":33065,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.3000187,-32.8996081],"properties":{"NAME":"Ivanhoe","NAMEASCII":"Ivanhoe","POP_MAX":265,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.3833304,-31.5662012],"properties":{"NAME":"Wilcannia","NAMEASCII":"Wilcannia","POP_MAX":442,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.9000386,-36.8996224],"properties":{"NAME":"Merimbula","NAMEASCII":"Merimbula","POP_MAX":6367,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.750017,-36.1295919],"properties":{"NAME":"Echuca","NAMEASCII":"Echuca","POP_MAX":19457,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.9500048,-35.5295768],"properties":{"NAME":"Deniliquin","NAMEASCII":"Deniliquin","POP_MAX":8024,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.6000476,-34.8828463],"properties":{"NAME":"Nowra","NAMEASCII":"Nowra","POP_MAX":94781,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.4700297,-35.3495361],"properties":{"NAME":"Ulladulla","NAMEASCII":"Ulladulla","POP_MAX":9250,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.2073067,-35.6896187],"properties":{"NAME":"Batemans Bay","NAMEASCII":"Batemans Bay","POP_MAX":10557,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.1200345,-36.2395593],"properties":{"NAME":"Cooma","NAMEASCII":"Cooma","POP_MAX":6520,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.2200378,-35.3095902],"properties":{"NAME":"Tumut","NAMEASCII":"Tumut","POP_MAX":6526,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.3973067,-34.5449341],"properties":{"NAME":"Leeton","NAMEASCII":"Leeton","POP_MAX":7299,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.2900077,-34.3095996],"properties":{"NAME":"Young","NAMEASCII":"Young","POP_MAX":7501,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.6800097,-33.8296289],"properties":{"NAME":"Cowra","NAMEASCII":"Cowra","POP_MAX":6795,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.0199983,-33.3896041],"properties":{"NAME":"Forbes","NAMEASCII":"Forbes","POP_MAX":4838,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.7101794,-34.7495727],"properties":{"NAME":"Goulburn","NAMEASCII":"Goulburn","POP_MAX":20940,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.8400329,-34.7095752],"properties":{"NAME":"Kiama","NAMEASCII":"Kiama","POP_MAX":10379,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.320013,-33.706949],"properties":{"NAME":"Katoomba","NAMEASCII":"Katoomba","POP_MAX":22076,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.7399873,-33.5995137],"properties":{"NAME":"Richmond","NAMEASCII":"Richmond","POP_MAX":13880,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.152788,-33.4961092],"properties":{"NAME":"Lithgow","NAMEASCII":"Lithgow","POP_MAX":11128,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.170015,-33.1295683],"properties":{"NAME":"Parkes","NAMEASCII":"Parkes","POP_MAX":11137,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.5700329,-33.4196281],"properties":{"NAME":"Bathurst","NAMEASCII":"Bathurst","POP_MAX":6111,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.555028,-32.7209627],"properties":{"NAME":"Maitland","NAMEASCII":"Maitland","POP_MAX":18625,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.1600134,-32.5694991],"properties":{"NAME":"Singleton","NAMEASCII":"Singleton","POP_MAX":13813,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.5801098,-32.5896012],"properties":{"NAME":"Mudgee","NAMEASCII":"Mudgee","POP_MAX":5391,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.890004,-32.2695691],"properties":{"NAME":"Muswellbrook","NAMEASCII":"Muswellbrook","POP_MAX":11630,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.4618461,-31.8976021],"properties":{"NAME":"Taree","NAMEASCII":"Taree","POP_MAX":44182,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.8220308,-31.0873673],"properties":{"NAME":"Kempsey","NAMEASCII":"Kempsey","POP_MAX":11840,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.2622904,-30.9870117],"properties":{"NAME":"Gunnedah","NAMEASCII":"Gunnedah","POP_MAX":7148,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.1122973,-30.3070532],"properties":{"NAME":"Coffs Harbour","NAMEASCII":"Coffs Harbour","POP_MAX":62978,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.7874357,-30.3319096],"properties":{"NAME":"Narrabri","NAMEASCII":"Narrabri","POP_MAX":7082,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.1125744,-29.7667761],"properties":{"NAME":"Inverell","NAMEASCII":"Inverell","POP_MAX":8561,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.353312,-29.4229914],"properties":{"NAME":"Yamba","NAMEASCII":"Yamba","POP_MAX":1806,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.5679801,-28.8613533],"properties":{"NAME":"Ballina","NAMEASCII":"Ballina","POP_MAX":14242,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.3399882,-35.1221598],"properties":{"NAME":"Wagga Wagga","NAMEASCII":"Wagga Wagga","POP_MAX":55381,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.8501098,-32.0796065],"properties":{"NAME":"Scone","NAMEASCII":"Scone","POP_MAX":4624,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.6128869,-28.656508],"properties":{"NAME":"Byron Bay","NAMEASCII":"Byron Bay","POP_MAX":6764,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[140.6000378,-34.2829346],"properties":{"NAME":"Berri","NAMEASCII":"Berri","POP_MAX":4716,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[138.8333239,-32.9661674],"properties":{"NAME":"Peterborough","NAMEASCII":"Peterborough","POP_MAX":1689,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[137.6332938,-33.9328784],"properties":{"NAME":"Wallaroo","NAMEASCII":"Wallaroo","POP_MAX":2779,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[138.6000048,-33.8328845],"properties":{"NAME":"Clare","NAMEASCII":"Clare","POP_MAX":3061,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.3333451,-35.6995406],"properties":{"NAME":"Meningie","NAMEASCII":"Meningie","POP_MAX":1501,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.8500577,-36.8328047],"properties":{"NAME":"Kingston South East","NAMEASCII":"Kingston South East","POP_MAX":206,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[140.7666426,-36.3161955],"properties":{"NAME":"Bordertown","NAMEASCII":"Bordertown","POP_MAX":2583,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[140.8166654,-37.382952],"properties":{"NAME":"Penola","NAMEASCII":"Penola","POP_MAX":1514,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[135.2999996,-30.8995752],"properties":{"NAME":"Kingoonya","NAMEASCII":"Kingoonya","POP_MAX":50,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[136.4333671,-33.1496187],"properties":{"NAME":"Kimba","NAMEASCII":"Kimba","POP_MAX":636,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[134.2149296,-32.8118718],"properties":{"NAME":"Streaky Bay","NAMEASCII":"Streaky Bay","POP_MAX":1060,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[136.9166451,-33.6828678],"properties":{"NAME":"Cowell","NAMEASCII":"Cowell","POP_MAX":537,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[136.0833109,-34.3829284],"properties":{"NAME":"Tumby Bay","NAMEASCII":"Tumby Bay","POP_MAX":1791,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[137.1655704,-30.4309733],"properties":{"NAME":"Andamooka","NAMEASCII":"Andamooka","POP_MAX":528,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[136.8000114,-31.1495858],"properties":{"NAME":"Woomera","NAMEASCII":"Woomera","POP_MAX":450,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[137.9900162,-33.1910632],"properties":{"NAME":"Port Pirie","NAMEASCII":"Port Pirie","POP_MAX":12506,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[138.7263537,-34.6073592],"properties":{"NAME":"Gawler","NAMEASCII":"Gawler","POP_MAX":16362,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.2600162,-35.1296012],"properties":{"NAME":"Murray Bridge","NAMEASCII":"Murray Bridge","POP_MAX":18194,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[138.6173164,-35.5596008],"properties":{"NAME":"Victor Harbor","NAMEASCII":"Victor Harbor","POP_MAX":7760,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.0234135,-37.7311995],"properties":{"NAME":"Hamilton","NAMEASCII":"Hamilton","POP_MAX":8869,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.3166772,-35.0661942],"properties":{"NAME":"Ouyen","NAMEASCII":"Ouyen","POP_MAX":1400,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.5800109,-38.3395345],"properties":{"NAME":"Colac","NAMEASCII":"Colac","POP_MAX":9089,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.7600093,-37.0596126],"properties":{"NAME":"Stawell","NAMEASCII":"Stawell","POP_MAX":6991,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.1900183,-36.7096081],"properties":{"NAME":"Horsham","NAMEASCII":"Horsham","POP_MAX":12830,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.9099743,-37.2795475],"properties":{"NAME":"Ararat","NAMEASCII":"Ararat","POP_MAX":6110,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.729976,-37.0495874],"properties":{"NAME":"Maryborough","NAMEASCII":"Maryborough","POP_MAX":7046,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.6099975,-37.8295915],"properties":{"NAME":"Bairnsdale","NAMEASCII":"Bairnsdale","POP_MAX":11005,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.0600052,-38.1095744],"properties":{"NAME":"Sale","NAMEASCII":"Sale","POP_MAX":22486,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.5300118,-38.1995947],"properties":{"NAME":"Traralgon","NAMEASCII":"Traralgon","POP_MAX":18226,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.5900175,-38.6094922],"properties":{"NAME":"Wonthaggi","NAMEASCII":"Wonthaggi","POP_MAX":5985,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.2833695,-38.0996008],"properties":{"NAME":"Cranbourne","NAMEASCII":"Cranbourne","POP_MAX":460491,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.8400468,-37.5595821],"properties":{"NAME":"Ballarat","NAMEASCII":"Ballarat","POP_MAX":85109,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.570028,-37.6895483],"properties":{"NAME":"Melton","NAMEASCII":"Melton","POP_MAX":32368,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.1273067,-37.0342395],"properties":{"NAME":"Seymour","NAMEASCII":"Seymour","POP_MAX":3693,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.3913732,-36.3745898],"properties":{"NAME":"Shepparton","NAMEASCII":"Shepparton","POP_MAX":33550,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.6500138,-35.9196305],"properties":{"NAME":"Cobram","NAMEASCII":"Cobram","POP_MAX":4659,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.5400134,-35.3396142],"properties":{"NAME":"Swan Hill","NAMEASCII":"Swan Hill","POP_MAX":9276,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.7100195,-37.5696073],"properties":{"NAME":"Sunbury","NAMEASCII":"Sunbury","POP_MAX":29925,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.5834781,-20.4162357],"properties":{"NAME":"Proserpine","NAMEASCII":"Proserpine","POP_MAX":3976,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.0833349,-24.9494991],"properties":{"NAME":"Theodore","NAMEASCII":"Theodore","POP_MAX":246,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.1333483,-25.3662178],"properties":{"NAME":"Eidsvold","NAMEASCII":"Eidsvold","POP_MAX":459,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.2833695,-23.5661727],"properties":{"NAME":"Barcaldine","NAMEASCII":"Barcaldine","POP_MAX":1068,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.0332743,-22.3996289],"properties":{"NAME":"Winton","NAMEASCII":"Winton","POP_MAX":1157,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.2500476,-23.4495906],"properties":{"NAME":"Longreach","NAMEASCII":"Longreach","POP_MAX":2894,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.9499816,-27.0829606],"properties":{"NAME":"Caboolture","NAMEASCII":"Caboolture","POP_MAX":31513,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.0203226,-28.2292472],"properties":{"NAME":"Warwick","NAMEASCII":"Warwick","POP_MAX":12347,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.840592,-26.5389628],"properties":{"NAME":"Kingaroy","NAMEASCII":"Kingaroy","POP_MAX":8573,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.2657434,-27.1938582],"properties":{"NAME":"Dalby","NAMEASCII":"Dalby","POP_MAX":9847,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.1508996,-27.0787231],"properties":{"NAME":"Bongaree","NAMEASCII":"Bongaree","POP_MAX":13649,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.6709289,-26.1885966],"properties":{"NAME":"Gympie","NAMEASCII":"Gympie","POP_MAX":11649,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.1666231,-18.6495735],"properties":{"NAME":"Ingham","NAMEASCII":"Ingham","POP_MAX":6127,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.3666247,-25.899622],"properties":{"NAME":"Birdsville","NAMEASCII":"Birdsville","POP_MAX":283,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.4666186,-24.3495874],"properties":{"NAME":"Bedourie","NAMEASCII":"Bedourie","POP_MAX":142,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.9000288,-22.8995984],"properties":{"NAME":"Boulia","NAMEASCII":"Boulia","POP_MAX":600,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.1333199,-20.7162691],"properties":{"NAME":"Richmond","NAMEASCII":"Richmond","POP_MAX":296,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.5666125,-17.7160905],"properties":{"NAME":"Burketown","NAMEASCII":"Burketown","POP_MAX":200,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.8409444,-25.2887032],"properties":{"NAME":"Hervey Bay","NAMEASCII":"Hervey Bay","POP_MAX":25114,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.4960746,-24.393564],"properties":{"NAME":"Biloela","NAMEASCII":"Biloela","POP_MAX":6309,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.7567305,-23.1329175],"properties":{"NAME":"Yeppoon","NAMEASCII":"Yeppoon","POP_MAX":10769,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.1673278,-23.5122225],"properties":{"NAME":"Emerald","NAMEASCII":"Emerald","POP_MAX":9398,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.0380334,-22.0015653],"properties":{"NAME":"Moranbah","NAMEASCII":"Moranbah","POP_MAX":10000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.2587105,-20.0809074],"properties":{"NAME":"Charters Towers","NAMEASCII":"Charters Towers","POP_MAX":9573,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.3994677,-19.5702409],"properties":{"NAME":"Ayr","NAMEASCII":"Ayr","POP_MAX":9078,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.469353,-17.2702779],"properties":{"NAME":"Atherton","NAMEASCII":"Atherton","POP_MAX":6959,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.4587218,-16.4845881],"properties":{"NAME":"Port Douglas","NAMEASCII":"Port Douglas","POP_MAX":3000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.1166613,-40.8329223],"properties":{"NAME":"Smithton","NAMEASCII":"Smithton","POP_MAX":4202,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.5166699,-41.1494922],"properties":{"NAME":"Scottsdale","NAMEASCII":"Scottsdale","POP_MAX":2468,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.2886124,-41.8783882],"properties":{"NAME":"Bicheno","NAMEASCII":"Bicheno","POP_MAX":177,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.3666015,-42.2996028],"properties":{"NAME":"Oatlands","NAMEASCII":"Oatlands","POP_MAX":1157,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.5500199,-42.0829236],"properties":{"NAME":"Queenstown","NAMEASCII":"Queenstown","POP_MAX":2352,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.3084139,-42.9911369],"properties":{"NAME":"Kingston","NAMEASCII":"Kingston","POP_MAX":14371,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[-2.3699952,12.2504783],"properties":{"NAME":"Koudougou","NAMEASCII":"Koudougou","POP_MAX":87347,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-2.4199921,13.5704236],"properties":{"NAME":"Ouahigouya","NAMEASCII":"Ouahigouya","POP_MAX":79504,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-1.0900474,13.0903754],"properties":{"NAME":"Kaya","NAMEASCII":"Kaya","POP_MAX":40017,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-0.3697038,11.7804037],"properties":{"NAME":"Tenkodogo","NAMEASCII":"Tenkodogo","POP_MAX":38108,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[-4.7600043,10.630448],"properties":{"NAME":"Banfora","NAMEASCII":"Banfora","POP_MAX":60288,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[18.6800378,44.5504706],"properties":{"NAME":"Tuzla","NAMEASCII":"Tuzla","POP_MAX":144334,"ISO_A2":"BA","SOV_A3":"BIH"}},{"type":"Point","coordinates":[16.7000036,44.9803927],"properties":{"NAME":"Prijedor","NAMEASCII":"Prijedor","POP_MAX":104858,"ISO_A2":"BA","SOV_A3":"BIH"}},{"type":"Point","coordinates":[17.1799743,44.7804049],"properties":{"NAME":"Banja Luka","NAMEASCII":"Banja Luka","POP_MAX":221738,"ISO_A2":"BA","SOV_A3":"BIH"}},{"type":"Point","coordinates":[89.2499939,24.0003813],"properties":{"NAME":"Pabna","NAMEASCII":"Pabna","POP_MAX":137888,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[88.3499971,24.5803976],"properties":{"NAME":"Nawabganj","NAMEASCII":"Nawabganj","POP_MAX":142361,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[88.9999833,25.8004265],"properties":{"NAME":"Saidpur","NAMEASCII":"Saidpur","POP_MAX":232209,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[95.3914278,21.4618282],"properties":{"NAME":"Myingyan","NAMEASCII":"Myingyan","POP_MAX":163812,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.7414839,17.7818978],"properties":{"NAME":"Letpadan","NAMEASCII":"Letpadan","POP_MAX":176571,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[96.4179284,18.9482866],"properties":{"NAME":"Taungoo","NAMEASCII":"Taungoo","POP_MAX":106945,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[96.5193176,16.7546995],"properties":{"NAME":"Thongwa","NAMEASCII":"Thongwa","POP_MAX":52496,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[97.7214664,16.2618355],"properties":{"NAME":"Mudon","NAMEASCII":"Mudon","POP_MAX":152300,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[97.8678658,15.2532666],"properties":{"NAME":"Ye","NAMEASCII":"Ye","POP_MAX":50798,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[97.6700484,16.5004256],"properties":{"NAME":"Mawlamyine","NAMEASCII":"Mawlamyine","POP_MAX":438861,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[93.5494036,19.4290132],"properties":{"NAME":"Kyaukphyu","NAMEASCII":"Kyaukphyu","POP_MAX":4261,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.1828617,16.613287],"properties":{"NAME":"Wakema","NAMEASCII":"Wakema","POP_MAX":48405,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[94.7014441,16.1618933],"properties":{"NAME":"Labutta","NAMEASCII":"Labutta","POP_MAX":1667,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.6828829,16.2932548],"properties":{"NAME":"Phyarpon","NAMEASCII":"Phyarpon","POP_MAX":65601,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.6428853,17.0432866],"properties":{"NAME":"Yandoon","NAMEASCII":"Yandoon","POP_MAX":36172,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.4678572,17.6482626],"properties":{"NAME":"Hinthada","NAMEASCII":"Hinthada","POP_MAX":180728,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[94.7499682,16.7704092],"properties":{"NAME":"Pathein","NAMEASCII":"Pathein","POP_MAX":237089,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.2279235,19.378312],"properties":{"NAME":"Allanmyo","NAMEASCII":"Allanmyo","POP_MAX":57897,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[94.880968,20.46145],"properties":{"NAME":"Yaynangyoung","NAMEASCII":"Yaynangyoung","POP_MAX":110553,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[94.8230387,20.908477],"properties":{"NAME":"Chauk","NAMEASCII":"Chauk","POP_MAX":90870,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.0866402,21.3320429],"properties":{"NAME":"Pakokku","NAMEASCII":"Pakokku","POP_MAX":126938,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[97.3999873,23.0837447],"properties":{"NAME":"Namtu","NAMEASCII":"Namtu","POP_MAX":48591,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[98.1949776,14.0979625],"properties":{"NAME":"Dawei","NAMEASCII":"Dawei","POP_MAX":146212,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.6928564,22.5782717],"properties":{"NAME":"Shwebo","NAMEASCII":"Shwebo","POP_MAX":88914,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[29.8435941,-3.4260067],"properties":{"NAME":"Gitega","NAMEASCII":"Gitega","POP_MAX":23167,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[69.2146276,33.6000537],"properties":{"NAME":"Gardiz","NAMEASCII":"Gardiz","POP_MAX":103601,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[33.0333219,34.6754144],"properties":{"NAME":"Lemosos","NAMEASCII":"Lemosos","POP_MAX":154000,"ISO_A2":"CY","SOV_A3":"CYP"}},{"type":"Point","coordinates":[84.00558021350962,28.204200899659607],"properties":{"NAME":"Pokhara","NAMEASCII":"Pokhara","POP_MAX":200000,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[126.7811097,37.5008348],"properties":{"NAME":"Bucheon","NAMEASCII":"Puch'on","POP_MAX":866000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[127.1358319,37.440557],"properties":{"NAME":"Songnam","NAMEASCII":"Songnam","POP_MAX":942000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.8353027,37.6546817],"properties":{"NAME":"Goyang","NAMEASCII":"Goyang","POP_MAX":903000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[145.7505761,15.2112537],"properties":{"NAME":"Capitol Hill","NAMEASCII":"Capitol Hill","POP_MAX":2500,"ISO_A2":"MP","SOV_A3":"USA"}},{"type":"Point","coordinates":[-64.749986,17.7503752],"properties":{"NAME":"Christiansted","NAMEASCII":"Christiansted","POP_MAX":32543,"ISO_A2":"VI","SOV_A3":"USA"}},{"type":"Point","coordinates":[-66.6166421,18.0003858],"properties":{"NAME":"Ponce","NAMEASCII":"Ponce","POP_MAX":160334,"ISO_A2":"PR","SOV_A3":"USA"}},{"type":"Point","coordinates":[-67.1397109,18.2015104],"properties":{"NAME":"Mayagüez","NAMEASCII":"Mayaguez","POP_MAX":291339,"ISO_A2":"PR","SOV_A3":"USA"}},{"type":"Point","coordinates":[-36.5079889,-54.280577],"properties":{"NAME":"Grytviken","NAMEASCII":"Grytviken","POP_MAX":99,"ISO_A2":"GS","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-60.0869631,-51.95059],"properties":{"NAME":"Fox Bay","NAMEASCII":"Fox Bay","POP_MAX":120,"ISO_A2":"FK","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-81.37156994982368,19.294748156110312],"properties":{"NAME":"George Town","NAMEASCII":"George Town","POP_MAX":4268,"ISO_A2":"KY","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-71.1359786,21.4664274],"properties":{"NAME":"Grand Turk","NAMEASCII":"Grand Turk","POP_MAX":5801,"ISO_A2":"TC","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-4.480269097598402,54.14912168202999],"properties":{"NAME":"Douglas","NAMEASCII":"Douglas","POP_MAX":35854,"ISO_A2":"IM","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-173.9832927,-18.6495735],"properties":{"NAME":"Neiafu","NAMEASCII":"Neiafu","POP_MAX":7391,"ISO_A2":"TO","SOV_A3":"TON"}},{"type":"Point","coordinates":[-13.5378328,28.9690492],"properties":{"NAME":"Arrecife","NAMEASCII":"Arrecife","POP_MAX":52944,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[43.1800411,9.9404126],"properties":{"NAME":"Boorama","NAMEASCII":"Boorama","POP_MAX":67664,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[45.5400004,9.5203866],"properties":{"NAME":"Burco","NAMEASCII":"Burco","POP_MAX":106593,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[47.097528,10.9800908],"properties":{"NAME":"Maydh","NAMEASCII":"Maydh","POP_MAX":30000,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[12.4417702,43.9360958],"properties":{"NAME":"San Marino","NAMEASCII":"San Marino","POP_MAX":29579,"ISO_A2":"SM","SOV_A3":"SMR"}},{"type":"Point","coordinates":[134.4695009,7.3452264],"properties":{"NAME":"Koror","NAMEASCII":"Koror","POP_MAX":11200,"ISO_A2":"PW","SOV_A3":"PLW"}},{"type":"Point","coordinates":[-68.87235603135242,12.112289523294688],"properties":{"NAME":"Willemstad","NAMEASCII":"Willemstad","POP_MAX":146813,"ISO_A2":"CW","SOV_A3":"NLD"}},{"type":"Point","coordinates":[-70.02552621251468,12.521502808252649],"properties":{"NAME":"Oranjestad","NAMEASCII":"Oranjestad","POP_MAX":68775,"ISO_A2":"AW","SOV_A3":"NLD"}},{"type":"Point","coordinates":[57.5166337,-20.3161902],"properties":{"NAME":"Curepipe","NAMEASCII":"Curepipe","POP_MAX":299975,"ISO_A2":"MU","SOV_A3":"MUS"}},{"type":"Point","coordinates":[9.5166695,47.1337238],"properties":{"NAME":"Vaduz","NAMEASCII":"Vaduz","POP_MAX":36281,"ISO_A2":"LI","SOV_A3":"LIE"}},{"type":"Point","coordinates":[35.2544266,32.2214815],"properties":{"NAME":"Nablus","NAMEASCII":"Nablus","POP_MAX":215981,"ISO_A2":"PS","SOV_A3":"IS1"}},{"type":"Point","coordinates":[45.2750036,-12.787089],"properties":{"NAME":"Dzaoudzi","NAMEASCII":"Dzaoudzi","POP_MAX":32057,"ISO_A2":"YT","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-68.966602,18.4170012],"properties":{"NAME":"La Romana","NAMEASCII":"La Romana","POP_MAX":208437,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-25.0000092,16.8837614],"properties":{"NAME":"Mindelo","NAMEASCII":"Mindelo","POP_MAX":70611,"ISO_A2":"CV","SOV_A3":"CPV"}},{"type":"Point","coordinates":[-53.3632909,46.736978],"properties":{"NAME":"Trepassey","NAMEASCII":"Trepassey","POP_MAX":398,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-59.6833185,-62.4995068],"properties":{"NAME":"Capitan Arturo Prat Station","NAMEASCII":"Capitan Arturo Prat Station","POP_MAX":41,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-56.6500153,-64.2328894],"properties":{"NAME":"Marambio Base","NAMEASCII":"Marambio Base","POP_MAX":150,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[164.2190271,-74.6191926],"properties":{"NAME":"Zucchelli Station","NAMEASCII":"Zucchelli Station","POP_MAX":80,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-68.1235405,-67.5647756],"properties":{"NAME":"Rothera Station","NAMEASCII":"Rothera Station","POP_MAX":130,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-64.0468756,-64.7624134],"properties":{"NAME":"Palmer Station","NAMEASCII":"Palmer Station","POP_MAX":46,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-58.9076523,-62.1827436],"properties":{"NAME":"Base Presidente Montalva","NAMEASCII":"Base Presidente Montalva","POP_MAX":150,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-58.650476,-62.2241439],"properties":{"NAME":"Carlini Base","NAMEASCII":"Carlini Base","POP_MAX":60,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-58.7715988,-62.2248534],"properties":{"NAME":"King Sejong Station","NAMEASCII":"King Sejong Station","POP_MAX":90,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-58.9666956,-62.21632],"properties":{"NAME":"Great Wall Station","NAMEASCII":"Great Wall Station","POP_MAX":40,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-58.9526658,-62.1949625],"properties":{"NAME":"Escudero Base","NAMEASCII":"Escudero Base","POP_MAX":20,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-57.9999846,-61.999589],"properties":{"NAME":"Elephant Island","NAMEASCII":"Elephant Island","POP_MAX":6,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[166.7491023,-77.8469382],"properties":{"NAME":"Scott Base","NAMEASCII":"Scott Base","POP_MAX":85,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[166.8694157,-77.7322824],"properties":{"NAME":"McMurdo Station","NAMEASCII":"McMurdo Station","POP_MAX":1000,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[76.3392981,-69.434063],"properties":{"NAME":"Zhongshan Station","NAMEASCII":"Zhongshan Station","POP_MAX":60,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[106.8000337,-78.4662842],"properties":{"NAME":"Vostok Station","NAMEASCII":"Vostok","POP_MAX":25,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-90.584203,-68.7951614],"properties":{"NAME":"Peter I Island","NAMEASCII":"Peter I Island","POP_MAX":1,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[93.0062885,-66.5755295],"properties":{"NAME":"Mirny Station","NAMEASCII":"Mirny Station","POP_MAX":169,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[62.8750007,-67.6145203],"properties":{"NAME":"Mawson Station","NAMEASCII":"Mawson Station","POP_MAX":60,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[78.1407351,-68.7776744],"properties":{"NAME":"Davis Station","NAMEASCII":"Davis Station","POP_MAX":70,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[124.1670357,-74.6663094],"properties":{"NAME":"Concordia Research Station","NAMEASCII":"Concordia Research Station","POP_MAX":30,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[110.536214,-66.2860861],"properties":{"NAME":"Casey Station","NAMEASCII":"Casey Station","POP_MAX":200,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[176.9944521,-89.9999998],"properties":{"NAME":"Amundsen–Scott South Pole Station","NAMEASCII":"AmundseniScott South Pole Station","POP_MAX":200,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-13.4167111,-73.0496122],"properties":{"NAME":"Wasa Station","NAMEASCII":"Wasa Station","POP_MAX":10,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[2.5333231,-72.0162903],"properties":{"NAME":"Troll Station","NAMEASCII":"Troll Station","POP_MAX":44,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-11.2166903,-74.5829036],"properties":{"NAME":"Svea Station","NAMEASCII":"Svea Station","POP_MAX":10,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-11.8502129,-71.3012347],"properties":{"NAME":"Novolazarevskaya Station","NAMEASCII":"Novolazarevskaya Station","POP_MAX":70,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-7.838438,-70.8903967],"properties":{"NAME":"Neumayer Station III","NAMEASCII":"Neumayer Station III","POP_MAX":40,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[11.7304584,-70.7821796],"properties":{"NAME":"Maitri Station","NAMEASCII":"Maitri Station","POP_MAX":65,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-26.4741567,-76.0922632],"properties":{"NAME":"Halley Station","NAMEASCII":"Halley Station","POP_MAX":70,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-34.6166832,-77.8663208],"properties":{"NAME":"Belgrano II Base","NAMEASCII":"Belgrano II Base","POP_MAX":100,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-40.5015315,-81.1790847],"properties":{"NAME":"Sobral Base","NAMEASCII":"Sobral Base","POP_MAX":40,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-13.4167111,-75.0495935],"properties":{"NAME":"Aboa Station","NAMEASCII":"Aboa Station","POP_MAX":18,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-67.0999976,-68.1163216],"properties":{"NAME":"San Martín Base","NAMEASCII":"San Martin Base","POP_MAX":20,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-57.8895935,-63.3284182],"properties":{"NAME":"Gen. O'Higgins Base","NAMEASCII":"Gen. O'Higgins Base","POP_MAX":44,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-57.0259015,-63.3753287],"properties":{"NAME":"Esperanza Base","NAMEASCII":"Esperanza Station","POP_MAX":250,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-44.7333008,-60.7328963],"properties":{"NAME":"Orcadas Station","NAMEASCII":"Orcadas Station","POP_MAX":45,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-45.6007033,-60.6313081],"properties":{"NAME":"Signy Research Station","NAMEASCII":"Signy Research Station","POP_MAX":8,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[-57.224986,74.5780629],"properties":{"NAME":"Kullorsuaq","NAMEASCII":"Kullorsuaq","POP_MAX":450,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-56.0598137,73.3690023],"properties":{"NAME":"Tasiusaq","NAMEASCII":"Tasiusaq","POP_MAX":250,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-155.98771130667805,19.6381395571486],"properties":{"NAME":"Kailua-Kona","NAMEASCII":"Kailua-Kona","POP_MAX":9870,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[139.9636836,-66.7750509],"properties":{"NAME":"Dumont d'Urville Station","NAMEASCII":"Dumont d'Urville Station","POP_MAX":120,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[39.7460831,-69.0303925],"properties":{"NAME":"Showa Station","NAMEASCII":"Showa Station","POP_MAX":60,"ISO_A2":"AQ","SOV_A3":"ATA"}},{"type":"Point","coordinates":[120.5134086,24.0734001],"properties":{"NAME":"Changhua","NAMEASCII":"Changhua","POP_MAX":750000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.4350671,23.4754521],"properties":{"NAME":"Chiayi","NAMEASCII":"Chiayi","POP_MAX":500000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.9767395,24.8167914],"properties":{"NAME":"Hsinchu","NAMEASCII":"Hsinchu","POP_MAX":750000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.82,24.57],"properties":{"NAME":"Miaoli","NAMEASCII":"Miaoli","POP_MAX":150000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.4816792,22.6817021],"properties":{"NAME":"Pingtung","NAMEASCII":"Pingtung","POP_MAX":503530,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[-56.7099858,-34.3499589],"properties":{"NAME":"San José de Mayo","NAMEASCII":"San Jose de Mayo","POP_MAX":36529,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-54.3330249,-34.482974],"properties":{"NAME":"Rocha","NAMEASCII":"Rocha","POP_MAX":26874,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-112.5338394,46.0038961],"properties":{"NAME":"Butte","NAMEASCII":"Butte","POP_MAX":34190,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.0324858,47.9252775],"properties":{"NAME":"Grand Forks","NAMEASCII":"Grand Forks","POP_MAX":58566,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.4447233,42.8713483],"properties":{"NAME":"Pocatello","NAMEASCII":"Pocatello","POP_MAX":63998,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.44682411312154,47.24056773446696],"properties":{"NAME":"Tacoma","NAMEASCII":"Tacoma","POP_MAX":719868,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.6236084,32.6852775],"properties":{"NAME":"Yuma","NAMEASCII":"Yuma","POP_MAX":92489,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.4477723,34.5900191],"properties":{"NAME":"Prescott","NAMEASCII":"Prescott","POP_MAX":55038,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.20033735659706,33.77701767314316],"properties":{"NAME":"Long Beach","NAMEASCII":"Long Beach","POP_MAX":2036134,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.5499998,39.0938528],"properties":{"NAME":"Grand Junction","NAMEASCII":"Grand Junction","POP_MAX":104214,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.887675,39.2470217],"properties":{"NAME":"Ely","NAMEASCII":"Ely","POP_MAX":4216,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.7663953,39.1638485],"properties":{"NAME":"Carson City","NAMEASCII":"Carson City","POP_MAX":57341,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.2282998,32.420565],"properties":{"NAME":"Carlsbad","NAMEASCII":"Carlsbad","POP_MAX":25302,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.9597187,32.8994763],"properties":{"NAME":"Alamogordo","NAMEASCII":"Alamogordo","POP_MAX":36058,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.8744227,42.326627],"properties":{"NAME":"Medford","NAMEASCII":"Medford","POP_MAX":108525,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.7805359,42.2250053],"properties":{"NAME":"Klamath Falls","NAMEASCII":"Klamath Falls","POP_MAX":42978,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-113.583336,37.1041551],"properties":{"NAME":"St. George","NAMEASCII":"St. George","POP_MAX":98638,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.63777,40.2488985],"properties":{"NAME":"Provo","NAMEASCII":"Provo","POP_MAX":356712,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.5905681,41.311366],"properties":{"NAME":"Laramie","NAMEASCII":"Laramie","POP_MAX":26934,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.3310932,34.7360826],"properties":{"NAME":"Little Rock","NAMEASCII":"Little Rock","POP_MAX":270893,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.32765748963789,37.6763377062201],"properties":{"NAME":"Wichita","NAMEASCII":"Wichita","POP_MAX":401843,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.173325,38.5766234],"properties":{"NAME":"Jefferson City","NAMEASCII":"Jefferson City","POP_MAX":55139,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-103.2305571,44.080551],"properties":{"NAME":"Rapid City","NAMEASCII":"Rapid City","POP_MAX":73632,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.0199494,30.199977],"properties":{"NAME":"Lafayette","NAMEASCII":"Lafayette","POP_MAX":158214,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.7974801,29.301143],"properties":{"NAME":"Galveston","NAMEASCII":"Galveston","POP_MAX":68612,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.3568775,28.9594843],"properties":{"NAME":"Freeport","NAMEASCII":"Freeport","POP_MAX":74892,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.0033403,28.8049976],"properties":{"NAME":"Victoria","NAMEASCII":"Victoria","POP_MAX":64209,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-102.3672248,31.8455613],"properties":{"NAME":"Odessa","NAMEASCII":"Odessa","POP_MAX":106054,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.4930685,33.9136263],"properties":{"NAME":"Wichita Falls","NAMEASCII":"Wichita Falls","POP_MAX":101212,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.1463807,31.5491712],"properties":{"NAME":"Waco","NAMEASCII":"Waco","POP_MAX":167347,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.8799677,33.5800033],"properties":{"NAME":"Lubbock","NAMEASCII":"Lubbock","POP_MAX":213300,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-67.4699492,7.8999945],"properties":{"NAME":"San Fernando de Apure","NAMEASCII":"San Fernando de Apure","POP_MAX":122701,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-69.3019125,10.0519384],"properties":{"NAME":"Barquisimeto","NAMEASCII":"Barquisimeto","POP_MAX":1116000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-72.6819129,41.771966],"properties":{"NAME":"Hartford","NAMEASCII":"Hartford","POP_MAX":913000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.4169256,41.8230482],"properties":{"NAME":"Providence","NAMEASCII":"Providence","POP_MAX":1277000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.8249952,33.5300063],"properties":{"NAME":"Birmingham","NAMEASCII":"Birmingham","POP_MAX":1128047,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.049985,30.6800252],"properties":{"NAME":"Mobile","NAMEASCII":"Mobile","POP_MAX":253466,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.2169351,30.4211263],"properties":{"NAME":"Pensacola","NAMEASCII":"Pensacola","POP_MAX":234384,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.6793826,27.7705388],"properties":{"NAME":"St. Petersburg","NAMEASCII":"St. Petersburg","POP_MAX":800313,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.8853087,30.3958049],"properties":{"NAME":"Biloxi","NAMEASCII":"Biloxi","POP_MAX":50644,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.63712574103997,39.78824659925935],"properties":{"NAME":"Springfield","NAMEASCII":"Springfield","POP_MAX":134715,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.8733572,38.2008065],"properties":{"NAME":"Frankfort","NAMEASCII":"Frankfort","POP_MAX":36688,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.8000234,36.0700063],"properties":{"NAME":"Greensboro","NAMEASCII":"Greensboro","POP_MAX":388887,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.2019333,39.7523219],"properties":{"NAME":"Dayton","NAMEASCII":"Dayton","POP_MAX":773000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.9802646,36.8551602],"properties":{"NAME":"Virginia Beach","NAMEASCII":"Virginia Beach","POP_MAX":1491000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.401117,43.0730156],"properties":{"NAME":"Madison","NAMEASCII":"Madison","POP_MAX":327447,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-88.0000139,44.5299809],"properties":{"NAME":"Green Bay","NAMEASCII":"Green Bay","POP_MAX":198611,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-74.7433553,40.2169625],"properties":{"NAME":"Trenton","NAMEASCII":"Trenton","POP_MAX":366513,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-63.1700308,9.7499591],"properties":{"NAME":"Maturín","NAMEASCII":"Maturin","POP_MAX":410972,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-64.1800208,10.4499939],"properties":{"NAME":"Cumaná","NAMEASCII":"Cumana","POP_MAX":317603,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-84.5467363,42.7335272],"properties":{"NAME":"Lansing","NAMEASCII":"Lansing","POP_MAX":279952,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-6.2861410092129,36.52482926254671],"properties":{"NAME":"Cádiz","NAMEASCII":"Cadiz","POP_MAX":283157,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-3.5850114,37.1649783],"properties":{"NAME":"Granada‎","NAMEASCII":"Granada","POP_MAX":388290,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-5.346014061862125,36.128341769040006],"properties":{"NAME":"Gibraltar","NAMEASCII":"Gibraltar","POP_MAX":187083,"ISO_A2":"GI","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-171.7310787,63.7797103],"properties":{"NAME":"Gambell","NAMEASCII":"Gambell","POP_MAX":681,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-149.1126919,61.5997142],"properties":{"NAME":"Palmer","NAMEASCII":"Palmer","POP_MAX":13111,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-149.4699827,60.1261607],"properties":{"NAME":"Seward","NAMEASCII":"Seward","POP_MAX":2900,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[14.1650162,57.7713432],"properties":{"NAME":"Jönköping","NAMEASCII":"Jonkoping","POP_MAX":89780,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[18.7166764,63.3180072],"properties":{"NAME":"Örnsköldsvik","NAMEASCII":"Ornskoldsvik","POP_MAX":27749,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[35.1748628,47.859243],"properties":{"NAME":"Zaporizhzhya","NAMEASCII":"Zaporizhzhya","POP_MAX":788000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[59.0213997,43.768322],"properties":{"NAME":"Muynoq","NAMEASCII":"Muynoq","POP_MAX":13000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[67.2729374,37.2329328],"properties":{"NAME":"Termiz","NAMEASCII":"Termiz","POP_MAX":177687,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[71.7800008,40.3899752],"properties":{"NAME":"Fargona","NAMEASCII":"Fargona","POP_MAX":750000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[71.6699816,41.0000155],"properties":{"NAME":"Namangan","NAMEASCII":"Namangan","POP_MAX":750000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[71.5475602,37.4875167],"properties":{"NAME":"Khorugh","NAMEASCII":"Khorugh","POP_MAX":30000,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[69.6199259,40.2899813],"properties":{"NAME":"Khujand","NAMEASCII":"Khujand","POP_MAX":437684,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[102.8300435,16.4200429],"properties":{"NAME":"Khon Kaen","NAMEASCII":"Khon Kaen","POP_MAX":251056,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[105.8300154,21.5999593],"properties":{"NAME":"Thái Nguyên","NAMEASCII":"Thai Nguyen","POP_MAX":500000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.7999914,19.8200163],"properties":{"NAME":"Thanh Hóa","NAMEASCII":"Thanh Hoa","POP_MAX":197551,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.2000187,20.4200314],"properties":{"NAME":"Nam Định","NAMEASCII":"Nam Dinh","POP_MAX":243186,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.6799987,18.6999813],"properties":{"NAME":"Vinh","NAMEASCII":"Vinh","POP_MAX":593645,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.6000459,17.4833372],"properties":{"NAME":"Đồng Hới","NAMEASCII":"Dong Hoi","POP_MAX":189265,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[31.1999971,-26.4666675],"properties":{"NAME":"Lobamba","NAMEASCII":"Lobamba","POP_MAX":9782,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[-86.7969865,15.7631063],"properties":{"NAME":"La Ceiba","NAMEASCII":"La Ceiba","POP_MAX":145926,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-88.0299862,15.5000216],"properties":{"NAME":"San Pedro Sula","NAMEASCII":"San Pedro Sula","POP_MAX":680091,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-58.2699681,5.9900078],"properties":{"NAME":"Linden","NAMEASCII":"Linden","POP_MAX":44690,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-15.2138595,64.2723151],"properties":{"NAME":"Höfn","NAMEASCII":"Hofn","POP_MAX":1695,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-1.1299675,37.9799931],"properties":{"NAME":"Murcia","NAMEASCII":"Murcia","POP_MAX":406807,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-5.3069994,35.8889838],"properties":{"NAME":"Ceuta","NAMEASCII":"Ceuta","POP_MAX":78674,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-8.4199876,43.3299766],"properties":{"NAME":"La Coruña","NAMEASCII":"La Coruna","POP_MAX":370610,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-7.8699954,42.3299601],"properties":{"NAME":"Ourense","NAMEASCII":"Ourense","POP_MAX":118107,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-72.212516,19.7592224],"properties":{"NAME":"Cap-Haïtien","NAMEASCII":"Cap-Haitien","POP_MAX":281487,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-3.2190906,55.9483279],"properties":{"NAME":"Edinburgh","NAMEASCII":"Edinburgh","POP_MAX":504966,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.61162548933458,54.98974205316957],"properties":{"NAME":"Newcastle","NAMEASCII":"Newcastle","POP_MAX":882000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-2.961934009816594,53.405068298036525],"properties":{"NAME":"Liverpool","NAMEASCII":"Liverpool","POP_MAX":811000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-3.167598195527729,51.48261904913091],"properties":{"NAME":"Cardiff","NAMEASCII":"Cardiff","POP_MAX":861400,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[30.4150321,40.799976],"properties":{"NAME":"Adapazarı","NAMEASCII":"Adapazari","POP_MAX":260109,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[39.7199939,40.9799909],"properties":{"NAME":"Trabzon","NAMEASCII":"Trabzon","POP_MAX":764714,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[80.2400012,6.0300053],"properties":{"NAME":"Galle","NAMEASCII":"Galle","POP_MAX":99478,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[127.0089472,37.259735],"properties":{"NAME":"Suwon","NAMEASCII":"Suwon","POP_MAX":1078000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[-3.0833625,58.4332925],"properties":{"NAME":"Wick","NAMEASCII":"Wick","POP_MAX":7147,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-1.551347711412841,53.790016637752316],"properties":{"NAME":"Leeds","NAMEASCII":"Leeds","POP_MAX":1529000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[38.7949857,37.1699909],"properties":{"NAME":"Şanlıurfa","NAMEASCII":"Sanliurfa","POP_MAX":449549,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[30.081379140562134,0.171077910128901],"properties":{"NAME":"Kasese","NAMEASCII":"Kasese","POP_MAX":67269,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[-1.6499874,42.8200078],"properties":{"NAME":"Pamplona","NAMEASCII":"Pamplona","POP_MAX":274545,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[14.5666971,68.2332886],"properties":{"NAME":"Svolvær","NAMEASCII":"Svolvaer","POP_MAX":4197,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[14.1666699,66.3166097],"properties":{"NAME":"Mo i Rana","NAMEASCII":"Mo i Rana","POP_MAX":20409,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[17.2899934,68.3831502],"properties":{"NAME":"Narvik","NAMEASCII":"Narvik","POP_MAX":20000,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[14.4292849,67.2764346],"properties":{"NAME":"Bodø","NAMEASCII":"Bodo","POP_MAX":34073,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[-79.8365845,-6.7629089],"properties":{"NAME":"Chiclayo","NAMEASCII":"Chiclayo","POP_MAX":596792,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-70.1399671,-15.4999984],"properties":{"NAME":"Juliaca","NAMEASCII":"Juliaca","POP_MAX":245675,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.2699805,-10.6900077],"properties":{"NAME":"Cerro de Pasco","NAMEASCII":"Cerro de Pasco","POP_MAX":137232,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.4799677,-6.5099528],"properties":{"NAME":"Tarapoto","NAMEASCII":"Tarapoto","POP_MAX":936,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.2199506,-13.175024],"properties":{"NAME":"Ayacucho","NAMEASCII":"Ayacucho","POP_MAX":166314,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.1349665,-12.0700268],"properties":{"NAME":"Callao","NAMEASCII":"Callao","POP_MAX":876877,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-57.4344119,-23.4063891],"properties":{"NAME":"Concepción","NAMEASCII":"Concepcion","POP_MAX":59118,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-56.4333102,-25.7500187],"properties":{"NAME":"Villarrica","NAMEASCII":"Villarrica","POP_MAX":41157,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-83.3833706,14.0333411],"properties":{"NAME":"Bilwi","NAMEASCII":"Puerto Cabezas","POP_MAX":43001,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-86.8794363,12.4355575],"properties":{"NAME":"León","NAMEASCII":"Leon","POP_MAX":164441,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-8.90001,38.5299595],"properties":{"NAME":"Setúbal","NAMEASCII":"Setubal","POP_MAX":117974,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.6219471,41.1519522],"properties":{"NAME":"Porto","NAMEASCII":"Porto","POP_MAX":1337000,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[41.0788773,19.1263635],"properties":{"NAME":"Al Qunfudhah","NAMEASCII":"Al Qunfudhah","POP_MAX":157,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[15.620903943662215,78.22097104117844],"properties":{"NAME":"Longyearbyen","NAMEASCII":"Longyearbyen","POP_MAX":1232,"ISO_A2":"SJ","SOV_A3":"NOR"}},{"type":"Point","coordinates":[4.4780285,51.921915],"properties":{"NAME":"Rotterdam","NAMEASCII":"Rotterdam","POP_MAX":1005000,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[6.1300028,49.6116604],"properties":{"NAME":"Luxembourg","NAMEASCII":"Luxembourg","POP_MAX":107260,"ISO_A2":"LU","SOV_A3":"LUX"}},{"type":"Point","coordinates":[5.2774967,59.4119149],"properties":{"NAME":"Haugesund","NAMEASCII":"Haugesund","POP_MAX":40321,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[5.6800044,58.9700039],"properties":{"NAME":"Stavanger","NAMEASCII":"Stavanger","POP_MAX":173132,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[9.6000236,59.1999898],"properties":{"NAME":"Skien","NAMEASCII":"Skien","POP_MAX":73330,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[11.5000109,64.4833108],"properties":{"NAME":"Namsos","NAMEASCII":"Namsos","POP_MAX":9035,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[21.0100248,56.5099732],"properties":{"NAME":"Liepaga","NAMEASCII":"Liepaga","POP_MAX":85132,"ISO_A2":"LV","SOV_A3":"LVA"}},{"type":"Point","coordinates":[23.2416715,69.9666453],"properties":{"NAME":"Alta","NAMEASCII":"Alta","POP_MAX":12077,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[29.7657493,70.0965968],"properties":{"NAME":"Vadsø","NAMEASCII":"Vadso","POP_MAX":5139,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[49.5855932,25.3487486],"properties":{"NAME":"Hofuf","NAMEASCII":"Al Hufuf","POP_MAX":637389,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[66.4463212,30.9250491],"properties":{"NAME":"Chaman","NAMEASCII":"Chaman","POP_MAX":88568,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[63.0717985,25.9917843],"properties":{"NAME":"Turbat","NAMEASCII":"Turbat","POP_MAX":147791,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[73.1080513,31.4119266],"properties":{"NAME":"Faisalabad","NAMEASCII":"Faisalabad","POP_MAX":2617000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[73.06750207299349,33.59100229452351],"properties":{"NAME":"Rawalpindi","NAMEASCII":"Rawalpindi","POP_MAX":1858000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[71.6749943,29.3899748],"properties":{"NAME":"Bahawalpur","NAMEASCII":"Bahawalpur","POP_MAX":552607,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[69.0117976,25.5317865],"properties":{"NAME":"Mirpur Khas","NAMEASCII":"Mirput Khas","POP_MAX":356435,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[68.8485518,27.7135655],"properties":{"NAME":"Sukkur","NAMEASCII":"Sukkur","POP_MAX":417767,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[78.38182,42.4920433],"properties":{"NAME":"Karakol","NAMEASCII":"Karakol","POP_MAX":70171,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[72.3499918,34.7500352],"properties":{"NAME":"Saidu","NAMEASCII":"Saidu","POP_MAX":1860310,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[103.7280944,1.4819705],"properties":{"NAME":"Johor Bahru","NAMEASCII":"Johor Bahru","POP_MAX":875000,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[101.4470587176879,3.043281395168714],"properties":{"NAME":"Kelang","NAMEASCII":"Kelang","POP_MAX":956000,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[28.3279939,-26.147635],"properties":{"NAME":"Benoni","NAMEASCII":"Benoni","POP_MAX":2986000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[27.9580423,-26.6476562],"properties":{"NAME":"Vereeniging","NAMEASCII":"Vereeniging","POP_MAX":1074000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[-79.8749801,9.3650214],"properties":{"NAME":"Colón","NAMEASCII":"Colon","POP_MAX":204000,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-79.5666527,8.9499821],"properties":{"NAME":"Balboa","NAMEASCII":"Balboa","POP_MAX":62882,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[82.90705104448784,58.311020751051956],"properties":{"NAME":"Kolpashevo","NAMEASCII":"Kolpashevo","POP_MAX":27876,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[160.5000118,65.2499823],"properties":{"NAME":"Omolon","NAMEASCII":"Omolon","POP_MAX":1050,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[170.3133146,69.7008218],"properties":{"NAME":"Pevek","NAMEASCII":"Pevek","POP_MAX":4837,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.3455415,66.6813937],"properties":{"NAME":"Umba","NAMEASCII":"Umba","POP_MAX":6128,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.8702311,66.690282],"properties":{"NAME":"Kovda","NAMEASCII":"Kovda","POP_MAX":20,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[31.330015,58.4999809],"properties":{"NAME":"Velikiy Novgorod","NAMEASCII":"Velikiy Novgorod","POP_MAX":218717,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[30.5200386,56.3199589],"properties":{"NAME":"Velikiye Luki","NAMEASCII":"Velikiye Luki","POP_MAX":103149,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.765826,64.5252204],"properties":{"NAME":"Belomorsk","NAMEASCII":"Belomorsk","POP_MAX":12165,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.5683703,64.9535921],"properties":{"NAME":"Kem","NAMEASCII":"Kem","POP_MAX":13829,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.420799,70.7314484],"properties":{"NAME":"Krasino","NAMEASCII":"Krasino","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[56.4496968,73.2699916],"properties":{"NAME":"Matočkin Šar","NAMEASCII":"Matochkin Shar","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.830013,64.5700238],"properties":{"NAME":"Severodvinsk","NAMEASCII":"Severodvinsk","POP_MAX":194292,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.1900284,51.7399801],"properties":{"NAME":"Kursk","NAMEASCII":"Kursk","POP_MAX":409431,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.6299406,54.1999591],"properties":{"NAME":"Tula","NAMEASCII":"Tula","POP_MAX":489486,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.4300187,52.730023],"properties":{"NAME":"Tambov","NAMEASCII":"Tambov","POP_MAX":301482,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[55.9600362,53.6299939],"properties":{"NAME":"Sterlitamak","NAMEASCII":"Sterlitamak","POP_MAX":267231,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[65.344993,55.4599597],"properties":{"NAME":"Kurgan","NAMEASCII":"Kurgan","POP_MAX":343129,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.0165948,67.689754],"properties":{"NAME":"Indiga","NAMEASCII":"Indiga","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.1333679,67.8666443],"properties":{"NAME":"Shoyna","NAMEASCII":"Shoyna","POP_MAX":300,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[72.9283028,67.6983342],"properties":{"NAME":"Novy Port","NAMEASCII":"Novy Port","POP_MAX":1790,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[66.6099804,66.5350202],"properties":{"NAME":"Salekhard","NAMEASCII":"Salekhard","POP_MAX":38025,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[78.4661043,70.8814215],"properties":{"NAME":"Gyda","NAMEASCII":"Gyda","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[78.6999918,67.4666687],"properties":{"NAME":"Tazovsky","NAMEASCII":"Tazovskiy","POP_MAX":5981,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[76.6332446,66.0833165],"properties":{"NAME":"Novy Urengoy","NAMEASCII":"Novy Urengoy","POP_MAX":94212,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[72.514788,65.5298102],"properties":{"NAME":"Nadym","NAMEASCII":"Nadym","POP_MAX":46339,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[75.6165108,63.1665436],"properties":{"NAME":"Noyabrsk","NAMEASCII":"Noyabrsk","POP_MAX":110572,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[50.8199882,61.6599947],"properties":{"NAME":"Syktyvkar","NAMEASCII":"Syktyvkar","POP_MAX":230910,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.6899939,63.5599821],"properties":{"NAME":"Ukhta","NAMEASCII":"Ukhta","POP_MAX":102187,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.5849735,59.6149774],"properties":{"NAME":"Serov","NAMEASCII":"Serov","POP_MAX":98438,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[47.2500252,56.1299705],"properties":{"NAME":"Cheboksary","NAMEASCII":"Cheboksary","POP_MAX":446781,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[58.6273152,51.2100124],"properties":{"NAME":"Orsk","NAMEASCII":"Orsk","POP_MAX":246836,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[47.8000175,52.0299882],"properties":{"NAME":"Balakovo","NAMEASCII":"Balakovo","POP_MAX":199572,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[64.4194165,63.193312],"properties":{"NAME":"Igrim","NAMEASCII":"Igrim","POP_MAX":9545,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[65.3814249,62.1465283],"properties":{"NAME":"Nyagan","NAMEASCII":"Nyagan","POP_MAX":52137,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[69.001514,61.0015336],"properties":{"NAME":"Khanty Mansiysk","NAMEASCII":"Khanty Mansiysk","POP_MAX":67800,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[76.5800179,60.9349744],"properties":{"NAME":"Nizhenvartovsk","NAMEASCII":"Nizhenvartovsk","POP_MAX":244937,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[71.3333097,63.6667198],"properties":{"NAME":"Numto","NAMEASCII":"Numto","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[74.3782401,56.898244],"properties":{"NAME":"Tara","NAMEASCII":"Tara","POP_MAX":26986,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[68.2648148,58.1997925],"properties":{"NAME":"Tobolsk","NAMEASCII":"Tobolsk","POP_MAX":113800,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[81.2100195,51.5200193],"properties":{"NAME":"Rubtsovsk","NAMEASCII":"Rubtsovsk","POP_MAX":161065,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[85.9576884,51.9613361],"properties":{"NAME":"Gorno Altaysk","NAMEASCII":"Gorno Altaysk","POP_MAX":59868,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.7099939,53.8999774],"properties":{"NAME":"Prokopyevsk","NAMEASCII":"Prokopyevsk","POP_MAX":275615,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.0852152,17.0254582],"properties":{"NAME":"Salalah","NAMEASCII":"Salalah","POP_MAX":203877,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[47.4999841,42.9800238],"properties":{"NAME":"Makhachkala","NAMEASCII":"Makhachkala","POP_MAX":554981,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[56.734419,24.3619733],"properties":{"NAME":"Suhar","NAMEASCII":"Suhar","POP_MAX":151349,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[58.1825362,23.6802458],"properties":{"NAME":"Seeb","NAMEASCII":"As Sib","POP_MAX":237816,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[129.3715242,36.020862],"properties":{"NAME":"Pohang","NAMEASCII":"Pohang","POP_MAX":435266,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[129.315008,35.5486766],"properties":{"NAME":"Ulsan","NAMEASCII":"Ulsan","POP_MAX":1061000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[128.6050255,35.8687346],"properties":{"NAME":"Daegu","NAMEASCII":"Daegu","POP_MAX":2460000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[123.7500069,13.1699829],"properties":{"NAME":"Legazpi","NAMEASCII":"Legazpi","POP_MAX":320081,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[121.7268746,17.6130967],"properties":{"NAME":"Tuguegarao","NAMEASCII":"Tuguegarao","POP_MAX":115105,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.3869047,17.574727],"properties":{"NAME":"Vigan","NAMEASCII":"Vigan","POP_MAX":48545,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[100.2500459,64.2832971],"properties":{"NAME":"Tura","NAMEASCII":"Tura","POP_MAX":5444,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[91.2333353,64.4833108],"properties":{"NAME":"Noginsk","NAMEASCII":"Noginsk","POP_MAX":229731,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[107.7794055,60.3807963],"properties":{"NAME":"Yerema","NAMEASCII":"Yerema","POP_MAX":745,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[97.9877034,55.927709],"properties":{"NAME":"Tayshet","NAMEASCII":"Tayshet","POP_MAX":52184,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[103.6449808,52.7649821],"properties":{"NAME":"Usolye Sibirskoye","NAMEASCII":"Usolye Sibirskoye","POP_MAX":85900,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[103.6988277,51.6538355],"properties":{"NAME":"Slyudyanka","NAMEASCII":"Slyudyanka","POP_MAX":18809,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[103.0738529,53.1588082],"properties":{"NAME":"Cheremkhovo","NAMEASCII":"Cheremkhovo","POP_MAX":57395,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[102.0330896,53.9330504],"properties":{"NAME":"Zima","NAMEASCII":"Zima","POP_MAX":60239,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[100.5653755,54.5653373],"properties":{"NAME":"Tulun","NAMEASCII":"Tulun","POP_MAX":51330,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[99.0276916,54.8976685],"properties":{"NAME":"Nizhneudinsk","NAMEASCII":"Nizhneudinsk","POP_MAX":43326,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[105.7599939,56.7649705],"properties":{"NAME":"Ust-Kut","NAMEASCII":"Ust Kut","POP_MAX":25388,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[114.1932416160757,57.85074840686792],"properties":{"NAME":"Bodaybo","NAMEASCII":"Bodaybo","POP_MAX":15933,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[89.2577453,61.868044],"properties":{"NAME":"Komsa","NAMEASCII":"Komsa","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[95.710013,56.1900185],"properties":{"NAME":"Kansk","NAMEASCII":"Kansk","POP_MAX":101502,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[90.4999951,56.2699878],"properties":{"NAME":"Achinsk","NAMEASCII":"Achinsk","POP_MAX":117634,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[92.1565348,58.4515084],"properties":{"NAME":"Yeniseysk","NAMEASCII":"Yeniseysk","POP_MAX":19920,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[92.4832849,58.2432524],"properties":{"NAME":"Lesosibirsk","NAMEASCII":"Lesosibirsk","POP_MAX":65945,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[87.9549825,65.8381635],"properties":{"NAME":"Turukhansk","NAMEASCII":"Turukhansk","POP_MAX":4774,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[83.564191,71.6983226],"properties":{"NAME":"Vorontsovo","NAMEASCII":"Vorontsovo","POP_MAX":100,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[104.8000008,72.7666036],"properties":{"NAME":"Starorybnoye","NAMEASCII":"Starorybnoye","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.982432,75.0949886],"properties":{"NAME":"Mikhaylova","NAMEASCII":"Mikhaylova","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.2250105,69.4182033],"properties":{"NAME":"Dudinka","NAMEASCII":"Dudinka","POP_MAX":23619,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[90.233293,51.0333049],"properties":{"NAME":"Teeli","NAMEASCII":"Teli","POP_MAX":3732,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[111.7338928,56.1349831],"properties":{"NAME":"Novyy Uoyin","NAMEASCII":"Novyy Uoyin","POP_MAX":4184,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[113.6000321,54.4333041],"properties":{"NAME":"Bagdarin","NAMEASCII":"Bagdarin","POP_MAX":4676,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[109.3129553,55.634006],"properties":{"NAME":"Severobaykalsk","NAMEASCII":"Severobaykalsk","POP_MAX":25800,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[106.4526648,50.3526746],"properties":{"NAME":"Kyakhta","NAMEASCII":"Kyakhta","POP_MAX":18431,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[128.1311865,51.4061762],"properties":{"NAME":"Svobodnyy","NAMEASCII":"Svobodnyy","POP_MAX":63620,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[127.2665881,53.7500124],"properties":{"NAME":"Zeya","NAMEASCII":"Zeya","POP_MAX":26999,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[125.8000109,53.4499791],"properties":{"NAME":"Magdagachi","NAMEASCII":"Magdagachi","POP_MAX":11739,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[127.6974662,52.0024447],"properties":{"NAME":"Shimanovsk","NAMEASCII":"Shimanovsk","POP_MAX":21466,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[123.9166634,53.9833057],"properties":{"NAME":"Skovorodino","NAMEASCII":"Skovorodino","POP_MAX":10007,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[124.7075712,55.1742666],"properties":{"NAME":"Tynda","NAMEASCII":"Tynda","POP_MAX":37335,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[115.5666304,50.9499766],"properties":{"NAME":"Olovyannaya","NAMEASCII":"Olovyannaya","POP_MAX":8247,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[119.7665808,53.7333209],"properties":{"NAME":"Mogocha","NAMEASCII":"Mogocha","POP_MAX":12647,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[118.0264803,50.0664905],"properties":{"NAME":"Krasnokamensk","NAMEASCII":"Krasnokamensk","POP_MAX":54316,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[116.518562,50.3885639],"properties":{"NAME":"Borzya","NAMEASCII":"Borzya","POP_MAX":30421,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[110.4500435,51.3500039],"properties":{"NAME":"Khilok","NAMEASCII":"Khilok","POP_MAX":10627,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[132.8874336,42.8374485],"properties":{"NAME":"Nakhodka","NAMEASCII":"Nakhodka","POP_MAX":159551,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[132.019993,43.8000255],"properties":{"NAME":"Ussuriysk","NAMEASCII":"Ussuriysk","POP_MAX":157068,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.4297778,45.4747553],"properties":{"NAME":"Lesozavodsk","NAMEASCII":"Lesozavodsk","POP_MAX":41778,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[136.2166361,70.733291],"properties":{"NAME":"Kazachye","NAMEASCII":"Kavache","POP_MAX":-99,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.3849743,67.5447001],"properties":{"NAME":"Verkhoyansk","NAMEASCII":"Verkhoyansk","POP_MAX":1388,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[161.3300386,68.7500529],"properties":{"NAME":"Chersky","NAMEASCII":"Cherskiy","POP_MAX":3707,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[153.7100386,67.4500031],"properties":{"NAME":"Srednekolymsk","NAMEASCII":"Srednekolymsk","POP_MAX":3459,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[150.890004,65.7359733],"properties":{"NAME":"Zyryanka","NAMEASCII":"Zyryanka","POP_MAX":3627,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.1833142,60.8000214],"properties":{"NAME":"Eldikan","NAMEASCII":"Eldikan","POP_MAX":1516,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[133.8999816,60.1000124],"properties":{"NAME":"Chagda","NAMEASCII":"Chagda","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.6000329,62.6660057],"properties":{"NAME":"Khandyga","NAMEASCII":"Khandyga","POP_MAX":6796,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[134.5433016,60.4565798],"properties":{"NAME":"Ust-Maya","NAMEASCII":"Ust Maya","POP_MAX":3062,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[124.7103617,56.6740458],"properties":{"NAME":"Neryungri","NAMEASCII":"Neryungri","POP_MAX":66320,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[112.4714188,63.0127545],"properties":{"NAME":"Chernyshevsky","NAMEASCII":"Chernyshevskiy","POP_MAX":5137,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[120.5468949,64.3760822],"properties":{"NAME":"Terbyas","NAMEASCII":"Terbyas","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[121.6247619,63.7552674],"properties":{"NAME":"Vilyuysk","NAMEASCII":"Vilyuysk","POP_MAX":9948,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[127.4739139,63.9241459],"properties":{"NAME":"Sangar","NAMEASCII":"Sangar","POP_MAX":4633,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[123.3504964,67.9886007],"properties":{"NAME":"Menkere","NAMEASCII":"Menkere","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[114.0833101,71.9166297],"properties":{"NAME":"Saskylakh","NAMEASCII":"Saskylakh","POP_MAX":1920,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[125.9932808,70.2113591],"properties":{"NAME":"Govorovo","NAMEASCII":"Govorovo","POP_MAX":943,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[126.5923521,73.3779331],"properties":{"NAME":"Sagastyr","NAMEASCII":"Sagastyr","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[119.7729295,72.997783],"properties":{"NAME":"Ust-Olenyok","NAMEASCII":"Ust Olensk","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[117.6319307,62.1444096],"properties":{"NAME":"Suntar","NAMEASCII":"Suntar","POP_MAX":8639,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[112.4500248,68.5250021],"properties":{"NAME":"Olenyok","NAMEASCII":"Olenek","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[112.3965397,66.4231665],"properties":{"NAME":"Udachny","NAMEASCII":"Udachnyy","POP_MAX":15266,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[132.9507889,48.7974207],"properties":{"NAME":"Birobidzhan","NAMEASCII":"Birobidzhan","POP_MAX":76146,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.4300175,57.6665951],"properties":{"NAME":"Khakhar","NAMEASCII":"Khakhar","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[140.7833341,51.4665859],"properties":{"NAME":"De-Kastri","NAMEASCII":"De Kastri","POP_MAX":3615,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.3145141,54.7113945],"properties":{"NAME":"Chumikan","NAMEASCII":"Chumikan","POP_MAX":1305,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[137.0199979,50.5549878],"properties":{"NAME":"Komsomolsk na Amure","NAMEASCII":"Komsomolsk na Amure","POP_MAX":275908,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[138.1673305,56.4542411],"properties":{"NAME":"Ayan","NAMEASCII":"Ayan","POP_MAX":1286,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[140.730004,53.1496356],"properties":{"NAME":"Nikolayevsk na Amure","NAMEASCII":"Nikolayevsk na Amure","POP_MAX":27152,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[140.2748897,48.9698908],"properties":{"NAME":"Sovetskaya Gavan","NAMEASCII":"Sovetskaya Gavan","POP_MAX":29740,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[159.2333191,61.949977],"properties":{"NAME":"Evensk","NAMEASCII":"Evensk","POP_MAX":2024,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[150.8999776,60.1000124],"properties":{"NAME":"Palatka","NAMEASCII":"Palatka","POP_MAX":21452,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[155.8000402,62.5332748],"properties":{"NAME":"Omsukchan","NAMEASCII":"Omsukchan","POP_MAX":4201,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[148.1667594,62.783337],"properties":{"NAME":"Susuman","NAMEASCII":"Susuman","POP_MAX":7367,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[143.1667028,51.8332819],"properties":{"NAME":"Nogliki","NAMEASCII":"Nogliki","POP_MAX":10098,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.1561185,50.8974992],"properties":{"NAME":"Aleksandrovsk Sakhalinskiy","NAMEASCII":"Aleksandrovsk Sakhalinskiy","POP_MAX":12024,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.777476,46.6424359],"properties":{"NAME":"Korsakov","NAMEASCII":"Korsakov","POP_MAX":35091,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-116.6199982,31.8699785],"properties":{"NAME":"Ensenada","NAMEASCII":"Ensenada","POP_MAX":256565,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.0069282,25.4219046],"properties":{"NAME":"Saltillo","NAMEASCII":"Saltillo","POP_MAX":754000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.4919939,31.6923229],"properties":{"NAME":"Ciudad Juárez","NAMEASCII":"Ciudad Juarez","POP_MAX":1343000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-105.4999793,28.1999699],"properties":{"NAME":"Delicias","NAMEASCII":"Delicias","POP_MAX":114783,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.6700299,24.0311029],"properties":{"NAME":"Durango","NAMEASCII":"Durango","POP_MAX":457140,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-108.9999982,25.7899878],"properties":{"NAME":"Los Mochis","NAMEASCII":"Los Mochis","POP_MAX":249047,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.1299805,23.7199591],"properties":{"NAME":"Ciudad Victoria","NAMEASCII":"Ciudad Victoria","POP_MAX":274900,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-102.2923593,21.8814058],"properties":{"NAME":"Aguascalientes","NAMEASCII":"Aguascalientes","POP_MAX":869000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-104.3230851,19.0495866],"properties":{"NAME":"Manzanillo","NAMEASCII":"Manzanillo","POP_MAX":110735,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-95.229986,16.3299968],"properties":{"NAME":"Tehuantepec","NAMEASCII":"Tehuantepec","POP_MAX":42776,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-92.8999732,17.9999724],"properties":{"NAME":"Villahermosa","NAMEASCII":"Villahermosa","POP_MAX":428564,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.2399996,18.9211048],"properties":{"NAME":"Cuernavaca","NAMEASCII":"Cuernavaca","POP_MAX":834001,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-100.38666708699424,20.577704021966365],"properties":{"NAME":"Querétaro","NAMEASCII":"Queretaro","POP_MAX":961000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-92.2699858,14.8999807],"properties":{"NAME":"Tapachula","NAMEASCII":"Tapachula","POP_MAX":221521,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-88.2999956,18.5000193],"properties":{"NAME":"Chetumal","NAMEASCII":"Chetumal","POP_MAX":154517,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-89.6665788,21.283312],"properties":{"NAME":"Progreso","NAMEASCII":"Progreso","POP_MAX":47124,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[104.772974,16.537581],"properties":{"NAME":"Savannakhet","NAMEASCII":"Savannakhet","POP_MAX":84898,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[110.1500101,44.8666012],"properties":{"NAME":"Buyant-Uhaa","NAMEASCII":"Buyant-Uhaa","POP_MAX":8776,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[125.450488,38.7688666],"properties":{"NAME":"Nampo","NAMEASCII":"Nampo","POP_MAX":1127000,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[129.79,41.7846188],"properties":{"NAME":"Chongjin","NAMEASCII":"Chongjin","POP_MAX":672614,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[129.202749,40.6723094],"properties":{"NAME":"Kimchaek","NAMEASCII":"Kimchaek","POP_MAX":187270,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[127.5434883,39.912002],"properties":{"NAME":"Hamhung","NAMEASCII":"Hamhung","POP_MAX":773000,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[110.6500313,47.3166842],"properties":{"NAME":"Öndörkhaan","NAMEASCII":"Ondorhaan","POP_MAX":14723,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[100.9833345,46.3000021],"properties":{"NAME":"Bayankhongor","NAMEASCII":"Bayankhongor","POP_MAX":26252,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[96.8167155,47.7500169],"properties":{"NAME":"Uliastay","NAMEASCII":"Uliastay","POP_MAX":8056,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[96.25584996694963,46.36185818585002],"properties":{"NAME":"Altai","NAMEASCII":"Altay","POP_MAX":32488,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[100.1544445,49.6452759],"properties":{"NAME":"Mörön","NAMEASCII":"Moron","POP_MAX":27690,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[92.0666178,49.9833173],"properties":{"NAME":"Ulaangom","NAMEASCII":"Ulaangom","POP_MAX":35796,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[103.5317061,48.8105982],"properties":{"NAME":"Bulgan","NAMEASCII":"Bulgan","POP_MAX":17348,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[106.2660095,45.7499839],"properties":{"NAME":"Mandalgovi","NAMEASCII":"Mandalgovi","POP_MAX":2984,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[105.97254426003542,49.46239175748236],"properties":{"NAME":"Darkhan","NAMEASCII":"Darhan","POP_MAX":74738,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[106.4666174,48.8665896],"properties":{"NAME":"Züünkharaa","NAMEASCII":"Dzuunharaa","POP_MAX":18830,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[102.7665848,46.2499793],"properties":{"NAME":"Arvaikheer","NAMEASCII":"Arvayheer","POP_MAX":28053,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[113.2833073,46.6999776],"properties":{"NAME":"Baruun-Urt","NAMEASCII":"Baruun Urt","POP_MAX":15805,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[165.3000288,62.5499921],"properties":{"NAME":"Manily","NAMEASCII":"Manily","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[156.2387215,52.663593],"properties":{"NAME":"Oktyabrsky","NAMEASCII":"Oktyabrskiy","POP_MAX":1534,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[160.8500162,56.2999601],"properties":{"NAME":"Klyuchi","NAMEASCII":"Klyuchi","POP_MAX":1089,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[162.4349841,56.2135055],"properties":{"NAME":"Ust-Kamchatsk","NAMEASCII":"Ust Kamchatsk","POP_MAX":4939,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-8.465109738576434,51.89283760162047],"properties":{"NAME":"Cork","NAMEASCII":"Cork","POP_MAX":188907,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[8.5700089,40.7300061],"properties":{"NAME":"Sassari","NAMEASCII":"Sassari","POP_MAX":120729,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[7.6680146,45.072333],"properties":{"NAME":"Turin","NAMEASCII":"Turin","POP_MAX":1652000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[97.00673971886268,32.997718310014406],"properties":{"NAME":"Jyekundo","NAMEASCII":"Jyekundo","POP_MAX":23000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.41352949573252,24.32077729521669],"properties":{"NAME":"Liuzhou","NAMEASCII":"Liuzhou","POP_MAX":1497000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.8880753,25.092364],"properties":{"NAME":"Xingyi","NAMEASCII":"Xingyi","POP_MAX":816000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.9280635,26.2523448],"properties":{"NAME":"Anshun","NAMEASCII":"Anshun","POP_MAX":849000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.9180805,27.7019721],"properties":{"NAME":"Zunyi","NAMEASCII":"Zunyi","POP_MAX":849000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.4000394,30.8199909],"properties":{"NAME":"Wanzhou","NAMEASCII":"Wanzhou","POP_MAX":1680000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.7480749,33.9523141],"properties":{"NAME":"Huaibei","NAMEASCII":"Huaibei","POP_MAX":913000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.3680277,31.3523695],"properties":{"NAME":"Wuhu","NAMEASCII":"Wuhu","POP_MAX":810000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.4780655,31.7522934],"properties":{"NAME":"Luan","NAMEASCII":"Luan","POP_MAX":1690000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.3280911,32.9519359],"properties":{"NAME":"Bengbu","NAMEASCII":"Bengbu","POP_MAX":894000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.0500024,30.4999587],"properties":{"NAME":"Anqing","NAMEASCII":"Anqing","POP_MAX":580497,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.1135762389419,23.01047704904841],"properties":{"NAME":"Foshan","NAMEASCII":"Foshan","POP_MAX":943000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.5000008,0.1332593],"properties":{"NAME":"Bontang","NAMEASCII":"Bontang","POP_MAX":101691,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[115.2199849,-8.6500289],"properties":{"NAME":"Denpasar","NAMEASCII":"Denpasar","POP_MAX":732344,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[166.4442852,-22.2625278],"properties":{"NAME":"Nouméa","NAMEASCII":"Noumea","POP_MAX":93060,"ISO_A2":"NC","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-80.4599832,-1.0600012],"properties":{"NAME":"Portoviejo","NAMEASCII":"Portoviejo","POP_MAX":213601,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-75.5699974,6.329987],"properties":{"NAME":"Bello","NAMEASCII":"Bello","POP_MAX":519670,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-75.8900037,8.7575391],"properties":{"NAME":"Montería","NAMEASCII":"Monteria","POP_MAX":275198,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.1278289,7.1320391],"properties":{"NAME":"Bucaramanga","NAMEASCII":"Bucaramanga","POP_MAX":1009000,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-83.6980801,22.4175063],"properties":{"NAME":"Pinar del Rio","NAMEASCII":"Pinar del Rio","POP_MAX":186990,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-77.9169342,21.3808254],"properties":{"NAME":"Camagüey","NAMEASCII":"Camaguey","POP_MAX":347562,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-75.2061436,20.1452936],"properties":{"NAME":"Guantánamo","NAMEASCII":"Guantanamo","POP_MAX":272801,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-76.2630559,20.887238],"properties":{"NAME":"Holguín","NAMEASCII":"Holguin","POP_MAX":319102,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-77.9166759,18.466688],"properties":{"NAME":"Montego Bay","NAMEASCII":"Montego Bay","POP_MAX":126008,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-75.2322144,4.4389138],"properties":{"NAME":"Ibagué","NAMEASCII":"Ibague","POP_MAX":421685,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-76.6100114,2.4199931],"properties":{"NAME":"Popayán","NAMEASCII":"Popayan","POP_MAX":258750,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.2016571,11.2472062],"properties":{"NAME":"Santa Marta","NAMEASCII":"Santa Marta","POP_MAX":431781,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-72.5199768,7.9200191],"properties":{"NAME":"Cúcuta","NAMEASCII":"Cucuta","POP_MAX":722146,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-73.6349992,4.153324],"properties":{"NAME":"Villavicencio","NAMEASCII":"Villavicencio","POP_MAX":374763,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-79.9666541,22.4000139],"properties":{"NAME":"Santa Clara","NAMEASCII":"Santa Clara","POP_MAX":250512,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-6.8200336,62.0300238],"properties":{"NAME":"Tórshavn","NAMEASCII":"Torshavn","POP_MAX":14398,"ISO_A2":"FO","SOV_A3":"DNK"}},{"type":"Point","coordinates":[31.1900236,30.0099886],"properties":{"NAME":"Giza","NAMEASCII":"El Giza","POP_MAX":2681863,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[9.1999963,48.7799799],"properties":{"NAME":"Stuttgart","NAMEASCII":"Stuttgart","POP_MAX":2944700,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[8.8000207,53.0800016],"properties":{"NAME":"Bremen","NAMEASCII":"Bremen","POP_MAX":724909,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.0799849,49.4499907],"properties":{"NAME":"Nürnberg","NAMEASCII":"Nurnberg","POP_MAX":737304,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[92.0500297,31.4800023],"properties":{"NAME":"Nagchu","NAMEASCII":"Nagchu","POP_MAX":2500,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[94.36651015429543,29.650743961466343],"properties":{"NAME":"Nyingchi","NAMEASCII":"Nyingchi","POP_MAX":100,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[97.18093874825455,31.140937622131112],"properties":{"NAME":"Chamdo","NAMEASCII":"Chamdo","POP_MAX":100000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[86.150028,41.7299968],"properties":{"NAME":"Korla","NAMEASCII":"Korla","POP_MAX":613000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[82.9363741,41.7277488],"properties":{"NAME":"Kuqa","NAMEASCII":"Kuqa","POP_MAX":470600,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[82.9500166,46.7500263],"properties":{"NAME":"Tacheng","NAMEASCII":"Tacheng","POP_MAX":49796,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[86.029932,44.2999691],"properties":{"NAME":"Shihezi","NAMEASCII":"Shihezi","POP_MAX":640000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[84.8599259,45.589942],"properties":{"NAME":"Karamay","NAMEASCII":"Karamay","POP_MAX":261445,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[80.2500264,41.1500063],"properties":{"NAME":"Aksu","NAMEASCII":"Aksu","POP_MAX":695000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.5040317,18.2591045],"properties":{"NAME":"Sanya","NAMEASCII":"Sanya","POP_MAX":362689,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.3200256,20.0500023],"properties":{"NAME":"Haikou","NAMEASCII":"Haikou","POP_MAX":2046189,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[107.0299939,33.1299791],"properties":{"NAME":"Hanzhong","NAMEASCII":"Hanzhong","POP_MAX":145986,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[107.1499865,34.3800061],"properties":{"NAME":"Baoji","NAMEASCII":"Baoji","POP_MAX":800000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.0299751,35.0799892],"properties":{"NAME":"Tongchuan","NAMEASCII":"Tongchuan","POP_MAX":282258,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.5180582,36.0822875],"properties":{"NAME":"Linfen","NAMEASCII":"Linfen","POP_MAX":834000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.7280618,37.6823448],"properties":{"NAME":"Yuci","NAMEASCII":"Yuci","POP_MAX":840000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.2980529,40.0819658],"properties":{"NAME":"Datong","NAMEASCII":"Datong","POP_MAX":1873000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.1580614,30.6519988],"properties":{"NAME":"Jianmen","NAMEASCII":"Jianmen","POP_MAX":1708000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.2780728,30.7019182],"properties":{"NAME":"Yichang","NAMEASCII":"Yichang","POP_MAX":875000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.438096,30.3723518],"properties":{"NAME":"Xiantao","NAMEASCII":"Xiantao","POP_MAX":1556000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.0300223,31.1799947],"properties":{"NAME":"Macheng","NAMEASCII":"Macheng","POP_MAX":126366,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.0999922,30.2200016],"properties":{"NAME":"Huangshi","NAMEASCII":"Huangshi","POP_MAX":688090,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.1480879,27.8319384],"properties":{"NAME":"Zhuzhou","NAMEASCII":"Zhuzhou","POP_MAX":1080000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.60913498645752,26.417919935871467],"properties":{"NAME":"Yongzhou","NAMEASCII":"Yongzhou","POP_MAX":1000000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.3280862,28.6023564],"properties":{"NAME":"Yiyang","NAMEASCII":"Yiyang","POP_MAX":1352000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.6781001,29.0319426],"properties":{"NAME":"Changde","NAMEASCII":"Changde","POP_MAX":1469000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.2000752,26.9999915],"properties":{"NAME":"Shaoyang","NAMEASCII":"Shaoyang","POP_MAX":45617,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.7314017,29.5690416],"properties":{"NAME":"Leshan","NAMEASCII":"Leshan","POP_MAX":1157000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[101.7300073,26.5499931],"properties":{"NAME":"Panzhihua","NAMEASCII":"Panzhihua","POP_MAX":461513,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[102.7167171,29.3500031],"properties":{"NAME":"Fulin","NAMEASCII":"Fulin","POP_MAX":1049,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.870013,32.429996],"properties":{"NAME":"Guangyuan","NAMEASCII":"Guangyuan","POP_MAX":437435,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.3780712,28.8819259],"properties":{"NAME":"Luzhou","NAMEASCII":"Luzhou","POP_MAX":1537000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.5680948,28.7719327],"properties":{"NAME":"Yibin","NAMEASCII":"Yibin","POP_MAX":902000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.7180692,27.3223312],"properties":{"NAME":"Zhaotang","NAMEASCII":"Zhaotang","POP_MAX":809000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[100.2665824,26.8000037],"properties":{"NAME":"Lijiang","NAMEASCII":"Lijiang","POP_MAX":18445,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[102.5700077,24.3799964],"properties":{"NAME":"Yuxi","NAMEASCII":"Yuxi","POP_MAX":396325,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[100.25031881794612,25.59373112349816],"properties":{"NAME":"Dali","NAMEASCII":"Dali","POP_MAX":156685,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.6180805,39.9323109],"properties":{"NAME":"Qinhuangdao","NAMEASCII":"Qinhuangdao","POP_MAX":1003000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.6780533,39.5223101],"properties":{"NAME":"Langfang","NAMEASCII":"Langfang","POP_MAX":810000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.85202691011438,40.80525516933235],"properties":{"NAME":"Zhangjiakou","NAMEASCII":"Zhangjiakou","POP_MAX":1046000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.1924311,39.626283],"properties":{"NAME":"Tangshan","NAMEASCII":"Tangshan","POP_MAX":1879000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.3480663,36.0819257],"properties":{"NAME":"Anyang","NAMEASCII":"Anyang","POP_MAX":887000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.25955287067012,35.200690500087106],"properties":{"NAME":"Jiaozuo","NAMEASCII":"Jiaozuo","POP_MAX":857000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.35481884772807,34.793813585881864],"properties":{"NAME":"Kaifeng","NAMEASCII":"Kaifeng","POP_MAX":872000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.64961002215703,34.4129416652438],"properties":{"NAME":"Shangqiu","NAMEASCII":"Shangqiu","POP_MAX":1753000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.2980529,33.7323534],"properties":{"NAME":"Pingdingshan","NAMEASCII":"Pingdingshan","POP_MAX":849000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.0680317,32.1323219],"properties":{"NAME":"Xinyang","NAMEASCII":"Xinyang","POP_MAX":1541000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.90892644214637,35.30157530547628],"properties":{"NAME":"Xinxiang","NAMEASCII":"Xinxiang","POP_MAX":903000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.44447121332469,34.643770028425635],"properties":{"NAME":"Luoyang","NAMEASCII":"Luoyang","POP_MAX":1715000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.17807,41.2819443],"properties":{"NAME":"Liaoyang","NAMEASCII":"Liaoyang","POP_MAX":794000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[124.3916393,40.1455537],"properties":{"NAME":"Dandong","NAMEASCII":"Dandong","POP_MAX":870000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.2780732,40.6722915],"properties":{"NAME":"Yingkow","NAMEASCII":"Yingkow","POP_MAX":795000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.0980936,41.1223158],"properties":{"NAME":"Jinzhou","NAMEASCII":"Jinzhou","POP_MAX":956000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.6580594,42.0124165],"properties":{"NAME":"Fuxin","NAMEASCII":"Fuxin","POP_MAX":770000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.748061,41.3323288],"properties":{"NAME":"Benxi","NAMEASCII":"Benxi","POP_MAX":1012000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.8680537,41.8673349],"properties":{"NAME":"Fushun","NAMEASCII":"Fushun","POP_MAX":1470000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.5480871,35.4023548],"properties":{"NAME":"Jining","NAMEASCII":"Jining","POP_MAX":1186000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.15562569942898,36.702285137592035],"properties":{"NAME":"Weifang","NAMEASCII":"Weifang","POP_MAX":1553000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.1181298,36.2019443],"properties":{"NAME":"Taian","NAMEASCII":"Taian","POP_MAX":1629000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.4481025,35.2319259],"properties":{"NAME":"Heze","NAMEASCII":"Heze","POP_MAX":1338000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.7084354,36.9684011],"properties":{"NAME":"Laiyang","NAMEASCII":"Laiyang","POP_MAX":250000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.9280309,27.801966],"properties":{"NAME":"Xinyu","NAMEASCII":"Xinyu","POP_MAX":913000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.9500272,25.9199799],"properties":{"NAME":"Ganzhou","NAMEASCII":"Ganzhou","POP_MAX":1500000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.9800419,29.7299799],"properties":{"NAME":"Jiujiang","NAMEASCII":"Jiujiang","POP_MAX":545616,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.9680333,31.7819298],"properties":{"NAME":"Changzhou","NAMEASCII":"Changzhou","POP_MAX":1327000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.43048109709629,32.175729712978345],"properties":{"NAME":"Zhenjiang","NAMEASCII":"Zhenjiang","POP_MAX":854000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.92458731909477,31.982268964224712],"properties":{"NAME":"Nantong","NAMEASCII":"Nantong","POP_MAX":947000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.7480374,30.7723532],"properties":{"NAME":"Jiaxing","NAMEASCII":"Jiaxing","POP_MAX":988000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.0980513,30.8723212],"properties":{"NAME":"Huzhou","NAMEASCII":"Huzhou","POP_MAX":1231000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.5681001,30.0023227],"properties":{"NAME":"Shaoxing","NAMEASCII":"Shaoxing","POP_MAX":777000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.6499987,29.1200429],"properties":{"NAME":"Jinhua","NAMEASCII":"Jinhua","POP_MAX":1092852,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.1299743,42.899977],"properties":{"NAME":"Liaoyuan","NAMEASCII":"Liaoyuan","POP_MAX":506548,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.8200756,42.9699986],"properties":{"NAME":"Tumen","NAMEASCII":"Tumen","POP_MAX":99721,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[124.3300232,43.1700122],"properties":{"NAME":"Siping","NAMEASCII":"Siping","POP_MAX":555609,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.8200378,45.6200177],"properties":{"NAME":"Baicheng","NAMEASCII":"Baicheng","POP_MAX":386861,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.561064,31.5859648],"properties":{"NAME":"Kagoshima","NAMEASCII":"Kagoshima","POP_MAX":555352,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[132.765839,33.8455426],"properties":{"NAME":"Matsuyama","NAMEASCII":"Matsuyama","POP_MAX":533541,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[106.8122294,39.6646965],"properties":{"NAME":"Wuhai","NAMEASCII":"Wuhai","POP_MAX":218427,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.9654549,43.6615585],"properties":{"NAME":"Erenhot","NAMEASCII":"Erenhot","POP_MAX":22287,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.0800122,41.0299878],"properties":{"NAME":"Jining","NAMEASCII":"Jining","POP_MAX":281716,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.9666202,47.1833073],"properties":{"NAME":"Arxan","NAMEASCII":"Arxan","POP_MAX":32023,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.4299792,49.5999815],"properties":{"NAME":"Manzhouli","NAMEASCII":"Manzhouli","POP_MAX":93620,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.0443274,43.9443319],"properties":{"NAME":"Xilinhot","NAMEASCII":"Xilinhot","POP_MAX":120965,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[127.4460087,50.2500193],"properties":{"NAME":"Heihe","NAMEASCII":"Heihe","POP_MAX":109427,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[131.00906045817408,45.76785201225666],"properties":{"NAME":"Qitaihe","NAMEASCII":"Qitaihe","POP_MAX":450617,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[128.8980309,47.7018883],"properties":{"NAME":"Yichun","NAMEASCII":"Yichun","POP_MAX":777000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.2967317638128,47.34662706575081],"properties":{"NAME":"Hegang","NAMEASCII":"Hegang","POP_MAX":743307,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[125.2300199,49.1799813],"properties":{"NAME":"Nenjiang","NAMEASCII":"Nenjiang","POP_MAX":87236,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[124.8800154,48.4899976],"properties":{"NAME":"Nehe","NAMEASCII":"Nehe","POP_MAX":108253,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.5880663,44.5769628],"properties":{"NAME":"Mudangiang","NAMEASCII":"Mudangiang","POP_MAX":1244000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[136.6400211,36.5600023],"properties":{"NAME":"Kanazawa","NAMEASCII":"Kanazawa","POP_MAX":551249,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.9800146,42.3499589],"properties":{"NAME":"Muroran","NAMEASCII":"Muroran","POP_MAX":155676,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[142.3799808,43.7550153],"properties":{"NAME":"Asahikawa","NAMEASCII":"Asahikawa","POP_MAX":356612,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[135.1699816,34.6799878],"properties":{"NAME":"Kōbe","NAMEASCII":"Kobe","POP_MAX":1528478,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.602021,35.4306562],"properties":{"NAME":"Yokohama","NAMEASCII":"Yokohama","POP_MAX":3697894,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.0899914,39.7099909],"properties":{"NAME":"Akita","NAMEASCII":"Akita","POP_MAX":320069,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.7100052,40.8250391],"properties":{"NAME":"Aomori","NAMEASCII":"Aomori","POP_MAX":298394,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.4700199,40.5699901],"properties":{"NAME":"Hirosaki","NAMEASCII":"Hirosaki","POP_MAX":174972,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[141.5400321,40.5099937],"properties":{"NAME":"Hachinohe","NAMEASCII":"Hachinohe","POP_MAX":239046,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.4700199,37.7400078],"properties":{"NAME":"Fukushima","NAMEASCII":"Fukushima","POP_MAX":294237,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[141.1300313,39.7200161],"properties":{"NAME":"Morioka","NAMEASCII":"Morioka","POP_MAX":295172,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.0400297,37.9199968],"properties":{"NAME":"Niigata","NAMEASCII":"Niigata","POP_MAX":569797,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[131.2849991,-0.8554142],"properties":{"NAME":"Sorong","NAMEASCII":"Sorong","POP_MAX":125535,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-88.5926518,15.7174953],"properties":{"NAME":"Puerto Barrios","NAMEASCII":"Puerto Barrios","POP_MAX":56605,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[82.237502,16.9674772],"properties":{"NAME":"Kakinada","NAMEASCII":"Kakinada","POP_MAX":292923,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.5799898,18.0099976],"properties":{"NAME":"Warangal","NAMEASCII":"Warangal","POP_MAX":1203853,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[84.7999812,19.3199951],"properties":{"NAME":"Brahmapur","NAMEASCII":"Brahmapur","POP_MAX":324726,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.7099934,16.8354181],"properties":{"NAME":"Vijayapura","NAMEASCII":"Vijayapura","POP_MAX":271064,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.12805,19.351965],"properties":{"NAME":"Bhiwandi","NAMEASCII":"Bhiwandi","POP_MAX":795000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.5699926,18.400413],"properties":{"NAME":"Latur","NAMEASCII":"Latur","POP_MAX":374394,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.74577387962105,19.082030985088274],"properties":{"NAME":"Ahmednagar","NAMEASCII":"Ahmednagar","POP_MAX":391760,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.3000069,19.9699813],"properties":{"NAME":"Chandrapur","NAMEASCII":"Chandrapur","POP_MAX":595118,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.78180983488605,20.925616407680952],"properties":{"NAME":"Amravati","NAMEASCII":"Amravati","POP_MAX":734451,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.7699991,20.8999762],"properties":{"NAME":"Dhule","NAMEASCII":"Dhule","POP_MAX":479073,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[94.8999849,27.4833211],"properties":{"NAME":"Dibrugarh","NAMEASCII":"Dibrugarh","POP_MAX":166366,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[93.950017,24.7999707],"properties":{"NAME":"Imphal","NAMEASCII":"Imphal","POP_MAX":264986,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[179.3833036,-16.4165832],"properties":{"NAME":"Labasa","NAMEASCII":"Labasa","POP_MAX":24187,"ISO_A2":"FJ","SOV_A3":"FJI"}},{"type":"Point","coordinates":[-1.670012,48.1000214],"properties":{"NAME":"Rennes","NAMEASCII":"Rennes","POP_MAX":209375,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[7.2630781,43.7169636],"properties":{"NAME":"Nice","NAMEASCII":"Nice","POP_MAX":927000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.4479809,43.6219048],"properties":{"NAME":"Toulouse","NAMEASCII":"Toulouse","POP_MAX":847000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[1.2499906,45.8299791],"properties":{"NAME":"Limoges","NAMEASCII":"Limoges","POP_MAX":152199,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[3.0780622,50.651915],"properties":{"NAME":"Lille","NAMEASCII":"Lille","POP_MAX":1044000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[7.7500073,48.5799662],"properties":{"NAME":"Strasbourg","NAMEASCII":"Strasbourg","POP_MAX":439972,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-72.7000175,-45.3999304],"properties":{"NAME":"Puerto Aisén","NAMEASCII":"Puerto Aisen","POP_MAX":8067,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.5116828,-51.7183044],"properties":{"NAME":"Puerto Natales","NAMEASCII":"Puerto Natales","POP_MAX":20000,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-67.6167102,-54.933302],"properties":{"NAME":"Puerto Williams","NAMEASCII":"Puerto Williams","POP_MAX":2500,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.579999,-38.7300016],"properties":{"NAME":"Temuco","NAMEASCII":"Temuco","POP_MAX":265901,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-37.1833224,65.566578],"properties":{"NAME":"Kulusuk","NAMEASCII":"Kulusuk","POP_MAX":286,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-49.6350701,62.0041024],"properties":{"NAME":"Paamiut","NAMEASCII":"Paamiut","POP_MAX":1862,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-21.9666543,70.483358],"properties":{"NAME":"Ittoqqortoormiit","NAMEASCII":"Ittoqqortoormiit","POP_MAX":469,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-42.2167102,62.5332748],"properties":{"NAME":"Timmiarmiut","NAMEASCII":"Timmiarmiut","POP_MAX":10,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-46.0364117,60.7289097],"properties":{"NAME":"Qaqortoq","NAMEASCII":"Qaqortoq","POP_MAX":3224,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-50.7099092,67.0141225],"properties":{"NAME":"Kangerlussuaq","NAMEASCII":"Kangerlussuaq","POP_MAX":556,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-17.8000352,81.7166258],"properties":{"NAME":"Nord","NAMEASCII":"Nord","POP_MAX":10,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-53.5652385,69.2441639],"properties":{"NAME":"Qeqertasuaq","NAMEASCII":"Qeqertasuaq","POP_MAX":10,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-57.0673605,74.1209687],"properties":{"NAME":"Nuussuaq","NAMEASCII":"Nuussuaq","POP_MAX":204,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-51.0999665,69.2166653],"properties":{"NAME":"Ilulissat","NAMEASCII":"Ilulissat","POP_MAX":4413,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[21.7299808,38.2300037],"properties":{"NAME":"Patra","NAMEASCII":"Patra","POP_MAX":163360,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[41.6300065,41.6000047],"properties":{"NAME":"Batumi","NAMEASCII":"Batumi","POP_MAX":155542,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[44.0066751,36.1809895],"properties":{"NAME":"Irbil","NAMEASCII":"Irbil","POP_MAX":926000,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[27.4166621,66.6666659],"properties":{"NAME":"Kemijärvi","NAMEASCII":"Kemijarvi","POP_MAX":8883,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[23.1166662,63.8332988],"properties":{"NAME":"Kokkola","NAMEASCII":"Kokkola","POP_MAX":46714,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[25.6649344,60.9938597],"properties":{"NAME":"Lahti","NAMEASCII":"Lahti","POP_MAX":98826,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[29.7666479,62.599989],"properties":{"NAME":"Joensuu","NAMEASCII":"Joensuu","POP_MAX":53388,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[22.2549617,60.4538668],"properties":{"NAME":"Turku","NAMEASCII":"Turku","POP_MAX":175945,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[58.4499617,50.2699406],"properties":{"NAME":"Khromtau","NAMEASCII":"Khromtau","POP_MAX":23715,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[66.8976114,50.2418028],"properties":{"NAME":"Arqalyq","NAMEASCII":"Arqalyq","POP_MAX":55521,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[63.628302,53.2208974],"properties":{"NAME":"Oostanay","NAMEASCII":"Oostanay","POP_MAX":236901,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[63.2413488,45.691357],"properties":{"NAME":"Baykonur","NAMEASCII":"Baykonur","POP_MAX":36175,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.8665909,47.0665961],"properties":{"NAME":"Balyqshy","NAMEASCII":"Balyqshy","POP_MAX":31624,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[68.3477038,51.8218872],"properties":{"NAME":"Atbasar","NAMEASCII":"Atbasar","POP_MAX":35819,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[69.4199898,53.2999882],"properties":{"NAME":"Kokshetau","NAMEASCII":"Kokshetau","POP_MAX":128873,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[72.964993,50.0650177],"properties":{"NAME":"Temirtau","NAMEASCII":"Temirtau","POP_MAX":170600,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[67.770013,47.7799892],"properties":{"NAME":"Zhezqazghan","NAMEASCII":"Zhezqazghan","POP_MAX":104357,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[75.4648921,49.4249018],"properties":{"NAME":"Qarqaraly","NAMEASCII":"Qarqaraly","POP_MAX":8195,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[74.9502465,46.8532241],"properties":{"NAME":"Balqash","NAMEASCII":"Balqash","POP_MAX":81364,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[69.220002,54.8799951],"properties":{"NAME":"Petropavlovsk","NAMEASCII":"Petropavlovsk","POP_MAX":228238,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[80.4297054,47.9647325],"properties":{"NAME":"Ayakoz","NAMEASCII":"Ayakoz","POP_MAX":45861,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[78.4000101,45.0000039],"properties":{"NAME":"Taldyqorghan","NAMEASCII":"Taldyqorghan","POP_MAX":88380,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[58.4514603,35.1814301],"properties":{"NAME":"Kashmar","NAMEASCII":"Kashmar","POP_MAX":157135,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[58.3619567,29.1076923],"properties":{"NAME":"Bam","NAMEASCII":"Bam","POP_MAX":99268,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[57.0800195,30.2999968],"properties":{"NAME":"Kerman","NAMEASCII":"Kerman","POP_MAX":577514,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[73.7300109,24.5999829],"properties":{"NAME":"Udaipur","NAMEASCII":"Udaipur","POP_MAX":469737,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[68.2548929,43.3015546],"properties":{"NAME":"Turkistan","NAMEASCII":"Turkistan","POP_MAX":97360,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[83.3800162,26.7503943],"properties":{"NAME":"Gorakhpur","NAMEASCII":"Gorakhpur","POP_MAX":674246,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[87.8649621,23.2503754],"properties":{"NAME":"Barddhaman","NAMEASCII":"Barddhaman","POP_MAX":301725,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[88.5300378,23.3803416],"properties":{"NAME":"Krishnanagar","NAMEASCII":"Krishnanagar","POP_MAX":145926,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.0000207,24.7999707],"properties":{"NAME":"Gaya","NAMEASCII":"Gaya","POP_MAX":423692,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[69.6700004,21.6699809],"properties":{"NAME":"Porbandar","NAMEASCII":"Porbandar","POP_MAX":234684,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[-58.0799797,-32.3299788],"properties":{"NAME":"Paysandú","NAMEASCII":"Paysandu","POP_MAX":79016,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-57.9686945,-31.3903463],"properties":{"NAME":"Salto","NAMEASCII":"Salto","POP_MAX":105690,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-92.1063782,46.7833317],"properties":{"NAME":"Duluth","NAMEASCII":"Duluth","POP_MAX":84800,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.8801882,47.4735738],"properties":{"NAME":"Bemidji","NAMEASCII":"Bemidji","POP_MAX":14796,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.6776829,48.5452397],"properties":{"NAME":"Havre","NAMEASCII":"Havre","POP_MAX":11154,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-114.3159786,48.1977674],"properties":{"NAME":"Kalispell","NAMEASCII":"Kalispell","POP_MAX":32062,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.0333014,43.4666866],"properties":{"NAME":"Idaho Falls","NAMEASCII":"Idaho Falls","POP_MAX":79399,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.016589,46.4166099],"properties":{"NAME":"Lewiston","NAMEASCII":"Lewiston","POP_MAX":49289,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.5046965,46.6022317],"properties":{"NAME":"Yakima","NAMEASCII":"Yakima","POP_MAX":99287,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-120.3090237,47.4236286],"properties":{"NAME":"Wenatchee","NAMEASCII":"Wenatchee","POP_MAX":62625,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.5483627,31.3586402],"properties":{"NAME":"Douglas","NAMEASCII":"Douglas","POP_MAX":30185,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.0199809,35.3699715],"properties":{"NAME":"Bakersfield","NAMEASCII":"Bakersfield","POP_MAX":443129,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.27803818707952,37.80472502788702],"properties":{"NAME":"Oakland","NAMEASCII":"Oakland","POP_MAX":1510271,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-118.135823,34.6980487],"properties":{"NAME":"Lancaster","NAMEASCII":"Lancaster","POP_MAX":225799,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.8363982,39.7286202],"properties":{"NAME":"Chico","NAMEASCII":"Chico","POP_MAX":95888,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.8935781,36.6002582],"properties":{"NAME":"Monterey","NAMEASCII":"Monterey","POP_MAX":124288,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.6416555,36.682217],"properties":{"NAME":"Salinas","NAMEASCII":"Salinas","POP_MAX":156784,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.2977084,35.8911025],"properties":{"NAME":"Los Alamos","NAMEASCII":"Los Alamos","POP_MAX":12233,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.1000161,44.0500102],"properties":{"NAME":"Eugene","NAMEASCII":"Eugene","POP_MAX":245158,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-124.2165888,43.3666152],"properties":{"NAME":"Coos Bay","NAMEASCII":"Coos Bay","POP_MAX":31976,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.30860300281861,44.053928846469],"properties":{"NAME":"Bend","NAMEASCII":"Bend","POP_MAX":75441,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-109.0571007,44.5232113],"properties":{"NAME":"Cody","NAMEASCII":"Cody","POP_MAX":9161,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.660023,41.9699821],"properties":{"NAME":"Cedar Rapids","NAMEASCII":"Cedar Rapids","POP_MAX":170621,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.3199992,37.1800161],"properties":{"NAME":"Springfield","NAMEASCII":"Springfield","POP_MAX":210939,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.6800009,40.8199748],"properties":{"NAME":"Lincoln","NAMEASCII":"Lincoln","POP_MAX":246220,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-92.4450139,31.3110978],"properties":{"NAME":"Alexandria","NAMEASCII":"Alexandria","POP_MAX":76565,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-99.7327861,32.4486253],"properties":{"NAME":"Abilene","NAMEASCII":"Abilene","POP_MAX":114247,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.5000025,25.9199799],"properties":{"NAME":"Brownsville","NAMEASCII":"Brownsville","POP_MAX":181399,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.3007827,32.351086],"properties":{"NAME":"Tyler","NAMEASCII":"Tyler","POP_MAX":112245,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-69.6799952,11.4200122],"properties":{"NAME":"Coro","NAMEASCII":"Coro","POP_MAX":195227,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-70.2100145,11.7199939],"properties":{"NAME":"Punto Fijo","NAMEASCII":"Punto Fijo","POP_MAX":234736,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-71.5380471,43.2080719],"properties":{"NAME":"Concord","NAMEASCII":"Concord","POP_MAX":44606,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.6099954,34.7199595],"properties":{"NAME":"Huntsville","NAMEASCII":"Huntsville","POP_MAX":212733,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.7827448,24.5552311],"properties":{"NAME":"Key West","NAMEASCII":"Key West","POP_MAX":29377,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.1236213,26.74502],"properties":{"NAME":"West Palm Beach","NAMEASCII":"West Palm Beach","POP_MAX":1250000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.530787,27.3361208],"properties":{"NAME":"Sarasota","NAMEASCII":"Sarasota","POP_MAX":589959,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.0230754,29.2105542],"properties":{"NAME":"Daytona Beach","NAMEASCII":"Daytona Beach","POP_MAX":216890,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.3250373,29.65138],"properties":{"NAME":"Gainesville","NAMEASCII":"Gainesville","POP_MAX":191097,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.860492,26.6402977],"properties":{"NAME":"Ft. Myers","NAMEASCII":"Ft. Myers","POP_MAX":188606,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.4916515,31.1496865],"properties":{"NAME":"Brunswick","NAMEASCII":"Brunswick","POP_MAX":47085,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.9849805,33.4608116],"properties":{"NAME":"Augusta","NAMEASCII":"Augusta","POP_MAX":262332,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.8777452,32.3524813],"properties":{"NAME":"Vicksburg","NAMEASCII":"Vicksburg","POP_MAX":25701,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.8869784,33.6889114],"properties":{"NAME":"Myrtle Beach","NAMEASCII":"Myrtle Beach","POP_MAX":49357,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.9921047,32.7923769],"properties":{"NAME":"Charleston","NAMEASCII":"Charleston","POP_MAX":411940,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.57868049789218,40.689440128207266],"properties":{"NAME":"Peoria","NAMEASCII":"Peoria","POP_MAX":172308,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.5558291,37.9746963],"properties":{"NAME":"Evansville","NAMEASCII":"Evansville","POP_MAX":174102,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.7506501,38.2269628],"properties":{"NAME":"Louisville","NAMEASCII":"Louisville","POP_MAX":948000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.5000208,38.0500147],"properties":{"NAME":"Lexington","NAMEASCII":"Lexington","POP_MAX":264578,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.8319839,35.2069404],"properties":{"NAME":"Charlotte","NAMEASCII":"Charlotte","POP_MAX":995000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.649739,41.0996993],"properties":{"NAME":"Youngstown","NAMEASCII":"Youngstown","POP_MAX":311990,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.3786351,40.798865],"properties":{"NAME":"Canton","NAMEASCII":"Canton","POP_MAX":258660,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.55297592935672,41.639787520595725],"properties":{"NAME":"Toledo","NAMEASCII":"Toledo","POP_MAX":469924,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.9919555,39.9819202],"properties":{"NAME":"Columbus","NAMEASCII":"Columbus","POP_MAX":1270000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-85.2500009,35.0699898],"properties":{"NAME":"Chattanooga","NAMEASCII":"Chattanooga","POP_MAX":257589,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.4769259,38.0291891],"properties":{"NAME":"Charlottesville","NAMEASCII":"Charlottesville","POP_MAX":87925,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-79.1424667,37.4136194],"properties":{"NAME":"Lynchburg","NAMEASCII":"Lynchburg","POP_MAX":103893,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-89.6299919,44.9591537],"properties":{"NAME":"Wausau","NAMEASCII":"Wausau","POP_MAX":75422,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.75755317778979,42.653743922035616],"properties":{"NAME":"Albany","NAMEASCII":"Albany","POP_MAX":870716,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.4969434,42.4405735],"properties":{"NAME":"Ithaca","NAMEASCII":"Ithaca","POP_MAX":59930,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.8847492,40.2735999],"properties":{"NAME":"Harrisburg","NAMEASCII":"Harrisburg","POP_MAX":528892,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-65.546604,3.1738231],"properties":{"NAME":"La Esmeralda","NAMEASCII":"La Esmeralda","POP_MAX":150,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-63.6000045,8.0999823],"properties":{"NAME":"Ciudad Bolívar","NAMEASCII":"Ciudad Bolivar","POP_MAX":338000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-61.6333287,6.7332957],"properties":{"NAME":"El Dorado","NAMEASCII":"El Dorado","POP_MAX":2383,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-67.597753,10.2488256],"properties":{"NAME":"Maracay","NAMEASCII":"Maracay","POP_MAX":1007000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-68.7783448,44.801153],"properties":{"NAME":"Bangor","NAMEASCII":"Bangor","POP_MAX":50213,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-70.2455274,43.6721616],"properties":{"NAME":"Portland","NAMEASCII":"Portland","POP_MAX":135866,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.9508295,43.4194802],"properties":{"NAME":"Saginaw","NAMEASCII":"Saginaw","POP_MAX":121379,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[10.7200069,34.7500352],"properties":{"NAME":"Sfax","NAMEASCII":"Sfax","POP_MAX":453050,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[43.8497676,16.9397787],"properties":{"NAME":"Sadah","NAMEASCII":"Sadah","POP_MAX":105542,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[42.951029,14.7998914],"properties":{"NAME":"Al Hudaydah","NAMEASCII":"Al Hudaydah","POP_MAX":780000,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[-131.6639895,55.3562193],"properties":{"NAME":"Ketchikan","NAMEASCII":"Ketchikan","POP_MAX":9070,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-166.5316028,53.868584],"properties":{"NAME":"Unalaska","NAMEASCII":"Unalaska","POP_MAX":3571,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-160.3783234,59.070361],"properties":{"NAME":"Togiak","NAMEASCII":"Togiak","POP_MAX":236,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-157.3125273,61.7609963],"properties":{"NAME":"Red Devil","NAMEASCII":"Red Devil","POP_MAX":25,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-166.0965648,61.5310879],"properties":{"NAME":"Hooper Bay","NAMEASCII":"Hooper Bay","POP_MAX":1079,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-160.0383041,70.6368887],"properties":{"NAME":"Wainwright","NAMEASCII":"Wainwright","POP_MAX":174,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-156.9269953,64.7332955],"properties":{"NAME":"Galena","NAMEASCII":"Galena","POP_MAX":500,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-143.6029132,70.0878555],"properties":{"NAME":"Kaktovik","NAMEASCII":"Kaktovik","POP_MAX":101,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-135.3138959,59.4583203],"properties":{"NAME":"Skagway","NAMEASCII":"Skagway","POP_MAX":955,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-145.7574962,60.5427761],"properties":{"NAME":"Cordova","NAMEASCII":"Cordova","POP_MAX":2257,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-151.2580131,60.5543516],"properties":{"NAME":"Kenai","NAMEASCII":"Kenai","POP_MAX":7610,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-145.2737789,66.5646824],"properties":{"NAME":"Fort Yukon","NAMEASCII":"Fort Yukon","POP_MAX":833,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[34.159403,44.4993109],"properties":{"NAME":"Yalta","NAMEASCII":"Yalta","POP_MAX":79509,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[30.0988757,51.3894072],"properties":{"NAME":"Chernobyl","NAMEASCII":"Chernobyl","POP_MAX":0,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[34.7808638,50.9242934],"properties":{"NAME":"Sumy","NAMEASCII":"Sumy","POP_MAX":294456,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[37.5561983,47.0961808],"properties":{"NAME":"Mariupol","NAMEASCII":"Mariupol","POP_MAX":481626,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[51.2454402,15.2105044],"properties":{"NAME":"Sayhut al Ghamirah","NAMEASCII":"Sayhut","POP_MAX":189,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[49.1259314,14.5411654],"properties":{"NAME":"Al Mukalla","NAMEASCII":"Al Mukalla","POP_MAX":258132,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[59.9649597,41.8399901],"properties":{"NAME":"Daşoguz","NAMEASCII":"Dasoguz","POP_MAX":201424,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[60.6400089,41.5599813],"properties":{"NAME":"Urgentch","NAMEASCII":"Urgentch","POP_MAX":150110,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[98.3815295,7.8765334],"properties":{"NAME":"Phuket","NAMEASCII":"Phuket","POP_MAX":141618,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[108.0000122,13.9832925],"properties":{"NAME":"Play Ku","NAMEASCII":"Play Ku","POP_MAX":142900,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[109.1700183,12.2500391],"properties":{"NAME":"Nha Trang","NAMEASCII":"Nha Trang","POP_MAX":411556,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[109.2206612,11.9020241],"properties":{"NAME":"Cam Ranh","NAMEASCII":"Cam Ranh","POP_MAX":146771,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[109.1800435,13.7799715],"properties":{"NAME":"Qui Nhon","NAMEASCII":"Qui Nhon","POP_MAX":805290,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[107.5800378,16.4699882],"properties":{"NAME":"Hue","NAMEASCII":"Hue","POP_MAX":950000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.8300577,10.9700139],"properties":{"NAME":"Biên Hòa","NAMEASCII":"Bien Hoa","POP_MAX":652646,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[105.7700191,10.0499925],"properties":{"NAME":"Can Tho","NAMEASCII":"Can Tho","POP_MAX":1121000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[28.8900089,-11.2000024],"properties":{"NAME":"Mansa","NAMEASCII":"Mansa","POP_MAX":42277,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[31.4599812,-11.8300415],"properties":{"NAME":"Mpika","NAMEASCII":"Mpika","POP_MAX":28445,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[31.3700126,-8.8400431],"properties":{"NAME":"Mbala","NAMEASCII":"Mbala","POP_MAX":20570,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.400013,-13.1333211],"properties":{"NAME":"Luanshya","NAMEASCII":"Luanshya","POP_MAX":151993,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.6500236,-12.9999442],"properties":{"NAME":"Ndola","NAMEASCII":"Ndola","POP_MAX":396339,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[23.1099483,-13.5400146],"properties":{"NAME":"Zambezi","NAMEASCII":"Zambezi","POP_MAX":7074,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.1800264,-15.7800329],"properties":{"NAME":"Kafue","NAMEASCII":"Kafue","POP_MAX":47554,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[27.7600004,-15.8600281],"properties":{"NAME":"Mazabuka","NAMEASCII":"Mazabuka","POP_MAX":64006,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[26.5000256,-18.370004],"properties":{"NAME":"Hwange","NAMEASCII":"Hwange","POP_MAX":33989,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[29.8200297,-19.4500415],"properties":{"NAME":"Gweru","NAMEASCII":"Gweru","POP_MAX":183358,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[32.6500378,-18.9700191],"properties":{"NAME":"Mutare","NAMEASCII":"Mutare","POP_MAX":249365,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[29.9099467,-18.3300065],"properties":{"NAME":"Kadoma","NAMEASCII":"Kadoma","POP_MAX":79174,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[-44.7999893,-4.2299886],"properties":{"NAME":"Bacabal","NAMEASCII":"Bacabal","POP_MAX":72372,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.7699982,-1.0500277],"properties":{"NAME":"Bragança","NAMEASCII":"Braganca","POP_MAX":57163,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.5200068,-1.9100268],"properties":{"NAME":"Óbidos","NAMEASCII":"Obidos","POP_MAX":27587,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-65.3499494,-10.8000268],"properties":{"NAME":"Guajara-Miram","NAMEASCII":"Guajara-Miram","POP_MAX":69586,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.4199492,-10.7000329],"properties":{"NAME":"Porto Nacional","NAMEASCII":"Porto Nacional","POP_MAX":9129,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.8099984,-22.2300268],"properties":{"NAME":"Dourados","NAMEASCII":"Dourados","POP_MAX":162202,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.970007,-18.8700252],"properties":{"NAME":"Governador Valadares","NAMEASCII":"Governador Valadares","POP_MAX":250878,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.9299813,-17.3300158],"properties":{"NAME":"Pirapora","NAMEASCII":"Pirapora","POP_MAX":60164,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.3749858,-21.7700032],"properties":{"NAME":"Juiz de Fora","NAMEASCII":"Juiz de Fora","POP_MAX":470193,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-53.8000084,-29.6833187],"properties":{"NAME":"Santa Maria","NAMEASCII":"Santa Maria","POP_MAX":249219,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.4199893,-28.2500211],"properties":{"NAME":"Passo Fundo","NAMEASCII":"Passo Fundo","POP_MAX":179529,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.6400275,-27.1000138],"properties":{"NAME":"Xapeco","NAMEASCII":"Xapeco","POP_MAX":160157,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.8418952,-26.3180122],"properties":{"NAME":"Joinville","NAMEASCII":"Joinville","POP_MAX":988000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.3200137,-7.2100134],"properties":{"NAME":"Juazeiro do Norte","NAMEASCII":"Juazeiro do Norte","POP_MAX":225230,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.3700106,-17.8800081],"properties":{"NAME":"Nova Viçosa","NAMEASCII":"Nova Vicosa","POP_MAX":55980,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.4299905,-12.1399967],"properties":{"NAME":"Alagoinhas","NAMEASCII":"Alagoinhas","POP_MAX":124070,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.4999675,-9.4200077],"properties":{"NAME":"Juazeiro","NAMEASCII":"Juazeiro","POP_MAX":95132,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.35394335476039,-20.332042290924733],"properties":{"NAME":"Vitória","NAMEASCII":"Vitoria","POP_MAX":1704000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-34.878017,-7.0991893],"properties":{"NAME":"João Pessoa","NAMEASCII":"Joao Pessoa","POP_MAX":956000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.8800169,-7.2300122],"properties":{"NAME":"Campina Grande","NAMEASCII":"Campina Grande","POP_MAX":417261,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.5400497,-22.2599992],"properties":{"NAME":"Nova Friburgo","NAMEASCII":"Nova Friburgo","POP_MAX":171991,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-101.6665957,57.8832227],"properties":{"NAME":"Brochet","NAMEASCII":"Brochet","POP_MAX":278,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-101.0499667,56.8500299],"properties":{"NAME":"Lynn Lake","NAMEASCII":"Lynn Lake","POP_MAX":482,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.6999667,56.3499829],"properties":{"NAME":"Gillam","NAMEASCII":"Gillam","POP_MAX":1281,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-108.2833494,52.7666358],"properties":{"NAME":"North Battleford","NAMEASCII":"North Battleford","POP_MAX":19440,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-105.7499899,53.2000202],"properties":{"NAME":"Prince Albert","NAMEASCII":"Prince Albert","POP_MAX":34609,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-124.9999777,49.6833356],"properties":{"NAME":"Courtenay","NAMEASCII":"Courtenay","POP_MAX":32793,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-119.4833118,49.899989],"properties":{"NAME":"Kelowna","NAMEASCII":"Kelowna","POP_MAX":125109,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-65.7500283,66.1333134],"properties":{"NAME":"Pangnirtung","NAMEASCII":"Pangnirtung","POP_MAX":1320,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-117.7499809,70.7333685],"properties":{"NAME":"Holman","NAMEASCII":"Holman","POP_MAX":500,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-59.7799793,8.1999762],"properties":{"NAME":"Mabaruma","NAMEASCII":"Mabaruma","POP_MAX":2972,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-57.5299874,6.2500177],"properties":{"NAME":"New Amsterdam","NAMEASCII":"New Amsterdam","POP_MAX":46874,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-92.8333364,49.7833295],"properties":{"NAME":"Dryden","NAMEASCII":"Dryden","POP_MAX":7862,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-82.4333252,52.9166266],"properties":{"NAME":"Attawapiskat","NAMEASCII":"Attawapiskat","POP_MAX":1802,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.8299958,43.2499815],"properties":{"NAME":"Hamilton","NAMEASCII":"Hamilton","POP_MAX":721053,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-83.0368525,42.315457],"properties":{"NAME":"Windsor","NAMEASCII":"Windsor","POP_MAX":319246,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-72.5499492,46.3499732],"properties":{"NAME":"Trois-Rivières","NAMEASCII":"Trois Rivieres","POP_MAX":119693,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.3600169,50.3160877],"properties":{"NAME":"Sept-Îles","NAMEASCII":"Sept-Iles","POP_MAX":25686,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-57.9333478,48.9499953],"properties":{"NAME":"Corner Brook","NAMEASCII":"Corner Brook","POP_MAX":20791,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-23.1499671,66.0833165],"properties":{"NAME":"Ísafjörður","NAMEASCII":"Isafjordur","POP_MAX":2534,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-18.1000169,65.6665719],"properties":{"NAME":"Akureyri","NAMEASCII":"Akureyri","POP_MAX":16563,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-22.5665918,64.0166467],"properties":{"NAME":"Keflavík","NAMEASCII":"Keflavik","POP_MAX":7930,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-71.3166136,-42.9000313],"properties":{"NAME":"Esquel","NAMEASCII":"Esquel","POP_MAX":20048,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.0666641,-38.9000171],"properties":{"NAME":"Zapala","NAMEASCII":"Zapala","POP_MAX":19152,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.1699768,-17.410011],"properties":{"NAME":"Cochabamba","NAMEASCII":"Cochabamba","POP_MAX":1000000,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-60.3299974,-36.9000358],"properties":{"NAME":"Olavarría","NAMEASCII":"Olavarria","POP_MAX":86320,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.1500436,-37.3200102],"properties":{"NAME":"Tandil","NAMEASCII":"Tandil","POP_MAX":104325,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-62.99754456575547,-40.81319732964497],"properties":{"NAME":"Viedma","NAMEASCII":"Viedma","POP_MAX":59122,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.3500175,-33.2999971],"properties":{"NAME":"San Luis","NAMEASCII":"San Luis","POP_MAX":432310,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.3499846,-33.1300333],"properties":{"NAME":"Río Cuarto","NAMEASCII":"Rio Cuarto","POP_MAX":153757,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.3000299,-24.1833443],"properties":{"NAME":"San Salvador de Jujuy","NAMEASCII":"San Salvador de Jujuy","POP_MAX":305891,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.3200122,-23.1399971],"properties":{"NAME":"San Ramón de la Nueva Orán","NAMEASCII":"San Ramon de la Nueva Oran","POP_MAX":74059,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-59.2699846,-29.1399927],"properties":{"NAME":"Goya","NAMEASCII":"Goya","POP_MAX":72304,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-50.4500061,-21.2099857],"properties":{"NAME":"Araçatuba","NAMEASCII":"Aracatuba","POP_MAX":170024,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[4.4130712,51.2223194],"properties":{"NAME":"Antwerpen","NAMEASCII":"Antwerpen","POP_MAX":920000,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[67.82273157485362,34.81333703893491],"properties":{"NAME":"Bamian","NAMEASCII":"Bamian","POP_MAX":61863,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[68.6992586,36.1393303],"properties":{"NAME":"Baghlan","NAMEASCII":"Baghlan","POP_MAX":218748,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[-67.1299958,-17.9799503],"properties":{"NAME":"Oruro","NAMEASCII":"Oruro","POP_MAX":246501,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.5199836,-20.0500049],"properties":{"NAME":"Camiri","NAMEASCII":"Camiri","POP_MAX":27961,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[30.5299605,39.7949986],"properties":{"NAME":"Eskişehir","NAMEASCII":"Eskisehir","POP_MAX":514869,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[30.6980301,36.891928],"properties":{"NAME":"Antalya","NAMEASCII":"Antalya","POP_MAX":783000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.4900195,38.7349599],"properties":{"NAME":"Kayseri","NAMEASCII":"Kayseri","POP_MAX":592840,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[31.0000093,52.4300155],"properties":{"NAME":"Homyel","NAMEASCII":"Homyel","POP_MAX":480951,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[134.200015,-19.6500293],"properties":{"NAME":"Tennant Creek","NAMEASCII":"Tennant Creek","POP_MAX":3889,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[130.9888932,-25.2405408],"properties":{"NAME":"Yulara","NAMEASCII":"Yulara","POP_MAX":930,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[133.1999727,-25.2333061],"properties":{"NAME":"Erldunda","NAMEASCII":"Erldunda","POP_MAX":10,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[121.7666137,-32.2000126],"properties":{"NAME":"Norseman","NAMEASCII":"Norseman","POP_MAX":1004,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[127.6712447669129,-18.222685420623794],"properties":{"NAME":"Halls Creek","NAMEASCII":"Halls Creek","POP_MAX":1209,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[128.7333203,-15.7665971],"properties":{"NAME":"Kununurra","NAMEASCII":"Kununurra","POP_MAX":5679,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[123.64215064609337,-17.31181601826528],"properties":{"NAME":"Derby","NAMEASCII":"Derby","POP_MAX":3199,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.0962959,-21.6575935],"properties":{"NAME":"Onslow","NAMEASCII":"Onslow","POP_MAX":573,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[114.1233469,-21.9310999],"properties":{"NAME":"Exmouth","NAMEASCII":"Exmouth","POP_MAX":1085,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[113.6501066,-24.899838],"properties":{"NAME":"Carnarvon","NAMEASCII":"Carnarvon","POP_MAX":7392,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[119.7333011,-23.3665983],"properties":{"NAME":"Newman","NAMEASCII":"Newman","POP_MAX":5138,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[118.4832999,-26.5999927],"properties":{"NAME":"Meekatharra","NAMEASCII":"Meekatharra","POP_MAX":654,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.7499784,-29.533302],"properties":{"NAME":"Three Springs","NAMEASCII":"Three Springs","POP_MAX":190,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[116.1500057,-34.2333252],"properties":{"NAME":"Manjimup","NAMEASCII":"Manjimup","POP_MAX":4240,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[116.6533858,-31.6565832],"properties":{"NAME":"Northam","NAMEASCII":"Northam","POP_MAX":5855,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[121.8888973,-33.857307],"properties":{"NAME":"Esperance","NAMEASCII":"Esperance","POP_MAX":7888,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[121.3280358,-28.8815071],"properties":{"NAME":"Leonara","NAMEASCII":"Leonara","POP_MAX":227,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[122.4040425,-28.6270007],"properties":{"NAME":"Laverton","NAMEASCII":"Laverton","POP_MAX":316,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[128.2243231160757,-15.594524745058166],"properties":{"NAME":"Wyndham","NAMEASCII":"Wyndham","POP_MAX":800,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.9200138,-36.0600354],"properties":{"NAME":"Albury","NAMEASCII":"Albury","POP_MAX":104258,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.5266483,-32.1931396],"properties":{"NAME":"Forster-Tuncurry","NAMEASCII":"Forster-Tuncurry","POP_MAX":17591,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.9186657,-31.4450199],"properties":{"NAME":"Port Macquarie","NAMEASCII":"Port Macquarie","POP_MAX":48547,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.9171342,-31.1026119],"properties":{"NAME":"Tamworth","NAMEASCII":"Tamworth","POP_MAX":38551,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.9376827,-29.7119991],"properties":{"NAME":"Grafton","NAMEASCII":"Grafton","POP_MAX":9955,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.8300687,-29.469895],"properties":{"NAME":"Moree","NAMEASCII":"Moree","POP_MAX":8203,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.325284,-28.5548087],"properties":{"NAME":"Goondiwindi","NAMEASCII":"Goondiwindi","POP_MAX":4251,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.2931132,-28.8166532],"properties":{"NAME":"Lismore","NAMEASCII":"Lismore","POP_MAX":31430,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.890004,-34.4153812],"properties":{"NAME":"Wollongong","NAMEASCII":"Wollongong","POP_MAX":260914,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[133.6622674,-32.0991346],"properties":{"NAME":"Ceduna","NAMEASCII":"Ceduna","POP_MAX":1586,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[140.7650406,-37.8313485],"properties":{"NAME":"Mount Gambier","NAMEASCII":"Mount Gambier","POP_MAX":23209,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[137.7700297,-32.4900207],"properties":{"NAME":"Port Augusta","NAMEASCII":"Port Augusta","POP_MAX":13897,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.4700012,-38.3799971],"properties":{"NAME":"Warrnambool","NAMEASCII":"Warrnambool","POP_MAX":29928,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.1513643,-34.1850077],"properties":{"NAME":"Mildura","NAMEASCII":"Mildura","POP_MAX":47867,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.3956335,-38.167495],"properties":{"NAME":"Geelong","NAMEASCII":"Geelong","POP_MAX":160991,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[138.1166752,-19.9167313],"properties":{"NAME":"Camooweal","NAMEASCII":"Camooweal","POP_MAX":187,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.2500476,-26.6166325],"properties":{"NAME":"Quilpie","NAMEASCII":"Quilpie","POP_MAX":560,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.2500288,-26.4000049],"properties":{"NAME":"Charleville","NAMEASCII":"Charleville","POP_MAX":1900,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.2000248,-20.8500077],"properties":{"NAME":"Hughenden","NAMEASCII":"Hughenden","POP_MAX":421,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.1333296,-26.8000321],"properties":{"NAME":"Caloundra","NAMEASCII":"Caloundra","POP_MAX":38706,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.7907006,-26.559375],"properties":{"NAME":"Roma","NAMEASCII":"Roma","POP_MAX":5496,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.9555204,-27.5645333],"properties":{"NAME":"Toowoomba","NAMEASCII":"Toowoomba","POP_MAX":92800,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.5332955,-18.3000342],"properties":{"NAME":"Georgetown","NAMEASCII":"Georgetown","POP_MAX":818,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[143.816689,-27.9999589],"properties":{"NAME":"Thargomindah","NAMEASCII":"Thargomindah","POP_MAX":203,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[141.8666272,-12.6666312],"properties":{"NAME":"Weipa","NAMEASCII":"Weipa","POP_MAX":2830,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[140.8334086,-17.4833398],"properties":{"NAME":"Karumba","NAMEASCII":"Karumba","POP_MAX":173,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[140.4999922,-20.699991],"properties":{"NAME":"Cloncurry","NAMEASCII":"Cloncurry","POP_MAX":1202,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.7209,-25.5491007],"properties":{"NAME":"Maryborough","NAMEASCII":"Maryborough","POP_MAX":20678,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[152.3508968,-24.8790641],"properties":{"NAME":"Bundaberg","NAMEASCII":"Bundaberg","POP_MAX":52472,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.2467264,-23.8533386],"properties":{"NAME":"Gladstone","NAMEASCII":"Gladstone","POP_MAX":30489,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.208669,-20.0013257],"properties":{"NAME":"Bowen","NAMEASCII":"Bowen","POP_MAX":10983,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.0386722,-17.5313472],"properties":{"NAME":"Innisfail","NAMEASCII":"Innisfail","POP_MAX":10143,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.1500069,-21.1438916],"properties":{"NAME":"Mackay","NAMEASCII":"Mackay","POP_MAX":75922,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.9166642,-41.0666032],"properties":{"NAME":"Burnie","NAMEASCII":"Burnie","POP_MAX":19972,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.1301818,-41.4498356],"properties":{"NAME":"Launceston","NAMEASCII":"Launceston","POP_MAX":72458,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[-1.1499921,60.1500352],"properties":{"NAME":"Lerwick","NAMEASCII":"Lerwick","POP_MAX":6594,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[37.3830484,37.0769296],"properties":{"NAME":"Gaziantep","NAMEASCII":"Gaziantep","POP_MAX":1044000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[89.2800179,25.7500161],"properties":{"NAME":"Rangpur","NAMEASCII":"Rangpur","POP_MAX":285564,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[96.5149768,17.3200139],"properties":{"NAME":"Bago","NAMEASCII":"Bago","POP_MAX":284318,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[96.4378755,18.477876],"properties":{"NAME":"Pyu","NAMEASCII":"Pyu","POP_MAX":40386,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.2114388,18.81646],"properties":{"NAME":"Pyay","NAMEASCII":"Pyay","POP_MAX":135308,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[94.9195703,20.1445443],"properties":{"NAME":"Magway","NAMEASCII":"Magway","POP_MAX":125973,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[97.3927526,25.3596265],"properties":{"NAME":"Myitkyina","NAMEASCII":"Myitkyina","POP_MAX":139100,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[95.1499955,22.1049931],"properties":{"NAME":"Monywa","NAMEASCII":"Monywa","POP_MAX":226222,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[-4.7500308,41.6500016],"properties":{"NAME":"Valladolid","NAMEASCII":"Valladolid","POP_MAX":322304,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[3.2000008,13.0500161],"properties":{"NAME":"Dosso","NAMEASCII":"Dosso","POP_MAX":49750,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[36.7180761,34.7319048],"properties":{"NAME":"Homs","NAMEASCII":"Hims","POP_MAX":1005000,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[27.4000223,8.7665566],"properties":{"NAME":"Aweil","NAMEASCII":"Aweil","POP_MAX":46705,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[37.7332934,18.4333309],"properties":{"NAME":"Tokar","NAMEASCII":"Tokar","POP_MAX":73202,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[15.6299397,58.4100122],"properties":{"NAME":"Linköping","NAMEASCII":"Linkoping","POP_MAX":96732,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[14.6499996,63.1833126],"properties":{"NAME":"Östersund","NAMEASCII":"Ostersund","POP_MAX":46178,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[20.2166365,67.8500045],"properties":{"NAME":"Kiruna","NAMEASCII":"Kiruna","POP_MAX":18154,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[20.2399943,63.8299915],"properties":{"NAME":"Umeå","NAMEASCII":"Umea","POP_MAX":78197,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[17.6399979,59.8600529],"properties":{"NAME":"Uppsala","NAMEASCII":"Uppsala","POP_MAX":133117,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[23.5984456,46.7884219],"properties":{"NAME":"Cluj-Napoca","NAMEASCII":"Cluj-Napoca","POP_MAX":316748,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[99.9700114,8.3999898],"properties":{"NAME":"Nakhon Si Thammarat","NAMEASCII":"Nakhon Si Thammarat","POP_MAX":232335,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.5600012,7.2099591],"properties":{"NAME":"Songkhla","NAMEASCII":"Songkhla","POP_MAX":48616,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.4714278,6.9964321],"properties":{"NAME":"Hat Yai","NAMEASCII":"Hat Yai","POP_MAX":317954,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[100.0700052,15.7000352],"properties":{"NAME":"Nakhon Sawan","NAMEASCII":"Nakhon Sawan","POP_MAX":111915,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[104.8300248,15.2499593],"properties":{"NAME":"Ubon Ratchathani","NAMEASCII":"Ubon Ratchathani","POP_MAX":273893,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[-81.1200204,-5.0899878],"properties":{"NAME":"Paita","NAMEASCII":"Paita","POP_MAX":56151,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-81.2799848,-4.5799931],"properties":{"NAME":"Talara","NAMEASCII":"Talara","POP_MAX":99074,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-80.4599832,-3.5700289],"properties":{"NAME":"Tumbes","NAMEASCII":"Tumbes","POP_MAX":109223,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-69.183333,-12.6000203],"properties":{"NAME":"Puerto Maldonado","NAMEASCII":"Puerto Maldonado","POP_MAX":67155,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-71.340023,-17.6400228],"properties":{"NAME":"Ilo","NAMEASCII":"Ilo","POP_MAX":53476,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-70.9399958,-17.1899727],"properties":{"NAME":"Moquegua","NAMEASCII":"Moquegua","POP_MAX":54517,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-77.530007,-9.5300268],"properties":{"NAME":"Huaraz","NAMEASCII":"Huaraz","POP_MAX":86934,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.5300234,-7.1500171],"properties":{"NAME":"Cajamarca","NAMEASCII":"Cajamarca","POP_MAX":142665,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.2400082,-9.9200289],"properties":{"NAME":"Huánuco","NAMEASCII":"Huanuco","POP_MAX":158145,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-79.5706059,-7.4006478],"properties":{"NAME":"Pacasmayo","NAMEASCII":"Pacasmayo","POP_MAX":39282,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.9899954,-8.2200293],"properties":{"NAME":"Salaverry","NAMEASCII":"Salaverry","POP_MAX":10066,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.2299665,-0.1165963],"properties":{"NAME":"Gueppi","NAMEASCII":"Gueppi","POP_MAX":10,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.0199793,-7.3400313],"properties":{"NAME":"Contamana","NAMEASCII":"Contamana","POP_MAX":18921,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.990007,-12.7900346],"properties":{"NAME":"Huancavelica","NAMEASCII":"Huancavelica","POP_MAX":44388,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-76.2199836,-13.7100301],"properties":{"NAME":"Pisco","NAMEASCII":"Pisco","POP_MAX":81207,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.94001,-14.8300134],"properties":{"NAME":"Nasca","NAMEASCII":"Nasca","POP_MAX":23556,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-60.0299899,-22.3399943],"properties":{"NAME":"Filadelfia","NAMEASCII":"Filadelfia","POP_MAX":10470,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-83.7649494,11.9999768],"properties":{"NAME":"Bluefields","NAMEASCII":"Bluefields","POP_MAX":44373,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-2.9500114,35.3000016],"properties":{"NAME":"Melilla","NAMEASCII":"Melilla","POP_MAX":141308,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-16.8800397,32.6499825],"properties":{"NAME":"Funchal","NAMEASCII":"Funchal","POP_MAX":204767,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-11.7400175,7.9700161],"properties":{"NAME":"Bo","NAMEASCII":"Bo","POP_MAX":174354,"ISO_A2":"SL","SOV_A3":"SLE"}},{"type":"Point","coordinates":[-16.2899982,12.5899925],"properties":{"NAME":"Ziguinchor","NAMEASCII":"Ziguinchor","POP_MAX":191716,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[7.389004881037264,18.73633857499418],"properties":{"NAME":"Arlit","NAMEASCII":"Arlit","POP_MAX":100000,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[12.3075069,21.0149821],"properties":{"NAME":"Djado","NAMEASCII":"Djado","POP_MAX":10,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[2.654246,39.5742627],"properties":{"NAME":"Palma","NAMEASCII":"Palma","POP_MAX":375773,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[36.4635518,26.2324156],"properties":{"NAME":"Al Wajh","NAMEASCII":"Al Wajh","POP_MAX":43237,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[29.6832938,6.80001],"properties":{"NAME":"Rumbek","NAMEASCII":"Rumbek","POP_MAX":32083,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[28.4163427,4.5705337],"properties":{"NAME":"Yambio","NAMEASCII":"Yambio","POP_MAX":40382,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[31.5591483,6.2072038],"properties":{"NAME":"Bor","NAMEASCII":"Bor","POP_MAX":26782,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[33.5200105,14.3999595],"properties":{"NAME":"Medani","NAMEASCII":"Medani","POP_MAX":332714,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[35.3800004,14.0399815],"properties":{"NAME":"Gedaref","NAMEASCII":"Gedaref","POP_MAX":201282,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[33.9599837,17.5899715],"properties":{"NAME":"Ad-Damir","NAMEASCII":"EdDamer","POP_MAX":103941,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[33.9799825,17.7099901],"properties":{"NAME":"Atbarah","NAMEASCII":"Atbara","POP_MAX":168612,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[31.3499621,21.8000246],"properties":{"NAME":"Wadi Halfa","NAMEASCII":"Wadi Halfa","POP_MAX":17121,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[31.816652,18.483302],"properties":{"NAME":"Merowe","NAMEASCII":"Merowe","POP_MAX":10234,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[32.6600114,13.1699829],"properties":{"NAME":"Kosti","NAMEASCII":"Kosti","POP_MAX":345068,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[33.6000057,13.5499597],"properties":{"NAME":"Sennar","NAMEASCII":"Sennar","POP_MAX":130122,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[25.3500183,13.6299807],"properties":{"NAME":"El Fasher","NAMEASCII":"El Fasher","POP_MAX":252609,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[29.700037,11.0099597],"properties":{"NAME":"Kadugli","NAMEASCII":"Kadugli","POP_MAX":176931,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[42.5001342,18.2300875],"properties":{"NAME":"Abha","NAMEASCII":"Abha","POP_MAX":210886,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[42.5565649,16.9065507],"properties":{"NAME":"Jizan","NAMEASCII":"Jizan","POP_MAX":105198,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[32.0500227,3.5999986],"properties":{"NAME":"Nimule","NAMEASCII":"Nimule","POP_MAX":242,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[7.1833235,62.7483004],"properties":{"NAME":"Molde","NAMEASCII":"Molde","POP_MAX":18594,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[10.5000203,61.1332827],"properties":{"NAME":"Lillehammer","NAMEASCII":"Lillehammer","POP_MAX":19542,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[30.0516434,69.7250063],"properties":{"NAME":"Kirkenes","NAMEASCII":"Kirkenes","POP_MAX":3282,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[45.5722465,20.462251],"properties":{"NAME":"As Sulayyil","NAMEASCII":"As Sulayyil","POP_MAX":24097,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[24.0000232,-30.649978],"properties":{"NAME":"De Aar","NAMEASCII":"De Aar","POP_MAX":32318,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[16.5033231,-28.6083455],"properties":{"NAME":"Alexander Bay","NAMEASCII":"Alexander Bay","POP_MAX":1500,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[24.770002,-28.7468384],"properties":{"NAME":"Kimberley","NAMEASCII":"Kimberley","POP_MAX":165264,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[22.1900044,-33.5800317],"properties":{"NAME":"Oudtshoorn","NAMEASCII":"Oudtshoorn","POP_MAX":76708,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[18.7333162,-31.6166374],"properties":{"NAME":"Vanhynsdorp","NAMEASCII":"Vanhynsdorp","POP_MAX":3331,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[17.9300061,-33.0100407],"properties":{"NAME":"Saldanha","NAMEASCII":"Saldanha","POP_MAX":68284,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[22.1300081,-34.1700215],"properties":{"NAME":"Mossel Bay","NAMEASCII":"Mossel Bay","POP_MAX":16743,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[33.4700394,-19.1200358],"properties":{"NAME":"Chimoio","NAMEASCII":"Chimoio","POP_MAX":256936,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[35.2400089,-13.3000293],"properties":{"NAME":"Lichinga","NAMEASCII":"Lichinga","POP_MAX":109839,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[39.9100081,-16.2300313],"properties":{"NAME":"Angoche","NAMEASCII":"Angoche","POP_MAX":57835,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[40.6821837,-15.0398989],"properties":{"NAME":"Mocambique","NAMEASCII":"Mocambique","POP_MAX":54315,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[24.7300044,-26.9600224],"properties":{"NAME":"Vryburg","NAMEASCII":"Vryburg","POP_MAX":49588,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[27.2400321,-25.6500248],"properties":{"NAME":"Rustenburg","NAMEASCII":"Rustenburg","POP_MAX":165976,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[25.6100024,-25.8300138],"properties":{"NAME":"Mmabatho","NAMEASCII":"Mmabatho","POP_MAX":104428,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[26.6200183,-26.8800272],"properties":{"NAME":"Klerksdorp","NAMEASCII":"Klerksdorp","POP_MAX":178921,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[27.2100081,-27.6600313],"properties":{"NAME":"Kroonstad","NAMEASCII":"Kroonstad","POP_MAX":103992,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[29.4500264,-23.8900289],"properties":{"NAME":"Polokwane","NAMEASCII":"Polokwane","POP_MAX":220045,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.4800411,-22.9500346],"properties":{"NAME":"Thohoyandou","NAMEASCII":"Thohoyandou","POP_MAX":269707,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.029991,-22.3399943],"properties":{"NAME":"Musina","NAMEASCII":"Musina","POP_MAX":20191,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.7899963,-27.7600252],"properties":{"NAME":"Vryheid","NAMEASCII":"Vryheid","POP_MAX":150012,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.3900207,-29.6100415],"properties":{"NAME":"Pietermaritzburg","NAMEASCII":"Pietermaritzburg","POP_MAX":750845,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[143.6367,-3.5534924],"properties":{"NAME":"Wewak","NAMEASCII":"Wewak","POP_MAX":25143,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[145.785251,-5.2248116],"properties":{"NAME":"Madang","NAMEASCII":"Madang","POP_MAX":62023,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[150.8129765,-2.5812843],"properties":{"NAME":"Kavieng","NAMEASCII":"Kavieng","POP_MAX":19728,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[-82.8700169,8.280023],"properties":{"NAME":"Puerto Armuelles","NAMEASCII":"Puerto Armuelles","POP_MAX":27147,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-5.806197897901798,35.77592490288572],"properties":{"NAME":"Tangier","NAMEASCII":"Tangier","POP_MAX":750060,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-9.6200436,30.4399882],"properties":{"NAME":"Agadir","NAMEASCII":"Agadir","POP_MAX":825467,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[35.3398175,-23.8580397],"properties":{"NAME":"Inhambane","NAMEASCII":"Inhambane","POP_MAX":115776,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[28.790015,-31.5799988],"properties":{"NAME":"Umtata","NAMEASCII":"Umtata","POP_MAX":137772,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[24.5400419,-32.3000065],"properties":{"NAME":"Graaff Reinet","NAMEASCII":"Graaff Reinet","POP_MAX":62896,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[27.3899971,-32.8699975],"properties":{"NAME":"Bhisho","NAMEASCII":"Bhisho","POP_MAX":160997,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[43.6499865,3.1199762],"properties":{"NAME":"Baydhabo","NAMEASCII":"Baydhabo","POP_MAX":129839,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[44.76889616536284,1.719949281900825],"properties":{"NAME":"Marka","NAMEASCII":"Marka","POP_MAX":1958,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[-173.2257937,64.4234953],"properties":{"NAME":"Provideniya","NAMEASCII":"Provideniya","POP_MAX":2536,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-169.8105835,66.1541393],"properties":{"NAME":"Uelen","NAMEASCII":"Uelen","POP_MAX":776,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.4143933,67.1643358],"properties":{"NAME":"Kandalaksha","NAMEASCII":"Kandalaksha","POP_MAX":38126,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[28.7549267,60.7038774],"properties":{"NAME":"Vyborg","NAMEASCII":"Vyborg","POP_MAX":117201,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.2886975,62.2087209],"properties":{"NAME":"Kondopoga","NAMEASCII":"Kondopoga","POP_MAX":34360,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[56.372291,70.5980736],"properties":{"NAME":"Rusanovo","NAMEASCII":"Rusanovo","POP_MAX":10,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.240028,65.8522195],"properties":{"NAME":"Mezen","NAMEASCII":"Mezen","POP_MAX":3672,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.0974198,61.0673952],"properties":{"NAME":"Velsk","NAMEASCII":"Velsk","POP_MAX":26300,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.6630843,61.2630681],"properties":{"NAME":"Kotlas","NAMEASCII":"Kotlas","POP_MAX":59879,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[38.0771484,63.9271432],"properties":{"NAME":"Onega","NAMEASCII":"Onega","POP_MAX":22693,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.0099926,57.0100202],"properties":{"NAME":"Ivanovo","NAMEASCII":"Ivanovo","POP_MAX":420839,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.9400227,57.7700255],"properties":{"NAME":"Kostroma","NAMEASCII":"Kostroma","POP_MAX":277656,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.2986621,60.7687055],"properties":{"NAME":"Velikiy Ustyug","NAMEASCII":"Velikiy Ustyug","POP_MAX":33237,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.6399987,52.6200039],"properties":{"NAME":"Lipetsk","NAMEASCII":"Lipetsk","POP_MAX":515655,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.0699841,52.9699567],"properties":{"NAME":"Orel","NAMEASCII":"Orel","POP_MAX":334552,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[42.1599483,47.5099799],"properties":{"NAME":"Volgodonsk","NAMEASCII":"Volgodonsk","POP_MAX":167731,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[36.5999259,50.6299962],"properties":{"NAME":"Belgorod","NAMEASCII":"Belgorod","POP_MAX":345289,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[37.769932,44.7299687],"properties":{"NAME":"Novorossiysk","NAMEASCII":"Novorossiysk","POP_MAX":241856,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.4099259,56.1299705],"properties":{"NAME":"Vladimir","NAMEASCII":"Vladimir","POP_MAX":318648,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[55.544351,55.4243805],"properties":{"NAME":"Birsk","NAMEASCII":"Birsk","POP_MAX":41014,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[59.6499918,55.1749901],"properties":{"NAME":"Zlatoust","NAMEASCII":"Zlatoust","POP_MAX":191366,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.6676981,69.7630143],"properties":{"NAME":"Amderma","NAMEASCII":"Amderma","POP_MAX":282,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.0574226,67.647407],"properties":{"NAME":"Naryan Mar","NAMEASCII":"Naryan Mar","POP_MAX":21658,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.1674279,66.0374278],"properties":{"NAME":"Inta","NAMEASCII":"Inta","POP_MAX":22921,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.4029972,65.923042],"properties":{"NAME":"Usinsk","NAMEASCII":"Usinsk","POP_MAX":45000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.2087455,65.1587476],"properties":{"NAME":"Pechora","NAMEASCII":"Pechora","POP_MAX":46113,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[59.9550378,56.9100263],"properties":{"NAME":"Pervouralsk","NAMEASCII":"Pervouralsk","POP_MAX":133600,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[53.2300219,56.8500299],"properties":{"NAME":"Izhevsk","NAMEASCII":"Izhevsk","POP_MAX":631038,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.1686958,48.2787185],"properties":{"NAME":"Akhtubinsk","NAMEASCII":"Akhtubinsk","POP_MAX":44551,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.2087121,46.3286566],"properties":{"NAME":"Elista","NAMEASCII":"Elista","POP_MAX":106971,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.6974068,51.0173885],"properties":{"NAME":"Krasnoarmeysk","NAMEASCII":"Krasnoarmeysk","POP_MAX":25841,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[57.5314131,22.92639],"properties":{"NAME":"Nizwa","NAMEASCII":"Nizwa","POP_MAX":72076,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[59.5348051,22.5758171],"properties":{"NAME":"Sur","NAMEASCII":"Sur","POP_MAX":71152,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[47.2999963,3.7665776],"properties":{"NAME":"Mereeg","NAMEASCII":"Mereeg","POP_MAX":548,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[45.2000211,4.7399807],"properties":{"NAME":"Beledweyne","NAMEASCII":"Beledweyne","POP_MAX":62945,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[49.1799849,11.2800208],"properties":{"NAME":"Boosaaso","NAMEASCII":"Boosaaso","POP_MAX":46969,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[50.8166809,9.4833087],"properties":{"NAME":"Bandarbeyla","NAMEASCII":"Bandarbeyla","POP_MAX":13753,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[47.4300142,6.7699601],"properties":{"NAME":"Gaalkacyo","NAMEASCII":"Gaalkacyo","POP_MAX":61200,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[49.8332784,7.9833486],"properties":{"NAME":"Eyl","NAMEASCII":"Eyl","POP_MAX":18904,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[48.5000264,8.3999898],"properties":{"NAME":"Garoowe","NAMEASCII":"Garoowe","POP_MAX":2568,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[80.3832999,8.3499929],"properties":{"NAME":"Anuradhapura","NAMEASCII":"Anuradhapura","POP_MAX":118302,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[80.0050284,9.6750025],"properties":{"NAME":"Jaffna","NAMEASCII":"Jaffna","POP_MAX":250000,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[122.9816817,10.6316883],"properties":{"NAME":"Bacolod","NAMEASCII":"Bacolod","POP_MAX":949354,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[122.7511014,11.5852735],"properties":{"NAME":"Roxas","NAMEASCII":"Roxas","POP_MAX":102688,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[118.744384,9.7542678],"properties":{"NAME":"Puerto Princesa","NAMEASCII":"Puerto Princesa","POP_MAX":157144,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[123.1813594,13.6191545],"properties":{"NAME":"Naga","NAMEASCII":"Naga","POP_MAX":741635,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.5450862,15.1450562],"properties":{"NAME":"Angeles","NAMEASCII":"Angeles","POP_MAX":314493,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[121.021698,13.7816769],"properties":{"NAME":"Batangas","NAMEASCII":"Batangas","POP_MAX":424508,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[124.2484261,7.2169096],"properties":{"NAME":"Cotabato","NAMEASCII":"Cotabato","POP_MAX":279519,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[124.6041666,12.067182],"properties":{"NAME":"Calbayog","NAMEASCII":"Calbayog","POP_MAX":67921,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[124.6852986,8.4508395],"properties":{"NAME":"Cagayan de Oro","NAMEASCII":"Cagayan de Oro","POP_MAX":1121561,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[42.7505582,0.0721778],"properties":{"NAME":"Jamaame","NAMEASCII":"Jamaame","POP_MAX":185270,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[42.5183243,-0.3566333],"properties":{"NAME":"Kismaayo","NAMEASCII":"Kismaayo","POP_MAX":234852,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[-109.9045164,22.8927562],"properties":{"NAME":"Cabo San Lucas","NAMEASCII":"Cabo San Lucas","POP_MAX":42601,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.4199958,26.8999976],"properties":{"NAME":"Monclova","NAMEASCII":"Monclova","POP_MAX":236244,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.4200238,16.6800529],"properties":{"NAME":"Ometepec","NAMEASCII":"Ometepec","POP_MAX":30271,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-86.9500004,20.51],"properties":{"NAME":"Cozumel","NAMEASCII":"Cozumel","POP_MAX":73934,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-16.5100106,16.0199898],"properties":{"NAME":"Saint-Louis","NAMEASCII":"Saint-Louis","POP_MAX":220792,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-11.4166006,18.5500163],"properties":{"NAME":"Tidjikdja","NAMEASCII":"Tidjikdja","POP_MAX":19981,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[4.54805,8.4919561],"properties":{"NAME":"Ilorin","NAMEASCII":"Ilorin","POP_MAX":771000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[6.5500288,9.6199929],"properties":{"NAME":"Minna","NAMEASCII":"Minna","POP_MAX":291905,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.7080639,11.0819272],"properties":{"NAME":"Zaria","NAMEASCII":"Zaria","POP_MAX":889000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[8.8900411,9.929974],"properties":{"NAME":"Jos","NAMEASCII":"Jos","POP_MAX":816824,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[12.4800028,9.2099921],"properties":{"NAME":"Yola","NAMEASCII":"Yola","POP_MAX":96006,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[19.458228648552854,51.76779686697564],"properties":{"NAME":"Łódź","NAMEASCII":"Lodz","POP_MAX":758000,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[56.7599873,59.4200023],"properties":{"NAME":"Berezniki","NAMEASCII":"Berezniki","POP_MAX":167748,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[18.1299939,-26.5738961],"properties":{"NAME":"Keetmanshoop","NAMEASCII":"Keetmanshoop","POP_MAX":18039,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[16.939989,-24.8399967],"properties":{"NAME":"Maltahöhe","NAMEASCII":"Maltahohe","POP_MAX":2329,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[14.5350195,-22.6688631],"properties":{"NAME":"Swakopmund","NAMEASCII":"Swakopmund","POP_MAX":29491,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[15.7700345,-17.7800142],"properties":{"NAME":"Ongwediva","NAMEASCII":"Ongwediva","POP_MAX":25032,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[19.7499467,-17.9200057],"properties":{"NAME":"Rundu","NAMEASCII":"Rundu","POP_MAX":58172,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[17.7100195,-19.2400285],"properties":{"NAME":"Tsumeb","NAMEASCII":"Tsumeb","POP_MAX":14959,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[32.8000028,-5.0200179],"properties":{"NAME":"Tabora","NAMEASCII":"Tabora","POP_MAX":146495,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[39.6999951,-10.000024],"properties":{"NAME":"Lindi","NAMEASCII":"Lindi","POP_MAX":41912,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.6500097,-10.6800342],"properties":{"NAME":"Songea","NAMEASCII":"Songea","POP_MAX":126449,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[39.0900065,-5.0700407],"properties":{"NAME":"Tanga","NAMEASCII":"Tanga","POP_MAX":224876,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[-0.8899821,41.6500016],"properties":{"NAME":"Zaragoza","NAMEASCII":"Zaragoza","POP_MAX":649404,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[11.978630208072927,57.709146768849784],"properties":{"NAME":"Göteborg","NAMEASCII":"Goteborg","POP_MAX":537797,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[-10.0700161,28.979974],"properties":{"NAME":"Goulimine","NAMEASCII":"Goulimine","POP_MAX":115267,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-11.6833285,26.7332894],"properties":{"NAME":"Smara","NAMEASCII":"Smara","POP_MAX":48149,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-15.9368109,23.7140559],"properties":{"NAME":"Ad Dakhla","NAMEASCII":"Ad Dakhla","POP_MAX":89292,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[27.7999979,11.3333508],"properties":{"NAME":"Babanusa","NAMEASCII":"Babanusa","POP_MAX":19700,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[98.8000052,1.7499823],"properties":{"NAME":"Sibolga","NAMEASCII":"Sibolga","POP_MAX":217312,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[99.061488,2.9614329],"properties":{"NAME":"Pematangsiantar","NAMEASCII":"Pematangsiantar","POP_MAX":341200,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[101.4230671,0.5669101],"properties":{"NAME":"Pekanbaru","NAMEASCII":"Pekanbaru","POP_MAX":799000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[124.8499914,1.4800246],"properties":{"NAME":"Manado","NAMEASCII":"Manado","POP_MAX":451893,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[110.3750093,-7.7799528],"properties":{"NAME":"Yogyakarta","NAMEASCII":"Yogyakarta","POP_MAX":636660,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[122.5973124,-3.9553283],"properties":{"NAME":"Kendari","NAMEASCII":"Kendari","POP_MAX":165377,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[119.8330367,-0.907039],"properties":{"NAME":"Palu","NAMEASCII":"Palu","POP_MAX":612445,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[135.5134232,-3.3515409],"properties":{"NAME":"Nabire","NAMEASCII":"Nabire","POP_MAX":43898,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[140.401807,-8.4931909],"properties":{"NAME":"Merauke","NAMEASCII":"Merauke","POP_MAX":34412,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-8.6230502,52.664704],"properties":{"NAME":"Limerick","NAMEASCII":"Limerick","POP_MAX":90054,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-9.0388129,5.0111269],"properties":{"NAME":"Greenville","NAMEASCII":"Greenville","POP_MAX":10374,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-10.052472,5.9160846],"properties":{"NAME":"Buchanan","NAMEASCII":"Buchanan","POP_MAX":48315,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[-11.3685932,6.7533203],"properties":{"NAME":"Robertsport","NAMEASCII":"Robertsport","POP_MAX":11969,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[15.7800081,4.2499589],"properties":{"NAME":"Berbérati","NAMEASCII":"Berberati","POP_MAX":61815,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[8.9300386,44.4099882],"properties":{"NAME":"Genoa","NAMEASCII":"Genoa","POP_MAX":647497,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[21.9832987,6.5333079],"properties":{"NAME":"Bria","NAMEASCII":"Bria","POP_MAX":29027,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[37.9799967,2.3299986],"properties":{"NAME":"Marsabit","NAMEASCII":"Marsabit","POP_MAX":16460,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[39.0500089,3.5199776],"properties":{"NAME":"Moyale","NAMEASCII":"Moyale","POP_MAX":24837,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[36.0699841,-0.2799971],"properties":{"NAME":"Nakuru","NAMEASCII":"Nakuru","POP_MAX":364727,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[26.5099991,55.8799599],"properties":{"NAME":"Daugavpils","NAMEASCII":"Daugavpils","POP_MAX":111564,"ISO_A2":"LV","SOV_A3":"LVA"}},{"type":"Point","coordinates":[97.1414502,5.1914002],"properties":{"NAME":"Lhokseumawe","NAMEASCII":"Lhokseumawe","POP_MAX":140322,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[100.7199914,4.8649601],"properties":{"NAME":"Taiping","NAMEASCII":"Taiping","POP_MAX":237095,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[101.0649833,4.5999892],"properties":{"NAME":"Ipoh","NAMEASCII":"Ipoh","POP_MAX":673318,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[102.2299768,6.119974],"properties":{"NAME":"Kota Baharu","NAMEASCII":"Kota Baharu","POP_MAX":505583,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[102.2464615,2.2064144],"properties":{"NAME":"Malacca","NAMEASCII":"Malacca","POP_MAX":788706,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[103.3200394,3.8299587],"properties":{"NAME":"Kuantan","NAMEASCII":"Kuantan","POP_MAX":366229,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[118.7533319,30.9544459],"properties":{"NAME":"Xuanzhou","NAMEASCII":"Xuanzhou","POP_MAX":866000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.5658319,22.2788903],"properties":{"NAME":"Zhuhai","NAMEASCII":"Zhuhai","POP_MAX":1023000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.1499963,-0.5000354],"properties":{"NAME":"Samarinda","NAMEASCII":"Samarinda","POP_MAX":592228,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[117.8959973,4.2709654],"properties":{"NAME":"Tawau","NAMEASCII":"Tawau","POP_MAX":306462,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[118.107974,5.8429625],"properties":{"NAME":"Sandakan","NAMEASCII":"Sandakan","POP_MAX":392288,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[116.1100081,5.9799825],"properties":{"NAME":"Kota Kinabalu","NAMEASCII":"Kota Kinabalu","POP_MAX":527671,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[111.8430334,2.3029718],"properties":{"NAME":"Sibu","NAMEASCII":"Sibu","POP_MAX":203832,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[40.9196664,-2.2620436],"properties":{"NAME":"Lamu","NAMEASCII":"Lamu","POP_MAX":24525,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[40.1000223,-3.2099992],"properties":{"NAME":"Malindi","NAMEASCII":"Malindi","POP_MAX":94016,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[34.750013,-0.0900346],"properties":{"NAME":"Kisumu","NAMEASCII":"Kisumu","POP_MAX":395615,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[47.0332942,-19.8500171],"properties":{"NAME":"Antsirabe","NAMEASCII":"Antsirabe","POP_MAX":307921,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[50.2833284,-14.8833435],"properties":{"NAME":"Antalaha","NAMEASCII":"Antalaha","POP_MAX":47224,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[48.266604,-13.4000232],"properties":{"NAME":"Andoany","NAMEASCII":"Andoany","POP_MAX":22680,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[47.8332454,-22.816606],"properties":{"NAME":"Farafangana","NAMEASCII":"Farafangana","POP_MAX":24764,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[48.3333182,-21.216652],"properties":{"NAME":"Mananjary","NAMEASCII":"Mananjary","POP_MAX":27686,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[44.0166825,-18.0666117],"properties":{"NAME":"Maintirano","NAMEASCII":"Maintirano","POP_MAX":5925,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[49.4049841,-18.1817985],"properties":{"NAME":"Toamasina","NAMEASCII":"Toamasina","POP_MAX":210226,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[49.7333361,-15.4333358],"properties":{"NAME":"Maroantsetra","NAMEASCII":"Maroantsetra","POP_MAX":38046,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[46.9900411,-25.026807],"properties":{"NAME":"Tôlanaro","NAMEASCII":"Tolanaro","POP_MAX":16818,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[43.3656776,-21.7391385],"properties":{"NAME":"Morombe","NAMEASCII":"Morombe","POP_MAX":16727,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[44.0749469,-25.0219462],"properties":{"NAME":"Androka","NAMEASCII":"Androka","POP_MAX":174,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[44.2833329,-20.2832723],"properties":{"NAME":"Morondava","NAMEASCII":"Morondava","POP_MAX":36803,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[108.5666442,-6.7332983],"properties":{"NAME":"Cirebon","NAMEASCII":"Cirebon","POP_MAX":254298,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[108.2146761,-7.3254069],"properties":{"NAME":"Tasikmalaya","NAMEASCII":"Tasikmalaya","POP_MAX":271143,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[106.7480651,-6.5680549],"properties":{"NAME":"Bogor","NAMEASCII":"Bogor","POP_MAX":918000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[102.2699743,-3.8000407],"properties":{"NAME":"Bengkulu","NAMEASCII":"Bengkulu","POP_MAX":426673,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[109.3199833,-0.0299866],"properties":{"NAME":"Pontianak","NAMEASCII":"Pontianak","POP_MAX":607311,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[104.8999947,-4.8333109],"properties":{"NAME":"Kotabumi","NAMEASCII":"Kotabumi","POP_MAX":42366,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[103.5333081,-3.8000407],"properties":{"NAME":"Lahat","NAMEASCII":"Lahat","POP_MAX":65906,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[106.1500476,-2.0800423],"properties":{"NAME":"Pangkalpinang","NAMEASCII":"Pangkalpinang","POP_MAX":125933,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[113.6873136,-8.1726937],"properties":{"NAME":"Jember","NAMEASCII":"Jember","POP_MAX":298585,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[114.8364941,-3.413501],"properties":{"NAME":"Martapura","NAMEASCII":"Martapura","POP_MAX":198239,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[120.4698453,-8.61184],"properties":{"NAME":"Ruteng","NAMEASCII":"Ruteng","POP_MAX":53976,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-79.9599878,-3.260022],"properties":{"NAME":"Machala","NAMEASCII":"Machala","POP_MAX":213034,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-79.2100078,-3.9900032],"properties":{"NAME":"Loja","NAMEASCII":"Loja","POP_MAX":126368,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-80.7299667,-0.9800061],"properties":{"NAME":"Manta","NAMEASCII":"Manta","POP_MAX":183166,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-78.650042,-1.6700415],"properties":{"NAME":"Riobamba","NAMEASCII":"Riobamba","POP_MAX":172464,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-71.2309424,18.8089489],"properties":{"NAME":"San Juan","NAMEASCII":"San Juan","POP_MAX":72950,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-78.8099805,1.8099787],"properties":{"NAME":"Tumaco","NAMEASCII":"Tumaco","POP_MAX":86713,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[21.5099943,2.1400102],"properties":{"NAME":"Lisala","NAMEASCII":"Lisala","POP_MAX":70087,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[19.7699971,3.2600193],"properties":{"NAME":"Gemena","NAMEASCII":"Gemena","POP_MAX":198056,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[21.5902478,17.184725],"properties":{"NAME":"Fada","NAMEASCII":"Fada","POP_MAX":448,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[19.1167037,17.9166699],"properties":{"NAME":"Faya Largeau","NAMEASCII":"Faya Largeau","POP_MAX":13400,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[15.3133182,14.119434],"properties":{"NAME":"Mao","NAMEASCII":"Mao","POP_MAX":18031,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[9.7699873,1.8700008],"properties":{"NAME":"Bata","NAMEASCII":"Bata","POP_MAX":173046,"ISO_A2":"GQ","SOV_A3":"GNQ"}},{"type":"Point","coordinates":[20.9166971,14.5332589],"properties":{"NAME":"Biltine","NAMEASCII":"Biltine","POP_MAX":11000,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[18.3900297,9.1499699],"properties":{"NAME":"Sarh","NAMEASCII":"Sarh","POP_MAX":169196,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[20.2832991,11.0332916],"properties":{"NAME":"Am Timan","NAMEASCII":"Am Timan","POP_MAX":30443,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[25.5166748,29.2000122],"properties":{"NAME":"Siwa","NAMEASCII":"Siwa","POP_MAX":23080,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.7499987,28.0900025],"properties":{"NAME":"El Minya","NAMEASCII":"El Minya","POP_MAX":500000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[32.9500195,24.4699909],"properties":{"NAME":"Kom Ombo","NAMEASCII":"Kom Ombo","POP_MAX":303962,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.5500109,25.4400092],"properties":{"NAME":"El Kharga","NAMEASCII":"El Kharga","POP_MAX":49991,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[33.8300175,27.2300033],"properties":{"NAME":"Hurghada","NAMEASCII":"Hurghada","POP_MAX":157204,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[24.7400297,2.8199945],"properties":{"NAME":"Buta","NAMEASCII":"Buta","POP_MAX":45677,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.5299698,3.0400069],"properties":{"NAME":"Watsa","NAMEASCII":"Watsa","POP_MAX":24516,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[27.6200089,2.7599723],"properties":{"NAME":"Isiro","NAMEASCII":"Isiro","POP_MAX":157196,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.6700175,3.8099599],"properties":{"NAME":"Bondo","NAMEASCII":"Bondo","POP_MAX":23517,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[6.9480586,50.9319495],"properties":{"NAME":"Cologne","NAMEASCII":"Cologne","POP_MAX":1004000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[26.7098836,58.3839415],"properties":{"NAME":"Tartu","NAMEASCII":"Tartu","POP_MAX":101092,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[108.7127763,34.3475015],"properties":{"NAME":"Xianyang","NAMEASCII":"Xianyang","POP_MAX":1126000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.1280985,32.021941],"properties":{"NAME":"Xiangyang","NAMEASCII":"Xiangyang","POP_MAX":1069000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.5313874,30.5352792],"properties":{"NAME":"Suining","NAMEASCII":"Suining","POP_MAX":1425000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.3991652,41.2419459],"properties":{"NAME":"Lingyuan","NAMEASCII":"Lingyuan","POP_MAX":806000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.0999784,37.4999707],"properties":{"NAME":"Weihai","NAMEASCII":"Weihai","POP_MAX":560255,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.3980541,27.8352792],"properties":{"NAME":"Yichun","NAMEASCII":"Yichun","POP_MAX":982000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.16752009132611,33.337876796411734],"properties":{"NAME":"Yancheng","NAMEASCII":"Yancheng","POP_MAX":839000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.9499985,30.0552792],"properties":{"NAME":"Fuyang","NAMEASCII":"Fuyang","POP_MAX":771000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[18.2800105,-1.9399992],"properties":{"NAME":"Inongo","NAMEASCII":"Inongo","POP_MAX":40113,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[20.7700394,-6.4099589],"properties":{"NAME":"Tshikapa","NAMEASCII":"Tshikapa","POP_MAX":267462,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[13.0499939,-5.8299943],"properties":{"NAME":"Boma","NAMEASCII":"Boma","POP_MAX":178638,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[28.8400378,-2.5099902],"properties":{"NAME":"Bukavu","NAMEASCII":"Bukavu","POP_MAX":436779,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.1400195,-3.3699894],"properties":{"NAME":"Uvira","NAMEASCII":"Uvira","POP_MAX":170391,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[25.9099841,-2.963916],"properties":{"NAME":"Kindu","NAMEASCII":"Kindu","POP_MAX":262914,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.4400057,-7.0000004],"properties":{"NAME":"Mwene-Ditu","NAMEASCII":"Mwene-Ditu","POP_MAX":189177,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.7800085,-10.9700423],"properties":{"NAME":"Likasi","NAMEASCII":"Likasi","POP_MAX":434408,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[27.4499934,-7.3000338],"properties":{"NAME":"Manono","NAMEASCII":"Manono","POP_MAX":46111,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[25.0099873,-8.730024],"properties":{"NAME":"Kamina","NAMEASCII":"Kamina","POP_MAX":128803,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[35.1332454,-16.5500118],"properties":{"NAME":"Chiromo","NAMEASCII":"Chiromo","POP_MAX":25235,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[35.3100305,-15.3900309],"properties":{"NAME":"Zomba","NAMEASCII":"Zomba","POP_MAX":80932,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[103.6100476,-1.5899947],"properties":{"NAME":"Jambi","NAMEASCII":"Jambi","POP_MAX":457090,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[134.0692736,-0.8711238],"properties":{"NAME":"Manokwari","NAMEASCII":"Manokwari","POP_MAX":74504,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-52.6499494,5.1599809],"properties":{"NAME":"Kourou","NAMEASCII":"Kourou","POP_MAX":24029,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-1.6319603,6.6919367],"properties":{"NAME":"Kumasi","NAMEASCII":"Kumasi","POP_MAX":1646000,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[-1.7040151,4.9432758],"properties":{"NAME":"Sekondi","NAMEASCII":"Sekondi","POP_MAX":286248,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[11.5833134,1.6166313],"properties":{"NAME":"Oyem","NAMEASCII":"Oyem","POP_MAX":43423,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[24.5135835,58.3747431],"properties":{"NAME":"Pärnu","NAMEASCII":"Parnu","POP_MAX":44192,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[79.9899389,14.4399829],"properties":{"NAME":"Nellore","NAMEASCII":"Nellore","POP_MAX":678004,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.0300069,15.8300014],"properties":{"NAME":"Kurnool","NAMEASCII":"Kurnool","POP_MAX":424920,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.4500142,16.3299968],"properties":{"NAME":"Guntur","NAMEASCII":"Guntur","POP_MAX":530577,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.1000378,13.3299732],"properties":{"NAME":"Tumakuru","NAMEASCII":"Tumakuru","POP_MAX":399606,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.9200065,14.4700069],"properties":{"NAME":"Davangere","NAMEASCII":"Davangere","POP_MAX":503564,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.9150362,15.1500429],"properties":{"NAME":"Ballari","NAMEASCII":"Ballari","POP_MAX":445388,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.5050024,15.8650122],"properties":{"NAME":"Belagavi","NAMEASCII":"Belagavi","POP_MAX":608756,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[10.650037,-3.4166015],"properties":{"NAME":"Mayumba","NAMEASCII":"Mayumba","POP_MAX":3996,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[9.9999991,-2.6500333],"properties":{"NAME":"Gamba","NAMEASCII":"Gamba","POP_MAX":9928,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[-1.1499921,46.166651],"properties":{"NAME":"La Rochelle","NAMEASCII":"La Rochelle","POP_MAX":76997,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-3.9833592,22.6665867],"properties":{"NAME":"Taoudenni","NAMEASCII":"Taoudenni","POP_MAX":3019,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-3.5299502,18.9000208],"properties":{"NAME":"Araouane","NAMEASCII":"Araouane","POP_MAX":4026,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[1.0888118,20.2013884],"properties":{"NAME":"Tessalit","NAMEASCII":"Tessalit","POP_MAX":6000,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[2.3999979,15.9166628],"properties":{"NAME":"Ménaka","NAMEASCII":"Menaka","POP_MAX":9110,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-70.1899899,-22.0900354],"properties":{"NAME":"Tocopilla","NAMEASCII":"Tocopilla","POP_MAX":24460,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-68.9199899,-22.4500134],"properties":{"NAME":"Calama","NAMEASCII":"Calama","POP_MAX":143084,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.4499998,-23.0999996],"properties":{"NAME":"Mejillones","NAMEASCII":"Mejillones","POP_MAX":2041,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.4700245,-25.4000142],"properties":{"NAME":"Taltal","NAMEASCII":"Taltal","POP_MAX":10018,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.7600068,-28.5700016],"properties":{"NAME":"Vallenar","NAMEASCII":"Vallenar","POP_MAX":44895,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.62147,-26.3481],"properties":{"NAME":"Chañaral","NAMEASCII":"Chanaral","POP_MAX":13543,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.19949283690885,-30.609446535085038],"properties":{"NAME":"Ovalle","NAMEASCII":"Ovalle","POP_MAX":77138,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.11129119828513,-36.606832344547854],"properties":{"NAME":"Chillán","NAMEASCII":"Chillan","POP_MAX":150396,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.7399821,-34.1700215],"properties":{"NAME":"Rancagua","NAMEASCII":"Rancagua","POP_MAX":233268,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.13066127645298,-40.578707255179616],"properties":{"NAME":"Osorno","NAMEASCII":"Osorno","POP_MAX":154131,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.8299744,-41.869965],"properties":{"NAME":"Ancud","NAMEASCII":"Ancud","POP_MAX":28020,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.6656369430057,-35.43021009325654],"properties":{"NAME":"Talca","NAMEASCII":"Talca","POP_MAX":197479,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.2400291,-34.9799979],"properties":{"NAME":"Curicó","NAMEASCII":"Curico","POP_MAX":113711,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-11.5833088,25.2333034],"properties":{"NAME":"Bir Mogrein","NAMEASCII":"Bir Mogrein","POP_MAX":10,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-15.812663,16.5240159],"properties":{"NAME":"Rosso","NAMEASCII":"Rosso","POP_MAX":47203,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-11.3999866,16.6199791],"properties":{"NAME":"Kiffa","NAMEASCII":"Kiffa","POP_MAX":73930,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-7.2799797,15.1800153],"properties":{"NAME":"Nara","NAMEASCII":"Nara","POP_MAX":18459,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-7.5499891,12.8833079],"properties":{"NAME":"Koulikoro","NAMEASCII":"Koulikoro","POP_MAX":23919,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-4.1800397,14.4899799],"properties":{"NAME":"Mopti","NAMEASCII":"Mopti","POP_MAX":108456,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[16.0500175,1.6099909],"properties":{"NAME":"Ouésso","NAMEASCII":"Ouesso","POP_MAX":28320,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[9.5000297,30.1332886],"properties":{"NAME":"Ghadamis","NAMEASCII":"Ghadamis","POP_MAX":6623,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[22.1141951,37.0389136],"properties":{"NAME":"Kalamata","NAMEASCII":"Kalamata","POP_MAX":71823,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[15.9333321,29.1166581],"properties":{"NAME":"Hun","NAMEASCII":"Hun","POP_MAX":18878,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[14.2833553,27.5333181],"properties":{"NAME":"Birak","NAMEASCII":"Birak","POP_MAX":45421,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[10.1727535,24.964741],"properties":{"NAME":"Ghat","NAMEASCII":"Ghat","POP_MAX":24347,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[13.897229,25.9043994],"properties":{"NAME":"Marzuq","NAMEASCII":"Marzuq","POP_MAX":55071,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[20.2199955,30.7699939],"properties":{"NAME":"Ajdabiya","NAMEASCII":"Ajdabiya","POP_MAX":143833,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[21.2869071,29.1080282],"properties":{"NAME":"Awjilah","NAMEASCII":"Awjilah","POP_MAX":6610,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[16.5900362,31.2099929],"properties":{"NAME":"Surt","NAMEASCII":"Surt","POP_MAX":128123,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[22.6391393,32.7648111],"properties":{"NAME":"Darnah","NAMEASCII":"Darnah","POP_MAX":127974,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[23.9600256,32.0799915],"properties":{"NAME":"Tubruq","NAMEASCII":"Tubruq","POP_MAX":263527,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[25.1304968,35.325013],"properties":{"NAME":"Iraklio","NAMEASCII":"Iraklio","POP_MAX":137154,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[41.0200179,43.0200214],"properties":{"NAME":"Sukhumi","NAMEASCII":"Sukhumi","POP_MAX":81546,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[35.83166068140427,34.438267091668244],"properties":{"NAME":"Ṭarābulus","NAMEASCII":"Tarabulus","POP_MAX":530000,"ISO_A2":"LB","SOV_A3":"LBN"}},{"type":"Point","coordinates":[37.7200126,10.3399748],"properties":{"NAME":"Debre Markos","NAMEASCII":"Debre Markos","POP_MAX":70758,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.6300252,11.1299783],"properties":{"NAME":"Dese","NAMEASCII":"Dese","POP_MAX":183802,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[37.7499849,6.9000039],"properties":{"NAME":"Sodo","NAMEASCII":"Sodo","POP_MAX":65737,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[37.5499971,6.0400047],"properties":{"NAME":"Arba Minch","NAMEASCII":"Arba Minch","POP_MAX":69622,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[42.1500264,9.3199595],"properties":{"NAME":"Harar","NAMEASCII":"Harar","POP_MAX":174994,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.9700044,7.010023],"properties":{"NAME":"Goba","NAMEASCII":"Goba","POP_MAX":34369,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[36.8300411,7.6799821],"properties":{"NAME":"Jima","NAMEASCII":"Jima","POP_MAX":128306,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.2699955,8.5499807],"properties":{"NAME":"Nazret","NAMEASCII":"Nazret","POP_MAX":476892,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.5833097,5.3166122],"properties":{"NAME":"Negele Boran","NAMEASCII":"Nagele","POP_MAX":11772,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[43.4499987,5.9500102],"properties":{"NAME":"Gode","NAMEASCII":"Gode","POP_MAX":75000,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[42.0833121,4.183348],"properties":{"NAME":"Dolo Bay","NAMEASCII":"Dolo Bay","POP_MAX":11810,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[24.5816931,65.733312],"properties":{"NAME":"Kemi","NAMEASCII":"Kemi","POP_MAX":22641,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[25.4700109,64.9999976],"properties":{"NAME":"Oulu","NAMEASCII":"Oulu","POP_MAX":136752,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[59.6140767,47.8362907],"properties":{"NAME":"Shalqar","NAMEASCII":"Shalqar","POP_MAX":27256,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[62.1075162,45.7627997],"properties":{"NAME":"Qazaly","NAMEASCII":"Qazaly","POP_MAX":6582,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[61.6666129,46.7999715],"properties":{"NAME":"Aral","NAMEASCII":"Aral","POP_MAX":33017,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[54.0165372,46.9832678],"properties":{"NAME":"Qulsary","NAMEASCII":"Qulsary","POP_MAX":37103,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.3349955,51.2711198],"properties":{"NAME":"Oral","NAMEASCII":"Oral","POP_MAX":209788,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[50.8300134,28.9199776],"properties":{"NAME":"Bandar-e Bushehr","NAMEASCII":"Bandar-e Bushehr","POP_MAX":169060,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.2796781,30.3307442],"properties":{"NAME":"Abadan","NAMEASCII":"Abadan","POP_MAX":370180,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.3000386,38.2500025],"properties":{"NAME":"Ardabil","NAMEASCII":"Ardabil","POP_MAX":414603,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[50.9480602,34.6519613],"properties":{"NAME":"Qom","NAMEASCII":"Qom","POP_MAX":973000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[49.9999865,36.27002],"properties":{"NAME":"Qazvin","NAMEASCII":"Qazvin","POP_MAX":464551,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[55.100037,45.1833519],"properties":{"NAME":"Beyneu","NAMEASCII":"Beyneu","POP_MAX":32452,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.2365002,43.6231887],"properties":{"NAME":"Aqtau","NAMEASCII":"Aqtau","POP_MAX":4479,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[47.0580651,34.381952],"properties":{"NAME":"Kermanshah","NAMEASCII":"Kermanshah","POP_MAX":828313,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[49.6299833,37.2999829],"properties":{"NAME":"Rasht","NAMEASCII":"Rasht","POP_MAX":594590,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[59.2199406,32.8800202],"properties":{"NAME":"Birjand","NAMEASCII":"Birjand","POP_MAX":324703,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[57.6300118,36.220023],"properties":{"NAME":"Sabzewar","NAMEASCII":"Sabzewar","POP_MAX":226183,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[61.4814563,31.0214514],"properties":{"NAME":"Zabol","NAMEASCII":"Zabol","POP_MAX":233968,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[60.8300232,29.4999939],"properties":{"NAME":"Zahedan","NAMEASCII":"Zahedan","POP_MAX":598887,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[78.13179722903476,8.79780035089249],"properties":{"NAME":"Tuticorin","NAMEASCII":"Tuticorin","POP_MAX":436094,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.97828494841018,10.359907617238134],"properties":{"NAME":"Dindigul","NAMEASCII":"Dindigul","POP_MAX":200797,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[10.210684,56.157204],"properties":{"NAME":"Århus","NAMEASCII":"Aarhus","POP_MAX":237551,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-5.6399506,9.4599768],"properties":{"NAME":"Korhogo","NAMEASCII":"Korhogo","POP_MAX":177711,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-12.3000092,11.3199925],"properties":{"NAME":"Labé","NAMEASCII":"Labe","POP_MAX":140575,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-14.2999905,10.9399898],"properties":{"NAME":"Boké","NAMEASCII":"Boke","POP_MAX":116270,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-12.8699744,10.0600177],"properties":{"NAME":"Kindia","NAMEASCII":"Kindia","POP_MAX":117062,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-6.4500045,6.8899787],"properties":{"NAME":"Daloa","NAMEASCII":"Daloa","POP_MAX":255168,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[27.2500057,-29.8166439],"properties":{"NAME":"Mafetang","NAMEASCII":"Mafetang","POP_MAX":57059,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[-68.7688265,-11.0205201],"properties":{"NAME":"Cobija","NAMEASCII":"Cobija","POP_MAX":44437,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-68.6699793,-9.0700032],"properties":{"NAME":"Sena Madureira","NAMEASCII":"Sena Madureira","POP_MAX":26192,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-66.0916095,-2.5138143],"properties":{"NAME":"Fonte Boa","NAMEASCII":"Fonte Boa","POP_MAX":16060,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-69.8738076,-6.6600211],"properties":{"NAME":"Eirunepé","NAMEASCII":"Eirunepe","POP_MAX":21750,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-61.2974836,-5.8121659],"properties":{"NAME":"Manicoré","NAMEASCII":"Manicore","POP_MAX":21549,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-62.9238959,-0.9749935],"properties":{"NAME":"Barcelos","NAMEASCII":"Barcelos","POP_MAX":12584,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-67.8018927,-2.8727071],"properties":{"NAME":"Tonantins","NAMEASCII":"Tonantins","POP_MAX":4561,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-64.6999891,-3.3600158],"properties":{"NAME":"Tefé","NAMEASCII":"Tefe","POP_MAX":51437,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-63.1299815,-4.0799719],"properties":{"NAME":"Coari","NAMEASCII":"Coari","POP_MAX":53305,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-67.0833061,-0.1332361],"properties":{"NAME":"São Gabriel da Cachoeira","NAMEASCII":"Sao Cabriel da Cachoeira","POP_MAX":15231,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-60.9437842,-2.6207845],"properties":{"NAME":"Novo Airão","NAMEASCII":"Novo Airao","POP_MAX":9049,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-58.4399836,-3.1400293],"properties":{"NAME":"Itacoatiara","NAMEASCII":"Itacoatiara","POP_MAX":51509,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-56.7400098,-2.6100358],"properties":{"NAME":"Parintins","NAMEASCII":"Parintins","POP_MAX":64428,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-60.2699494,-6.9838257],"properties":{"NAME":"Natal","NAMEASCII":"Natal","POP_MAX":980588,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-63.0399612,-7.4638997],"properties":{"NAME":"Crato","NAMEASCII":"Crato","POP_MAX":273883,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.4900059,-5.520039],"properties":{"NAME":"Imperatriz","NAMEASCII":"Imperatriz","POP_MAX":218106,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.0499905,-7.5200203],"properties":{"NAME":"Balsas","NAMEASCII":"Balsas","POP_MAX":68056,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.4900037,-1.680015],"properties":{"NAME":"Breves","NAMEASCII":"Breves","POP_MAX":47164,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-57.76013062032457,-6.228018096599473],"properties":{"NAME":"Jacareacanga","NAMEASCII":"Jacareacanga","POP_MAX":31661,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.67365154576268,-3.76735666319244],"properties":{"NAME":"Tucuruí","NAMEASCII":"Tucurui","POP_MAX":76337,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.9250208,-4.2586173],"properties":{"NAME":"Itaituba","NAMEASCII":"Itaituba","POP_MAX":92308,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.2900253,-8.2500016],"properties":{"NAME":"Conceição do Araguaia","NAMEASCII":"Conceicao do Araguaia","POP_MAX":27115,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.8848801,-1.7245307],"properties":{"NAME":"Abaetetuba","NAMEASCII":"Abaetetuba","POP_MAX":79420,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-64.4166472,-12.4166723],"properties":{"NAME":"Principe da Beira","NAMEASCII":"Principe da Beira","POP_MAX":956,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.2100137,-7.1900146],"properties":{"NAME":"Araguaína","NAMEASCII":"Araguaina","POP_MAX":50444,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.2877867,-10.2377356],"properties":{"NAME":"Palmas","NAMEASCII":"Palmas","POP_MAX":235315,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.5000098,-17.8700346],"properties":{"NAME":"Teófilo Otoni","NAMEASCII":"Teofilo Otoni","POP_MAX":101170,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.9500037,-19.7799955],"properties":{"NAME":"Uberaba","NAMEASCII":"Uberaba","POP_MAX":260843,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.3699897,-15.4799996],"properties":{"NAME":"Januária","NAMEASCII":"Januaria","POP_MAX":34811,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-59.9500206,-15.0000289],"properties":{"NAME":"Santissima Trindade","NAMEASCII":"Santissima Trindade","POP_MAX":16271,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-59.44387,-10.17666],"properties":{"NAME":"Aripuanã","NAMEASCII":"Aripuana","POP_MAX":26983,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.4599846,-11.8499886],"properties":{"NAME":"Sinop","NAMEASCII":"Sinop","POP_MAX":8961,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-53.369983,-32.5600423],"properties":{"NAME":"Jaguarão","NAMEASCII":"Jaguarao","POP_MAX":29613,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.1000159,-31.3200146],"properties":{"NAME":"Bagé","NAMEASCII":"Bage","POP_MAX":106098,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.1799874,-23.300039],"properties":{"NAME":"Londrina","NAMEASCII":"Londrina","POP_MAX":520238,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.3899675,-28.6800207],"properties":{"NAME":"Criciúma","NAMEASCII":"Criciuma","POP_MAX":204217,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.7700308,-4.5599943],"properties":{"NAME":"Aracati","NAMEASCII":"Aracati","POP_MAX":44293,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.8499907,-6.400037],"properties":{"NAME":"Icó","NAMEASCII":"Ico","POP_MAX":28323,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.7699675,-2.9100175],"properties":{"NAME":"Parnaíba","NAMEASCII":"Parnaiba","POP_MAX":138008,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.4399876,-7.0799955],"properties":{"NAME":"Picos","NAMEASCII":"Picos","POP_MAX":57495,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-36.6699945,-9.7500134],"properties":{"NAME":"Arapiraca","NAMEASCII":"Arapiraca","POP_MAX":187668,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.0799931,-13.8500215],"properties":{"NAME":"Jequié","NAMEASCII":"Jequie","POP_MAX":135574,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-39.0500043,-14.7800423],"properties":{"NAME":"Ilhéus","NAMEASCII":"Ilheus","POP_MAX":230622,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.9600098,-15.6400415],"properties":{"NAME":"Canavieiras","NAMEASCII":"Canavieiras","POP_MAX":26375,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.2100253,-13.3899979],"properties":{"NAME":"Santa Maria da Vitória","NAMEASCII":"Santa Maria da Vitoria","POP_MAX":23488,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.8700131,-11.2999963],"properties":{"NAME":"Irecê","NAMEASCII":"Irece","POP_MAX":63626,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.7300122,-10.8200256],"properties":{"NAME":"Xique-Xique","NAMEASCII":"Xique-Xique","POP_MAX":35433,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.0500208,-19.3899935],"properties":{"NAME":"Linhares","NAMEASCII":"Linhares","POP_MAX":105075,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-41.3200208,-21.7499528],"properties":{"NAME":"Campos","NAMEASCII":"Campos","POP_MAX":387417,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.3400053,-5.1900333],"properties":{"NAME":"Mossoró","NAMEASCII":"Mossoro","POP_MAX":202583,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-37.1199671,-10.9000207],"properties":{"NAME":"Aracaju","NAMEASCII":"Aracaju","POP_MAX":685356,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-97.8332896,53.9665884],"properties":{"NAME":"Norway House","NAMEASCII":"Norway House","POP_MAX":6000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-101.8833008,54.7665912],"properties":{"NAME":"Flin Flon","NAMEASCII":"Flin Flon","POP_MAX":6393,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-100.0499502,51.1500161],"properties":{"NAME":"Dauphin","NAMEASCII":"Dauphin","POP_MAX":9077,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-101.2333147,53.8166234],"properties":{"NAME":"The Pas","NAMEASCII":"The Pas","POP_MAX":6055,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-108.6165849,59.5665566],"properties":{"NAME":"Uranium City","NAMEASCII":"Uranium City","POP_MAX":89,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-105.5500021,50.3999844],"properties":{"NAME":"Moose Jaw","NAMEASCII":"Moose Jaw","POP_MAX":32166,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-118.0833714,52.8833211],"properties":{"NAME":"Jasper","NAMEASCII":"Jasper","POP_MAX":3907,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-110.6833322,50.0333142],"properties":{"NAME":"Medicine Hat","NAMEASCII":"Medicine Hat","POP_MAX":63138,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-113.8000411,52.2666404],"properties":{"NAME":"Red Deer","NAMEASCII":"Red Deer","POP_MAX":74857,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-115.5719226,51.1779989],"properties":{"NAME":"Banff","NAMEASCII":"Banff","POP_MAX":7502,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-118.7999943,55.1666443],"properties":{"NAME":"Grand Prairie","NAMEASCII":"Grand Prairie","POP_MAX":41462,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-127.1665896,54.7665912],"properties":{"NAME":"Smithers","NAMEASCII":"Smithers","POP_MAX":6245,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-120.3332858,50.6666606],"properties":{"NAME":"Kamloops","NAMEASCII":"Kamloops","POP_MAX":68714,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-122.1499966,52.1166496],"properties":{"NAME":"Williams Lake","NAMEASCII":"Williams Lake","POP_MAX":14168,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-122.7666515,53.9166689],"properties":{"NAME":"Prince George","NAMEASCII":"Prince George","POP_MAX":65558,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-122.68654311100921,58.80387810156615],"properties":{"NAME":"Fort Nelson","NAMEASCII":"Fort Nelson","POP_MAX":6315,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-78.0000558,72.6849807],"properties":{"NAME":"Pond Inlet","NAMEASCII":"Pond Inlet","POP_MAX":1549,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-76.5385786,64.3125197],"properties":{"NAME":"Cape Dorset","NAMEASCII":"Cape Dorset","POP_MAX":1326,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-69.8833161,62.8500255],"properties":{"NAME":"Kimmirut","NAMEASCII":"Kimmirut","POP_MAX":385,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-95.9166624,68.63329],"properties":{"NAME":"Gjoa Haven","NAMEASCII":"Gjoa Haven","POP_MAX":1109,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-82.9499862,76.4416506],"properties":{"NAME":"Grise Fiord","NAMEASCII":"Grise Fiord","POP_MAX":23,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-62.2499836,82.4833232],"properties":{"NAME":"Alert","NAMEASCII":"Alert","POP_MAX":125,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-100.883336,61.1332827],"properties":{"NAME":"Ennadai","NAMEASCII":"Ennadai","POP_MAX":0,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-92.0953195,62.8166683],"properties":{"NAME":"Rankin Inlet","NAMEASCII":"Rankin Inlet","POP_MAX":2472,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-113.682994,61.1665882],"properties":{"NAME":"Fort Resolution","NAMEASCII":"Fort Resolution","POP_MAX":448,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-121.3332764,61.8499831],"properties":{"NAME":"Fort Simpson","NAMEASCII":"Fort Simpson","POP_MAX":283,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-133.6999893,68.349974],"properties":{"NAME":"Inuvik","NAMEASCII":"Inuvik","POP_MAX":3022,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-133.0492013,69.4547746],"properties":{"NAME":"Tuktoyaktuk","NAMEASCII":"Tuktoyaktuk","POP_MAX":929,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-128.71169244448785,60.06230563087336],"properties":{"NAME":"Watson Lake","NAMEASCII":"Watson Lake","POP_MAX":802,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-52.4800114,-0.8500399],"properties":{"NAME":"Laranjal do Jari","NAMEASCII":"Laranjal do Jari","POP_MAX":45000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.8000106,2.0499898],"properties":{"NAME":"Amapá","NAMEASCII":"Amapa","POP_MAX":1947,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.2166519,3.2166628],"properties":{"NAME":"Vila Velha","NAMEASCII":"Vila Velha","POP_MAX":1209091,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-87.8833285,52.2166435],"properties":{"NAME":"Lansdowne House","NAMEASCII":"Lansdowne House","POP_MAX":120,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-80.6579814,51.2806024],"properties":{"NAME":"Moosonee","NAMEASCII":"Moosonee","POP_MAX":1725,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-80.9666447,46.4999898],"properties":{"NAME":"Sudbury","NAMEASCII":"Sudbury","POP_MAX":157857,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.4666476,49.7666897],"properties":{"NAME":"Kenora","NAMEASCII":"Kenora","POP_MAX":10852,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.4933608,48.8373149],"properties":{"NAME":"Gaspé","NAMEASCII":"Gaspe","POP_MAX":3677,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.0172653,50.3017589],"properties":{"NAME":"Mingan","NAMEASCII":"Mingan","POP_MAX":588,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-72.2333277,48.8665896],"properties":{"NAME":"Dolbeau","NAMEASCII":"Dolbeau","POP_MAX":13337,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.7666333,48.1166354],"properties":{"NAME":"Val d'Or","NAMEASCII":"Val d'Or","POP_MAX":20625,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.8999844,62.4166411],"properties":{"NAME":"Ivugivik","NAMEASCII":"Ivugivik","POP_MAX":156,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-78.1359906,58.4700086],"properties":{"NAME":"Inukjuak","NAMEASCII":"Inukjuak","POP_MAX":1597,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-71.0667064,48.4333085],"properties":{"NAME":"Chicoutimi","NAMEASCII":"Chicoutimi","POP_MAX":53940,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.7666775,46.0833486],"properties":{"NAME":"Moncton","NAMEASCII":"Moncton","POP_MAX":90635,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.6333077,45.9499976],"properties":{"NAME":"Fredericton","NAMEASCII":"Fredericton","POP_MAX":52337,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-65.6499827,47.5999744],"properties":{"NAME":"Bathurst","NAMEASCII":"Bathurst","POP_MAX":6111,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.1125812,43.8307945],"properties":{"NAME":"Yarmouth","NAMEASCII":"Yarmouth","POP_MAX":7500,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-54.5499884,48.9499953],"properties":{"NAME":"Gander","NAMEASCII":"Gander","POP_MAX":3345,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-57.0121411,53.7014066],"properties":{"NAME":"Cartwright","NAMEASCII":"Cartwright","POP_MAX":505,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-58.4473216,54.1766014],"properties":{"NAME":"Rigolet","NAMEASCII":"Rigolet","POP_MAX":124,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-64.7410977,60.2664622],"properties":{"NAME":"Port Burwell","NAMEASCII":"Port Burwell","POP_MAX":2762,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[15.5999674,5.9500102],"properties":{"NAME":"Bouar","NAMEASCII":"Bouar","POP_MAX":34372,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[-67.7166525,-49.3000024],"properties":{"NAME":"Puerto San Julián","NAMEASCII":"Puerto San Julian","POP_MAX":2347,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-70.9333553,-46.6000122],"properties":{"NAME":"Perito Moreno","NAMEASCII":"Perito Moreno","POP_MAX":3766,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.6989952,-53.7914455],"properties":{"NAME":"Rio Grande","NAMEASCII":"Rio Grande","POP_MAX":31095,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.3100013,-54.7900032],"properties":{"NAME":"Ushuaia","NAMEASCII":"Ushuaia","POP_MAX":58028,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.0833132,-45.6000215],"properties":{"NAME":"Sarmiento","NAMEASCII":"Sarmiento","POP_MAX":5185,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.3333332,-34.6000211],"properties":{"NAME":"San Rafael","NAMEASCII":"San Rafael","POP_MAX":109163,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.7499905,-38.5599861],"properties":{"NAME":"Necochea","NAMEASCII":"Necochea","POP_MAX":80478,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.0832825,-38.9665763],"properties":{"NAME":"Río Colorado","NAMEASCII":"Rio Colorado","POP_MAX":11499,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.7800007,-28.4700077],"properties":{"NAME":"Catamarca","NAMEASCII":"Catamarca","POP_MAX":188812,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-66.8499612,-29.4099503],"properties":{"NAME":"La Rioja","NAMEASCII":"La Rioja","POP_MAX":162620,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.2666563,-27.7833313],"properties":{"NAME":"Santiago del Estero","NAMEASCII":"Santiago del Estero","POP_MAX":354692,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.9900275,-27.4599918],"properties":{"NAME":"Resistencia","NAMEASCII":"Resistencia","POP_MAX":387158,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.5200045,-33.0200142],"properties":{"NAME":"Gualeguaychú","NAMEASCII":"Gualeguaychu","POP_MAX":78676,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-46.32849571460007,-23.961835598193826],"properties":{"NAME":"Santos","NAMEASCII":"Santos","POP_MAX":1709000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.0800122,-22.3300207],"properties":{"NAME":"Bauru","NAMEASCII":"Bauru","POP_MAX":335024,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.5699494,-24.720004],"properties":{"NAME":"Iguape","NAMEASCII":"Iguape","POP_MAX":23784,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.390012,-20.5300272],"properties":{"NAME":"Franca","NAMEASCII":"Franca","POP_MAX":305041,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-36.5000308,-8.8900142],"properties":{"NAME":"Garanhuns","NAMEASCII":"Garanhuns","POP_MAX":110085,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.9800108,-8.2800256],"properties":{"NAME":"Caruaru","NAMEASCII":"Caruaru","POP_MAX":242094,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[62.0968192,32.3917296],"properties":{"NAME":"Farah","NAMEASCII":"Farah","POP_MAX":73647,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[20.8299841,-7.3800289],"properties":{"NAME":"Dundo","NAMEASCII":"Dundo","POP_MAX":11985,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.125028,-7.854987],"properties":{"NAME":"Ambriz","NAMEASCII":"Ambriz","POP_MAX":17000,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.430013,-9.6900171],"properties":{"NAME":"Dondo","NAMEASCII":"Dondo","POP_MAX":2353,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.8499967,-11.2100277],"properties":{"NAME":"Sumbe","NAMEASCII":"Sumbe","POP_MAX":33277,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[15.0499751,-7.6200142],"properties":{"NAME":"Uíge","NAMEASCII":"Uige","POP_MAX":60008,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[16.939989,-12.3800338],"properties":{"NAME":"Kuito","NAMEASCII":"Kuito","POP_MAX":114286,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.54123,-12.3700085],"properties":{"NAME":"Lobito","NAMEASCII":"Lobito","POP_MAX":207932,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[14.96998,-16.740026],"properties":{"NAME":"Xangongo","NAMEASCII":"Xangongo","POP_MAX":447,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[19.900015,-11.7900439],"properties":{"NAME":"Luena","NAMEASCII":"Luena","POP_MAX":21115,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[11.859989,-15.8000317],"properties":{"NAME":"Tômbua","NAMEASCII":"Tombua","POP_MAX":40000,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[-58.4200106,-16.3599975],"properties":{"NAME":"San Matias","NAMEASCII":"San Matias","POP_MAX":6352,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-60.7799958,-17.8500358],"properties":{"NAME":"San Jose","NAMEASCII":"San Jose","POP_MAX":9211,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-0.2899671,27.8699901],"properties":{"NAME":"Adrar","NAMEASCII":"Adrar","POP_MAX":56910,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[0.1666459,26.6999839],"properties":{"NAME":"Reggane","NAMEASCII":"Reggane","POP_MAX":32974,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-2.2300037,31.6111054],"properties":{"NAME":"Béchar","NAMEASCII":"Bechar","POP_MAX":143382,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[-8.147782,27.674188],"properties":{"NAME":"Tindouf","NAMEASCII":"Tindouf","POP_MAX":18270,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[8.4666044,26.4833563],"properties":{"NAME":"Illizi","NAMEASCII":"Illizi","POP_MAX":7957,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[3.749993,25.2799931],"properties":{"NAME":"Arak","NAMEASCII":"Arak","POP_MAX":423251,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.4666088,27.2166449],"properties":{"NAME":"I-n-Salah","NAMEASCII":"I-n-Salah","POP_MAX":49223,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.8833276,30.5666213],"properties":{"NAME":"El Goléa","NAMEASCII":"El Golea","POP_MAX":32049,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.8800203,33.8099892],"properties":{"NAME":"Laghouat","NAMEASCII":"Laghouat","POP_MAX":113872,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[6.0599812,33.0999809],"properties":{"NAME":"Touggourt","NAMEASCII":"Touggourt","POP_MAX":133954,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[5.3400252,31.9699724],"properties":{"NAME":"Ouargla","NAMEASCII":"Ouargla","POP_MAX":176271,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[5.7300272,34.8599768],"properties":{"NAME":"Biskra","NAMEASCII":"Biskra","POP_MAX":202103,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[3.2500236,34.6799878],"properties":{"NAME":"Djelfa","NAMEASCII":"Djelfa","POP_MAX":170901,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[5.3999698,36.1800255],"properties":{"NAME":"Sétif","NAMEASCII":"Setif","POP_MAX":274744,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[6.1700004,35.5699593],"properties":{"NAME":"Batna","NAMEASCII":"Batna","POP_MAX":280798,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[27.4746431,42.5146],"properties":{"NAME":"Burgas","NAMEASCII":"Burgas","POP_MAX":195966,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[30.1853304,55.1887101],"properties":{"NAME":"Vitsyebsk","NAMEASCII":"Vitsyebsk","POP_MAX":342700,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[25.5100085,-24.3999719],"properties":{"NAME":"Molepolole","NAMEASCII":"Molepolole","POP_MAX":63248,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[98.6114896,12.4540835],"properties":{"NAME":"Myeik","NAMEASCII":"Myeik","POP_MAX":266720,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[158.1499743,6.9166437],"properties":{"NAME":"Palikir","NAMEASCII":"Palikir","POP_MAX":4645,"ISO_A2":"FM","SOV_A3":"FSM"}},{"type":"Point","coordinates":[171.3800002,7.1030043],"properties":{"NAME":"Majuro","NAMEASCII":"Majuro","POP_MAX":25400,"ISO_A2":"MH","SOV_A3":"MHL"}},{"type":"Point","coordinates":[144.750017,13.4700163],"properties":{"NAME":"Agana","NAMEASCII":"Agana","POP_MAX":122411,"ISO_A2":"GU","SOV_A3":"USA"}},{"type":"Point","coordinates":[-66.7299943,18.440023],"properties":{"NAME":"Arecibo","NAMEASCII":"Arecibo","POP_MAX":69307,"ISO_A2":"PR","SOV_A3":"USA"}},{"type":"Point","coordinates":[179.2166471,-8.516652],"properties":{"NAME":"Funafuti","NAMEASCII":"Funafuti","POP_MAX":4749,"ISO_A2":"TV","SOV_A3":"TUV"}},{"type":"Point","coordinates":[134.6265485,7.4873962],"properties":{"NAME":"Melekeok","NAMEASCII":"Melekeok","POP_MAX":7026,"ISO_A2":"PW","SOV_A3":"PLW"}},{"type":"Point","coordinates":[-9.6525222,26.1191667],"properties":{"NAME":"Bir Lehlou","NAMEASCII":"Bir Lehlou","POP_MAX":500,"ISO_A2":"EH","SOV_A3":"SAH"}},{"type":"Point","coordinates":[7.4069132,43.7396457],"properties":{"NAME":"Monaco","NAMEASCII":"Monaco","POP_MAX":36371,"ISO_A2":"MC","SOV_A3":"MCO"}},{"type":"Point","coordinates":[173.0175708,1.3381875],"properties":{"NAME":"Tarawa","NAMEASCII":"Tarawa","POP_MAX":28802,"ISO_A2":"KI","SOV_A3":"KIR"}},{"type":"Point","coordinates":[-37.6337371,65.6018693],"properties":{"NAME":"Tasiilaq","NAMEASCII":"Tasiilaq","POP_MAX":1829,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[43.2402441,-11.7041577],"properties":{"NAME":"Moroni","NAMEASCII":"Moroni","POP_MAX":128698,"ISO_A2":"KM","SOV_A3":"COM"}},{"type":"Point","coordinates":[113.54437522184952,22.18913523490745],"properties":{"NAME":"Macau","NAMEASCII":"Macau","POP_MAX":568700,"ISO_A2":"MO","SOV_A3":"CHN"}},{"type":"Point","coordinates":[1.526594255165481,42.5107534941671],"properties":{"NAME":"Andorra","NAMEASCII":"Andorra","POP_MAX":53998,"ISO_A2":"AD","SOV_A3":"AND"}},{"type":"Point","coordinates":[-65.1124806,76.0194762],"properties":{"NAME":"Savissivik","NAMEASCII":"Savissivik","POP_MAX":66,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-55.5491189,72.3796396],"properties":{"NAME":"Kangersuatsiaq","NAMEASCII":"Kangersuatsiaq","POP_MAX":200,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-52.1229344,70.6750234],"properties":{"NAME":"Uummannaq","NAMEASCII":"Uummannaq","POP_MAX":1299,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-16.2500007,28.4699793],"properties":{"NAME":"Santa Cruz de Tenerife","NAMEASCII":"Santa Cruz de Tenerife","POP_MAX":336061,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-159.7854367,-21.1962256],"properties":{"NAME":"Avarua","NAMEASCII":"Avarua","POP_MAX":5445,"ISO_A2":"CK","SOV_A3":"NZL"}},{"type":"Point","coordinates":[-122.0263904,36.9719463],"properties":{"NAME":"Santa Cruz","NAMEASCII":"Santa Cruz","POP_MAX":148444,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[121.6000089,23.9837415],"properties":{"NAME":"Hualien","NAMEASCII":"Hualien","POP_MAX":350468,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.465,25.0127778],"properties":{"NAME":"New Taipei","NAMEASCII":"New Taipei","POP_MAX":3893740,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.2000427,23.0000031],"properties":{"NAME":"Tainan","NAMEASCII":"Tainan","POP_MAX":1876312,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[121.140037,22.7553927],"properties":{"NAME":"Taitung","NAMEASCII":"Taitung","POP_MAX":175000,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[-117.3019801,34.1223296],"properties":{"NAME":"San Bernardino","NAMEASCII":"San Bernardino","POP_MAX":1745000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.201907,41.1819245],"properties":{"NAME":"Bridgeport","NAMEASCII":"Bridgeport","POP_MAX":1018000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.6218956,43.1723715],"properties":{"NAME":"Rochester","NAMEASCII":"Rochester","POP_MAX":755000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-2.248684667159885,53.47531992472453],"properties":{"NAME":"Manchester","NAMEASCII":"Manchester","POP_MAX":2230000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[74.1830761,32.1623717],"properties":{"NAME":"Gujranwala","NAMEASCII":"Gujranwala","POP_MAX":1513000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[126.6402876,37.4780937],"properties":{"NAME":"Incheon","NAMEASCII":"Incheon","POP_MAX":2550000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[5.6180622,6.3424232],"properties":{"NAME":"Benin City","NAMEASCII":"Benin City","POP_MAX":1190000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[118.0780712,24.4519379],"properties":{"NAME":"Xiamen","NAMEASCII":"Xiamen","POP_MAX":2519000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.1280513,30.7823784],"properties":{"NAME":"Nanchong","NAMEASCII":"Nanchong","POP_MAX":2174000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.0480655,29.5823225],"properties":{"NAME":"Neijiang","NAMEASCII":"Neijiang","POP_MAX":1466000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.528074,33.0023463],"properties":{"NAME":"Nanyang","NAMEASCII":"Nanyang","POP_MAX":1944000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.8280325,40.7522867],"properties":{"NAME":"Jinxi","NAMEASCII":"Jinxi","POP_MAX":2426000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.3980753,37.532354],"properties":{"NAME":"Yantai","NAMEASCII":"Yantai","POP_MAX":2116000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.5680765,34.8819473],"properties":{"NAME":"Zaozhuang","NAMEASCII":"Zaozhuang","POP_MAX":2145000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.6180712,31.3024242],"properties":{"NAME":"Suzhou","NAMEASCII":"Suzhou","POP_MAX":1650000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.1780744,34.2819581],"properties":{"NAME":"Xuzhou","NAMEASCII":"Xuzhou","POP_MAX":2091000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.298039,31.581942],"properties":{"NAME":"Wuxi","NAMEASCII":"Wuxi","POP_MAX":1749000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.5480968,43.8519166],"properties":{"NAME":"Jilin","NAMEASCII":"Jilin","POP_MAX":2396000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[76.7780598,30.7219428],"properties":{"NAME":"Chandigarh","NAMEASCII":"Chandigarh","POP_MAX":979000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.8447928,32.7137334],"properties":{"NAME":"Jammu","NAMEASCII":"Jammu","POP_MAX":791000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.8980618,17.6723518],"properties":{"NAME":"Sholapur","NAMEASCII":"Sholapur","POP_MAX":1057000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.32894831924871,19.861686210186296],"properties":{"NAME":"Aurangabad","NAMEASCII":"Aurangabad","POP_MAX":1113000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.7780362,20.0023646],"properties":{"NAME":"Nasik","NAMEASCII":"Nasik","POP_MAX":1473000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[91.7666361,26.144023],"properties":{"NAME":"Dispur","NAMEASCII":"Dispur","POP_MAX":16140,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.5670743,31.3368665],"properties":{"NAME":"Jullundur","NAMEASCII":"Jullundur","POP_MAX":855000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[81.838061,25.4569412],"properties":{"NAME":"Allahabad","NAMEASCII":"Allahabad","POP_MAX":1201000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.7548384,28.8437371],"properties":{"NAME":"Moradabad","NAMEASCII":"Moradabad","POP_MAX":787000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.4064452,28.6623269],"properties":{"NAME":"Ghaziabad","NAMEASCII":"Ghaziabad","POP_MAX":1341000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.0130749,27.1723662],"properties":{"NAME":"Agra","NAMEASCII":"Agra","POP_MAX":1592000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.059842,27.8941568],"properties":{"NAME":"Aligarh","NAMEASCII":"Aligarh","POP_MAX":805000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.6980553,29.0023579],"properties":{"NAME":"Meerut","NAMEASCII":"Meerut","POP_MAX":1398000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[86.4180399,23.8023394],"properties":{"NAME":"Dhanbad","NAMEASCII":"Dhanbad","POP_MAX":1246000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.16919652961643,26.20003488730391],"properties":{"NAME":"Gwalior","NAMEASCII":"Gwalior","POP_MAX":978000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.1780728,22.3119652],"properties":{"NAME":"Vadodara","NAMEASCII":"Vadodara","POP_MAX":1756000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[70.7980631,22.3119652],"properties":{"NAME":"Rajkot","NAMEASCII":"Rajkot","POP_MAX":1260000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[-56.5100497,-33.4100163],"properties":{"NAME":"Durazno","NAMEASCII":"Durazno","POP_MAX":34037,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-93.4108464,48.6011277],"properties":{"NAME":"International Falls","NAMEASCII":"International Falls","POP_MAX":15240,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.0849748,44.9439866],"properties":{"NAME":"St. Paul","NAMEASCII":"St. Paul","POP_MAX":734854,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-108.5400004,45.788302],"properties":{"NAME":"Billings","NAMEASCII":"Billings","POP_MAX":104552,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.299987,47.5002905],"properties":{"NAME":"Great Falls","NAMEASCII":"Great Falls","POP_MAX":66558,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-113.9930526,46.872241],"properties":{"NAME":"Missoula","NAMEASCII":"Missoula","POP_MAX":72856,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.2958173,48.2324939],"properties":{"NAME":"Minot","NAMEASCII":"Minot","POP_MAX":39439,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.7894257,46.8772278],"properties":{"NAME":"Fargo","NAMEASCII":"Fargo","POP_MAX":162842,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-155.08153952277408,19.705642844165897],"properties":{"NAME":"Hilo","NAMEASCII":"Hilo","POP_MAX":52391,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.899434,47.0380449],"properties":{"NAME":"Olympia","NAMEASCII":"Olympia","POP_MAX":156984,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.4199494,47.669996],"properties":{"NAME":"Spokane","NAMEASCII":"Spokane","POP_MAX":347705,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.6399925,45.6303013],"properties":{"NAME":"Vancouver","NAMEASCII":"Vancouver","POP_MAX":525802,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.6505083,35.1980957],"properties":{"NAME":"Flagstaff","NAMEASCII":"Flagstaff","POP_MAX":63993,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-110.8919321,32.2069426],"properties":{"NAME":"Tucson","NAMEASCII":"Tucson","POP_MAX":823000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.7166177148008,34.41079912844683],"properties":{"NAME":"Santa Barbara","NAMEASCII":"Santa Barbara","POP_MAX":181632,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.7729841,36.7477169],"properties":{"NAME":"Fresno","NAMEASCII":"Fresno","POP_MAX":616353,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-124.15037109618974,40.793038839681444],"properties":{"NAME":"Eureka","NAMEASCII":"Eureka","POP_MAX":42398,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.7919863,38.8629625],"properties":{"NAME":"Colorado Springs","NAMEASCII":"Colorado Springs","POP_MAX":493654,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-119.8200096,39.529976],"properties":{"NAME":"Reno","NAMEASCII":"Reno","POP_MAX":328585,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-115.7619886,40.8325063],"properties":{"NAME":"Elko","NAMEASCII":"Elko","POP_MAX":19252,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.6413308,35.1049748],"properties":{"NAME":"Albuquerque","NAMEASCII":"Albuquerque","POP_MAX":898642,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-123.0238967,44.9280703],"properties":{"NAME":"Salem","NAMEASCII":"Salem","POP_MAX":229010,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.32324265972944,42.84687217376596],"properties":{"NAME":"Casper","NAMEASCII":"Casper","POP_MAX":60791,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.669985,39.0500053],"properties":{"NAME":"Topeka","NAMEASCII":"Topeka","POP_MAX":132091,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-94.6060401,39.1090344],"properties":{"NAME":"Kansas City","NAMEASCII":"Kansas City","POP_MAX":1469000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.9300208,36.1200033],"properties":{"NAME":"Tulsa","NAMEASCII":"Tulsa","POP_MAX":946962,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.7299978,43.549989],"properties":{"NAME":"Sioux Falls","NAMEASCII":"Sioux Falls","POP_MAX":155724,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.7700234,32.5000175],"properties":{"NAME":"Shreveport","NAMEASCII":"Shreveport","POP_MAX":248053,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-91.1401581,30.4579458],"properties":{"NAME":"Baton Rouge","NAMEASCII":"Baton Rouge","POP_MAX":422072,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.3400381,32.739977],"properties":{"NAME":"Ft. Worth","NAMEASCII":"Ft. Worth","POP_MAX":1440454,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.4018948,27.7428144],"properties":{"NAME":"Corpus Christi","NAMEASCII":"Corpus Christi","POP_MAX":277454,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.7447242,30.2688955],"properties":{"NAME":"Austin","NAMEASCII":"Austin","POP_MAX":1161000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-101.8299966,35.2299801],"properties":{"NAME":"Amarillo","NAMEASCII":"Amarillo","POP_MAX":181766,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-106.511941,31.7819298],"properties":{"NAME":"El Paso","NAMEASCII":"El Paso","POP_MAX":753000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-99.5072185,27.5061363],"properties":{"NAME":"Laredo","NAMEASCII":"Laredo","POP_MAX":434768,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.18252189086121,8.569520453572299],"properties":{"NAME":"Mérida","NAMEASCII":"Merida","POP_MAX":345489,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-73.2124669,44.4757982],"properties":{"NAME":"Burlington","NAMEASCII":"Burlington","POP_MAX":93807,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.2791887,32.3616022],"properties":{"NAME":"Montgomery","NAMEASCII":"Montgomery","POP_MAX":198325,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.2800342,30.4499876],"properties":{"NAME":"Tallahassee","NAMEASCII":"Tallahassee","POP_MAX":221222,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.3819762,28.5119227],"properties":{"NAME":"Orlando","NAMEASCII":"Orlando","POP_MAX":1350000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.6719327,30.3319666],"properties":{"NAME":"Jacksonville","NAMEASCII":"Jacksonville","POP_MAX":988000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.1099952,32.0211062],"properties":{"NAME":"Savannah","NAMEASCII":"Savannah","POP_MAX":180187,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.03126182715303,33.996860925141384],"properties":{"NAME":"Columbia","NAMEASCII":"Columbia","POP_MAX":398093,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.1719939,39.7519343],"properties":{"NAME":"Indianapolis","NAMEASCII":"Indianapolis","POP_MAX":1436000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.9450204,34.2255194],"properties":{"NAME":"Wilmington","NAMEASCII":"Wilmington","POP_MAX":161560,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.9200304,35.9700124],"properties":{"NAME":"Knoxville","NAMEASCII":"Knoxville","POP_MAX":655400,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.4519319,37.5519652],"properties":{"NAME":"Richmond","NAMEASCII":"Richmond","POP_MAX":912000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.6327281,38.349738],"properties":{"NAME":"Charleston","NAMEASCII":"Charleston","POP_MAX":123799,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.6145820807727,39.28151578641361],"properties":{"NAME":"Baltimore","NAMEASCII":"Baltimore","POP_MAX":2255000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.1500137,43.0499937],"properties":{"NAME":"Syracuse","NAMEASCII":"Syracuse","POP_MAX":662577,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-67.6236091,5.6639036],"properties":{"NAME":"Puerto Ayacucho","NAMEASCII":"Puerto Ayacucho","POP_MAX":52526,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-61.5170309,10.6519971],"properties":{"NAME":"Port-of-Spain","NAMEASCII":"Port-of-Spain","POP_MAX":294934,"ISO_A2":"TT","SOV_A3":"TTO"}},{"type":"Point","coordinates":[-69.7799891,44.3105628],"properties":{"NAME":"Augusta","NAMEASCII":"Augusta","POP_MAX":24042,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.3452757,46.4952615],"properties":{"NAME":"Sault Ste. Marie","NAMEASCII":"Sault Ste. Marie","POP_MAX":83805,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[1.1200244,7.5300429],"properties":{"NAME":"Atakpamé","NAMEASCII":"Atakpame","POP_MAX":80683,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[10.6250256,35.8299951],"properties":{"NAME":"Sousse","NAMEASCII":"Sousse","POP_MAX":327004,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[44.0374743,13.6063984],"properties":{"NAME":"Taizz","NAMEASCII":"Taizz","POP_MAX":751000,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[-135.3275494,57.0603977],"properties":{"NAME":"Sitka","NAMEASCII":"Sitka","POP_MAX":8931,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[24.0299955,49.8349801],"properties":{"NAME":"Lviv","NAMEASCII":"Lvov","POP_MAX":803880,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[30.7080553,46.4919622],"properties":{"NAME":"Odessa","NAMEASCII":"Odessa","POP_MAX":991000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[28.6621675,50.2455752],"properties":{"NAME":"Zhytomyr","NAMEASCII":"Zhytomyr","POP_MAX":282192,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[34.9980777,48.4819182],"properties":{"NAME":"Dnipro","NAMEASCII":"Dnipro","POP_MAX":1050000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[37.8280342,48.0019475],"properties":{"NAME":"Donetsk","NAMEASCII":"Donetsk","POP_MAX":988000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[36.2480789,50.0019288],"properties":{"NAME":"Kharkiv","NAMEASCII":"Kharkiv","POP_MAX":1461000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[52.9696761,40.0230467],"properties":{"NAME":"Türkmenbaşy","NAMEASCII":"Turkmenbasy","POP_MAX":68292,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[64.4300101,39.7800124],"properties":{"NAME":"Bukhara","NAMEASCII":"Bukhara","POP_MAX":319476,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[59.6150069,42.4700033],"properties":{"NAME":"Nukus","NAMEASCII":"Nukus","POP_MAX":230006,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[63.5800362,39.1100016],"properties":{"NAME":"Türkmenabat","NAMEASCII":"Turkmenabat","POP_MAX":234817,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[61.8333211,37.6000163],"properties":{"NAME":"Mary","NAMEASCII":"Mary","POP_MAX":178708,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[72.3399666,40.7900025],"properties":{"NAME":"Andijan","NAMEASCII":"Andijon","POP_MAX":650000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[106.6781469,20.8319522],"properties":{"NAME":"Haiphong","NAMEASCII":"Haiphong","POP_MAX":1969000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[108.2499711,16.0600391],"properties":{"NAME":"Da Nang","NAMEASCII":"Da Nang","POP_MAX":1000000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[28.4499841,-14.4400114],"properties":{"NAME":"Kabwe","NAMEASCII":"Kabwe","POP_MAX":188979,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.2599698,-12.5499975],"properties":{"NAME":"Mufulira","NAMEASCII":"Mufulira","POP_MAX":153624,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[28.220024,-12.8100333],"properties":{"NAME":"Kitwe","NAMEASCII":"Kitwe","POP_MAX":404901,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[25.860013,-17.8600093],"properties":{"NAME":"Livingstone","NAMEASCII":"Livingstone","POP_MAX":165480,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[31.1000032,-18.0000008],"properties":{"NAME":"Chitungwiza","NAMEASCII":"Chitungwiza","POP_MAX":340360,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[9.7080451,4.0623556],"properties":{"NAME":"Douala","NAMEASCII":"Douala","POP_MAX":1906000,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[-1.9219426,52.4769198],"properties":{"NAME":"Birmingham","NAMEASCII":"Birmingham","POP_MAX":2285000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-5.928177644913072,54.594245156841886],"properties":{"NAME":"Belfast","NAMEASCII":"Belfast","POP_MAX":450406,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[27.1498482,38.4380955],"properties":{"NAME":"İzmir","NAMEASCII":"Izmir","POP_MAX":2587000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[29.0680521,40.2019327],"properties":{"NAME":"Bursa","NAMEASCII":"Bursa","POP_MAX":1492000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[36.3436625,41.2799984],"properties":{"NAME":"Samsun","NAMEASCII":"Samsun","POP_MAX":609339,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[32.4730639,37.8769583],"properties":{"NAME":"Konya","NAMEASCII":"Konya","POP_MAX":919000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[35.3180582,36.9969345],"properties":{"NAME":"Adana","NAMEASCII":"Adana","POP_MAX":1293000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[32.2800345,2.779997],"properties":{"NAME":"Gulu","NAMEASCII":"Gulu","POP_MAX":146858,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[30.0585859,-1.9516442],"properties":{"NAME":"Kigali","NAMEASCII":"Kigali","POP_MAX":860000,"ISO_A2":"RW","SOV_A3":"RWA"}},{"type":"Point","coordinates":[-54.2332894,3.8500092],"properties":{"NAME":"Cottica","NAMEASCII":"Cottica","POP_MAX":29210,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-4.7700037,37.8799992],"properties":{"NAME":"Córdoba","NAMEASCII":"Cordoba","POP_MAX":321376,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[7.0964038,13.4916429],"properties":{"NAME":"Niamey","NAMEASCII":"Maradi","POP_MAX":232555,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[5.2599267,14.8999807],"properties":{"NAME":"Tahoua","NAMEASCII":"Tahoua","POP_MAX":115956,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[28.6099743,44.2026624],"properties":{"NAME":"Constanța","NAMEASCII":"Constanta","POP_MAX":303399,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[22.1583783,65.5966348],"properties":{"NAME":"Luleå","NAMEASCII":"Lulea","POP_MAX":48638,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[17.3166585,62.4000529],"properties":{"NAME":"Sundsvall","NAMEASCII":"Sundsvall","POP_MAX":73389,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[27.5749471,47.168347],"properties":{"NAME":"Iași","NAMEASCII":"Iasi","POP_MAX":325914,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[99.3401273,9.1500991],"properties":{"NAME":"Surat Thani","NAMEASCII":"Surat Thani","POP_MAX":157627,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[98.9800459,18.7999752],"properties":{"NAME":"Chiang Mai","NAMEASCII":"Chiang Mai","POP_MAX":397211,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[102.1000105,15.0000263],"properties":{"NAME":"Nakhon Ratchasima","NAMEASCII":"Nakhon Ratchasima","POP_MAX":334984,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[31.1333345,-26.3166508],"properties":{"NAME":"Mbabane","NAMEASCII":"Mbabane","POP_MAX":90138,"ISO_A2":"SZ","SOV_A3":"SWZ"}},{"type":"Point","coordinates":[-80.6299728,-5.2100321],"properties":{"NAME":"Piura","NAMEASCII":"Piura","POP_MAX":396932,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-71.5319573,-16.418048],"properties":{"NAME":"Arequipa","NAMEASCII":"Arequipa","POP_MAX":815000,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-78.5699952,-9.0700032],"properties":{"NAME":"Chimbote","NAMEASCII":"Chimbote","POP_MAX":349846,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-74.534996,-8.3689091],"properties":{"NAME":"Pucallpa","NAMEASCII":"Pucallpa","POP_MAX":310750,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-73.2500098,-3.7500179],"properties":{"NAME":"Iquitos","NAMEASCII":"Iquitos","POP_MAX":458729,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.20002,-12.0800004],"properties":{"NAME":"Huancayo","NAMEASCII":"Huancayo","POP_MAX":412733,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-54.6160568,-25.5166996],"properties":{"NAME":"Ciudad del Este","NAMEASCII":"Ciudad del Este","POP_MAX":320872,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-25.6665835,37.7483018],"properties":{"NAME":"Ponta Delgada","NAMEASCII":"Ponta Delgada","POP_MAX":61526,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[-8.7299945,42.2200185],"properties":{"NAME":"Vigo","NAMEASCII":"Vigo","POP_MAX":378952,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-2.9299868,43.2499815],"properties":{"NAME":"Bilbao","NAMEASCII":"Bilbao","POP_MAX":875552,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[-16.1000098,14.1499748],"properties":{"NAME":"Kaolack","NAMEASCII":"Kaolack","POP_MAX":277812,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[-13.4999876,16.1500078],"properties":{"NAME":"Kaédi","NAMEASCII":"Kaedi","POP_MAX":21656,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[22.440015,13.4500175],"properties":{"NAME":"Geneina","NAMEASCII":"Geneina","POP_MAX":162981,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[39.5780565,24.5019349],"properties":{"NAME":"Medina","NAMEASCII":"Medina","POP_MAX":1010000,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[36.5549674,28.3838347],"properties":{"NAME":"Tabuk","NAMEASCII":"Tabuk","POP_MAX":547957,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[31.5800256,4.8299752],"properties":{"NAME":"Juba","NAMEASCII":"Juba","POP_MAX":111975,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[31.6559899,9.5368972],"properties":{"NAME":"Malakal","NAMEASCII":"Malakal","POP_MAX":160765,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[32.4800223,15.6166811],"properties":{"NAME":"Omdurman","NAMEASCII":"Omdurman","POP_MAX":2395159,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[30.216698,13.1832896],"properties":{"NAME":"Al-Ubayyid","NAMEASCII":"El Obeid","POP_MAX":393311,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[4.2699613,52.0800368],"properties":{"NAME":"The Hague","NAMEASCII":"The Hague","POP_MAX":1406000,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[7.97498387982654,58.14561960901902],"properties":{"NAME":"Kristiansand","NAMEASCII":"Kristiansand","POP_MAX":63814,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[14.514969,46.0552883],"properties":{"NAME":"Ljubljana","NAMEASCII":"Ljubljana","POP_MAX":314807,"ISO_A2":"SI","SOV_A3":"SVN"}},{"type":"Point","coordinates":[17.1169808,48.1500183],"properties":{"NAME":"Bratislava","NAMEASCII":"Bratislava","POP_MAX":423737,"ISO_A2":"SK","SOV_A3":"SVK"}},{"type":"Point","coordinates":[23.6880009,70.6612799],"properties":{"NAME":"Hammerfest","NAMEASCII":"Hammerfest","POP_MAX":10000,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[51.5329679,25.286556],"properties":{"NAME":"Doha","NAMEASCII":"Doha","POP_MAX":1450000,"ISO_A2":"QA","SOV_A3":"QAT"}},{"type":"Point","coordinates":[67.023048,30.2219475],"properties":{"NAME":"Quetta","NAMEASCII":"Quetta","POP_MAX":768000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[68.2067822,27.561766],"properties":{"NAME":"Larkana","NAMEASCII":"Larkana","POP_MAX":364033,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[17.8832906,-29.6667305],"properties":{"NAME":"Springbok","NAMEASCII":"Springbok","POP_MAX":10438,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[21.2300114,-28.4600342],"properties":{"NAME":"Upington","NAMEASCII":"Upington","POP_MAX":71373,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[19.4399397,-33.6400281],"properties":{"NAME":"Worcester","NAMEASCII":"Worcester","POP_MAX":127597,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[22.4500402,-33.950035],"properties":{"NAME":"George","NAMEASCII":"George","POP_MAX":174582,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[33.5800069,-16.170035],"properties":{"NAME":"Tete","NAMEASCII":"Tete","POP_MAX":129316,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[40.5323474,-12.983046],"properties":{"NAME":"Pemba","NAMEASCII":"Pemba","POP_MAX":110643,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[39.2930432,-15.1360412],"properties":{"NAME":"Nampula","NAMEASCII":"Nampula","POP_MAX":388526,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[26.7299857,-27.9699866],"properties":{"NAME":"Welkom","NAMEASCII":"Welkom","POP_MAX":431944,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[33.6400032,-25.0399845],"properties":{"NAME":"Xai-Xai","NAMEASCII":"Xai-Xai","POP_MAX":128805,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[145.3854821,-6.0833122],"properties":{"NAME":"Goroka","NAMEASCII":"Goroka","POP_MAX":39699,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[144.2168196,-5.8632222],"properties":{"NAME":"Mt. Hagen","NAMEASCII":"Mt. Hagen","POP_MAX":59064,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[152.1434307,-4.2054904],"properties":{"NAME":"Rabaul","NAMEASCII":"Rabaul","POP_MAX":8074,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[146.9900354,-6.7329883],"properties":{"NAME":"Lae","NAMEASCII":"Lae","POP_MAX":131052,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[-82.4333252,8.4333211],"properties":{"NAME":"David","NAMEASCII":"David","POP_MAX":110037,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-1.9099716,34.690013],"properties":{"NAME":"Oujda","NAMEASCII":"Oujda","POP_MAX":409391,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-9.2399893,32.3199768],"properties":{"NAME":"Safi","NAMEASCII":"Safi","POP_MAX":353476,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[19.2663069,42.4659725],"properties":{"NAME":"Podgorica","NAMEASCII":"Podgorica","POP_MAX":145850,"ISO_A2":"ME","SOV_A3":"MNE"}},{"type":"Point","coordinates":[36.8899857,-17.8800081],"properties":{"NAME":"Quelimane","NAMEASCII":"Quelimane","POP_MAX":188964,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[27.8700195,-32.9700431],"properties":{"NAME":"East London","NAMEASCII":"East London","POP_MAX":338627,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[25.0099873,-31.5000036],"properties":{"NAME":"Middelburg","NAMEASCII":"Middelburg","POP_MAX":18164,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[43.6179471,43.4981059],"properties":{"NAME":"Nalchik","NAMEASCII":"Naltchik","POP_MAX":307866,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[41.9800109,45.0500008],"properties":{"NAME":"Stavropol","NAMEASCII":"Stavropol","POP_MAX":363064,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[177.6999955,64.7332955],"properties":{"NAME":"Ugolnye Kopi","NAMEASCII":"Ugolnye Kopi","POP_MAX":3367,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[20.4973429,54.7000061],"properties":{"NAME":"Kaliningrad","NAMEASCII":"Kaliningrad","POP_MAX":434954,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[28.3299397,57.829996],"properties":{"NAME":"Pskov","NAMEASCII":"Pskov","POP_MAX":201990,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.4299808,53.2599907],"properties":{"NAME":"Bryansk","NAMEASCII":"Bryansk","POP_MAX":427236,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[32.0473356,54.7826884],"properties":{"NAME":"Smolensk","NAMEASCII":"Smolensk","POP_MAX":320991,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[34.36122287793718,61.781318478265966],"properties":{"NAME":"Petrozavodsk","NAMEASCII":"Petrozavodsk","POP_MAX":265025,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[35.8899951,56.8599776],"properties":{"NAME":"Tver","NAMEASCII":"Tver","POP_MAX":400212,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.9199816,59.2099892],"properties":{"NAME":"Vologda","NAMEASCII":"Vologda","POP_MAX":294889,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.8700105,57.6199829],"properties":{"NAME":"Yaroslavl","NAMEASCII":"Yaroslavl","POP_MAX":606730,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.7107099,47.2365937],"properties":{"NAME":"Rostov","NAMEASCII":"Rostov","POP_MAX":1052000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.7299674,43.5900124],"properties":{"NAME":"Sochi","NAMEASCII":"Sochi","POP_MAX":327608,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.0000378,45.0199768],"properties":{"NAME":"Krasnodar","NAMEASCII":"Krasnodar","POP_MAX":649851,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.9999816,53.1800214],"properties":{"NAME":"Penza","NAMEASCII":"Penza","POP_MAX":512602,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.7199939,54.6199593],"properties":{"NAME":"Ryazan","NAMEASCII":"Ryazan","POP_MAX":520173,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[39.18684252206281,51.66539025109858],"properties":{"NAME":"Voronezh","NAMEASCII":"Voronezh","POP_MAX":844000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[58.9800069,53.4226939],"properties":{"NAME":"Magnitogorsk","NAMEASCII":"Magnitogorsk","POP_MAX":413351,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[61.4367223,55.1569371],"properties":{"NAME":"Chelyabinsk","NAMEASCII":"Chelyabinsk","POP_MAX":1091000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[64.0099841,67.5],"properties":{"NAME":"Vorkuta","NAMEASCII":"Vorkuta","POP_MAX":80039,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.6699808,58.5900529],"properties":{"NAME":"Kirov","NAMEASCII":"Kirov","POP_MAX":457437,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[59.9749849,57.9200163],"properties":{"NAME":"Nizhny Tagil","NAMEASCII":"Nizhny Tagil","POP_MAX":381116,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.054989,46.3486554],"properties":{"NAME":"Astrakhan","NAMEASCII":"Astrakhan","POP_MAX":502533,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[55.1100105,51.7799776],"properties":{"NAME":"Orenburg","NAMEASCII":"Orenburg","POP_MAX":550204,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[46.0280504,51.5819357],"properties":{"NAME":"Saratov","NAMEASCII":"Saratov","POP_MAX":843000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[48.4100061,54.329977],"properties":{"NAME":"Ulyanovsk","NAMEASCII":"Ulyanovsk","POP_MAX":640680,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[73.3980077,54.9919343],"properties":{"NAME":"Omsk","NAMEASCII":"Omsk","POP_MAX":1135000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[65.5299947,57.1400122],"properties":{"NAME":"Tyumen","NAMEASCII":"Tyumen","POP_MAX":519119,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[87.1149821,53.7500124],"properties":{"NAME":"Novokuznetsk","NAMEASCII":"Novokuznetsk","POP_MAX":539616,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[86.08998,55.3399671],"properties":{"NAME":"Kemerovo","NAMEASCII":"Kemerovo","POP_MAX":477090,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.6986987,43.3186853],"properties":{"NAME":"Grozny","NAMEASCII":"Groznyy","POP_MAX":226100,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[80.6700008,7.2799807],"properties":{"NAME":"Kandy","NAMEASCII":"Kandy","POP_MAX":111701,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[79.949993,6.9000039],"properties":{"NAME":"Sri Jayawardenepura Kotte","NAMEASCII":"Sri Jawewardenepura Kotte","POP_MAX":115826,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[127.4230822,36.3374915],"properties":{"NAME":"Daejeon","NAMEASCII":"Daejeon","POP_MAX":1468000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[126.9084883,35.1729115],"properties":{"NAME":"Gwangju","NAMEASCII":"Gwangju","POP_MAX":1440000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[129.0081017,35.0969988],"properties":{"NAME":"Busan","NAMEASCII":"Busan","POP_MAX":3480000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[122.0780854,6.9219227],"properties":{"NAME":"Zamboanga","NAMEASCII":"Zamboanga","POP_MAX":773000,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.5936104,18.1988491],"properties":{"NAME":"Laoag","NAMEASCII":"Laoag","POP_MAX":207048,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[120.5699426,16.4299907],"properties":{"NAME":"Baguio","NAMEASCII":"Baguio City","POP_MAX":447824,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.1747261,6.1108272],"properties":{"NAME":"General Santos","NAMEASCII":"General Santos","POP_MAX":950530,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[102.6333113,57.9899603],"properties":{"NAME":"Ust-Ilimsk","NAMEASCII":"Ust-Ulimsk","POP_MAX":100271,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[103.9200028,52.5600075],"properties":{"NAME":"Angarsk","NAMEASCII":"Angarsk","POP_MAX":243158,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[91.445002,53.7036845],"properties":{"NAME":"Abakan","NAMEASCII":"Abakan","POP_MAX":167289,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[88.2249918,69.3400169],"properties":{"NAME":"Norilsk","NAMEASCII":"Norilsk","POP_MAX":165873,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[102.4650012,72.041144],"properties":{"NAME":"Khatanga","NAMEASCII":"Khatanga","POP_MAX":3205,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[94.3830656,51.7067005],"properties":{"NAME":"Kyzyl","NAMEASCII":"Kyzyl","POP_MAX":108240,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[107.6249963,51.8249878],"properties":{"NAME":"Ulan-Ude","NAMEASCII":"Ulan Ude","POP_MAX":360278,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[127.5333418,50.2666075],"properties":{"NAME":"Blagoveshchensk","NAMEASCII":"Blagoveshchensk","POP_MAX":221296,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[116.9166255,52.9833409],"properties":{"NAME":"Bukachacha","NAMEASCII":"Bukachacha","POP_MAX":3372,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.5172473,44.5372156],"properties":{"NAME":"Dalnegorsk","NAMEASCII":"Dalnegorsk","POP_MAX":8123,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[162.3335949,69.6510057],"properties":{"NAME":"Ambarchik","NAMEASCII":"Ambarchik","POP_MAX":0,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[134.6350272,67.6559853],"properties":{"NAME":"Batagay","NAMEASCII":"Batagay","POP_MAX":4266,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[147.8945796,70.618311],"properties":{"NAME":"Chokurdakh","NAMEASCII":"Chokurdakh","POP_MAX":2506,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[143.1999825,64.5665873],"properties":{"NAME":"Ust-Nera","NAMEASCII":"Ust Nera","POP_MAX":9148,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[114.94703,60.7252714],"properties":{"NAME":"Lensk","NAMEASCII":"Lensk","POP_MAX":25589,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[125.38939,58.6029979],"properties":{"NAME":"Aldan","NAMEASCII":"Aldan","POP_MAX":24426,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[113.9613537,62.5400185],"properties":{"NAME":"Mirny","NAMEASCII":"Mirnyy","POP_MAX":40308,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[123.3711153,66.7697087],"properties":{"NAME":"Zhigansk","NAMEASCII":"Zhigansk","POP_MAX":3237,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[143.2170357,59.3830019],"properties":{"NAME":"Okhotsk","NAMEASCII":"Okhotsk","POP_MAX":5570,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[135.1200105,48.4549868],"properties":{"NAME":"Khabarovsk","NAMEASCII":"Khabarovsk","POP_MAX":579000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.9478531,53.5738991],"properties":{"NAME":"Okha","NAMEASCII":"Okha","POP_MAX":26560,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[142.7400105,46.9649744],"properties":{"NAME":"Yuzhno Sakhalinsk","NAMEASCII":"Yuzhno Sakhalinsk","POP_MAX":176484,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-115.481962,32.6519284],"properties":{"NAME":"Mexicali","NAMEASCII":"Mexicali","POP_MAX":885000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.3199952,24.1399593],"properties":{"NAME":"La Paz","NAMEASCII":"La Paz","POP_MAX":189767,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.4219487,25.5719988],"properties":{"NAME":"Torreón","NAMEASCII":"Torreon","POP_MAX":1144000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-107.3819138,24.8319406],"properties":{"NAME":"Culiacán","NAMEASCII":"Culiacan","POP_MAX":809000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.9449958,31.305],"properties":{"NAME":"Nogales","NAMEASCII":"Nogales","POP_MAX":178097,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.954065,29.0988814],"properties":{"NAME":"Hermosillo","NAMEASCII":"Hermosillo","POP_MAX":595811,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-110.8899862,27.9300122],"properties":{"NAME":"Guaymas","NAMEASCII":"Guaymas","POP_MAX":103449,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.0019414,22.1719221],"properties":{"NAME":"San Luis Potosí","NAMEASCII":"San Luis Potosi","POP_MAX":992000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.5000025,25.8799823],"properties":{"NAME":"Matamoros","NAMEASCII":"Matamoros","POP_MAX":538785,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.5500066,27.4999868],"properties":{"NAME":"Nuevo Laredo","NAMEASCII":"Nuevo Laredo","POP_MAX":349550,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-103.7200104,19.2299748],"properties":{"NAME":"Colima","NAMEASCII":"Colima","POP_MAX":223287,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-90.4999905,19.8299898],"properties":{"NAME":"Campeche","NAMEASCII":"Campeche","POP_MAX":205212,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.6699498,17.0826898],"properties":{"NAME":"Oaxaca","NAMEASCII":"Oaxaca","POP_MAX":530728,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-101.7019762,21.1519327],"properties":{"NAME":"León","NAMEASCII":"Leon","POP_MAX":1488000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[13.1580671,11.851906],"properties":{"NAME":"Maiduguri","NAMEASCII":"Maiduguri","POP_MAX":896000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.0080549,4.8119481],"properties":{"NAME":"Port Harcourt","NAMEASCII":"Port Harcourt","POP_MAX":1020000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[8.5300114,7.7299791],"properties":{"NAME":"Makurdi","NAMEASCII":"Makurdi","POP_MAX":292645,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[3.9280362,7.3819721],"properties":{"NAME":"Ibadan","NAMEASCII":"Ibadan","POP_MAX":2628000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[4.2380431,8.1319522],"properties":{"NAME":"Ogbomosho","NAMEASCII":"Ogbomosho","POP_MAX":951000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.7599996,5.5199589],"properties":{"NAME":"Warri","NAMEASCII":"Warri","POP_MAX":830106,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[7.4380545,10.5219613],"properties":{"NAME":"Kaduna","NAMEASCII":"Kaduna","POP_MAX":1442000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[18.6400402,54.3599752],"properties":{"NAME":"Gdańsk","NAMEASCII":"Gdansk","POP_MAX":740000,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[19.9580655,50.0619251],"properties":{"NAME":"Kraków","NAMEASCII":"Krakow","POP_MAX":756000,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[104.4402811,43.5835529],"properties":{"NAME":"Dalandzadgad","NAMEASCII":"Dalandzadgad","POP_MAX":15093,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[127.4308158,39.1604895],"properties":{"NAME":"Wonsan","NAMEASCII":"Wonsan","POP_MAX":329207,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[124.4212837,40.0858594],"properties":{"NAME":"Sinuiju","NAMEASCII":"Sinuiju","POP_MAX":288112,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[91.6332592,48.0166415],"properties":{"NAME":"Dund-Us","NAMEASCII":"Dund-Us","POP_MAX":30500,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[114.5060233,48.0665867],"properties":{"NAME":"Choibalsan","NAMEASCII":"Choybalsan","POP_MAX":33376,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[15.1594258,-26.6480001],"properties":{"NAME":"Lüderitz","NAMEASCII":"Luderitz","POP_MAX":15137,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[14.5053055,-22.9575277],"properties":{"NAME":"Walvis Bay","NAMEASCII":"Walvis Bay","POP_MAX":52058,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[32.9300207,-2.5200154],"properties":{"NAME":"Mwanza","NAMEASCII":"Mwanza","POP_MAX":493944,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[37.6600162,-6.8200114],"properties":{"NAME":"Morogoro","NAMEASCII":"Morogoro","POP_MAX":250902,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[35.7500036,-6.1833061],"properties":{"NAME":"Dodoma","NAMEASCII":"Dodoma","POP_MAX":218269,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[36.6699991,-3.3600158],"properties":{"NAME":"Arusha","NAMEASCII":"Arusha","POP_MAX":341136,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[7.4669755,46.9166828],"properties":{"NAME":"Bern","NAMEASCII":"Bern","POP_MAX":275329,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[13.023059685006762,55.59942395416559],"properties":{"NAME":"Malmö","NAMEASCII":"Malmo","POP_MAX":269349,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[-13.2000059,27.1499823],"properties":{"NAME":"Laayoune","NAMEASCII":"Laayoune","POP_MAX":188084,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[127.3630163,0.7929606],"properties":{"NAME":"Ternate","NAMEASCII":"Ternate","POP_MAX":187521,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[128.2000195,-3.7166866],"properties":{"NAME":"Ambon","NAMEASCII":"Ambon","POP_MAX":355596,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[118.7666418,-8.4499894],"properties":{"NAME":"Raba","NAMEASCII":"Raba","POP_MAX":106101,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[140.69998,-2.5329862],"properties":{"NAME":"Jayapura","NAMEASCII":"Jayapura","POP_MAX":169341,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[11.2500004,43.7800008],"properties":{"NAME":"Florence","NAMEASCII":"Florence","POP_MAX":1500000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[15.0799991,37.4999707],"properties":{"NAME":"Catania","NAMEASCII":"Catania","POP_MAX":674542,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[21.1659843,42.6667096],"properties":{"NAME":"Pristina","NAMEASCII":"Pristina","POP_MAX":465186,"ISO_A2":"-99","SOV_A3":"KOS"}},{"type":"Point","coordinates":[37.6400175,0.0599821],"properties":{"NAME":"Meru","NAMEASCII":"Meru","POP_MAX":47226,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[35.2699812,0.5200057],"properties":{"NAME":"Eldoret","NAMEASCII":"Eldoret","POP_MAX":353381,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[95.3200109,5.5499829],"properties":{"NAME":"Banda Aceh","NAMEASCII":"Banda Aceh","POP_MAX":513698,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[100.3293679,5.4136132],"properties":{"NAME":"George Town","NAMEASCII":"George Town","POP_MAX":2500000,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[100.4500337,38.9299868],"properties":{"NAME":"Zhangye","NAMEASCII":"Zhangye","POP_MAX":230728,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[102.6410111,37.9280066],"properties":{"NAME":"Wuwei","NAMEASCII":"Wuwei","POP_MAX":493092,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[94.6620149,40.1426776],"properties":{"NAME":"Dunhuang","NAMEASCII":"Dunhuang","POP_MAX":140094,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[105.9180382,34.6019644],"properties":{"NAME":"Tianshui","NAMEASCII":"Tianshui","POP_MAX":1225000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[98.2666011,36.1665896],"properties":{"NAME":"Dulan","NAMEASCII":"Dulan","POP_MAX":100,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[94.8833451,36.416626],"properties":{"NAME":"Golmud","NAMEASCII":"Golmud","POP_MAX":107092,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.1480643,22.6319198],"properties":{"NAME":"Yulin","NAMEASCII":"Yulin","POP_MAX":1127000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.6133268,23.8997156],"properties":{"NAME":"Bose","NAMEASCII":"Bose","POP_MAX":175282,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.3200162,23.4800255],"properties":{"NAME":"Wuzhou","NAMEASCII":"Wuzhou","POP_MAX":442315,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.8313862,26.5963807],"properties":{"NAME":"Liupanshui","NAMEASCII":"Liupanshui","POP_MAX":1221000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.5780407,24.9019622],"properties":{"NAME":"Quanzhou","NAMEASCII":"Quanzhou","POP_MAX":1463000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.2780683,31.8519772],"properties":{"NAME":"Hefei","NAMEASCII":"Hefei","POP_MAX":2035000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.976943,33.638057],"properties":{"NAME":"Suzhou","NAMEASCII":"Suzhou","POP_MAX":1964000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.3780761,21.2019296],"properties":{"NAME":"Zhanjiang","NAMEASCII":"Zhanjiang","POP_MAX":1590000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.5799816,24.7999707],"properties":{"NAME":"Shaoguan","NAMEASCII":"Shaoguan","POP_MAX":720266,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.8300158,-1.2500154],"properties":{"NAME":"Balikpapan","NAMEASCII":"Balikpapan","POP_MAX":445905,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[110.3299991,1.5299699],"properties":{"NAME":"Kuching","NAMEASCII":"Kuching","POP_MAX":570407,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[49.3115261,-12.2765015],"properties":{"NAME":"Antsiranana","NAMEASCII":"Antsiranana","POP_MAX":82937,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[47.0832653,-21.4333313],"properties":{"NAME":"Fianarantsoa","NAMEASCII":"Fianarantsoa","POP_MAX":184184,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[46.3450158,-15.6700138],"properties":{"NAME":"Mahajanga","NAMEASCII":"Mahajanga","POP_MAX":154657,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[43.6899841,-23.3568314],"properties":{"NAME":"Toliara","NAMEASCII":"Toliara","POP_MAX":115319,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[110.8250077,-7.5649788],"properties":{"NAME":"Surakarta","NAMEASCII":"Surakarta","POP_MAX":555308,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[105.2680521,-5.4280728],"properties":{"NAME":"Bandar Lampung","NAMEASCII":"Bandar Lampung","POP_MAX":865000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[107.6500077,-2.7500272],"properties":{"NAME":"Tanjung Pandan","NAMEASCII":"Tanjungpandan","POP_MAX":62374,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.6080692,-7.9780464],"properties":{"NAME":"Malang","NAMEASCII":"Malang","POP_MAX":805000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[123.5829886,-10.1786694],"properties":{"NAME":"Kupang","NAMEASCII":"Kupang","POP_MAX":282396,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[119.6333073,-4.0166683],"properties":{"NAME":"Parepare","NAMEASCII":"Parepare","POP_MAX":87776,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-78.9999948,-2.8999922],"properties":{"NAME":"Cuenca","NAMEASCII":"Cuenca","POP_MAX":286878,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-90.3499996,-0.533315],"properties":{"NAME":"Santa Cruz","NAMEASCII":"Santa Cruz","POP_MAX":11262,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-83.0333403,10.0000214],"properties":{"NAME":"Limón","NAMEASCII":"Puerto Limon","POP_MAX":85001,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-75.8213257,20.0250167],"properties":{"NAME":"Santiago de Cuba","NAMEASCII":"Santiago de Cuba","POP_MAX":555865,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[-70.6700122,19.50001],"properties":{"NAME":"Santiago","NAMEASCII":"Santiago","POP_MAX":1550753,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-75.5200004,5.059987],"properties":{"NAME":"Manizales","NAMEASCII":"Manizales","POP_MAX":375848,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-77.2811074,1.2136068],"properties":{"NAME":"Pasto","NAMEASCII":"Pasto","POP_MAX":382236,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-74.8019127,10.9619345],"properties":{"NAME":"Barranquilla","NAMEASCII":"Barranquilla","POP_MAX":1798000,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-61.387013,15.3010156],"properties":{"NAME":"Roseau","NAMEASCII":"Roseau","POP_MAX":23336,"ISO_A2":"DM","SOV_A3":"DMA"}},{"type":"Point","coordinates":[18.2600118,0.040035],"properties":{"NAME":"Mbandaka","NAMEASCII":"Mbandaka","POP_MAX":274996,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[16.090015,8.5499807],"properties":{"NAME":"Moundou","NAMEASCII":"Moundou","POP_MAX":156705,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[32.5499406,30.004976],"properties":{"NAME":"Suez","NAMEASCII":"Suez","POP_MAX":508335,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[32.2900081,31.2599898],"properties":{"NAME":"Bur Said","NAMEASCII":"Bur Said","POP_MAX":623864,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[30.8399674,29.3100314],"properties":{"NAME":"El Faiyum","NAMEASCII":"El Faiyum","POP_MAX":316772,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[32.8989115,24.0875078],"properties":{"NAME":"Aswan","NAMEASCII":"Aswan","POP_MAX":313442,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[31.1799467,27.1899799],"properties":{"NAME":"Asyut","NAMEASCII":"Asyut","POP_MAX":420585,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[25.2200004,0.5200057],"properties":{"NAME":"Kisangani","NAMEASCII":"Kisangani","POP_MAX":578470,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[42.729991,13.0100185],"properties":{"NAME":"Assab","NAMEASCII":"Assab","POP_MAX":105496,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[43.1480017,11.5950145],"properties":{"NAME":"Djibouti","NAMEASCII":"Djibouti","POP_MAX":923000,"ISO_A2":"DJ","SOV_A3":"DJI"}},{"type":"Point","coordinates":[13.7500028,51.0499705],"properties":{"NAME":"Dresden","NAMEASCII":"Dresden","POP_MAX":617515,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[88.8833496,29.2500092],"properties":{"NAME":"Xigaze","NAMEASCII":"Xigaze","POP_MAX":80000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[77.2500028,38.4261416],"properties":{"NAME":"Shache","NAMEASCII":"Shache","POP_MAX":851374,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[81.3500109,43.9000193],"properties":{"NAME":"Yining","NAMEASCII":"Yining","POP_MAX":542507,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[88.1166263,47.8665989],"properties":{"NAME":"Altay","NAMEASCII":"Altay","POP_MAX":142000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[101.6950374044619,2.932515212266741],"properties":{"NAME":"Putrajaya","NAMEASCII":"Putrajaya","POP_MAX":67964,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[106.7690279,39.2332758],"properties":{"NAME":"Shizuishan","NAMEASCII":"Shizuishan","POP_MAX":136570,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.7332914,38.2833079],"properties":{"NAME":"Yulin","NAMEASCII":"Yulin","POP_MAX":155960,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.0200016,32.6799807],"properties":{"NAME":"Ankang","NAMEASCII":"Ankang","POP_MAX":1100000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.2099971,35.6199821],"properties":{"NAME":"Houma","NAMEASCII":"Houma","POP_MAX":102400,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.0980651,29.3819988],"properties":{"NAME":"Yueyang","NAMEASCII":"Yueyang","POP_MAX":826000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.5880704,26.8819705],"properties":{"NAME":"Hengyang","NAMEASCII":"Hengyang","POP_MAX":1016000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.68999287876282,31.46482758129281],"properties":{"NAME":"Mianyang","NAMEASCII":"Mianyang","POP_MAX":1396000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[102.2999983,27.8800153],"properties":{"NAME":"Xichang","NAMEASCII":"Xichang","POP_MAX":379993,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[99.1500097,25.119977],"properties":{"NAME":"Baoshan","NAMEASCII":"Baoshan","POP_MAX":1000000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[103.1500756,23.3799799],"properties":{"NAME":"Gejiu","NAMEASCII":"Gejiu","POP_MAX":149105,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.4780325,38.0519605],"properties":{"NAME":"Shijiazhuang","NAMEASCII":"Shijiazhuang","POP_MAX":2417000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.4780325,36.5819211],"properties":{"NAME":"Handan","NAMEASCII":"Handan","POP_MAX":1631000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.9380846,41.1169672],"properties":{"NAME":"Anshan","NAMEASCII":"Anshan","POP_MAX":1639000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.627885,38.9247843],"properties":{"NAME":"Dalian","NAMEASCII":"Dalian","POP_MAX":3167000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.3280631,36.0919251],"properties":{"NAME":"Qingdao","NAMEASCII":"Qingdao","POP_MAX":2866000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.3280301,35.0819351],"properties":{"NAME":"Linyi","NAMEASCII":"Linyi","POP_MAX":2082000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.06596724668917,33.58516490333014],"properties":{"NAME":"Huaiyin","NAMEASCII":"Huaiyin","POP_MAX":1264000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.6481469,28.0219268],"properties":{"NAME":"Wenzhou","NAMEASCII":"Wenzhou","POP_MAX":2350000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[121.5480919,29.8819166],"properties":{"NAME":"Ningbo","NAMEASCII":"Ningbo","POP_MAX":1923000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.4080679,33.5969611],"properties":{"NAME":"Fukuoka","NAMEASCII":"Fukuoka","POP_MAX":2792000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[131.418376,31.9182442],"properties":{"NAME":"Miyazaki","NAMEASCII":"Miyazaki","POP_MAX":324384,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[127.6729716,26.2071717],"properties":{"NAME":"Naha","NAMEASCII":"Naha","POP_MAX":905238,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[133.5375232,33.5624333],"properties":{"NAME":"Kōchi","NAMEASCII":"Kochi","POP_MAX":335570,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[123.0700484,0.549978],"properties":{"NAME":"Gorontalo","NAMEASCII":"Gorontalo","POP_MAX":365497,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[122.268048,43.6219048],"properties":{"NAME":"Tongliao","NAMEASCII":"Tongliao","POP_MAX":884000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[111.6580496,40.8219207],"properties":{"NAME":"Hohhot","NAMEASCII":"Hohhot","POP_MAX":1726000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.9480439,42.2719613],"properties":{"NAME":"Chifeng","NAMEASCII":"Chifeng","POP_MAX":1277000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[122.0800313,46.0800155],"properties":{"NAME":"Ulan Hot","NAMEASCII":"Ulanhot","POP_MAX":241894,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.7000215,49.1999801],"properties":{"NAME":"Hailar","NAMEASCII":"Hailar","POP_MAX":231171,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.3480716,46.8319672],"properties":{"NAME":"Jiamusi","NAMEASCII":"Jiamusi","POP_MAX":1020000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.52860364849957,48.246263385961704],"properties":{"NAME":"Bei'an","NAMEASCII":"Beian","POP_MAX":154936,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[124.9980622,46.581905],"properties":{"NAME":"Daqing","NAMEASCII":"Daqing","POP_MAX":1693000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[130.9680854,45.3019056],"properties":{"NAME":"Jixi","NAMEASCII":"Jixi","POP_MAX":965000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[136.9130456,35.1569434],"properties":{"NAME":"Nagoya","NAMEASCII":"Nagoya","POP_MAX":3230000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[138.1700052,36.6499968],"properties":{"NAME":"Nagano","NAMEASCII":"Nagano","POP_MAX":594311,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[144.3746911,42.9749595],"properties":{"NAME":"Kushiro","NAMEASCII":"Kushiro","POP_MAX":198566,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.7399776,41.7949799],"properties":{"NAME":"Hakodate","NAMEASCII":"Hakodate","POP_MAX":302984,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[135.7480521,35.0319381],"properties":{"NAME":"Kyoto","NAMEASCII":"Kyoto","POP_MAX":1805000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[140.86966685536837,38.2684409197744],"properties":{"NAME":"Sendai","NAMEASCII":"Sendai","POP_MAX":2250000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[139.8500577,38.9200391],"properties":{"NAME":"Sakata","NAMEASCII":"Sakata","POP_MAX":100446,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[17.3799621,-3.3099931],"properties":{"NAME":"Bandundu","NAMEASCII":"Bandundu","POP_MAX":118211,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[22.3980716,-5.8880964],"properties":{"NAME":"Kananga","NAMEASCII":"Kananga","POP_MAX":765000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[26.6600158,-4.4500268],"properties":{"NAME":"Kasongo","NAMEASCII":"Kasongo","POP_MAX":63000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[23.59805,-6.1480806],"properties":{"NAME":"Mbuji-Mayi","NAMEASCII":"Mbuji-Mayi","POP_MAX":1295000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.2000158,-5.9332955],"properties":{"NAME":"Kalemie","NAMEASCII":"Kalemie","POP_MAX":206257,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.2800109,0.1300037],"properties":{"NAME":"Butembo","NAMEASCII":"Butembo","POP_MAX":286403,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[29.2217868,-1.6787991],"properties":{"NAME":"Goma","NAMEASCII":"Goma","POP_MAX":144124,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[34.01998,-11.4599866],"properties":{"NAME":"Mzuzu","NAMEASCII":"Mzuzu","POP_MAX":110201,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[34.9899467,-15.7900065],"properties":{"NAME":"Blantyre","NAMEASCII":"Blantyre","POP_MAX":584877,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[-91.5200057,14.8299591],"properties":{"NAME":"Quetzaltenango","NAMEASCII":"Quetzaltenango","POP_MAX":575263,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-16.5917015,13.4538765],"properties":{"NAME":"Banjul","NAMEASCII":"Banjul","POP_MAX":43094,"ISO_A2":"GM","SOV_A3":"GMB"}},{"type":"Point","coordinates":[77.3147208,28.4352792],"properties":{"NAME":"Faridabad","NAMEASCII":"Faridabad","POP_MAX":1394000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.82830910981222,34.069473874645354],"properties":{"NAME":"Srinagar","NAMEASCII":"Srinagar","POP_MAX":1140000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.6280574,16.5219052],"properties":{"NAME":"Vijayawada","NAMEASCII":"Vijayawada","POP_MAX":1137000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.92519070332577,8.515520591980557],"properties":{"NAME":"Thiruvananthapuram","NAMEASCII":"Thiruvananthapuram","POP_MAX":954000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.2219697,10.0169534],"properties":{"NAME":"Kochi","NAMEASCII":"Kochi","POP_MAX":1519000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.8899406,20.4700025],"properties":{"NAME":"Cuttack","NAMEASCII":"Cuttack","POP_MAX":580000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.1230704,15.3619243],"properties":{"NAME":"Hubballi","NAMEASCII":"Hubballi","POP_MAX":890000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.8499943,12.9000252],"properties":{"NAME":"Mangaluru","NAMEASCII":"Mangaluru","POP_MAX":776632,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.6580671,12.3119296],"properties":{"NAME":"Mysuru","NAMEASCII":"Mysuru","POP_MAX":887000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.8200032,17.3499603],"properties":{"NAME":"Kalaburagi","NAMEASCII":"Kalaburagi","POP_MAX":483615,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[74.2200069,16.7],"properties":{"NAME":"Kolhapur","NAMEASCII":"Kolhapur","POP_MAX":750000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.30833720799332,19.19725927369086],"properties":{"NAME":"Nanded","NAMEASCII":"Nanded","POP_MAX":623708,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.0100175,20.7099878],"properties":{"NAME":"Akola","NAMEASCII":"Akola","POP_MAX":503502,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[91.7680492,26.1619628],"properties":{"NAME":"Guwahati","NAMEASCII":"Guwahati","POP_MAX":983000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[13.2800057,-4.1800175],"properties":{"NAME":"Kayes","NAMEASCII":"Kayes","POP_MAX":62521,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[13.5832946,-1.6332995],"properties":{"NAME":"Franceville","NAMEASCII":"Franceville","POP_MAX":42967,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[-0.5969589,44.8519589],"properties":{"NAME":"Bordeaux","NAMEASCII":"Bordeaux","POP_MAX":803000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[5.3730643,43.2919249],"properties":{"NAME":"Marseille","NAMEASCII":"Marseille","POP_MAX":1400000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[0.1049701,49.5049744],"properties":{"NAME":"Le Havre","NAMEASCII":"Le Havre","POP_MAX":242124,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-0.0500076,16.2665898],"properties":{"NAME":"Gao","NAMEASCII":"Gao","POP_MAX":116967,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-72.0700043,-45.5699975],"properties":{"NAME":"Coihaique","NAMEASCII":"Coihaique","POP_MAX":45787,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.2899838,-18.500022],"properties":{"NAME":"Arica","NAMEASCII":"Arica","POP_MAX":185999,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.32995479284354,-27.371778559189842],"properties":{"NAME":"Copiapó","NAMEASCII":"Copiapo","POP_MAX":129280,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.2499768,-29.8999979],"properties":{"NAME":"La Serena","NAMEASCII":"La Serena","POP_MAX":154521,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.34692448268574,-37.47974114915774],"properties":{"NAME":"Los Angeles","NAMEASCII":"Los Angeles","POP_MAX":145239,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-45.4166183,61.1665882],"properties":{"NAME":"Narsarsuaq","NAMEASCII":"Narsarsuaq","POP_MAX":145,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-53.6666057,66.9500078],"properties":{"NAME":"Sisimiut","NAMEASCII":"Sisimiut","POP_MAX":5227,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-56.1416753,72.7093667],"properties":{"NAME":"Upernavik","NAMEASCII":"Upernavik","POP_MAX":1129,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-69.2296403893379,77.4665495567926],"properties":{"NAME":"Qaanaaq","NAMEASCII":"Qaanaaq","POP_MAX":616,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-17.0560238,20.9000021],"properties":{"NAME":"Nouadhibou","NAMEASCII":"Nouadhibou","POP_MAX":86738,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-11.44001,14.4499823],"properties":{"NAME":"Kayes","NAMEASCII":"Kayes","POP_MAX":77207,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-9.6166588,16.6665912],"properties":{"NAME":"Ayoun el Atrous","NAMEASCII":"Ayoun el Atrous","POP_MAX":1423,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-6.2600161,13.4399923],"properties":{"NAME":"Ségou","NAMEASCII":"Segou","POP_MAX":122952,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[21.4334615,42.0000061],"properties":{"NAME":"Skopje","NAMEASCII":"Skopje","POP_MAX":494087,"ISO_A2":"MK","SOV_A3":"MKD"}},{"type":"Point","coordinates":[23.289989,24.1999815],"properties":{"NAME":"Al Jawf","NAMEASCII":"Al Jawf","POP_MAX":24132,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[15.8000069,26.3666451],"properties":{"NAME":"Tmassa","NAMEASCII":"Tmassah","POP_MAX":500,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[15.0999979,32.3799732],"properties":{"NAME":"Misrata","NAMEASCII":"Misratah","POP_MAX":386120,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[12.0791487,32.9344096],"properties":{"NAME":"Zuwara","NAMEASCII":"Zuwarah","POP_MAX":180310,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[44.3922668,35.4722392],"properties":{"NAME":"Kirkuk","NAMEASCII":"Kirkuk","POP_MAX":601433,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[43.1430586,36.3469483],"properties":{"NAME":"Mosul","NAMEASCII":"Mosul","POP_MAX":1316000,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[44.3353711,32.0003323],"properties":{"NAME":"Najaf","NAMEASCII":"An Najaf","POP_MAX":665552,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[37.3832889,11.6000529],"properties":{"NAME":"Bahir Dar","NAMEASCII":"Bahir Dar","POP_MAX":206748,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[39.4699833,13.4999886],"properties":{"NAME":"Mekele","NAMEASCII":"Mekele","POP_MAX":95856,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[41.8600183,9.5899947],"properties":{"NAME":"Dire Dawa","NAMEASCII":"Dire Dawa","POP_MAX":252279,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[25.7159391,66.5000352],"properties":{"NAME":"Rovaniemi","NAMEASCII":"Rovaniemi","POP_MAX":34781,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[21.6000146,63.0999844],"properties":{"NAME":"Vaasa","NAMEASCII":"Vaasa","POP_MAX":57014,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[23.7500126,61.5000045],"properties":{"NAME":"Tampere","NAMEASCII":"Tampere","POP_MAX":259279,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[57.1699882,50.2800175],"properties":{"NAME":"Aqtobe","NAMEASCII":"Aqtobe","POP_MAX":262457,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[63.1300378,52.9526968],"properties":{"NAME":"Rudniy","NAMEASCII":"Rudny","POP_MAX":124000,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[65.4649857,44.8000161],"properties":{"NAME":"Qyzylorda","NAMEASCII":"Qyzylorda","POP_MAX":300000,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.9200244,47.1126915],"properties":{"NAME":"Atyrau","NAMEASCII":"Atyrau","POP_MAX":182753,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[75.3199397,51.7299807],"properties":{"NAME":"Ekibastuz","NAMEASCII":"Ekibastuz","POP_MAX":127868,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[76.9500211,52.2999976],"properties":{"NAME":"Pavlodar","NAMEASCII":"Pavlodar","POP_MAX":329002,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[80.2750378,50.4349951],"properties":{"NAME":"Semey","NAMEASCII":"Semey","POP_MAX":311353,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[82.6149467,49.9900352],"properties":{"NAME":"Oskemen","NAMEASCII":"Oskemen","POP_MAX":319067,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[54.370004,31.9200529],"properties":{"NAME":"Yazd","NAMEASCII":"Yazd","POP_MAX":477905,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.7180671,31.2819345],"properties":{"NAME":"Ahvaz","NAMEASCII":"Ahvaz","POP_MAX":996000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[47.8116108,30.5154696],"properties":{"NAME":"Basra","NAMEASCII":"Basra","POP_MAX":870000,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[56.2721355,27.2040598],"properties":{"NAME":"Bandar-e-Abbas","NAMEASCII":"Bandar-e-Abbas","POP_MAX":461499,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[48.5150126,34.7960272],"properties":{"NAME":"Hamadan","NAMEASCII":"Hamadan","POP_MAX":528256,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[46.2993,38.0882374],"properties":{"NAME":"Tabriz","NAMEASCII":"Tabriz","POP_MAX":1413000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[75.8703116,30.9297079],"properties":{"NAME":"Ludhiana","NAMEASCII":"Ludhiana","POP_MAX":1649000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.8330529,25.1819451],"properties":{"NAME":"Kota","NAMEASCII":"Kota","POP_MAX":827000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.014827,26.2937118],"properties":{"NAME":"Jodhpur","NAMEASCII":"Jodhpur","POP_MAX":995000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[69.5950179,42.3200124],"properties":{"NAME":"Shymkent","NAMEASCII":"Shymkent","POP_MAX":465392,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[71.3649873,42.899977],"properties":{"NAME":"Taraz","NAMEASCII":"Taraz","POP_MAX":358153,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[80.9130529,26.8569849],"properties":{"NAME":"Lucknow","NAMEASCII":"Lucknow","POP_MAX":2695000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.5500362,29.9700169],"properties":{"NAME":"Saharanpur","NAMEASCII":"Saharanpur","POP_MAX":484873,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.3280805,23.3719522],"properties":{"NAME":"Ranchi","NAMEASCII":"Ranchi","POP_MAX":1044000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[86.9800032,25.2299962],"properties":{"NAME":"Bhagalpur","NAMEASCII":"Bhagalpur","POP_MAX":361548,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[81.6330606,21.2369404],"properties":{"NAME":"Raipur","NAMEASCII":"Raipur","POP_MAX":875000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.9531115,23.1770028],"properties":{"NAME":"Jabalpur","NAMEASCII":"Jabalpur","POP_MAX":1285000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[75.8630769,22.7170051],"properties":{"NAME":"Indore","NAMEASCII":"Indore","POP_MAX":2026000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.8300004,11.9349937],"properties":{"NAME":"Puducherry","NAMEASCII":"Puducherry","POP_MAX":227411,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.1781294,11.6719428],"properties":{"NAME":"Salem","NAMEASCII":"Salem","POP_MAX":873000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.68751168489561,10.80054141894286],"properties":{"NAME":"Tiruchirappalli","NAMEASCII":"Tiruchirappalli","POP_MAX":951000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[11.8800394,-4.7700073],"properties":{"NAME":"Pointe-Noire","NAMEASCII":"Pointe-Noire","POP_MAX":659084,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[-9.3100108,10.3899976],"properties":{"NAME":"Kankan","NAMEASCII":"Kankan","POP_MAX":114009,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-8.8299884,7.7600031],"properties":{"NAME":"Nzérékoré","NAMEASCII":"Nzerekore","POP_MAX":168121,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-5.0300137,7.6899815],"properties":{"NAME":"Bouaké","NAMEASCII":"Bouake","POP_MAX":567481,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[55.4480778,-20.8788948],"properties":{"NAME":"St.-Denis","NAMEASCII":"St.-Denis","POP_MAX":190047,"ISO_A2":"RE","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-67.8000066,-9.9665893],"properties":{"NAME":"Rio Branco","NAMEASCII":"Rio Branco","POP_MAX":257642,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-44.2679367,-2.5140388],"properties":{"NAME":"São Luís","NAMEASCII":"Sao Luis","POP_MAX":1038000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-63.900012,-8.7500228],"properties":{"NAME":"Porto Velho","NAMEASCII":"Porto Velho","POP_MAX":306180,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.0820018,-12.4700024],"properties":{"NAME":"Alvorada","NAMEASCII":"Alvorada","POP_MAX":10232,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-57.6500059,-19.0160111],"properties":{"NAME":"Corumbá","NAMEASCII":"Corumba","POP_MAX":96520,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.9169504,-19.9130802],"properties":{"NAME":"Belo Horizonte","NAMEASCII":"Belo Horizonte","POP_MAX":5575000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.8600208,-16.7200272],"properties":{"NAME":"Montes Claros","NAMEASCII":"Montes Claros","POP_MAX":332379,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.2799836,-18.8999975],"properties":{"NAME":"Uberlândia","NAMEASCII":"Uberlandia","POP_MAX":563536,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.4505795,-10.8172868],"properties":{"NAME":"Colíder","NAMEASCII":"Colider","POP_MAX":27139,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-55.909983,-9.9000301],"properties":{"NAME":"Alta Floresta","NAMEASCII":"Alta Floresta","POP_MAX":40466,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-56.086931,-15.5676606],"properties":{"NAME":"Cuiabá","NAMEASCII":"Cuiaba","POP_MAX":806000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-52.3300206,-31.7500142],"properties":{"NAME":"Pelotas","NAMEASCII":"Pelotas","POP_MAX":320674,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.1700397,-29.1799902],"properties":{"NAME":"Caxias do Sul","NAMEASCII":"Caxias do Sul","POP_MAX":381270,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-50.1600497,-25.0900073],"properties":{"NAME":"Ponta Grossa","NAMEASCII":"Ponta Grossa","POP_MAX":292177,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-42.7819551,-5.0930545],"properties":{"NAME":"Teresina","NAMEASCII":"Teresina","POP_MAX":907000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.7319203,-9.6180496],"properties":{"NAME":"Maceió","NAMEASCII":"Maceio","POP_MAX":1186000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.8399984,-14.8500122],"properties":{"NAME":"Vitória da Conquista","NAMEASCII":"Vitoria da Conquista","POP_MAX":308204,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-45.0000029,-12.1399967],"properties":{"NAME":"Barreiras","NAMEASCII":"Barreiras","POP_MAX":158292,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.290232724874905,-20.338046307430577],"properties":{"NAME":"Vila Velha","NAMEASCII":"Vila Velha","POP_MAX":1209091,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-35.2419502,-5.7780773],"properties":{"NAME":"Natal","NAMEASCII":"Natal","POP_MAX":1088000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-97.8666209,55.749942],"properties":{"NAME":"Thompson","NAMEASCII":"Thompson","POP_MAX":13727,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-99.9499821,49.8332748],"properties":{"NAME":"Brandon","NAMEASCII":"Brandon","POP_MAX":28418,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-111.8833364,60.0000185],"properties":{"NAME":"Fort Smith","NAMEASCII":"Fort Smith","POP_MAX":518,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-111.3833153,56.7333187],"properties":{"NAME":"Fort McMurray","NAMEASCII":"Fort McMurray","POP_MAX":21863,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-117.2832911,56.2333234],"properties":{"NAME":"Peace River","NAMEASCII":"Peace River","POP_MAX":5340,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-120.8332811,56.249989],"properties":{"NAME":"Fort St. John","NAMEASCII":"Fort St. John","POP_MAX":18776,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-68.5001917,63.7504594],"properties":{"NAME":"Iqaluit","NAMEASCII":"Iqaluit","POP_MAX":6124,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-105.0333153,69.1169556],"properties":{"NAME":"Cambridge Bay","NAMEASCII":"Cambridge Bay","POP_MAX":1477,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-115.1253504,67.7986628],"properties":{"NAME":"Kugluktuk","NAMEASCII":"Kugluktuk","POP_MAX":1302,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-90.7000816,63.3382902],"properties":{"NAME":"Chesterfield Inlet","NAMEASCII":"Chesterfield Inlet","POP_MAX":374,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.0586067,61.1085921],"properties":{"NAME":"Arviat","NAMEASCII":"Arviat","POP_MAX":1868,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-93.5333195,69.5333126],"properties":{"NAME":"Taloyoak","NAMEASCII":"Taloyoak","POP_MAX":774,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.7935921,69.2565351],"properties":{"NAME":"Igloolik","NAMEASCII":"Igloolik","POP_MAX":1612,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-139.4166687,64.0666437],"properties":{"NAME":"Dawson City","NAMEASCII":"Dawson City","POP_MAX":1319,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-81.3333149,48.4665882],"properties":{"NAME":"Timmins","NAMEASCII":"Timmins","POP_MAX":34974,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.4499931,46.3000021],"properties":{"NAME":"North Bay","NAMEASCII":"North Bay","POP_MAX":50170,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-77.7658324,55.2814952],"properties":{"NAME":"Kuujjuarapik","NAMEASCII":"Kuujjuarapik","POP_MAX":1243,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-68.3999958,58.1000053],"properties":{"NAME":"Kuujjuaq","NAMEASCII":"Kuujjuaq","POP_MAX":1273,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-60.1799807,46.0661145],"properties":{"NAME":"Sydney","NAMEASCII":"Sydney","POP_MAX":37538,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-66.9158745,52.9414313],"properties":{"NAME":"Labrador City","NAMEASCII":"Labrador City","POP_MAX":10313,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[11.1500065,2.9000155],"properties":{"NAME":"Ebolowa","NAMEASCII":"Ebolowa","POP_MAX":87875,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[20.6672033,5.7619597],"properties":{"NAME":"Bambari","NAMEASCII":"Bambari","POP_MAX":62098,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[12.3349987,45.4386593],"properties":{"NAME":"Venice","NAMEASCII":"Venice","POP_MAX":270816,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[-72.3000161,-50.3333244],"properties":{"NAME":"El Calafate","NAMEASCII":"El Calafate","POP_MAX":8000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.5199884,-31.5500264],"properties":{"NAME":"San Juan","NAMEASCII":"San Juan","POP_MAX":447048,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.0999905,-43.3000069],"properties":{"NAME":"Rawson","NAMEASCII":"Rawson","POP_MAX":26335,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.0599907,-38.9500399],"properties":{"NAME":"Neuquén","NAMEASCII":"Neuquen","POP_MAX":242092,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.8999768,-14.8333724],"properties":{"NAME":"Trinidad","NAMEASCII":"Trinidad","POP_MAX":84259,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-64.2999876,-36.6200012],"properties":{"NAME":"Santa Rosa","NAMEASCII":"Santa Rosa","POP_MAX":111424,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-71.2999996,-41.1499573],"properties":{"NAME":"Bariloche","NAMEASCII":"San Carlos de Bariloche","POP_MAX":95394,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.4166378,-24.7833594],"properties":{"NAME":"Salta","NAMEASCII":"Salta","POP_MAX":512686,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.21857,-26.8140543],"properties":{"NAME":"Tucumán","NAMEASCII":"Tucuman","POP_MAX":830000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-58.1828158,-26.1728353],"properties":{"NAME":"Formosa","NAMEASCII":"Formosa","POP_MAX":221383,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.6900013,-31.6238721],"properties":{"NAME":"Santa Fe","NAMEASCII":"Santa Fe","POP_MAX":489505,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-60.6682535,-32.9491837],"properties":{"NAME":"Rosario","NAMEASCII":"Rosario","POP_MAX":1203000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-47.05588541861934,-22.90789786605005],"properties":{"NAME":"Campinas","NAMEASCII":"Campinas","POP_MAX":2791000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.4699813,-23.4900016],"properties":{"NAME":"Sorocaba","NAMEASCII":"Sorocaba","POP_MAX":563281,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.8299852,-21.1700399],"properties":{"NAME":"Ribeirão Preto","NAMEASCII":"Ribeirao Preto","POP_MAX":551267,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-40.5099669,-9.3800102],"properties":{"NAME":"Petrolina","NAMEASCII":"Petrolina","POP_MAX":260985,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[10.1500158,5.9599837],"properties":{"NAME":"Bamenda","NAMEASCII":"Bamenda","POP_MAX":445299,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[13.3900248,9.3000124],"properties":{"NAME":"Garoua","NAMEASCII":"Garoua","POP_MAX":436899,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[62.169993,34.3300092],"properties":{"NAME":"Herat","NAMEASCII":"Herat","POP_MAX":481009,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[67.100028,36.6999937],"properties":{"NAME":"Mazar-i-Sharif","NAMEASCII":"Mazar-e Sharif","POP_MAX":458151,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[103.2000468,13.100013],"properties":{"NAME":"Battambang","NAMEASCII":"Battambang","POP_MAX":154773,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[103.8500329,13.3666376],"properties":{"NAME":"Siem Reap","NAMEASCII":"Siem Reap","POP_MAX":109398,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[16.3400256,-9.5400004],"properties":{"NAME":"Malanje","NAMEASCII":"Malanje","POP_MAX":125856,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.407233,-12.5782645],"properties":{"NAME":"Benguela","NAMEASCII":"Benguela","POP_MAX":151226,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[13.4900187,-14.9100085],"properties":{"NAME":"Lubango","NAMEASCII":"Lubango","POP_MAX":125632,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[12.1600223,-15.1900431],"properties":{"NAME":"Moçâmedes","NAMEASCII":"Namibe","POP_MAX":132900,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[-64.749986,-21.5166854],"properties":{"NAME":"Tarija","NAMEASCII":"Tarija","POP_MAX":159269,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-59.6165267,13.1020026],"properties":{"NAME":"Bridgetown","NAMEASCII":"Bridgetown","POP_MAX":191152,"ISO_A2":"BB","SOV_A3":"BRB"}},{"type":"Point","coordinates":[7.7599808,36.9200061],"properties":{"NAME":"Annaba","NAMEASCII":"Annaba","POP_MAX":503524,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.6200362,9.34001],"properties":{"NAME":"Parakou","NAMEASCII":"Parakou","POP_MAX":188853,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[2.6166255,6.483311],"properties":{"NAME":"Porto-Novo","NAMEASCII":"Porto-Novo","POP_MAX":300000,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[6.5999483,36.3599886],"properties":{"NAME":"Constantine","NAMEASCII":"Constantine","POP_MAX":605179,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[23.6999898,52.0999839],"properties":{"NAME":"Brest","NAMEASCII":"Brest","POP_MAX":300715,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[89.5580549,22.8419329],"properties":{"NAME":"Khulna","NAMEASCII":"Khulna","POP_MAX":1553000,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[27.5000162,-21.1700399],"properties":{"NAME":"Francistown","NAMEASCII":"Francistown","POP_MAX":89979,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[26.8200061,-23.0999996],"properties":{"NAME":"Mahalapye","NAMEASCII":"Mahalapye","POP_MAX":50744,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[26.7100386,-22.3900171],"properties":{"NAME":"Serowe","NAMEASCII":"Serowe","POP_MAX":48573,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[132.266593,-14.4666247],"properties":{"NAME":"Katherine","NAMEASCII":"Katherine","POP_MAX":10141,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.3486592,-33.6564095],"properties":{"NAME":"Busselton","NAMEASCII":"Busselton","POP_MAX":10214,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[115.7470567,-32.5234826],"properties":{"NAME":"Mandurah","NAMEASCII":"Mandurah","POP_MAX":73356,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[122.2307681,-17.9617707],"properties":{"NAME":"Broome","NAMEASCII":"Broome","POP_MAX":13218,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[121.4600175,-30.7353992],"properties":{"NAME":"Kalgoorlie","NAMEASCII":"Kalgoorlie","POP_MAX":36852,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[117.8916048,-35.0169466],"properties":{"NAME":"Albany","NAMEASCII":"Albany","POP_MAX":26445,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[118.6060315,-20.3104024],"properties":{"NAME":"Port Hedland","NAMEASCII":"Port Hedland","POP_MAX":14288,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[116.8700134,-20.7303768],"properties":{"NAME":"Karratha","NAMEASCII":"Karratha","POP_MAX":16796,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[114.5999711,-28.7666304],"properties":{"NAME":"Geraldton","NAMEASCII":"Geraldton","POP_MAX":27258,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.0400158,-34.2900142],"properties":{"NAME":"Griffith","NAMEASCII":"Griffith","POP_MAX":15455,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.0999841,-33.2799984],"properties":{"NAME":"Orange","NAMEASCII":"Orange","POP_MAX":39329,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[148.5973274,-32.2599573],"properties":{"NAME":"Dubbo","NAMEASCII":"Dubbo","POP_MAX":31574,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.667476,-30.512312],"properties":{"NAME":"Armidale","NAMEASCII":"Armidale","POP_MAX":22673,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[141.4331136,-31.9499503],"properties":{"NAME":"Broken Hill","NAMEASCII":"Broken Hill","POP_MAX":17395,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[135.86658,-34.733243],"properties":{"NAME":"Port Lincoln","NAMEASCII":"Port Lincoln","POP_MAX":13630,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[137.5614119,-33.0250268],"properties":{"NAME":"Whyalla","NAMEASCII":"Whyalla","POP_MAX":22559,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[141.5900032,-38.3399996],"properties":{"NAME":"Portland","NAMEASCII":"Portland","POP_MAX":11808,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[144.2800199,-36.7599927],"properties":{"NAME":"Bendigo","NAMEASCII":"Bendigo","POP_MAX":81657,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.3,-36.3600171],"properties":{"NAME":"Wangaratta","NAMEASCII":"Wangaratta","POP_MAX":14022,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[142.6501969,-25.4332422],"properties":{"NAME":"Windorah","NAMEASCII":"Windorah","POP_MAX":158,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[139.490028,-20.7238655],"properties":{"NAME":"Mount Isa","NAMEASCII":"Mount Isa","POP_MAX":33200,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[150.5200008,-23.3639111],"properties":{"NAME":"Rockhampton","NAMEASCII":"Rockhampton","POP_MAX":65850,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[145.7633309,-16.8878399],"properties":{"NAME":"Cairns","NAMEASCII":"Cairns","POP_MAX":154225,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.4482458,-28.0815043],"properties":{"NAME":"Gold Coast","NAMEASCII":"Gold Coast","POP_MAX":527660,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.3311017,-41.1926676],"properties":{"NAME":"Devonport","NAMEASCII":"Devonport","POP_MAX":19317,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[-4.2899813,11.1799752],"properties":{"NAME":"Bobo Dioulasso","NAMEASCII":"Bobo Dioulasso","POP_MAX":360106,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[88.6030744,24.3769296],"properties":{"NAME":"Rajshahi","NAMEASCII":"Rajshahi","POP_MAX":810000,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[96.083083,21.9719343],"properties":{"NAME":"Mandalay","NAMEASCII":"Mandalay","POP_MAX":1300000,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[92.8800048,20.1399968],"properties":{"NAME":"Sittwe","NAMEASCII":"Sittwe","POP_MAX":179032,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[29.3600061,-3.3760872],"properties":{"NAME":"Bujumbura","NAMEASCII":"Bujumbura","POP_MAX":331700,"ISO_A2":"BI","SOV_A3":"BDI"}},{"type":"Point","coordinates":[-170.7066451,-14.2766105],"properties":{"NAME":"Pago Pago","NAMEASCII":"Pago Pago","POP_MAX":12576,"ISO_A2":"AS","SOV_A3":"USA"}},{"type":"Point","coordinates":[-61.220236420747256,13.155756013621149],"properties":{"NAME":"Kingstown","NAMEASCII":"Kingstown","POP_MAX":49485,"ISO_A2":"VC","SOV_A3":"VCT"}},{"type":"Point","coordinates":[-60.99287543435381,14.007874585883364],"properties":{"NAME":"Castries","NAMEASCII":"Castries","POP_MAX":37963,"ISO_A2":"LC","SOV_A3":"LCA"}},{"type":"Point","coordinates":[-62.7170093,17.3020305],"properties":{"NAME":"Basseterre","NAMEASCII":"Basseterre","POP_MAX":21887,"ISO_A2":"KN","SOV_A3":"KNA"}},{"type":"Point","coordinates":[-15.429999,28.099976],"properties":{"NAME":"Las Palmas","NAMEASCII":"Las Palmas","POP_MAX":378495,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[45.0164148,10.4355504],"properties":{"NAME":"Berbera","NAMEASCII":"Berbera","POP_MAX":242344,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[57.4999939,-20.1666386],"properties":{"NAME":"Port Louis","NAMEASCII":"Port Louis","POP_MAX":595491,"ISO_A2":"MU","SOV_A3":"MUS"}},{"type":"Point","coordinates":[34.4450187,31.5299992],"properties":{"NAME":"Gaza City","NAMEASCII":"Gaza","POP_MAX":505700,"ISO_A2":"PS","SOV_A3":"IS1"}},{"type":"Point","coordinates":[-61.7416432,12.0526334],"properties":{"NAME":"Saint George's","NAMEASCII":"Saint George's","POP_MAX":33734,"ISO_A2":"GD","SOV_A3":"GRD"}},{"type":"Point","coordinates":[-149.5666694,-17.5333626],"properties":{"NAME":"Papeete","NAMEASCII":"Papeete","POP_MAX":131695,"ISO_A2":"PF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[50.5830517,26.2361363],"properties":{"NAME":"Manama","NAMEASCII":"Manama","POP_MAX":563920,"ISO_A2":"BH","SOV_A3":"BHR"}},{"type":"Point","coordinates":[-78.7000131,26.5332758],"properties":{"NAME":"Freeport","NAMEASCII":"Freeport","POP_MAX":25383,"ISO_A2":"BS","SOV_A3":"BHS"}},{"type":"Point","coordinates":[-61.8500338,17.1180365],"properties":{"NAME":"Saint John's","NAMEASCII":"Saint John's","POP_MAX":35499,"ISO_A2":"AG","SOV_A3":"ATG"}},{"type":"Point","coordinates":[119.5833333,23.5666667],"properties":{"NAME":"Magong","NAMEASCII":"Magong","POP_MAX":56435,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[120.681667,24.1520775],"properties":{"NAME":"Taichung","NAMEASCII":"Taichung","POP_MAX":2629323,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[75.7680439,11.2523819],"properties":{"NAME":"Kozhikode","NAMEASCII":"Kozhikode","POP_MAX":953000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.8254145,20.2723739],"properties":{"NAME":"Bhubaneswar","NAMEASCII":"Bhubaneshwar","POP_MAX":844000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[86.1955728,22.7894813],"properties":{"NAME":"Jamshedpur","NAMEASCII":"Jamshedpur","POP_MAX":1300000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[-56.18682337831074,-34.90537638970807],"properties":{"NAME":"Montevideo","NAMEASCII":"Montevideo","POP_MAX":1513000,"ISO_A2":"UY","SOV_A3":"URY"}},{"type":"Point","coordinates":[-112.035291,46.592749],"properties":{"NAME":"Helena","NAMEASCII":"Helena","POP_MAX":38725,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.7833163,46.8083173],"properties":{"NAME":"Bismarck","NAMEASCII":"Bismarck","POP_MAX":63871,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-116.2274899,43.6085901],"properties":{"NAME":"Boise","NAMEASCII":"Boise","POP_MAX":338071,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.88817862628899,37.33094269973713],"properties":{"NAME":"San Jose","NAMEASCII":"San Jose","POP_MAX":1668000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-121.4719839,38.5769672],"properties":{"NAME":"Sacramento","NAMEASCII":"Sacramento","POP_MAX":1604000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-115.15136155601854,36.16476322583196],"properties":{"NAME":"Las Vegas","NAMEASCII":"Las Vegas","POP_MAX":1823000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-105.9372394,35.6869289],"properties":{"NAME":"Santa Fe","NAMEASCII":"Santa Fe","POP_MAX":92681,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.6819359,45.5219697],"properties":{"NAME":"Portland","NAMEASCII":"Portland","POP_MAX":1875000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-111.9319978,40.7769622],"properties":{"NAME":"Salt Lake City","NAMEASCII":"Salt Lake City","POP_MAX":966000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.8197107,41.1400069],"properties":{"NAME":"Cheyenne","NAMEASCII":"Cheyenne","POP_MAX":72927,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-93.6199809,41.5799801],"properties":{"NAME":"Des Moines","NAMEASCII":"Des Moines","POP_MAX":380655,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.0099901,41.2400008],"properties":{"NAME":"Omaha","NAMEASCII":"Omaha","POP_MAX":877110,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-97.5206294,35.4719888],"properties":{"NAME":"Oklahoma City","NAMEASCII":"Oklahoma City","POP_MAX":788000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-100.350552,44.368337],"properties":{"NAME":"Pierre","NAMEASCII":"Pierre","POP_MAX":13879,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-98.4926929920987,29.419848478603353],"properties":{"NAME":"San Antonio","NAMEASCII":"San Antonio","POP_MAX":1473000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-72.2499675,7.7700025],"properties":{"NAME":"San Cristóbal","NAMEASCII":"San Cristobal","POP_MAX":438798,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-67.9819673,10.2319274],"properties":{"NAME":"Valencia","NAMEASCII":"Valencia","POP_MAX":1770000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-90.1849968,32.2988153],"properties":{"NAME":"Jackson","NAMEASCII":"Jackson","POP_MAX":250902,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.64703463664539,35.77269601271186],"properties":{"NAME":"Raleigh","NAMEASCII":"Raleigh","POP_MAX":1163515,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-81.6969441,41.4719327],"properties":{"NAME":"Cleveland","NAMEASCII":"Cleveland","POP_MAX":1890000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.4588685,39.1638306],"properties":{"NAME":"Cincinnati","NAMEASCII":"Cincinnati","POP_MAX":1636000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-86.7819308,36.1719202],"properties":{"NAME":"Nashville","NAMEASCII":"Nashville","POP_MAX":877000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.02877702278532,35.14470115515157],"properties":{"NAME":"Memphis","NAMEASCII":"Memphis","POP_MAX":1081000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-76.2800057,36.8499587],"properties":{"NAME":"Norfolk","NAMEASCII":"Norfolk","POP_MAX":1047869,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.91667321462553,43.029608354300805],"properties":{"NAME":"Milwaukee","NAMEASCII":"Milwaukee","POP_MAX":1388000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-78.8819479,42.8819241],"properties":{"NAME":"Buffalo","NAMEASCII":"Buffalo","POP_MAX":1016000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.0019313,40.4319445],"properties":{"NAME":"Pittsburgh","NAMEASCII":"Pittsburgh","POP_MAX":1838000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-62.6199868,8.3700175],"properties":{"NAME":"Ciudad Guayana","NAMEASCII":"Ciudad Guayana","POP_MAX":746535,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[1.2208113,6.1338829],"properties":{"NAME":"Lomé","NAMEASCII":"Lome","POP_MAX":1452000,"ISO_A2":"TG","SOV_A3":"TGO"}},{"type":"Point","coordinates":[10.1796781,36.8027781],"properties":{"NAME":"Tunis","NAMEASCII":"Tunis","POP_MAX":2412500,"ISO_A2":"TN","SOV_A3":"TUN"}},{"type":"Point","coordinates":[-152.4069869,57.7899984],"properties":{"NAME":"Kodiak","NAMEASCII":"Kodiak","POP_MAX":9461,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-162.7150916,55.2000014],"properties":{"NAME":"Cold Bay","NAMEASCII":"Cold Bay","POP_MAX":200,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-161.7557961,60.7933034],"properties":{"NAME":"Bethel","NAMEASCII":"Bethel","POP_MAX":6228,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-166.8080201,68.3477261],"properties":{"NAME":"Point Hope","NAMEASCII":"Point Hope","POP_MAX":461,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-156.78858,71.2905697],"properties":{"NAME":"Utqiaġvik","NAMEASCII":"Utqiaġvik","POP_MAX":4336,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-165.4063744,64.5061001],"properties":{"NAME":"Nome","NAMEASCII":"Nome","POP_MAX":3485,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-146.348287,61.1359957],"properties":{"NAME":"Valdez","NAMEASCII":"Valdez","POP_MAX":4036,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-134.40071204654924,58.303386246371936],"properties":{"NAME":"Juneau","NAMEASCII":"Juneau","POP_MAX":30711,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-147.7106586,64.8369843],"properties":{"NAME":"Fairbanks","NAMEASCII":"Fairbanks","POP_MAX":56993,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-148.6693598,70.292181],"properties":{"NAME":"Prudhoe Bay","NAMEASCII":"Prudhoe Bay","POP_MAX":2500,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[33.52439491312476,44.60392525649835],"properties":{"NAME":"Sevastopol","NAMEASCII":"Sevastapol","POP_MAX":379200,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[54.3665934,24.4666836],"properties":{"NAME":"Abu Dhabi","NAMEASCII":"Abu Dhabi","POP_MAX":603492,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[58.3832991,37.9499949],"properties":{"NAME":"Ashgabat","NAMEASCII":"Ashgabat","POP_MAX":727700,"ISO_A2":"TM","SOV_A3":"TKM"}},{"type":"Point","coordinates":[66.9449987,39.6700191],"properties":{"NAME":"Samarkand","NAMEASCII":"Samarqand","POP_MAX":708000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[28.2813817,-15.4146984],"properties":{"NAME":"Lusaka","NAMEASCII":"Lusaka","POP_MAX":1328000,"ISO_A2":"ZM","SOV_A3":"ZMB"}},{"type":"Point","coordinates":[31.0427636,-17.8158438],"properties":{"NAME":"Harare","NAMEASCII":"Harare","POP_MAX":1572000,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[28.580002,-20.1699975],"properties":{"NAME":"Bulawayo","NAMEASCII":"Bulawayo","POP_MAX":699385,"ISO_A2":"ZW","SOV_A3":"ZWE"}},{"type":"Point","coordinates":[125.5794559,-8.5593884],"properties":{"NAME":"Dili","NAMEASCII":"Dili","POP_MAX":234331,"ISO_A2":"TL","SOV_A3":"TLS"}},{"type":"Point","coordinates":[168.3166406,-17.7333504],"properties":{"NAME":"Port Vila","NAMEASCII":"Port Vila","POP_MAX":44040,"ISO_A2":"VU","SOV_A3":"VUT"}},{"type":"Point","coordinates":[-87.2194752,14.1039908],"properties":{"NAME":"Tegucigalpa","NAMEASCII":"Tegucigalpa","POP_MAX":946000,"ISO_A2":"HN","SOV_A3":"HND"}},{"type":"Point","coordinates":[-58.1670286,6.8019737],"properties":{"NAME":"Georgetown","NAMEASCII":"Georgetown","POP_MAX":264350,"ISO_A2":"GY","SOV_A3":"GUY"}},{"type":"Point","coordinates":[-21.936546009025054,64.14345946317033],"properties":{"NAME":"Reykjavík","NAMEASCII":"Reykjavik","POP_MAX":166212,"ISO_A2":"IS","SOV_A3":"ISL"}},{"type":"Point","coordinates":[-72.3379804,18.5429705],"properties":{"NAME":"Port-au-Prince","NAMEASCII":"Port-au-Prince","POP_MAX":1998000,"ISO_A2":"HT","SOV_A3":"HTI"}},{"type":"Point","coordinates":[-4.239100528802634,55.86226975799262],"properties":{"NAME":"Glasgow","NAMEASCII":"Glasgow","POP_MAX":1160000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[32.5813777,0.3186048],"properties":{"NAME":"Kampala","NAMEASCII":"Kampala","POP_MAX":1420000,"ISO_A2":"UG","SOV_A3":"UGA"}},{"type":"Point","coordinates":[45.0094901,12.7797225],"properties":{"NAME":"Aden","NAMEASCII":"Aden","POP_MAX":1000000,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[-55.1670309,5.8350301],"properties":{"NAME":"Paramaribo","NAMEASCII":"Paramaribo","POP_MAX":254169,"ISO_A2":"SR","SOV_A3":"SUR"}},{"type":"Point","coordinates":[-5.9800074,37.4050153],"properties":{"NAME":"Seville","NAMEASCII":"Seville","POP_MAX":1212045,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[8.983317,13.7999962],"properties":{"NAME":"Zinder","NAMEASCII":"Zinder","POP_MAX":230358,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[2.1147102,13.5186518],"properties":{"NAME":"Niamey","NAMEASCII":"Niamey","POP_MAX":915000,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[37.2164257,19.615791],"properties":{"NAME":"Port Sudan","NAMEASCII":"Port Sudan","POP_MAX":489725,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[68.7738794,38.5600352],"properties":{"NAME":"Dushanbe","NAMEASCII":"Dushanbe","POP_MAX":1086244,"ISO_A2":"TJ","SOV_A3":"TJK"}},{"type":"Point","coordinates":[-71.972155,-13.5250285],"properties":{"NAME":"Cusco","NAMEASCII":"Cusco","POP_MAX":361182,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-70.250012,-18.0000008],"properties":{"NAME":"Tacna","NAMEASCII":"Tacna","POP_MAX":280098,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-79.0199677,-8.1200354],"properties":{"NAME":"Trujillo","NAMEASCII":"Trujillo","POP_MAX":765171,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-75.7254918,-14.0679927],"properties":{"NAME":"Ica","NAMEASCII":"Ica","POP_MAX":279420,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-57.62583375528301,-25.29067083610963],"properties":{"NAME":"Asunción","NAMEASCII":"Asuncion","POP_MAX":1870000,"ISO_A2":"PY","SOV_A3":"PRY"}},{"type":"Point","coordinates":[-86.2704375,12.1549624],"properties":{"NAME":"Managua","NAMEASCII":"Managua","POP_MAX":920000,"ISO_A2":"NI","SOV_A3":"NIC"}},{"type":"Point","coordinates":[-13.2361616,8.4719573],"properties":{"NAME":"Freetown","NAMEASCII":"Freetown","POP_MAX":827000,"ISO_A2":"SL","SOV_A3":"SLE"}},{"type":"Point","coordinates":[7.9828096,16.9958734],"properties":{"NAME":"Agadez","NAMEASCII":"Agadez","POP_MAX":117770,"ISO_A2":"NE","SOV_A3":"NER"}},{"type":"Point","coordinates":[24.8899947,12.0599732],"properties":{"NAME":"Nyala","NAMEASCII":"Niyala","POP_MAX":392373,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[27.9899605,7.6999809],"properties":{"NAME":"Wau","NAMEASCII":"Wau","POP_MAX":127384,"ISO_A2":"SS","SOV_A3":"SSD"}},{"type":"Point","coordinates":[30.4832967,19.1665936],"properties":{"NAME":"Dongola","NAMEASCII":"Dongola","POP_MAX":26404,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[36.3900162,15.4599724],"properties":{"NAME":"Kassala","NAMEASCII":"Kassala","POP_MAX":401477,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[18.9920252,69.6350762],"properties":{"NAME":"Tromsø","NAMEASCII":"Tromso","POP_MAX":52436,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[10.4166662,63.4166575],"properties":{"NAME":"Trondheim","NAMEASCII":"Trondheim","POP_MAX":147139,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[5.3245223,60.3910024],"properties":{"NAME":"Bergen","NAMEASCII":"Bergen","POP_MAX":213585,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[73.08063017764825,33.689368483707085],"properties":{"NAME":"Islamabad","NAMEASCII":"Islamabad","POP_MAX":780000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[71.4530618,30.2019229],"properties":{"NAME":"Multan","NAMEASCII":"Multan","POP_MAX":1522000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[68.3730431,25.3819329],"properties":{"NAME":"Hyderabad","NAMEASCII":"Hyderabad","POP_MAX":1459000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[71.5330569,34.006962],"properties":{"NAME":"Peshawar","NAMEASCII":"Peshawar","POP_MAX":1303000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[85.3146964,27.7186378],"properties":{"NAME":"Kathmandu","NAMEASCII":"Kathmandu","POP_MAX":895000,"ISO_A2":"NP","SOV_A3":"NPL"}},{"type":"Point","coordinates":[40.7150236,-14.5186112],"properties":{"NAME":"Nacala","NAMEASCII":"Nacala","POP_MAX":224795,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[26.2299129,-29.1199939],"properties":{"NAME":"Bloemfontein","NAMEASCII":"Bloemfontein","POP_MAX":463064,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[28.2274832,-25.7049747],"properties":{"NAME":"Pretoria","NAMEASCII":"Pretoria","POP_MAX":1338000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[147.1925036,-9.4647078],"properties":{"NAME":"Port Moresby","NAMEASCII":"Port Moresby","POP_MAX":283733,"ISO_A2":"PG","SOV_A3":"PNG"}},{"type":"Point","coordinates":[159.9497657,-9.4379943],"properties":{"NAME":"Honiara","NAMEASCII":"Honiara","POP_MAX":76328,"ISO_A2":"SB","SOV_A3":"SLB"}},{"type":"Point","coordinates":[-79.534983,8.969963],"properties":{"NAME":"Panama City","NAMEASCII":"Panama City","POP_MAX":1281000,"ISO_A2":"PA","SOV_A3":"PAN"}},{"type":"Point","coordinates":[-5.0023231,34.0565455],"properties":{"NAME":"Fez","NAMEASCII":"Fez","POP_MAX":1002000,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-6.8364082,34.0253073],"properties":{"NAME":"Rabat","NAMEASCII":"Rabat","POP_MAX":1705000,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[-8.0019333,31.631939],"properties":{"NAME":"Marrakesh","NAMEASCII":"Marrakesh","POP_MAX":872000,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[28.8577111,47.0050236],"properties":{"NAME":"Chișinău","NAMEASCII":"Chisinau","POP_MAX":688134,"ISO_A2":"MD","SOV_A3":"MDA"}},{"type":"Point","coordinates":[34.8700057,-19.8200447],"properties":{"NAME":"Beira","NAMEASCII":"Beira","POP_MAX":530604,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[25.598083,-33.9680879],"properties":{"NAME":"Port Elizabeth","NAMEASCII":"Port Elizabeth","POP_MAX":1021000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[32.5872171,-25.9533316],"properties":{"NAME":"Maputo","NAMEASCII":"Maputo","POP_MAX":1446000,"ISO_A2":"MZ","SOV_A3":"MOZ"}},{"type":"Point","coordinates":[84.9750093,56.494987],"properties":{"NAME":"Tomsk","NAMEASCII":"Tomsk","POP_MAX":535479,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[177.4749963,64.7369904],"properties":{"NAME":"Anadyr","NAMEASCII":"Anadyr","POP_MAX":10332,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[33.1000362,68.9699878],"properties":{"NAME":"Murmansk","NAMEASCII":"Murmansk","POP_MAX":319263,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[40.5450081,64.5749589],"properties":{"NAME":"Archangel","NAMEASCII":"Archangel","POP_MAX":356051,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[43.9981485,56.3349531],"properties":{"NAME":"Nizhny Novgorod","NAMEASCII":"Nizhny Novgorod","POP_MAX":1278000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[44.4980146,48.7119558],"properties":{"NAME":"Volgograd","NAMEASCII":"Volgograd","POP_MAX":984000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[56.0380854,54.7919207],"properties":{"NAME":"Ufa","NAMEASCII":"Ufa","POP_MAX":1018000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[60.5980138,56.8519758],"properties":{"NAME":"Yekaterinburg","NAMEASCII":"Yekaterinburg","POP_MAX":1313000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[50.1493493,53.1969534],"properties":{"NAME":"Samara","NAMEASCII":"Samara","POP_MAX":1137000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[49.1243989,55.7518879],"properties":{"NAME":"Kazan","NAMEASCII":"Kazan","POP_MAX":1115000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[73.4250166,61.2599416],"properties":{"NAME":"Surgut","NAMEASCII":"Surgut","POP_MAX":400000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[83.7450069,53.3549978],"properties":{"NAME":"Barnaul","NAMEASCII":"Barnaul","POP_MAX":599579,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[82.958096,55.031906],"properties":{"NAME":"Novosibirsk","NAMEASCII":"Novosibirsk","POP_MAX":1389000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[45.3647318,2.0686272],"properties":{"NAME":"Mogadishu","NAMEASCII":"Mogadishu","POP_MAX":1100000,"ISO_A2":"SO","SOV_A3":"SOM"}},{"type":"Point","coordinates":[58.37831058458708,23.58517901476684],"properties":{"NAME":"Muscat","NAMEASCII":"Muscat","POP_MAX":734697,"ISO_A2":"OM","SOV_A3":"OMN"}},{"type":"Point","coordinates":[79.8577506,6.9319658],"properties":{"NAME":"Colombo","NAMEASCII":"Colombo","POP_MAX":217000,"ISO_A2":"LK","SOV_A3":"LKA"}},{"type":"Point","coordinates":[123.8981294,10.3219219],"properties":{"NAME":"Cebu","NAMEASCII":"Cebu","POP_MAX":815000,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[122.5450158,10.7050429],"properties":{"NAME":"Iloilo","NAMEASCII":"Iloilo","POP_MAX":387681,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[125.6280496,7.1119628],"properties":{"NAME":"Davao","NAMEASCII":"Davao","POP_MAX":1402000,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[101.6150272,56.1569973],"properties":{"NAME":"Bratsk","NAMEASCII":"Bratsk","POP_MAX":246348,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[104.28386854457487,52.28460448891496],"properties":{"NAME":"Irkutsk","NAMEASCII":"Irkutsk","POP_MAX":586695,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[92.8640547,56.0159286],"properties":{"NAME":"Krasnoyarsk","NAMEASCII":"Krasnoyarsk","POP_MAX":925000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[80.5450988,73.5069719],"properties":{"NAME":"Dikson","NAMEASCII":"Dikson","POP_MAX":1113,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[113.4650016,52.0550255],"properties":{"NAME":"Chita","NAMEASCII":"Chita","POP_MAX":308500,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[131.9100256,43.1300147],"properties":{"NAME":"Vladivostok","NAMEASCII":"Vladivostok","POP_MAX":587022,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[136.0666194,71.4333258],"properties":{"NAME":"Nizhneyansk","NAMEASCII":"Nizhneyansk","POP_MAX":400,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[129.7350162,62.0349589],"properties":{"NAME":"Yakutsk","NAMEASCII":"Yakutsk","POP_MAX":235600,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[128.8349668,71.6268855],"properties":{"NAME":"Tiksi","NAMEASCII":"Tiksi","POP_MAX":5700,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[150.8100089,59.5749799],"properties":{"NAME":"Magadan","NAMEASCII":"Magadan","POP_MAX":95282,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-117.0819418,32.5019634],"properties":{"NAME":"Tijuana","NAMEASCII":"Tijuana","POP_MAX":1553000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.0869282,28.6469274],"properties":{"NAME":"Chihuahua","NAMEASCII":"Chihuahua","POP_MAX":793000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-106.4200007,23.2211007],"properties":{"NAME":"Mazatlán","NAMEASCII":"Mazatlan","POP_MAX":368204,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-97.8700057,22.30002],"properties":{"NAME":"Tampico","NAMEASCII":"Tampico","POP_MAX":859419,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-99.915979,16.8499909],"properties":{"NAME":"Acapulco","NAMEASCII":"Acapulco","POP_MAX":715584,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-96.1599809,19.1773423],"properties":{"NAME":"Veracruz","NAMEASCII":"Veracruz","POP_MAX":578963,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-93.1500096,16.749997],"properties":{"NAME":"Tuxtla Gutiérrez","NAMEASCII":"Tuxtla Gutierrez","POP_MAX":481128,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-86.8300078,21.1699597],"properties":{"NAME":"Cancún","NAMEASCII":"Cancun","POP_MAX":542043,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-89.6185794,20.9685847],"properties":{"NAME":"Mérida","NAMEASCII":"Merida","POP_MAX":965000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[7.4999967,6.4500314],"properties":{"NAME":"Enugu","NAMEASCII":"Enugu","POP_MAX":688862,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[5.2400313,13.0600155],"properties":{"NAME":"Sokoto","NAMEASCII":"Sokoto","POP_MAX":732178,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[56.2480468,58.0019056],"properties":{"NAME":"Perm","NAMEASCII":"Perm","POP_MAX":997000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[104.118337,49.0532965],"properties":{"NAME":"Erdenet","NAMEASCII":"Erdenet","POP_MAX":79647,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[106.9146699,47.9186193],"properties":{"NAME":"Ulaanbaatar","NAMEASCII":"Ulaanbaatar","POP_MAX":885000,"ISO_A2":"MN","SOV_A3":"MNG"}},{"type":"Point","coordinates":[33.4300419,-8.8900142],"properties":{"NAME":"Mbeya","NAMEASCII":"Mbeya","POP_MAX":291649,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[17.0835461,-22.5700061],"properties":{"NAME":"Windhoek","NAMEASCII":"Windhoek","POP_MAX":268132,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[18.116558,-19.5666235],"properties":{"NAME":"Grootfontein","NAMEASCII":"Grootfontein","POP_MAX":24099,"ISO_A2":"NA","SOV_A3":"NAM"}},{"type":"Point","coordinates":[39.2000256,-6.16],"properties":{"NAME":"Zanzibar","NAMEASCII":"Zanzibar","POP_MAX":403658,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[-0.4019579,39.4869634],"properties":{"NAME":"Valencia","NAMEASCII":"Valencia","POP_MAX":808000,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[159.9500195,59.0840021],"properties":{"NAME":"Palana","NAMEASCII":"Palana","POP_MAX":3671,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[158.6230204,53.0619924],"properties":{"NAME":"Petropavlovsk-Kamchatsky","NAMEASCII":"Petropavlovsk Kamchatskiy","POP_MAX":187282,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[7.489505042885861,9.054620406360845],"properties":{"NAME":"Abuja","NAMEASCII":"Abuja","POP_MAX":1576000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[100.3580675,-0.9580614],"properties":{"NAME":"Padang","NAMEASCII":"Padang","POP_MAX":855000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-15.5983608,11.8650238],"properties":{"NAME":"Bissau","NAMEASCII":"Bissau","POP_MAX":403339,"ISO_A2":"GW","SOV_A3":"GNB"}},{"type":"Point","coordinates":[13.3480814,38.1269689],"properties":{"NAME":"Palermo","NAMEASCII":"Palermo","POP_MAX":863000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[35.9313541,31.9519711],"properties":{"NAME":"Amman","NAMEASCII":"Amman","POP_MAX":1060000,"ISO_A2":"JO","SOV_A3":"JOR"}},{"type":"Point","coordinates":[25.3166353,54.6833663],"properties":{"NAME":"Vilnius","NAMEASCII":"Vilnius","POP_MAX":542366,"ISO_A2":"LT","SOV_A3":"LTU"}},{"type":"Point","coordinates":[24.0999654,56.9500238],"properties":{"NAME":"Riga","NAMEASCII":"Riga","POP_MAX":742572,"ISO_A2":"LV","SOV_A3":"LVA"}},{"type":"Point","coordinates":[74.5832584,42.8750253],"properties":{"NAME":"Bishkek","NAMEASCII":"Bishkek","POP_MAX":837000,"ISO_A2":"KG","SOV_A3":"KGZ"}},{"type":"Point","coordinates":[98.2999841,39.82001],"properties":{"NAME":"Jiayuguan","NAMEASCII":"Jiayuguan","POP_MAX":148279,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[101.768059,36.6219445],"properties":{"NAME":"Xining","NAMEASCII":"Xining","POP_MAX":1048000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[110.2780822,25.281939],"properties":{"NAME":"Guilin","NAMEASCII":"Guilin","POP_MAX":987000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.978035,32.6319296],"properties":{"NAME":"Huainan","NAMEASCII":"Huainan","POP_MAX":1451000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.6680797,23.3719522],"properties":{"NAME":"Shantou","NAMEASCII":"Shantou","POP_MAX":1601000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.6330159,3.3000169],"properties":{"NAME":"Tarakan","NAMEASCII":"Tarakan","POP_MAX":193069,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[39.6879723,-4.0380802],"properties":{"NAME":"Mombasa","NAMEASCII":"Mombasa","POP_MAX":882000,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[27.4832731,-29.3166744],"properties":{"NAME":"Maseru","NAMEASCII":"Maseru","POP_MAX":361324,"ISO_A2":"LS","SOV_A3":"LSO"}},{"type":"Point","coordinates":[47.514678,-18.9146915],"properties":{"NAME":"Antananarivo","NAMEASCII":"Antananarivo","POP_MAX":1697000,"ISO_A2":"MG","SOV_A3":"MDG"}},{"type":"Point","coordinates":[110.4180736,-6.9646716],"properties":{"NAME":"Semarang","NAMEASCII":"Semarang","POP_MAX":1396000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[104.7480838,-2.9780932],"properties":{"NAME":"Palembang","NAMEASCII":"Palembang","POP_MAX":1749000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[114.5800756,-3.3299918],"properties":{"NAME":"Bandjarmasin","NAMEASCII":"Bandjarmasin","POP_MAX":603576,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[119.4300817,-5.138013],"properties":{"NAME":"Makassar","NAMEASCII":"Makassar","POP_MAX":1262000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[4.8280846,45.7719544],"properties":{"NAME":"Lyon","NAMEASCII":"Lyon","POP_MAX":1423000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-78.501997,-0.2130423],"properties":{"NAME":"Quito","NAMEASCII":"Quito","POP_MAX":1701000,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-84.07881396964633,9.930370727948475],"properties":{"NAME":"San José","NAMEASCII":"San Jose","POP_MAX":1284000,"ISO_A2":"CR","SOV_A3":"CRI"}},{"type":"Point","coordinates":[-89.2155758045276,13.703280259193864],"properties":{"NAME":"San Salvador","NAMEASCII":"San Salvador","POP_MAX":1433000,"ISO_A2":"SV","SOV_A3":"SLV"}},{"type":"Point","coordinates":[-76.7674337,17.9770766],"properties":{"NAME":"Kingston","NAMEASCII":"Kingston","POP_MAX":937700,"ISO_A2":"JM","SOV_A3":"JAM"}},{"type":"Point","coordinates":[-75.5163394,10.4016844],"properties":{"NAME":"Cartagena","NAMEASCII":"Cartagena","POP_MAX":887000,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-70.1736084,1.1983106],"properties":{"NAME":"Mitú","NAMEASCII":"Mitu","POP_MAX":5917,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[22.4599621,2.1899813],"properties":{"NAME":"Bumba","NAMEASCII":"Bumba","POP_MAX":160539,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[15.0472025,12.1150424],"properties":{"NAME":"N'Djamena","NAMEASCII":"Ndjamena","POP_MAX":989000,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[20.8299841,13.8399937],"properties":{"NAME":"Abéché","NAMEASCII":"Abeche","POP_MAX":158317,"ISO_A2":"TD","SOV_A3":"TCD"}},{"type":"Point","coordinates":[8.7832775,3.7500153],"properties":{"NAME":"Malabo","NAMEASCII":"Malabo","POP_MAX":155963,"ISO_A2":"GQ","SOV_A3":"GNQ"}},{"type":"Point","coordinates":[32.6500378,25.7000191],"properties":{"NAME":"Luxor","NAMEASCII":"Luxor","POP_MAX":609248,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[38.9333235,15.3333393],"properties":{"NAME":"Asmara","NAMEASCII":"Asmara","POP_MAX":620802,"ISO_A2":"ER","SOV_A3":"ERI"}},{"type":"Point","coordinates":[15.9999947,45.8000067],"properties":{"NAME":"Zagreb","NAMEASCII":"Zagreb","POP_MAX":722526,"ISO_A2":"HR","SOV_A3":"HRV"}},{"type":"Point","coordinates":[24.7280407,59.4338774],"properties":{"NAME":"Tallinn","NAMEASCII":"Tallinn","POP_MAX":394024,"ISO_A2":"EE","SOV_A3":"EST"}},{"type":"Point","coordinates":[91.1000101,29.6450238],"properties":{"NAME":"Lhasa","NAMEASCII":"Lhasa","POP_MAX":219599,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[93.5150048,42.8269841],"properties":{"NAME":"Hami","NAMEASCII":"Hami","POP_MAX":580000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[79.9269454,37.0997109],"properties":{"NAME":"Hotan","NAMEASCII":"Hotan","POP_MAX":408894,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[75.9699259,39.4763359],"properties":{"NAME":"Kashgar","NAMEASCII":"Kashgar","POP_MAX":506640,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.2710916,38.4699195],"properties":{"NAME":"Yinchuan","NAMEASCII":"Yinchuan","POP_MAX":991000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.8480968,27.6219512],"properties":{"NAME":"Pingxiang","NAMEASCII":"Pingxiang","POP_MAX":961000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[129.8850329,32.7649884],"properties":{"NAME":"Nagasaki","NAMEASCII":"Nagasaki","POP_MAX":435455,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[123.9880464,47.3469229],"properties":{"NAME":"Qiqihar","NAMEASCII":"Qiqihar","POP_MAX":1641000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[18.8500016,-5.0300431],"properties":{"NAME":"Kikwit","NAMEASCII":"Kikwit","POP_MAX":637736,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[13.4500211,-5.8166101],"properties":{"NAME":"Matadi","NAMEASCII":"Matadi","POP_MAX":245862,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[25.4724397,-10.7167244],"properties":{"NAME":"Kolwezi","NAMEASCII":"Kolwezi","POP_MAX":418000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[27.4780716,-11.6780789],"properties":{"NAME":"Lubumbashi","NAMEASCII":"Lubumbashi","POP_MAX":1352000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[33.783302,-13.9832951],"properties":{"NAME":"Lilongwe","NAMEASCII":"Lilongwe","POP_MAX":646750,"ISO_A2":"MW","SOV_A3":"MWI"}},{"type":"Point","coordinates":[-90.5289114,14.6230805],"properties":{"NAME":"Guatemala City","NAMEASCII":"Guatemala","POP_MAX":1024000,"ISO_A2":"GT","SOV_A3":"GTM"}},{"type":"Point","coordinates":[-52.3300206,4.9329922],"properties":{"NAME":"Cayenne","NAMEASCII":"Cayenne","POP_MAX":61550,"ISO_A2":"GF","SOV_A3":"FRA"}},{"type":"Point","coordinates":[9.457965,0.3853886],"properties":{"NAME":"Libreville","NAMEASCII":"Libreville","POP_MAX":578156,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[83.21984846162533,17.68290316150216],"properties":{"NAME":"Vishakhapatnam","NAMEASCII":"Vishakhapatnam","POP_MAX":1529000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[178.4417073,-18.1330159],"properties":{"NAME":"Suva","NAMEASCII":"Suva","POP_MAX":175399,"ISO_A2":"FJ","SOV_A3":"FJI"}},{"type":"Point","coordinates":[8.7800219,-0.720022],"properties":{"NAME":"Port-Gentil","NAMEASCII":"Port-Gentil","POP_MAX":116836,"ISO_A2":"GA","SOV_A3":"GAB"}},{"type":"Point","coordinates":[-3.0165965,16.7665851],"properties":{"NAME":"Timbuktu","NAMEASCII":"Timbuktu","POP_MAX":68872,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-70.9399958,-53.1649861],"properties":{"NAME":"Punta Arenas","NAMEASCII":"Punta Arenas","POP_MAX":117430,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.1299677,-20.2499927],"properties":{"NAME":"Iquique","NAMEASCII":"Iquique","POP_MAX":227499,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-70.4000029,-23.6499918],"properties":{"NAME":"Antofagasta","NAMEASCII":"Antofagasta","POP_MAX":309832,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-71.61702619154609,-33.04773936269631],"properties":{"NAME":"Valparaíso","NAMEASCII":"Valparaiso","POP_MAX":854000,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.23311053054022,-39.82165065113458],"properties":{"NAME":"Valdivia","NAMEASCII":"Valdivia","POP_MAX":159599,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-73.050022,-36.8300142],"properties":{"NAME":"Concepción","NAMEASCII":"Concepcion","POP_MAX":889725,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-72.9299777,-41.4699894],"properties":{"NAME":"Puerto Montt","NAMEASCII":"Puerto Montt","POP_MAX":174629,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[-51.7326588,64.1982815],"properties":{"NAME":"Nuuk","NAMEASCII":"Nuuk","POP_MAX":14798,"ISO_A2":"GL","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-15.9753404,18.086427],"properties":{"NAME":"Nouakchott","NAMEASCII":"Nouakchott","POP_MAX":742144,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-8.001985,12.6519605],"properties":{"NAME":"Bamako","NAMEASCII":"Bamako","POP_MAX":1494000,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[-13.0499893,20.5166404],"properties":{"NAME":"Atar","NAMEASCII":"Atar","POP_MAX":44265,"ISO_A2":"MR","SOV_A3":"MRT"}},{"type":"Point","coordinates":[-4.5499913,13.8999901],"properties":{"NAME":"Djenné","NAMEASCII":"Djenne","POP_MAX":32944,"ISO_A2":"ML","SOV_A3":"MLI"}},{"type":"Point","coordinates":[14.4333203,27.0332711],"properties":{"NAME":"Sabha","NAMEASCII":"Sabha","POP_MAX":100249,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[20.0647773,32.1186793],"properties":{"NAME":"Banghazi","NAMEASCII":"Banghazi","POP_MAX":1180000,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[22.8830549,40.6980522],"properties":{"NAME":"Thessaloniki","NAMEASCII":"Thessaloniki","POP_MAX":828000,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[35.5077624,33.873921],"properties":{"NAME":"Beirut","NAMEASCII":"Beirut","POP_MAX":1846000,"ISO_A2":"LB","SOV_A3":"LBN"}},{"type":"Point","coordinates":[44.7888496,41.7269558],"properties":{"NAME":"Tbilisi","NAMEASCII":"Tbilisi","POP_MAX":1100000,"ISO_A2":"GE","SOV_A3":"GEO"}},{"type":"Point","coordinates":[37.4600284,12.6100429],"properties":{"NAME":"Gondar","NAMEASCII":"Gonder","POP_MAX":156230,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[71.4277742,51.1811253],"properties":{"NAME":"Nur-Sultan","NAMEASCII":"Astana","POP_MAX":345604,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[73.1150097,49.884977],"properties":{"NAME":"Qaraghandy","NAMEASCII":"Qaraghandy","POP_MAX":451800,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[76.9130903,43.3269357],"properties":{"NAME":"Almaty","NAMEASCII":"Almaty","POP_MAX":1209000,"ISO_A2":"KZ","SOV_A3":"KAZ"}},{"type":"Point","coordinates":[51.6980919,32.7019512],"properties":{"NAME":"Isfahan","NAMEASCII":"Isfahan","POP_MAX":1628000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[52.5680647,29.631906],"properties":{"NAME":"Shiraz","NAMEASCII":"Shiraz","POP_MAX":1240000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[74.8680472,31.6419384],"properties":{"NAME":"Amritsar","NAMEASCII":"Amritsar","POP_MAX":1212000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[82.9980936,25.3319359],"properties":{"NAME":"Varanasi","NAMEASCII":"Varanasi","POP_MAX":1352000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[86.9813874,23.6852792],"properties":{"NAME":"Asansol","NAMEASCII":"Asansol","POP_MAX":1328000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[81.3722129528492,21.21126196187745],"properties":{"NAME":"Bhilai","NAMEASCII":"Bhilai","POP_MAX":1097000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.4080472,23.2519337],"properties":{"NAME":"Bhopal","NAMEASCII":"Bhopal","POP_MAX":1727000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.1180814,9.9219721],"properties":{"NAME":"Madurai","NAMEASCII":"Madurai","POP_MAX":1294000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[76.9480753,11.0019062],"properties":{"NAME":"Coimbatore","NAMEASCII":"Coimbatore","POP_MAX":1696000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[102.59998,17.9666927],"properties":{"NAME":"Vientiane","NAMEASCII":"Vientiane","POP_MAX":754000,"ISO_A2":"LA","SOV_A3":"LAO"}},{"type":"Point","coordinates":[15.2827436,-4.2572399],"properties":{"NAME":"Brazzaville","NAMEASCII":"Brazzaville","POP_MAX":1355000,"ISO_A2":"CG","SOV_A3":"COG"}},{"type":"Point","coordinates":[-13.6821809,9.5334687],"properties":{"NAME":"Conakry","NAMEASCII":"Conakry","POP_MAX":1494000,"ISO_A2":"GN","SOV_A3":"GIN"}},{"type":"Point","coordinates":[-5.2755026,6.818381],"properties":{"NAME":"Yamoussoukro","NAMEASCII":"Yamoussoukro","POP_MAX":206499,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-72.6699677,-7.6299878],"properties":{"NAME":"Cruzeiro do Sul","NAMEASCII":"Cruzeiro do Sul","POP_MAX":56862,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-69.955261,-4.2012067],"properties":{"NAME":"Leticia","NAMEASCII":"Leticia","POP_MAX":59575,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-60.0019634,-3.0980859],"properties":{"NAME":"Manaus","NAMEASCII":"Manaus","POP_MAX":1753000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-43.3500261,-4.8330009],"properties":{"NAME":"Caxias","NAMEASCII":"Caxias","POP_MAX":134640,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.6999793,-2.4332507],"properties":{"NAME":"Santarém","NAMEASCII":"Santarem","POP_MAX":230428,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.115979,-5.3499719],"properties":{"NAME":"Marabá","NAMEASCII":"Maraba","POP_MAX":166182,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-60.1165996,-12.7166024],"properties":{"NAME":"Vilhena","NAMEASCII":"Vilhena","POP_MAX":63231,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-61.9670034,-10.8333065],"properties":{"NAME":"Ji-Paraná","NAMEASCII":"Ji-Parana","POP_MAX":65016,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-54.6185711,-20.4480863],"properties":{"NAME":"Campo Grande","NAMEASCII":"Campo Grande","POP_MAX":778000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-48.5219664,-27.5780387],"properties":{"NAME":"Florianópolis","NAMEASCII":"Florianopolis","POP_MAX":1023000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.9700092,-12.2500158],"properties":{"NAME":"Feira de Santana","NAMEASCII":"Feira de Santana","POP_MAX":481911,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-97.1659919,49.8829875],"properties":{"NAME":"Winnipeg","NAMEASCII":"Winnipeg","POP_MAX":632063,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.1659941,58.7659853],"properties":{"NAME":"Churchill","NAMEASCII":"Churchill","POP_MAX":1000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-104.6170099,50.450033],"properties":{"NAME":"Regina","NAMEASCII":"Regina","POP_MAX":176183,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-106.6699854,52.1700314],"properties":{"NAME":"Saskatoon","NAMEASCII":"Saskatoon","POP_MAX":198958,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-114.0819441,51.0849376],"properties":{"NAME":"Calgary","NAMEASCII":"Calgary","POP_MAX":1110000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-130.3299882,54.3166703],"properties":{"NAME":"Prince Rupert","NAMEASCII":"Prince Rupert","POP_MAX":14708,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-123.3500009,48.4332827],"properties":{"NAME":"Victoria","NAMEASCII":"Victoria","POP_MAX":289625,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-85.1666209,73.0333057],"properties":{"NAME":"Arctic Bay","NAMEASCII":"Arctic Bay","POP_MAX":604,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-94.9000061,74.6833342],"properties":{"NAME":"Resolute","NAMEASCII":"Resolute","POP_MAX":250,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-86.282935,66.5294669],"properties":{"NAME":"Naujaat","NAMEASCII":"Repulse Bay","POP_MAX":1000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-114.3969814,62.4420142],"properties":{"NAME":"Yellowknife","NAMEASCII":"Yellowknife","POP_MAX":19234,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-128.6333218,66.2666128],"properties":{"NAME":"Fort Good Hope","NAMEASCII":"Fort Good Hope","POP_MAX":597,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-135.0499844,60.716719],"properties":{"NAME":"Whitehorse","NAMEASCII":"Whitehorse","POP_MAX":23276,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-60.6659976,2.816093],"properties":{"NAME":"Boa Vista","NAMEASCII":"Boa Vista","POP_MAX":235150,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.0500212,0.033007],"properties":{"NAME":"Macapá","NAMEASCII":"Macapa","POP_MAX":499166,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-75.7019612,45.4186427],"properties":{"NAME":"Ottawa","NAMEASCII":"Ottawa","POP_MAX":1145000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-87.6499836,55.9833386],"properties":{"NAME":"Fort Severn","NAMEASCII":"Fort Severn","POP_MAX":125,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-89.2749748,48.4461501],"properties":{"NAME":"Thunder Bay","NAMEASCII":"Thunder Bay","POP_MAX":99334,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-71.2456102,46.8399691],"properties":{"NAME":"Québec","NAMEASCII":"Quebec","POP_MAX":624177,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-63.6000045,44.6500252],"properties":{"NAME":"Halifax","NAMEASCII":"Halifax","POP_MAX":359111,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-52.6810069,47.5849882],"properties":{"NAME":"St. John's","NAMEASCII":"St. John's","POP_MAX":131469,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-61.6860454,56.5473515],"properties":{"NAME":"Nain","NAMEASCII":"Nain","POP_MAX":1151,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-63.1313251,46.2492816],"properties":{"NAME":"Charlottetown","NAMEASCII":"Charlottetown","POP_MAX":42402,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[20.653044,8.4091366],"properties":{"NAME":"N'Délé","NAMEASCII":"Ndele","POP_MAX":11764,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[20.4660448,44.8205913],"properties":{"NAME":"Belgrade","NAMEASCII":"Belgrade","POP_MAX":1099000,"ISO_A2":"RS","SOV_A3":"SRB"}},{"type":"Point","coordinates":[26.5000256,5.3999921],"properties":{"NAME":"Obo","NAMEASCII":"Obo","POP_MAX":12887,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[114.9332841,4.8833311],"properties":{"NAME":"Bandar Seri Begawan","NAMEASCII":"Bandar Seri Begawan","POP_MAX":296500,"ISO_A2":"BN","SOV_A3":"BRN"}},{"type":"Point","coordinates":[-65.8999675,-47.7500195],"properties":{"NAME":"Puerto Deseado","NAMEASCII":"Puerto Deseado","POP_MAX":3305,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-69.2165868,-51.6332967],"properties":{"NAME":"Río Gallegos","NAMEASCII":"Rio Gallegos","POP_MAX":85700,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-67.499999,-45.8700309],"properties":{"NAME":"Comodoro Rivadavia","NAMEASCII":"Comodoro Rivadavia","POP_MAX":140850,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-68.818557,-32.8813842],"properties":{"NAME":"Mendoza","NAMEASCII":"Mendoza","POP_MAX":893000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-65.2595156,-19.0409708],"properties":{"NAME":"Sucre","NAMEASCII":"Sucre","POP_MAX":224838,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-66.100007,-10.9830131],"properties":{"NAME":"Riberalta","NAMEASCII":"Riberalta","POP_MAX":74014,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-62.2650214,-38.7400268],"properties":{"NAME":"Bahía Blanca","NAMEASCII":"Bahia Blanca","POP_MAX":281536,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-57.5799844,-38.0000203],"properties":{"NAME":"Mar del Plata","NAMEASCII":"Mar del Plata","POP_MAX":555897,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-64.1842404,-31.3980122],"properties":{"NAME":"Córdoba","NAMEASCII":"Cordoba","POP_MAX":1452000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-55.8851073,-27.3578321],"properties":{"NAME":"Posadas","NAMEASCII":"Posadas","POP_MAX":357119,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[-88.767073,17.2520335],"properties":{"NAME":"Belmopan","NAMEASCII":"Belmopan","POP_MAX":15220,"ISO_A2":"BZ","SOV_A3":"BLZ"}},{"type":"Point","coordinates":[18.5582881,4.3666443],"properties":{"NAME":"Bangui","NAMEASCII":"Bangui","POP_MAX":831925,"ISO_A2":"CF","SOV_A3":"CAF"}},{"type":"Point","coordinates":[14.3246964,10.5955664],"properties":{"NAME":"Maroua","NAMEASCII":"Maroua","POP_MAX":319941,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[11.5147049,3.8686465],"properties":{"NAME":"Yaoundé","NAMEASCII":"Yaounde","POP_MAX":1611000,"ISO_A2":"CM","SOV_A3":"CMR"}},{"type":"Point","coordinates":[19.818883,41.3275407],"properties":{"NAME":"Tirana","NAMEASCII":"Tirana","POP_MAX":895350,"ISO_A2":"AL","SOV_A3":"ALB"}},{"type":"Point","coordinates":[44.5116055,40.1830966],"properties":{"NAME":"Yerevan","NAMEASCII":"Yerevan","POP_MAX":1102000,"ISO_A2":"AM","SOV_A3":"ARM"}},{"type":"Point","coordinates":[49.8602713,40.3972179],"properties":{"NAME":"Baku","NAMEASCII":"Baku","POP_MAX":2122300,"ISO_A2":"AZ","SOV_A3":"AZE"}},{"type":"Point","coordinates":[65.6949458,31.6100202],"properties":{"NAME":"Kandahar","NAMEASCII":"Kandahar","POP_MAX":715542,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[104.9146886,11.551976],"properties":{"NAME":"Phnom Penh","NAMEASCII":"Phnom Penh","POP_MAX":1466000,"ISO_A2":"KH","SOV_A3":"KHM"}},{"type":"Point","coordinates":[17.6999943,-14.6666125],"properties":{"NAME":"Menongue","NAMEASCII":"Menongue","POP_MAX":13030,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[15.7580635,-12.7480395],"properties":{"NAME":"Huambo","NAMEASCII":"Huambo","POP_MAX":1100000,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[-68.151931,-16.4960278],"properties":{"NAME":"La Paz","NAMEASCII":"La Paz","POP_MAX":1590000,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-63.2279422,-17.7519718],"properties":{"NAME":"Santa Cruz","NAMEASCII":"Santa Cruz","POP_MAX":2102998,"ISO_A2":"BO","SOV_A3":"BOL"}},{"type":"Point","coordinates":[-0.6219186,35.7119483],"properties":{"NAME":"Oran","NAMEASCII":"Oran","POP_MAX":798000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[2.404354790887952,6.362980392242672],"properties":{"NAME":"Cotonou","NAMEASCII":"Cotonou","POP_MAX":762000,"ISO_A2":"BJ","SOV_A3":"BEN"}},{"type":"Point","coordinates":[5.5228047,22.7850033],"properties":{"NAME":"Tamanrasset","NAMEASCII":"Tamanrasset","POP_MAX":76000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[3.6699979,32.4899923],"properties":{"NAME":"Ghardaia","NAMEASCII":"Ghardaia","POP_MAX":125480,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[23.3147082,42.6852953],"properties":{"NAME":"Sofia","NAMEASCII":"Sofia","POP_MAX":1185000,"ISO_A2":"BG","SOV_A3":"BGR"}},{"type":"Point","coordinates":[27.5646813,53.9019233],"properties":{"NAME":"Minsk","NAMEASCII":"Minsk","POP_MAX":1805000,"ISO_A2":"BY","SOV_A3":"BLR"}},{"type":"Point","coordinates":[89.639014,27.4729859],"properties":{"NAME":"Thimphu","NAMEASCII":"Thimphu","POP_MAX":98676,"ISO_A2":"BT","SOV_A3":"BTN"}},{"type":"Point","coordinates":[25.9119478,-24.6463135],"properties":{"NAME":"Gaborone","NAMEASCII":"Gaborone","POP_MAX":208411,"ISO_A2":"BW","SOV_A3":"BWA"}},{"type":"Point","coordinates":[130.8500386,-12.425354],"properties":{"NAME":"Darwin","NAMEASCII":"Darwin","POP_MAX":93080,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[133.8800345,-23.7009965],"properties":{"NAME":"Alice Springs","NAMEASCII":"Alice Springs","POP_MAX":27710,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[149.1290262,-35.2830285],"properties":{"NAME":"Canberra","NAMEASCII":"Canberra","POP_MAX":327700,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[151.77024927411264,-32.929507722655686],"properties":{"NAME":"Newcastle","NAMEASCII":"Newcastle","POP_MAX":540796,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[138.598059,-34.9330419],"properties":{"NAME":"Adelaide","NAMEASCII":"Adelaide","POP_MAX":1145000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[146.7699971,-19.2499503],"properties":{"NAME":"Townsville","NAMEASCII":"Townsville","POP_MAX":138954,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[153.0331469,-27.453085],"properties":{"NAME":"Brisbane","NAMEASCII":"Brisbane","POP_MAX":1860000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[147.2950297,-42.8500085],"properties":{"NAME":"Hobart","NAMEASCII":"Hobart","POP_MAX":80870,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[-1.5266696,12.3722618],"properties":{"NAME":"Ouagadougou","NAMEASCII":"Ouagadougou","POP_MAX":1149000,"ISO_A2":"BF","SOV_A3":"BFA"}},{"type":"Point","coordinates":[18.3830017,43.8500224],"properties":{"NAME":"Sarajevo","NAMEASCII":"Sarajevo","POP_MAX":696731,"ISO_A2":"BA","SOV_A3":"BIH"}},{"type":"Point","coordinates":[96.1166727,19.7685029],"properties":{"NAME":"Naypyidaw","NAMEASCII":"Naypyidaw","POP_MAX":930000,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[-66.1299793,18.440023],"properties":{"NAME":"San Juan","NAMEASCII":"San Juan","POP_MAX":2478905,"ISO_A2":"PR","SOV_A3":"USA"}},{"type":"Point","coordinates":[-57.8499679,-51.700011],"properties":{"NAME":"Stanley","NAMEASCII":"Stanley","POP_MAX":2213,"ISO_A2":"FK","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-64.7839374,32.2941903],"properties":{"NAME":"Hamilton","NAMEASCII":"Hamilton","POP_MAX":52320,"ISO_A2":"BM","SOV_A3":"GBR"}},{"type":"Point","coordinates":[-175.2205645,-21.1385124],"properties":{"NAME":"Nuku'alofa","NAMEASCII":"Nukualofa","POP_MAX":42620,"ISO_A2":"TO","SOV_A3":"TON"}},{"type":"Point","coordinates":[44.06531,9.5600224],"properties":{"NAME":"Hargeisa","NAMEASCII":"Hargeysa","POP_MAX":477876,"ISO_A2":"-99","SOV_A3":"SOL"}},{"type":"Point","coordinates":[55.4499898,-4.6166317],"properties":{"NAME":"Victoria","NAMEASCII":"Victoria","POP_MAX":33576,"ISO_A2":"SC","SOV_A3":"SYC"}},{"type":"Point","coordinates":[6.729649806269851,0.337466406982624],"properties":{"NAME":"São Tomé","NAMEASCII":"Sao Tome","POP_MAX":88219,"ISO_A2":"ST","SOV_A3":"STP"}},{"type":"Point","coordinates":[-171.76859897688345,-13.835714958212938],"properties":{"NAME":"Apia","NAMEASCII":"Apia","POP_MAX":61916,"ISO_A2":"WS","SOV_A3":"WSM"}},{"type":"Point","coordinates":[14.5147107,35.8997325],"properties":{"NAME":"Valletta","NAMEASCII":"Valletta","POP_MAX":368250,"ISO_A2":"MT","SOV_A3":"MLT"}},{"type":"Point","coordinates":[73.5089005260037,4.17203699470936],"properties":{"NAME":"Malé","NAMEASCII":"Male","POP_MAX":112927,"ISO_A2":"MV","SOV_A3":"MDV"}},{"type":"Point","coordinates":[35.2066259,31.7784078],"properties":{"NAME":"Jerusalem","NAMEASCII":"Jerusalem","POP_MAX":1029300,"ISO_A2":"IL","SOV_A3":"IS1"}},{"type":"Point","coordinates":[-23.5166889,14.916698],"properties":{"NAME":"Praia","NAMEASCII":"Praia","POP_MAX":113364,"ISO_A2":"CV","SOV_A3":"CPV"}},{"type":"Point","coordinates":[-77.3500438,25.0833901],"properties":{"NAME":"Nassau","NAMEASCII":"Nassau","POP_MAX":227940,"ISO_A2":"BS","SOV_A3":"BHS"}},{"type":"Point","coordinates":[33.3666349,35.1666765],"properties":{"NAME":"Nicosia","NAMEASCII":"Nicosia","POP_MAX":224300,"ISO_A2":"CY","SOV_A3":"CYP"}},{"type":"Point","coordinates":[120.2666019,22.6333071],"properties":{"NAME":"Kaohsiung","NAMEASCII":"Kaohsiung","POP_MAX":2769072,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[114.06115351896277,22.54809707412332],"properties":{"NAME":"Shenzhen","NAMEASCII":"Shenzhen","POP_MAX":7581000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.9964595757144,36.82136457648037],"properties":{"NAME":"Zibo","NAMEASCII":"Zibo","POP_MAX":3061000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[-93.2537322,44.9819251],"properties":{"NAME":"Minneapolis","NAMEASCII":"Minneapolis","POP_MAX":2616000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-157.85830077406945,21.30342908415294],"properties":{"NAME":"Honolulu","NAMEASCII":"Honolulu","POP_MAX":786000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-122.31532231603904,47.600423319460475],"properties":{"NAME":"Seattle","NAMEASCII":"Seattle","POP_MAX":3074000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-112.06736527766587,33.44832240381263],"properties":{"NAME":"Phoenix","NAMEASCII":"Phoenix","POP_MAX":3551000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-117.15088145402623,32.71891385421138],"properties":{"NAME":"San Diego","NAMEASCII":"San Diego","POP_MAX":2916000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.2419264,38.6369636],"properties":{"NAME":"St. Louis","NAMEASCII":"St. Louis","POP_MAX":2199000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-90.08836791917577,29.968907521885654],"properties":{"NAME":"New Orleans","NAMEASCII":"New Orleans","POP_MAX":785000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-96.79468722529398,32.771958135439206],"properties":{"NAME":"Dallas","NAMEASCII":"Dallas","POP_MAX":4798000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-71.6619235,10.7319227],"properties":{"NAME":"Maracaibo","NAMEASCII":"Maracaibo","POP_MAX":2072000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[-71.0719595,42.331906],"properties":{"NAME":"Boston","NAMEASCII":"Boston","POP_MAX":4467000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-82.4605667,27.9489338],"properties":{"NAME":"Tampa","NAMEASCII":"Tampa","POP_MAX":2314000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-75.1798412402816,39.94594243742075],"properties":{"NAME":"Philadelphia","NAMEASCII":"Philadelphia","POP_MAX":5492000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-83.05133408216001,42.33355800559568],"properties":{"NAME":"Detroit","NAMEASCII":"Detroit","POP_MAX":4101000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-149.8874464089115,61.21400426552339],"properties":{"NAME":"Anchorage","NAMEASCII":"Anchorage","POP_MAX":260283,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[105.8480683,21.0352731],"properties":{"NAME":"Hanoi","NAMEASCII":"Hanoi","POP_MAX":4378000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[106.70298470218748,10.762124565177512],"properties":{"NAME":"Ho Chi Minh City","NAMEASCII":"Ho Chi Minh City","POP_MAX":5314000,"ISO_A2":"VN","SOV_A3":"VNM"}},{"type":"Point","coordinates":[32.8624458,39.9291844],"properties":{"NAME":"Ankara","NAMEASCII":"Ankara","POP_MAX":3716000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[19.0813748,47.5019522],"properties":{"NAME":"Budapest","NAMEASCII":"Budapest","POP_MAX":1679000,"ISO_A2":"HU","SOV_A3":"HUN"}},{"type":"Point","coordinates":[44.2046475,15.3566792],"properties":{"NAME":"Sanaa","NAMEASCII":"Sanaa","POP_MAX":2008000,"ISO_A2":"YE","SOV_A3":"YEM"}},{"type":"Point","coordinates":[2.1814245,41.3852454],"properties":{"NAME":"Barcelona","NAMEASCII":"Barcelona","POP_MAX":4920000,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[26.0980008,44.4353177],"properties":{"NAME":"Bucharest","NAMEASCII":"Bucharest","POP_MAX":1942000,"ISO_A2":"RO","SOV_A3":"ROU"}},{"type":"Point","coordinates":[37.1680744,36.2319166],"properties":{"NAME":"Aleppo","NAMEASCII":"Aleppo","POP_MAX":2738000,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[36.29805,33.5019799],"properties":{"NAME":"Damascus","NAMEASCII":"Damascus","POP_MAX":2466000,"ISO_A2":"SY","SOV_A3":"SYR"}},{"type":"Point","coordinates":[8.5480643,47.3819337],"properties":{"NAME":"Zürich","NAMEASCII":"Zurich","POP_MAX":1108000,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[-9.1468122,38.7246687],"properties":{"NAME":"Lisbon","NAMEASCII":"Lisbon","POP_MAX":2812000,"ISO_A2":"PT","SOV_A3":"PRT"}},{"type":"Point","coordinates":[32.5322334,15.5900241],"properties":{"NAME":"Khartoum","NAMEASCII":"Khartoum","POP_MAX":4754000,"ISO_A2":"SD","SOV_A3":"SDN"}},{"type":"Point","coordinates":[39.2172517,21.5188353],"properties":{"NAME":"Jeddah","NAMEASCII":"Jeddah","POP_MAX":3012000,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[39.8180936,21.4319672],"properties":{"NAME":"Makkah","NAMEASCII":"Makkah","POP_MAX":1385000,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[10.7480333,59.9186361],"properties":{"NAME":"Oslo","NAMEASCII":"Oslo","POP_MAX":835000,"ISO_A2":"NO","SOV_A3":"NOR"}},{"type":"Point","coordinates":[74.3480789,31.5619174],"properties":{"NAME":"Lahore","NAMEASCII":"Lahore","POP_MAX":6577000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[66.9880631,24.8719381],"properties":{"NAME":"Karachi","NAMEASCII":"Karachi","POP_MAX":12130000,"ISO_A2":"PK","SOV_A3":"PAK"}},{"type":"Point","coordinates":[31.01094366326237,-29.86066234118211],"properties":{"NAME":"Durban","NAMEASCII":"Durban","POP_MAX":2729000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[30.3140742,59.9409604],"properties":{"NAME":"St. Petersburg","NAMEASCII":"St. Petersburg","POP_MAX":4553000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-103.3319801,20.671962],"properties":{"NAME":"Guadalajara","NAMEASCII":"Guadalajara","POP_MAX":4198000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[-98.20373725542488,19.032593839016364],"properties":{"NAME":"Puebla","NAMEASCII":"Puebla","POP_MAX":2195000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[8.5180919,12.0019227],"properties":{"NAME":"Kano","NAMEASCII":"Kano","POP_MAX":3140000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[21.005346737742283,52.23087197353951],"properties":{"NAME":"Warsaw","NAMEASCII":"Warsaw","POP_MAX":1707000,"ISO_A2":"PL","SOV_A3":"POL"}},{"type":"Point","coordinates":[125.7527449,39.0213846],"properties":{"NAME":"Pyongyang","NAMEASCII":"Pyongyang","POP_MAX":3300000,"ISO_A2":"KP","SOV_A3":"PRK"}},{"type":"Point","coordinates":[39.266396,-6.7980667],"properties":{"NAME":"Dar es Salaam","NAMEASCII":"Dar es Salaam","POP_MAX":2930000,"ISO_A2":"TZ","SOV_A3":"TZA"}},{"type":"Point","coordinates":[98.6480944,3.5819198],"properties":{"NAME":"Medan","NAMEASCII":"Medan","POP_MAX":2115000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-6.256979517281132,53.34673124898314],"properties":{"NAME":"Dublin","NAMEASCII":"Dublin","POP_MAX":1059000,"ISO_A2":"IE","SOV_A3":"IRL"}},{"type":"Point","coordinates":[-10.7996604,6.3145816],"properties":{"NAME":"Monrovia","NAMEASCII":"Monrovia","POP_MAX":1041000,"ISO_A2":"LR","SOV_A3":"LBR"}},{"type":"Point","coordinates":[14.2430655,40.8419711],"properties":{"NAME":"Naples","NAMEASCII":"Naples","POP_MAX":2250000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[9.2030631,45.4719211],"properties":{"NAME":"Milan","NAMEASCII":"Milan","POP_MAX":2945000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[101.68869929106194,3.13979694393525],"properties":{"NAME":"Kuala Lumpur","NAMEASCII":"Kuala Lumpur","POP_MAX":1448000,"ISO_A2":"MY","SOV_A3":"MYS"}},{"type":"Point","coordinates":[103.7900544,36.0579737],"properties":{"NAME":"Lanzhou","NAMEASCII":"Lanzhou","POP_MAX":2561000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[108.3180985,22.8219341],"properties":{"NAME":"Nanning","NAMEASCII":"Nanning","POP_MAX":2167000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.7180928,26.5819888],"properties":{"NAME":"Guiyang","NAMEASCII":"Guiyang","POP_MAX":3662000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[106.5930358,29.5669229],"properties":{"NAME":"Chongqing","NAMEASCII":"Chongqing","POP_MAX":6461000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[119.2981001,26.0819418],"properties":{"NAME":"Fuzhou","NAMEASCII":"Fuzhou","POP_MAX":2606000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.26178516712943,23.12472343296695],"properties":{"NAME":"Guangzhou","NAMEASCII":"Guangzhou","POP_MAX":8829000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.75047406547746,23.02153738850798],"properties":{"NAME":"Dongguan","NAMEASCII":"Dongguan","POP_MAX":4528000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[107.5680667,-6.9480834],"properties":{"NAME":"Bandung","NAMEASCII":"Bandung","POP_MAX":2394000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[112.7488874,-7.24729],"properties":{"NAME":"Surabaya","NAMEASCII":"Surabaya","POP_MAX":2845000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-79.9219878,-2.2180879],"properties":{"NAME":"Guayaquil","NAMEASCII":"Guayaquil","POP_MAX":2514000,"ISO_A2":"EC","SOV_A3":"ECU"}},{"type":"Point","coordinates":[-75.5769559,6.2769491],"properties":{"NAME":"Medellín","NAMEASCII":"Medellin","POP_MAX":3297000,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-76.5019123,3.401905],"properties":{"NAME":"Cali","NAMEASCII":"Cali","POP_MAX":2254000,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[-82.366128,23.1339047],"properties":{"NAME":"Havana","NAMEASCII":"Havana","POP_MAX":2174000,"ISO_A2":"CU","SOV_A3":"CUB"}},{"type":"Point","coordinates":[29.94805,31.2019652],"properties":{"NAME":"Alexandria","NAMEASCII":"Alexandria","POP_MAX":4165000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[8.6750154,50.0999768],"properties":{"NAME":"Frankfurt","NAMEASCII":"Frankfurt","POP_MAX":2895000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[9.9980533,53.5519705],"properties":{"NAME":"Hamburg","NAMEASCII":"Hamburg","POP_MAX":1757000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[11.5730476,48.1318879],"properties":{"NAME":"Munich","NAMEASCII":"Munich","POP_MAX":1275000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[14.422939486203868,50.0869665373215],"properties":{"NAME":"Prague","NAMEASCII":"Prague","POP_MAX":1162000,"ISO_A2":"CZ","SOV_A3":"CZE"}},{"type":"Point","coordinates":[47.9763553,29.3716635],"properties":{"NAME":"Kuwait City","NAMEASCII":"Kuwait City","POP_MAX":2063000,"ISO_A2":"KW","SOV_A3":"KWT"}},{"type":"Point","coordinates":[108.8930504,34.2769713],"properties":{"NAME":"Xian","NAMEASCII":"Xian","POP_MAX":4009000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.5431119,37.8769583],"properties":{"NAME":"Taiyuan","NAMEASCII":"Taiyuan","POP_MAX":2913000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[114.2680712,30.5819772],"properties":{"NAME":"Wuhan","NAMEASCII":"Wuhan","POP_MAX":7243000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[112.9680472,28.2019158],"properties":{"NAME":"Changsha","NAMEASCII":"Changsha","POP_MAX":2604000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[102.69743977228744,25.042859073104868],"properties":{"NAME":"Kunming","NAMEASCII":"Kunming","POP_MAX":2931000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[113.6631469,34.756942],"properties":{"NAME":"Zhengzhou","NAMEASCII":"Zhengzhou","POP_MAX":2636000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[123.4480277,41.8069251],"properties":{"NAME":"Shenyeng","NAMEASCII":"Shenyeng","POP_MAX":4787000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[116.9930728,36.6769282],"properties":{"NAME":"Jinan","NAMEASCII":"Jinan","POP_MAX":2798000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[117.19660728208831,39.08277176197969],"properties":{"NAME":"Tianjin","NAMEASCII":"Tianjin","POP_MAX":7180000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[115.8780504,28.6819381],"properties":{"NAME":"Nanchang","NAMEASCII":"Nanchang","POP_MAX":2350000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[118.7780285,32.051965],"properties":{"NAME":"Nanjing","NAMEASCII":"Nanjing","POP_MAX":3679000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[120.1680728,30.2519198],"properties":{"NAME":"Hangzhou","NAMEASCII":"Hangzhou","POP_MAX":3007000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[132.4409671,34.389781],"properties":{"NAME":"Hiroshima","NAMEASCII":"Hiroshima","POP_MAX":2045000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[125.3380415,43.8669544],"properties":{"NAME":"Changchun","NAMEASCII":"Changchun","POP_MAX":3183000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[109.820074,40.6541531],"properties":{"NAME":"Baotou","NAMEASCII":"Baotou","POP_MAX":2036000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[126.648039,45.7519298],"properties":{"NAME":"Harbin","NAMEASCII":"Harbin","POP_MAX":3621000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[141.3380985,43.0769251],"properties":{"NAME":"Sapporo","NAMEASCII":"Sapporo","POP_MAX":2544000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[-69.92974231579055,18.470745058048376],"properties":{"NAME":"Santo Domingo","NAMEASCII":"Santo Domingo","POP_MAX":2154000,"ISO_A2":"DO","SOV_A3":"DOM"}},{"type":"Point","coordinates":[-0.2186616,5.5519805],"properties":{"NAME":"Accra","NAMEASCII":"Accra","POP_MAX":2121000,"ISO_A2":"GH","SOV_A3":"GHA"}},{"type":"Point","coordinates":[77.2280582,28.6719388],"properties":{"NAME":"Delhi","NAMEASCII":"Delhi","POP_MAX":15926000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[78.4780077,17.401929],"properties":{"NAME":"Hyderabad","NAMEASCII":"Hyderabad","POP_MAX":6376000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[73.85189174674915,18.516394229926586],"properties":{"NAME":"Pune","NAMEASCII":"Pune","POP_MAX":4672000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[79.088048,21.1719056],"properties":{"NAME":"Nagpur","NAMEASCII":"Nagpur","POP_MAX":2454000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[13.1800118,32.8925],"properties":{"NAME":"Tripoli","NAMEASCII":"Tripoli","POP_MAX":2189000,"ISO_A2":"LY","SOV_A3":"LBY"}},{"type":"Point","coordinates":[34.7680659,32.0819373],"properties":{"NAME":"Tel Aviv","NAMEASCII":"Tel Aviv-Yafo","POP_MAX":3112000,"ISO_A2":"IL","SOV_A3":"IS1"}},{"type":"Point","coordinates":[24.932456915043964,60.16380384948568],"properties":{"NAME":"Helsinki","NAMEASCII":"Helsinki","POP_MAX":1115000,"ISO_A2":"FI","SOV_A3":"FIN"}},{"type":"Point","coordinates":[59.5680508,36.2719658],"properties":{"NAME":"Mashhad","NAMEASCII":"Mashhad","POP_MAX":2469000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[75.8080415,26.9230791],"properties":{"NAME":"Jaipur","NAMEASCII":"Jaipur","POP_MAX":2917000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.3180504,26.4619445],"properties":{"NAME":"Kanpur","NAMEASCII":"Kanpur","POP_MAX":3162000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[85.1280928,25.626905],"properties":{"NAME":"Patna","NAMEASCII":"Patna","POP_MAX":2158000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.2780529,13.0919337],"properties":{"NAME":"Chennai","NAMEASCII":"Chennai","POP_MAX":7163000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.5780578,23.0319988],"properties":{"NAME":"Ahmedabad","NAMEASCII":"Ahmedabad","POP_MAX":5375000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[72.8380936,21.2019296],"properties":{"NAME":"Surat","NAMEASCII":"Surat","POP_MAX":3842000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[12.5615399,55.68051],"properties":{"NAME":"København","NAMEASCII":"Kobenhavn","POP_MAX":1085000,"ISO_A2":"DK","SOV_A3":"DNK"}},{"type":"Point","coordinates":[-4.020206835187587,5.323126072244571],"properties":{"NAME":"Abidjan","NAMEASCII":"Abidjan","POP_MAX":3802000,"ISO_A2":"CI","SOV_A3":"CIV"}},{"type":"Point","coordinates":[-48.4819689,-1.4480574],"properties":{"NAME":"Belém","NAMEASCII":"Belem","POP_MAX":2167000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-47.9179981,-15.7813944],"properties":{"NAME":"Brasília","NAMEASCII":"Brasilia","POP_MAX":3716996,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-51.2019579,-30.0480688],"properties":{"NAME":"Porto Alegre","NAMEASCII":"Porto Alegre","POP_MAX":3917000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-49.3219435,-25.4180671],"properties":{"NAME":"Curitiba","NAMEASCII":"Curitiba","POP_MAX":3084000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.5819272,-3.748072],"properties":{"NAME":"Fortaleza","NAMEASCII":"Fortaleza","POP_MAX":3602319,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-38.4819333,-12.968026],"properties":{"NAME":"Salvador","NAMEASCII":"Salvador","POP_MAX":3484000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-113.5019278,53.5519705],"properties":{"NAME":"Edmonton","NAMEASCII":"Edmonton","POP_MAX":1058000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-73.5852428,45.5019451],"properties":{"NAME":"Montréal","NAMEASCII":"Montreal","POP_MAX":3678000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-49.3019705,-16.7180814],"properties":{"NAME":"Goiânia","NAMEASCII":"Goiania","POP_MAX":2022000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-34.908765500024515,-8.06053182704913],"properties":{"NAME":"Recife","NAMEASCII":"Recife","POP_MAX":3651000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[4.3313707,50.8352629],"properties":{"NAME":"Brussels","NAMEASCII":"Brussels","POP_MAX":1743000,"ISO_A2":"BE","SOV_A3":"BEL"}},{"type":"Point","coordinates":[90.4066336,23.7250056],"properties":{"NAME":"Dhaka","NAMEASCII":"Dhaka","POP_MAX":12797394,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[13.2324812,-8.8363403],"properties":{"NAME":"Luanda","NAMEASCII":"Luanda","POP_MAX":5172900,"ISO_A2":"AO","SOV_A3":"AGO"}},{"type":"Point","coordinates":[3.0486067,36.7650107],"properties":{"NAME":"Algiers","NAMEASCII":"Algiers","POP_MAX":3354000,"ISO_A2":"DZ","SOV_A3":"DZA"}},{"type":"Point","coordinates":[91.7980215,22.3319381],"properties":{"NAME":"Chattogram","NAMEASCII":"Chattogram","POP_MAX":4529000,"ISO_A2":"BD","SOV_A3":"BGD"}},{"type":"Point","coordinates":[115.8380529,-31.9530688],"properties":{"NAME":"Perth","NAMEASCII":"Perth","POP_MAX":1532000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[96.1647318,16.7853],"properties":{"NAME":"Yangon","NAMEASCII":"Rangoon","POP_MAX":4088000,"ISO_A2":"MM","SOV_A3":"MMR"}},{"type":"Point","coordinates":[-122.39959956304557,37.784262651527904],"properties":{"NAME":"San Francisco","NAMEASCII":"San Francisco","POP_MAX":3450000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-104.9859618,39.7411339],"properties":{"NAME":"Denver","NAMEASCII":"Denver","POP_MAX":2313000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-95.34843625672217,29.741272831862542],"properties":{"NAME":"Houston","NAMEASCII":"Houston","POP_MAX":4459000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-80.2260519,25.7895566],"properties":{"NAME":"Miami","NAMEASCII":"Miami","POP_MAX":5585000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-84.36764186571386,33.73945728378348],"properties":{"NAME":"Atlanta","NAMEASCII":"Atlanta","POP_MAX":4506000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-87.63523655322338,41.847961283364114],"properties":{"NAME":"Chicago","NAMEASCII":"Chicago","POP_MAX":8990000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-66.9189831,10.5029444],"properties":{"NAME":"Caracas","NAMEASCII":"Caracas","POP_MAX":2985000,"ISO_A2":"VE","SOV_A3":"VEN"}},{"type":"Point","coordinates":[30.5146821,50.4353132],"properties":{"NAME":"Kyiv","NAMEASCII":"Kiev","POP_MAX":2709000,"ISO_A2":"UA","SOV_A3":"UKR"}},{"type":"Point","coordinates":[55.28694561354246,25.21491189371225],"properties":{"NAME":"Dubai","NAMEASCII":"Dubai","POP_MAX":1379000,"ISO_A2":"AE","SOV_A3":"ARE"}},{"type":"Point","coordinates":[69.26882294266261,41.30382822156198],"properties":{"NAME":"Tashkent","NAMEASCII":"Tashkent","POP_MAX":2184000,"ISO_A2":"UZ","SOV_A3":"UZB"}},{"type":"Point","coordinates":[-3.6852975,40.4019721],"properties":{"NAME":"Madrid","NAMEASCII":"Madrid","POP_MAX":5567000,"ISO_A2":"ES","SOV_A3":"ESP"}},{"type":"Point","coordinates":[6.140028,46.2100075],"properties":{"NAME":"Geneva","NAMEASCII":"Geneva","POP_MAX":1240000,"ISO_A2":"CH","SOV_A3":"CHE"}},{"type":"Point","coordinates":[18.066300168534497,59.324127204007475],"properties":{"NAME":"Stockholm","NAMEASCII":"Stockholm","POP_MAX":1264000,"ISO_A2":"SE","SOV_A3":"SWE"}},{"type":"Point","coordinates":[100.5146988,13.7519451],"properties":{"NAME":"Bangkok","NAMEASCII":"Bangkok","POP_MAX":6704000,"ISO_A2":"TH","SOV_A3":"THA"}},{"type":"Point","coordinates":[-77.052008,-12.0460668],"properties":{"NAME":"Lima","NAMEASCII":"Lima","POP_MAX":8012000,"ISO_A2":"PE","SOV_A3":"PER"}},{"type":"Point","coordinates":[-17.475076,14.7177776],"properties":{"NAME":"Dakar","NAMEASCII":"Dakar","POP_MAX":2604000,"ISO_A2":"SN","SOV_A3":"SEN"}},{"type":"Point","coordinates":[28.0280639,-26.1680989],"properties":{"NAME":"Johannesburg","NAMEASCII":"Johannesburg","POP_MAX":3435000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[4.9146943,52.3519145],"properties":{"NAME":"Amsterdam","NAMEASCII":"Amsterdam","POP_MAX":1031000,"ISO_A2":"NL","SOV_A3":"NLD"}},{"type":"Point","coordinates":[-7.6183133,33.6019221],"properties":{"NAME":"Casablanca","NAMEASCII":"Casablanca","POP_MAX":3181000,"ISO_A2":"MA","SOV_A3":"MAR"}},{"type":"Point","coordinates":[126.9977851,37.568295],"properties":{"NAME":"Seoul","NAMEASCII":"Seoul","POP_MAX":9796000,"ISO_A2":"KR","SOV_A3":"KOR"}},{"type":"Point","coordinates":[120.9802713,14.6061048],"properties":{"NAME":"Manila","NAMEASCII":"Manila","POP_MAX":11100000,"ISO_A2":"PH","SOV_A3":"PHL"}},{"type":"Point","coordinates":[-100.3319306,25.671941],"properties":{"NAME":"Monterrey","NAMEASCII":"Monterrey","POP_MAX":3712000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[13.3996028,52.5237645],"properties":{"NAME":"Berlin","NAMEASCII":"Berlin","POP_MAX":3406000,"ISO_A2":"DE","SOV_A3":"DEU"}},{"type":"Point","coordinates":[87.5730598,43.8069581],"properties":{"NAME":"Ürümqi","NAMEASCII":"Urumqi","POP_MAX":3575000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[104.0680736,30.6719459],"properties":{"NAME":"Chengdu","NAMEASCII":"Chengdu","POP_MAX":4123000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[135.50375419006232,34.691095244477914],"properties":{"NAME":"Ōsaka","NAMEASCII":"Osaka","POP_MAX":11294000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[15.313026,-4.3277782],"properties":{"NAME":"Kinshasa","NAMEASCII":"Kinshasa","POP_MAX":7843000,"ISO_A2":"CD","SOV_A3":"COD"}},{"type":"Point","coordinates":[77.19998,28.600023],"properties":{"NAME":"New Delhi","NAMEASCII":"New Delhi","POP_MAX":317797,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[77.5580639,12.971941],"properties":{"NAME":"Bengaluru","NAMEASCII":"Bengaluru","POP_MAX":6787000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[23.7313752,37.9852721],"properties":{"NAME":"Athens","NAMEASCII":"Athens","POP_MAX":3242000,"ISO_A2":"GR","SOV_A3":"GRC"}},{"type":"Point","coordinates":[44.3919229,33.3405944],"properties":{"NAME":"Baghdad","NAMEASCII":"Baghdad","POP_MAX":5054000,"ISO_A2":"IQ","SOV_A3":"IRQ"}},{"type":"Point","coordinates":[38.6980586,9.0352562],"properties":{"NAME":"Addis Ababa","NAMEASCII":"Addis Ababa","POP_MAX":3100000,"ISO_A2":"ET","SOV_A3":"ETH"}},{"type":"Point","coordinates":[51.4223982,35.6738886],"properties":{"NAME":"Tehran","NAMEASCII":"Tehran","POP_MAX":7873000,"ISO_A2":"IR","SOV_A3":"IRN"}},{"type":"Point","coordinates":[-123.1235901,49.2753624],"properties":{"NAME":"Vancouver","NAMEASCII":"Vancouver","POP_MAX":2313328,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-79.38945855491194,43.66464454743429],"properties":{"NAME":"Toronto","NAMEASCII":"Toronto","POP_MAX":5213000,"ISO_A2":"CA","SOV_A3":"CAN"}},{"type":"Point","coordinates":[-58.43251268766426,-34.61071459139255],"properties":{"NAME":"Buenos Aires","NAMEASCII":"Buenos Aires","POP_MAX":12795000,"ISO_A2":"AR","SOV_A3":"ARG"}},{"type":"Point","coordinates":[69.1813142,34.5186361],"properties":{"NAME":"Kabul","NAMEASCII":"Kabul","POP_MAX":3277000,"ISO_A2":"AF","SOV_A3":"AFG"}},{"type":"Point","coordinates":[16.3646931,48.2019611],"properties":{"NAME":"Vienna","NAMEASCII":"Vienna","POP_MAX":2400000,"ISO_A2":"AT","SOV_A3":"AUT"}},{"type":"Point","coordinates":[144.9730704,-37.8180855],"properties":{"NAME":"Melbourne","NAMEASCII":"Melbourne","POP_MAX":4170000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[121.5683333,25.0358333],"properties":{"NAME":"Taipei","NAMEASCII":"Taipei","POP_MAX":6900273,"ISO_A2":"TW","SOV_A3":"TWN"}},{"type":"Point","coordinates":[-118.23198647223317,34.049219260337075],"properties":{"NAME":"Los Angeles","NAMEASCII":"Los Angeles","POP_MAX":12500000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-77.0113644,38.9014952],"properties":{"NAME":"Washington, D.C.","NAMEASCII":"Washington, D.C.","POP_MAX":4338000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-73.99571754361698,40.72156174972766],"properties":{"NAME":"New York","NAMEASCII":"New York","POP_MAX":19040000,"ISO_A2":"US","SOV_A3":"USA"}},{"type":"Point","coordinates":[-0.1186677,51.5019406],"properties":{"NAME":"London","NAMEASCII":"London","POP_MAX":8567000,"ISO_A2":"GB","SOV_A3":"GBR"}},{"type":"Point","coordinates":[28.97427681675554,41.01760173507249],"properties":{"NAME":"Istanbul","NAMEASCII":"Istanbul","POP_MAX":10061000,"ISO_A2":"TR","SOV_A3":"TUR"}},{"type":"Point","coordinates":[46.720487024887696,24.634497474837755],"properties":{"NAME":"Riyadh","NAMEASCII":"Riyadh","POP_MAX":4465000,"ISO_A2":"SA","SOV_A3":"SAU"}},{"type":"Point","coordinates":[18.4330423,-33.9180651],"properties":{"NAME":"Cape Town","NAMEASCII":"Cape Town","POP_MAX":3215000,"ISO_A2":"ZA","SOV_A3":"ZAF"}},{"type":"Point","coordinates":[37.613577,55.75411],"properties":{"NAME":"Moscow","NAMEASCII":"Moscow","POP_MAX":10452000,"ISO_A2":"RU","SOV_A3":"RUS"}},{"type":"Point","coordinates":[-99.1329341,19.4443883],"properties":{"NAME":"Mexico City","NAMEASCII":"Mexico City","POP_MAX":19028000,"ISO_A2":"MX","SOV_A3":"MEX"}},{"type":"Point","coordinates":[3.3895852,6.4452075],"properties":{"NAME":"Lagos","NAMEASCII":"Lagos","POP_MAX":9466000,"ISO_A2":"NG","SOV_A3":"NGA"}},{"type":"Point","coordinates":[12.4813126,41.8979015],"properties":{"NAME":"Rome","NAMEASCII":"Rome","POP_MAX":3339000,"ISO_A2":"IT","SOV_A3":"ITA"}},{"type":"Point","coordinates":[116.39420089260611,39.901720309862675],"properties":{"NAME":"Beijing","NAMEASCII":"Beijing","POP_MAX":11106000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[36.814711,-1.2814009],"properties":{"NAME":"Nairobi","NAMEASCII":"Nairobi","POP_MAX":3010000,"ISO_A2":"KE","SOV_A3":"KEN"}},{"type":"Point","coordinates":[106.8274918,-6.1724718],"properties":{"NAME":"Jakarta","NAMEASCII":"Jakarta","POP_MAX":9125000,"ISO_A2":"ID","SOV_A3":"IDN"}},{"type":"Point","coordinates":[-74.0852898,4.5983694],"properties":{"NAME":"Bogota","NAMEASCII":"Bogota","POP_MAX":7772000,"ISO_A2":"CO","SOV_A3":"COL"}},{"type":"Point","coordinates":[31.2480224,30.0519062],"properties":{"NAME":"Cairo","NAMEASCII":"Cairo","POP_MAX":11893000,"ISO_A2":"EG","SOV_A3":"EGY"}},{"type":"Point","coordinates":[121.4345588,31.2183983],"properties":{"NAME":"Shanghai","NAMEASCII":"Shanghai","POP_MAX":14987000,"ISO_A2":"CN","SOV_A3":"CHN"}},{"type":"Point","coordinates":[139.7494616,35.6869628],"properties":{"NAME":"Tokyo","NAMEASCII":"Tokyo","POP_MAX":35676000,"ISO_A2":"JP","SOV_A3":"JPN"}},{"type":"Point","coordinates":[72.8758393972653,19.06840847529168],"properties":{"NAME":"Mumbai","NAMEASCII":"Mumbai","POP_MAX":18978000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[2.352992461539213,48.85809231626911],"properties":{"NAME":"Paris","NAMEASCII":"Paris","POP_MAX":9904000,"ISO_A2":"FR","SOV_A3":"FRA"}},{"type":"Point","coordinates":[-70.65050407285783,-33.44020506918074],"properties":{"NAME":"Santiago","NAMEASCII":"Santiago","POP_MAX":5720000,"ISO_A2":"CL","SOV_A3":"CHL"}},{"type":"Point","coordinates":[88.36912550443886,22.569578883795778],"properties":{"NAME":"Kolkata","NAMEASCII":"Kolkata","POP_MAX":14787000,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[-43.212117466834385,-22.907308056882364],"properties":{"NAME":"Rio de Janeiro","NAMEASCII":"Rio de Janeiro","POP_MAX":11748000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[-46.6269658,-23.5567337],"properties":{"NAME":"São Paulo","NAMEASCII":"Sao Paulo","POP_MAX":18845000,"ISO_A2":"BR","SOV_A3":"BRA"}},{"type":"Point","coordinates":[151.2125477744749,-33.87137339218338],"properties":{"NAME":"Sydney","NAMEASCII":"Sydney","POP_MAX":4630000,"ISO_A2":"AU","SOV_A3":"AUS"}},{"type":"Point","coordinates":[103.8538748,1.2949793],"properties":{"NAME":"Singapore","NAMEASCII":"Singapore","POP_MAX":5183700,"ISO_A2":"SG","SOV_A3":"SGP"}},{"type":"Point","coordinates":[114.1830635,22.3069268],"properties":{"NAME":"Hong Kong","NAMEASCII":"Hong Kong","POP_MAX":7206000,"ISO_A2":"HK","SOV_A3":"CHN"}},{"type":"Point","coordinates":[171.223143,-42.4716453],"properties":{"NAME":"Greymouth","NAMEASCII":"Greymouth","POP_MAX":10100,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.0290413,-41.1354774],"properties":{"NAME":"Upper Hutt","NAMEASCII":"Upper Hutt","POP_MAX":39200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.6456461,-40.9439199],"properties":{"NAME":"Masterton","NAMEASCII":"Masterton","POP_MAX":20200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.277246,-40.6123613],"properties":{"NAME":"Levin","NAMEASCII":"Levin","POP_MAX":19550,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.5542788,-36.8524493],"properties":{"NAME":"Waitakere","NAMEASCII":"Waitakere","POP_MAX":208100,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.7758388,-36.7912685],"properties":{"NAME":"North Shore","NAMEASCII":"North Shore","POP_MAX":205605,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[176.9827578,-37.9573865],"properties":{"NAME":"Whakatane","NAMEASCII":"Whakatane","POP_MAX":18700,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[171.7486419,-43.8982691],"properties":{"NAME":"Ashburton","NAMEASCII":"Ashburton","POP_MAX":17700,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[172.6510357,-43.3813114],"properties":{"NAME":"Kaiapoi","NAMEASCII":"Kaiapoi","POP_MAX":10200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.0748125,-39.0556393],"properties":{"NAME":"New Plymouth","NAMEASCII":"New Plymouth","POP_MAX":52500,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[171.6027921,-41.7638418],"properties":{"NAME":"Westport","NAMEASCII":"Westport","POP_MAX":3900,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[171.009954,-42.7072393],"properties":{"NAME":"Hokitika","NAMEASCII":"Hokitika","POP_MAX":3078,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[170.9947904,-45.1091974],"properties":{"NAME":"Oamaru","NAMEASCII":"Oamaru","POP_MAX":13000,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.6072108,-40.352691],"properties":{"NAME":"Palmerston North","NAMEASCII":"Palmerston North","POP_MAX":82400,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.0393,-39.9326261],"properties":{"NAME":"Whanganui","NAMEASCII":"Whanganui","POP_MAX":43200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[176.8367996,-39.6382031],"properties":{"NAME":"Hastings","NAMEASCII":"Hastings","POP_MAX":66100,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[178.0180813,-38.6633332],"properties":{"NAME":"Gisborne","NAMEASCII":"Gisborne","POP_MAX":34300,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[176.2482631,-38.1317379],"properties":{"NAME":"Rotorua","NAMEASCII":"Rotorua","POP_MAX":56200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[176.0770528,-38.6930107],"properties":{"NAME":"Taupo","NAMEASCII":"Taupo","POP_MAX":22600,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[176.1536294,-37.6964164],"properties":{"NAME":"Tauranga","NAMEASCII":"Tauranga","POP_MAX":121500,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[171.242469,-44.3971542],"properties":{"NAME":"Timaru","NAMEASCII":"Timaru","POP_MAX":27200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[173.247448,-41.2925917],"properties":{"NAME":"Nelson","NAMEASCII":"Nelson","POP_MAX":60800,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.3229708,-35.7255711],"properties":{"NAME":"Whangarei","NAMEASCII":"Whangarei","POP_MAX":52200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[168.7250813,-45.0226715],"properties":{"NAME":"Queenstown","NAMEASCII":"Queenstown","POP_MAX":16600,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[168.3650058,-46.4094366],"properties":{"NAME":"Invercargill","NAMEASCII":"Invercargill","POP_MAX":49200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[176.926451,-39.4900014],"properties":{"NAME":"Napier","NAMEASCII":"Napier","POP_MAX":57800,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.8849708,-36.9999702],"properties":{"NAME":"Manukau","NAMEASCII":"Manukau","POP_MAX":375600,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.2895781,-37.7782694],"properties":{"NAME":"Hamilton","NAMEASCII":"Hamilton","POP_MAX":148200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[173.9549575,-41.5135172],"properties":{"NAME":"Blenheim","NAMEASCII":"Blenheim","POP_MAX":30300,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[170.4910157,-45.8854231],"properties":{"NAME":"Dunedin","NAMEASCII":"Dunedin","POP_MAX":117700,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.77720094690068,-41.2920679923151],"properties":{"NAME":"Wellington","NAMEASCII":"Wellington","POP_MAX":393400,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[172.6300232,-43.5350216],"properties":{"NAME":"Christchurch","NAMEASCII":"Christchurch","POP_MAX":363200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.763027,-36.8480549],"properties":{"NAME":"Auckland","NAMEASCII":"Auckland","POP_MAX":1377200,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.9123119,-41.2037449],"properties":{"NAME":"Lower Hutt","NAMEASCII":"Lower Hutt","POP_MAX":102400,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.9989305,-40.9034421],"properties":{"NAME":"Paraparaumu","NAMEASCII":"Paraparaumu","POP_MAX":25263,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.8523534,-41.121892],"properties":{"NAME":"Porirua","NAMEASCII":"Porirua","POP_MAX":52500,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.5853163,-37.1384239],"properties":{"NAME":"Thames","NAMEASCII":"Thames","POP_MAX":6756,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.9033065,-37.2014924],"properties":{"NAME":"Pukekohe","NAMEASCII":"Pukekohe","POP_MAX":26300,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.2779749,-39.5794671],"properties":{"NAME":"Hawera","NAMEASCII":"Hawera","POP_MAX":11100,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[173.2726847,-35.1099257],"properties":{"NAME":"Kaitaia","NAMEASCII":"Kaitaia","POP_MAX":5202,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[173.6896859,-42.4011806],"properties":{"NAME":"Kaikoura","NAMEASCII":"Kaikoura","POP_MAX":2172,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[168.9603814,-46.0946819],"properties":{"NAME":"Gore","NAMEASCII":"Gore","POP_MAX":9750,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[167.7584585,-45.4073648],"properties":{"NAME":"Te Anau","NAMEASCII":"Te Anau","POP_MAX":1857,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[168.1665937,-46.8876496],"properties":{"NAME":"Oban","NAMEASCII":"Oban","POP_MAX":310,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.8704708,-38.2245148],"properties":{"NAME":"Tokoroa","NAMEASCII":"Tokoroa","POP_MAX":13350,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[169.1448522,-44.698014],"properties":{"NAME":"Wanaka","NAMEASCII":"Wanaka","POP_MAX":5037,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[174.0165561,-41.2805226],"properties":{"NAME":"Picton","NAMEASCII":"Picton","POP_MAX":2928,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[-176.35075368252146,-44.03266464895095],"properties":{"NAME":"Waitangi","NAMEASCII":"Waitangi","POP_MAX":300,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[-172.4976654,-8.5486182],"properties":{"NAME":"Atafu","NAMEASCII":"Atafu","POP_MAX":524,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[-169.9136254,-19.0659877],"properties":{"NAME":"Alofi","NAMEASCII":"Alofi","POP_MAX":581,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[-177.9264115,-29.2465136],"properties":{"NAME":"Raoul Island Station","NAMEASCII":"Raoul Island Station","POP_MAX":0,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.4702734,-37.8894284],"properties":{"NAME":"Cambridge","NAMEASCII":"Cambridge","POP_MAX":15192,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[173.9506715,-35.2284809],"properties":{"NAME":"Kerikeri","NAMEASCII":"Kerikeri","POP_MAX":5856,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[175.8142414,-38.9888881],"properties":{"NAME":"Turangi","NAMEASCII":"Turangi","POP_MAX":3240,"ISO_A2":"NZ","SOV_A3":"NZL"}},{"type":"Point","coordinates":[77.57229066274353,34.16155933706067],"properties":{"NAME":"Leh","NAMEASCII":"Leh","POP_MAX":30870,"ISO_A2":"IN","SOV_A3":"IND"}},{"type":"Point","coordinates":[80.52432001010749,16.533657954485985],"properties":{"NAME":"Amaravati","NAMEASCII":"Amaravati","POP_MAX":5800000,"ISO_A2":"IN","SOV_A3":"IND"}}]}},"arcs":[],"bbox":[-179.5899789,-89.9999998,179.3833036,82.4833232]} ================================================ FILE: resources/countries-110m.json ================================================ {"type":"Topology","objects":{"countries":{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","arcs":[[[0]],[[1]]],"id":"FJ","properties":{"name":"Fiji"}},{"type":"Polygon","arcs":[[2,3,4,5,6,7,8,9,10]],"id":"TZ","properties":{"name":"Tanzania"}},{"type":"Polygon","arcs":[[11,12,13,14]],"id":"EH","properties":{"name":"W. Sahara"}},{"type":"MultiPolygon","arcs":[[[15,16,17,18]],[[19]],[[20]],[[21]],[[22]],[[23]],[[24]],[[25]],[[26]],[[27]],[[28]],[[29]],[[30]],[[31]],[[32]],[[33]],[[34]],[[35]],[[36]],[[37]],[[38]],[[39]],[[40]],[[41]],[[42]],[[43]],[[44]],[[45]],[[46]],[[47]]],"id":"CA","properties":{"name":"Canada"}},{"type":"MultiPolygon","arcs":[[[-19,48,49,50]],[[51]],[[52]],[[53]],[[54]],[[55]],[[56]],[[57]],[[-17,58]],[[59]]],"id":"US","properties":{"name":"United States of America"}},{"type":"Polygon","arcs":[[60,61,62,63,64,65]],"id":"KZ","properties":{"name":"Kazakhstan"}},{"type":"Polygon","arcs":[[-63,66,67,68,69]],"id":"UZ","properties":{"name":"Uzbekistan"}},{"type":"MultiPolygon","arcs":[[[70,71]],[[72]],[[73]],[[74]]],"id":"PG","properties":{"name":"Papua New Guinea"}},{"type":"MultiPolygon","arcs":[[[-72,75]],[[76,77]],[[78]],[[79,80]],[[81]],[[82]],[[83]],[[84]],[[85]],[[86]],[[87]],[[88]],[[89]]],"id":"ID","properties":{"name":"Indonesia"}},{"type":"MultiPolygon","arcs":[[[90,91]],[[92,93,94,95,96,97]]],"id":"AR","properties":{"name":"Argentina"}},{"type":"MultiPolygon","arcs":[[[-92,98]],[[99,-95,100,101]]],"id":"CL","properties":{"name":"Chile"}},{"type":"Polygon","arcs":[[-8,102,103,104,105,106,107,108,109,110,111]],"id":"CD","properties":{"name":"Dem. Rep. Congo"}},{"type":"Polygon","arcs":[[112,113,114,115]],"id":"SO","properties":{"name":"Somalia"}},{"type":"Polygon","arcs":[[-3,116,117,118,-113,119]],"id":"KE","properties":{"name":"Kenya"}},{"type":"Polygon","arcs":[[120,121,122,123,124,125,126,127]],"id":"SD","properties":{"name":"Sudan"}},{"type":"Polygon","arcs":[[-122,128,129,130,131]],"id":"TD","properties":{"name":"Chad"}},{"type":"Polygon","arcs":[[132,133]],"id":"HT","properties":{"name":"Haiti"}},{"type":"Polygon","arcs":[[-133,134]],"id":"DO","properties":{"name":"Dominican Rep."}},{"type":"MultiPolygon","arcs":[[[135]],[[136]],[[137]],[[138]],[[139]],[[140]],[[141,142,143]],[[144]],[[145]],[[146,147,148,149,-66,150,151,152,153,154,155,156,157,158,159,160,161]],[[162]],[[163,164]]],"id":"RU","properties":{"name":"Russia"}},{"type":"MultiPolygon","arcs":[[[165]],[[166]],[[167]]],"id":"BS","properties":{"name":"Bahamas"}},{"type":"Polygon","arcs":[[168]],"id":"FK","properties":{"name":"Falkland Is."}},{"type":"MultiPolygon","arcs":[[[169]],[[-161,170,171,172]],[[173]],[[174]]],"id":"NO","properties":{"name":"Norway"}},{"type":"Polygon","arcs":[[175]],"id":"GL","properties":{"name":"Greenland"}},{"type":"Polygon","arcs":[[176]],"id":"TF","properties":{"name":"Fr. S. Antarctic Lands"}},{"type":"Polygon","arcs":[[177,-77]],"id":"TL","properties":{"name":"Timor-Leste"}},{"type":"Polygon","arcs":[[178,179,180,181,182,183,184],[185]],"id":"ZA","properties":{"name":"South Africa"}},{"type":"Polygon","arcs":[[-186]],"id":"LS","properties":{"name":"Lesotho"}},{"type":"Polygon","arcs":[[-50,186,187,188,189]],"id":"MX","properties":{"name":"Mexico"}},{"type":"Polygon","arcs":[[190,191,-93]],"id":"UY","properties":{"name":"Uruguay"}},{"type":"Polygon","arcs":[[-191,-98,192,193,194,195,196,197,198,199,200]],"id":"BR","properties":{"name":"Brazil"}},{"type":"Polygon","arcs":[[-194,201,-96,-100,202]],"id":"BO","properties":{"name":"Bolivia"}},{"type":"Polygon","arcs":[[-195,-203,-102,203,204,205]],"id":"PE","properties":{"name":"Peru"}},{"type":"Polygon","arcs":[[-196,-206,206,207,208,209,210]],"id":"CO","properties":{"name":"Colombia"}},{"type":"Polygon","arcs":[[-209,211,212,213]],"id":"PA","properties":{"name":"Panama"}},{"type":"Polygon","arcs":[[-213,214,215,216]],"id":"CR","properties":{"name":"Costa Rica"}},{"type":"Polygon","arcs":[[-216,217,218,219]],"id":"NI","properties":{"name":"Nicaragua"}},{"type":"Polygon","arcs":[[-219,220,221,222,223]],"id":"HN","properties":{"name":"Honduras"}},{"type":"Polygon","arcs":[[-222,224,225]],"id":"SV","properties":{"name":"El Salvador"}},{"type":"Polygon","arcs":[[-189,226,227,-223,-226,228]],"id":"GT","properties":{"name":"Guatemala"}},{"type":"Polygon","arcs":[[-188,229,-227]],"id":"BZ","properties":{"name":"Belize"}},{"type":"Polygon","arcs":[[-197,-211,230,231]],"id":"VE","properties":{"name":"Venezuela"}},{"type":"Polygon","arcs":[[-198,-232,232,233]],"id":"GY","properties":{"name":"Guyana"}},{"type":"Polygon","arcs":[[-199,-234,234,235]],"id":"SR","properties":{"name":"Suriname"}},{"type":"MultiPolygon","arcs":[[[-200,-236,236]],[[237,238,239,240,241,242,243,244]],[[245]]],"id":"FR","properties":{"name":"France"}},{"type":"Polygon","arcs":[[-205,246,-207]],"id":"EC","properties":{"name":"Ecuador"}},{"type":"Polygon","arcs":[[247]],"id":"PR","properties":{"name":"Puerto Rico"}},{"type":"Polygon","arcs":[[248]],"id":"JM","properties":{"name":"Jamaica"}},{"type":"Polygon","arcs":[[249]],"id":"CU","properties":{"name":"Cuba"}},{"type":"Polygon","arcs":[[-181,250,251,252]],"id":"ZW","properties":{"name":"Zimbabwe"}},{"type":"Polygon","arcs":[[-180,253,254,-251]],"id":"BW","properties":{"name":"Botswana"}},{"type":"Polygon","arcs":[[-179,255,256,257,-254]],"id":"NA","properties":{"name":"Namibia"}},{"type":"Polygon","arcs":[[258,259,260,261,262,263,264]],"id":"SN","properties":{"name":"Senegal"}},{"type":"Polygon","arcs":[[-261,265,266,267,268,269,270]],"id":"ML","properties":{"name":"Mali"}},{"type":"Polygon","arcs":[[-13,271,-266,-260,272]],"id":"MR","properties":{"name":"Mauritania"}},{"type":"Polygon","arcs":[[273,274,275,276,277]],"id":"BJ","properties":{"name":"Benin"}},{"type":"Polygon","arcs":[[-131,278,279,-277,280,-268,281,282]],"id":"NE","properties":{"name":"Niger"}},{"type":"Polygon","arcs":[[-278,-280,283,284]],"id":"NG","properties":{"name":"Nigeria"}},{"type":"Polygon","arcs":[[-130,285,286,287,288,289,-284,-279]],"id":"CM","properties":{"name":"Cameroon"}},{"type":"Polygon","arcs":[[-275,290,291,292]],"id":"TG","properties":{"name":"Togo"}},{"type":"Polygon","arcs":[[-292,293,294,295]],"id":"GH","properties":{"name":"Ghana"}},{"type":"Polygon","arcs":[[-270,296,-295,297,298,299]],"id":"CI","properties":{"name":"Côte d'Ivoire"}},{"type":"Polygon","arcs":[[-262,-271,-300,300,301,302,303]],"id":"GN","properties":{"name":"Guinea"}},{"type":"Polygon","arcs":[[-263,-304,304]],"id":"GW","properties":{"name":"Guinea-Bissau"}},{"type":"Polygon","arcs":[[-299,305,306,-301]],"id":"LR","properties":{"name":"Liberia"}},{"type":"Polygon","arcs":[[-302,-307,307]],"id":"SL","properties":{"name":"Sierra Leone"}},{"type":"Polygon","arcs":[[-269,-281,-276,-293,-296,-297]],"id":"BF","properties":{"name":"Burkina Faso"}},{"type":"Polygon","arcs":[[-108,308,-286,-129,-121,309]],"id":"CF","properties":{"name":"Central African Rep."}},{"type":"Polygon","arcs":[[-107,310,311,312,-287,-309]],"id":"CG","properties":{"name":"Congo"}},{"type":"Polygon","arcs":[[-288,-313,313,314]],"id":"GA","properties":{"name":"Gabon"}},{"type":"Polygon","arcs":[[-289,-315,315]],"id":"GQ","properties":{"name":"Eq. Guinea"}},{"type":"Polygon","arcs":[[-7,316,317,-252,-255,-258,318,-103]],"id":"ZM","properties":{"name":"Zambia"}},{"type":"Polygon","arcs":[[-6,319,-317]],"id":"MW","properties":{"name":"Malawi"}},{"type":"Polygon","arcs":[[-5,320,-184,321,-182,-253,-318,-320]],"id":"MZ","properties":{"name":"Mozambique"}},{"type":"Polygon","arcs":[[-183,-322]],"id":"SZ","properties":{"name":"eSwatini"}},{"type":"MultiPolygon","arcs":[[[-106,322,-311]],[[-104,-319,-257,323]]],"id":"AO","properties":{"name":"Angola"}},{"type":"Polygon","arcs":[[-9,-112,324]],"id":"BI","properties":{"name":"Burundi"}},{"type":"Polygon","arcs":[[325,326,327,328,329,330,331]],"id":"IL","properties":{"name":"Israel"}},{"type":"Polygon","arcs":[[-331,332,333]],"id":"LB","properties":{"name":"Lebanon"}},{"type":"Polygon","arcs":[[334]],"id":"MG","properties":{"name":"Madagascar"}},{"type":"Polygon","arcs":[[-327,335]],"id":"PS","properties":{"name":"Palestine"}},{"type":"Polygon","arcs":[[-265,336]],"id":"GM","properties":{"name":"Gambia"}},{"type":"Polygon","arcs":[[337,338,339]],"id":"TN","properties":{"name":"Tunisia"}},{"type":"Polygon","arcs":[[-12,340,341,-338,342,-282,-267,-272]],"id":"DZ","properties":{"name":"Algeria"}},{"type":"Polygon","arcs":[[-326,343,344,345,346,-328,-336]],"id":"400","properties":{"name":"Jordan"}},{"type":"Polygon","arcs":[[347,348,349,350,351]],"id":"AE","properties":{"name":"United Arab Emirates"}},{"type":"Polygon","arcs":[[352,353]],"id":"QA","properties":{"name":"Qatar"}},{"type":"Polygon","arcs":[[354,355,356]],"id":"KW","properties":{"name":"Kuwait"}},{"type":"Polygon","arcs":[[-345,357,358,359,360,-357,361]],"id":"IQ","properties":{"name":"Iraq"}},{"type":"MultiPolygon","arcs":[[[-351,362,363,364]],[[-349,365]]],"id":"OM","properties":{"name":"Oman"}},{"type":"MultiPolygon","arcs":[[[366]],[[367]]],"id":"VU","properties":{"name":"Vanuatu"}},{"type":"Polygon","arcs":[[368,369,370,371]],"id":"KH","properties":{"name":"Cambodia"}},{"type":"Polygon","arcs":[[-369,372,373,374,375,376]],"id":"TH","properties":{"name":"Thailand"}},{"type":"Polygon","arcs":[[-370,-377,377,378,379]],"id":"LA","properties":{"name":"Laos"}},{"type":"Polygon","arcs":[[-376,380,381,382,383,-378]],"id":"MM","properties":{"name":"Myanmar"}},{"type":"Polygon","arcs":[[-371,-380,384,385]],"id":"VN","properties":{"name":"Vietnam"}},{"type":"MultiPolygon","arcs":[[[386,386,386]],[[-147,387,388,389,390]]],"id":"KP","properties":{"name":"North Korea"}},{"type":"Polygon","arcs":[[-389,391]],"id":"KR","properties":{"name":"South Korea"}},{"type":"Polygon","arcs":[[-149,392]],"id":"MN","properties":{"name":"Mongolia"}},{"type":"Polygon","arcs":[[-383,393,394,395,396,397,398,399,400]],"id":"IN","properties":{"name":"India"}},{"type":"Polygon","arcs":[[-382,401,-394]],"id":"BD","properties":{"name":"Bangladesh"}},{"type":"Polygon","arcs":[[-400,402]],"id":"BT","properties":{"name":"Bhutan"}},{"type":"Polygon","arcs":[[-398,403]],"id":"NP","properties":{"name":"Nepal"}},{"type":"Polygon","arcs":[[-396,404,405,406,407]],"id":"PK","properties":{"name":"Pakistan"}},{"type":"Polygon","arcs":[[-69,408,409,-407,410,411]],"id":"AF","properties":{"name":"Afghanistan"}},{"type":"Polygon","arcs":[[-68,412,413,-409]],"id":"TJ","properties":{"name":"Tajikistan"}},{"type":"Polygon","arcs":[[-62,414,-413,-67]],"id":"KG","properties":{"name":"Kyrgyzstan"}},{"type":"Polygon","arcs":[[-64,-70,-412,415,416]],"id":"TM","properties":{"name":"Turkmenistan"}},{"type":"Polygon","arcs":[[-360,417,418,419,420,421,-416,-411,-406,422]],"id":"IR","properties":{"name":"Iran"}},{"type":"Polygon","arcs":[[-332,-334,423,424,-358,-344]],"id":"SY","properties":{"name":"Syria"}},{"type":"Polygon","arcs":[[-420,425,426,427,428]],"id":"AM","properties":{"name":"Armenia"}},{"type":"Polygon","arcs":[[-172,429,430]],"id":"SE","properties":{"name":"Sweden"}},{"type":"Polygon","arcs":[[-156,431,432,433,434]],"id":"BY","properties":{"name":"Belarus"}},{"type":"Polygon","arcs":[[-155,435,-164,436,437,438,439,440,441,442,-432]],"id":"UA","properties":{"name":"Ukraine"}},{"type":"Polygon","arcs":[[-433,-443,443,444,445,446,-142,447]],"id":"PL","properties":{"name":"Poland"}},{"type":"Polygon","arcs":[[448,449,450,451,452,453,454]],"id":"AT","properties":{"name":"Austria"}},{"type":"Polygon","arcs":[[-441,455,456,457,458,-449,459]],"id":"HU","properties":{"name":"Hungary"}},{"type":"Polygon","arcs":[[-439,460]],"id":"MD","properties":{"name":"Moldova"}},{"type":"Polygon","arcs":[[-438,461,462,463,-456,-440,-461]],"id":"RO","properties":{"name":"Romania"}},{"type":"Polygon","arcs":[[-434,-448,-144,464,465]],"id":"LT","properties":{"name":"Lithuania"}},{"type":"Polygon","arcs":[[-157,-435,-466,466,467]],"id":"LV","properties":{"name":"Latvia"}},{"type":"Polygon","arcs":[[-158,-468,468]],"id":"EE","properties":{"name":"Estonia"}},{"type":"Polygon","arcs":[[-446,469,-453,470,-238,471,472,473,474,475,476]],"id":"DE","properties":{"name":"Germany"}},{"type":"Polygon","arcs":[[-463,477,478,479,480,481]],"id":"BG","properties":{"name":"Bulgaria"}},{"type":"MultiPolygon","arcs":[[[482]],[[-480,483,484,485,486]]],"id":"GR","properties":{"name":"Greece"}},{"type":"MultiPolygon","arcs":[[[-359,-425,487,488,-427,-418]],[[-479,489,-484]]],"id":"TR","properties":{"name":"Turkey"}},{"type":"Polygon","arcs":[[-486,490,491,492,493]],"id":"AL","properties":{"name":"Albania"}},{"type":"Polygon","arcs":[[-458,494,495,496,497,498]],"id":"HR","properties":{"name":"Croatia"}},{"type":"Polygon","arcs":[[-452,499,-239,-471]],"id":"CH","properties":{"name":"Switzerland"}},{"type":"Polygon","arcs":[[-472,-245,500]],"id":"LU","properties":{"name":"Luxembourg"}},{"type":"Polygon","arcs":[[-473,-501,-244,501,502]],"id":"BE","properties":{"name":"Belgium"}},{"type":"Polygon","arcs":[[-474,-503,503]],"id":"NL","properties":{"name":"Netherlands"}},{"type":"Polygon","arcs":[[504,505]],"id":"PT","properties":{"name":"Portugal"}},{"type":"Polygon","arcs":[[-505,506,-242,507]],"id":"ES","properties":{"name":"Spain"}},{"type":"Polygon","arcs":[[508,509]],"id":"IE","properties":{"name":"Ireland"}},{"type":"Polygon","arcs":[[510]],"id":"NC","properties":{"name":"New Caledonia"}},{"type":"MultiPolygon","arcs":[[[511]],[[512]],[[513]],[[514]],[[515]]],"id":"SB","properties":{"name":"Solomon Is."}},{"type":"MultiPolygon","arcs":[[[516]],[[517]]],"id":"NZ","properties":{"name":"New Zealand"}},{"type":"MultiPolygon","arcs":[[[518]],[[519]]],"id":"AU","properties":{"name":"Australia"}},{"type":"Polygon","arcs":[[520]],"id":"LK","properties":{"name":"Sri Lanka"}},{"type":"MultiPolygon","arcs":[[[521]],[[-61,-150,-393,-148,-391,522,-385,-379,-384,-401,-403,-399,-404,-397,-408,-410,-414,-415]]],"id":"CN","properties":{"name":"China"}},{"type":"Polygon","arcs":[[523]],"id":"TW","properties":{"name":"Taiwan"}},{"type":"MultiPolygon","arcs":[[[-451,524,525,-240,-500]],[[526]],[[527]]],"id":"IT","properties":{"name":"Italy"}},{"type":"MultiPolygon","arcs":[[[-476,528]],[[529]]],"id":"DK","properties":{"name":"Denmark"}},{"type":"MultiPolygon","arcs":[[[-510,530]],[[531]]],"id":"GB","properties":{"name":"United Kingdom"}},{"type":"Polygon","arcs":[[532]],"id":"IS","properties":{"name":"Iceland"}},{"type":"MultiPolygon","arcs":[[[-152,533,-421,-429,534]],[[-419,-426]]],"id":"AZ","properties":{"name":"Azerbaijan"}},{"type":"Polygon","arcs":[[-153,-535,-428,-489,535]],"id":"GE","properties":{"name":"Georgia"}},{"type":"MultiPolygon","arcs":[[[536]],[[537]],[[538]],[[539]],[[540]],[[541]],[[542]]],"id":"PH","properties":{"name":"Philippines"}},{"type":"MultiPolygon","arcs":[[[-374,543]],[[-81,544,545,546]]],"id":"MY","properties":{"name":"Malaysia"}},{"type":"Polygon","arcs":[[-546,547]],"id":"BN","properties":{"name":"Brunei"}},{"type":"Polygon","arcs":[[-450,-459,-499,548,-525]],"id":"SI","properties":{"name":"Slovenia"}},{"type":"Polygon","arcs":[[-160,549,-430,-171]],"id":"FI","properties":{"name":"Finland"}},{"type":"Polygon","arcs":[[-442,-460,-455,550,-444]],"id":"SK","properties":{"name":"Slovakia"}},{"type":"Polygon","arcs":[[-445,-551,-454,-470]],"id":"CZ","properties":{"name":"Czechia"}},{"type":"Polygon","arcs":[[-126,551,552,553]],"id":"ER","properties":{"name":"Eritrea"}},{"type":"MultiPolygon","arcs":[[[554]],[[555]],[[556]]],"id":"JP","properties":{"name":"Japan"}},{"type":"Polygon","arcs":[[-193,-97,-202]],"id":"PY","properties":{"name":"Paraguay"}},{"type":"Polygon","arcs":[[-364,557,558]],"id":"YE","properties":{"name":"Yemen"}},{"type":"Polygon","arcs":[[-346,-362,-356,559,-354,560,-352,-365,-559,561]],"id":"SA","properties":{"name":"Saudi Arabia"}},{"type":"MultiPolygon","arcs":[[[562]],[[563]],[[564]],[[565]],[[566]],[[567]],[[568]],[[569]]],"id":"AQ","properties":{"name":"Antarctica"}},{"type":"Polygon","arcs":[[570,571]],"properties":{"name":"N. Cyprus"}},{"type":"Polygon","arcs":[[-572,572]],"id":"CY","properties":{"name":"Cyprus"}},{"type":"Polygon","arcs":[[-341,-15,573]],"id":"MA","properties":{"name":"Morocco"}},{"type":"Polygon","arcs":[[-124,574,575,-329,576]],"id":"EG","properties":{"name":"Egypt"}},{"type":"Polygon","arcs":[[-123,-132,-283,-343,-340,577,-575]],"id":"LY","properties":{"name":"Libya"}},{"type":"Polygon","arcs":[[-114,-119,578,-127,-554,579,580]],"id":"ET","properties":{"name":"Ethiopia"}},{"type":"Polygon","arcs":[[-553,581,582,-580]],"id":"DJ","properties":{"name":"Djibouti"}},{"type":"Polygon","arcs":[[-115,-581,-583,583]],"properties":{"name":"Somaliland"}},{"type":"Polygon","arcs":[[-11,584,-110,585,-117]],"id":"UG","properties":{"name":"Uganda"}},{"type":"Polygon","arcs":[[-10,-325,-111,-585]],"id":"RW","properties":{"name":"Rwanda"}},{"type":"Polygon","arcs":[[-496,586,587]],"id":"BA","properties":{"name":"Bosnia and Herz."}},{"type":"Polygon","arcs":[[-481,-487,-494,588,589]],"id":"MK","properties":{"name":"Macedonia"}},{"type":"Polygon","arcs":[[-457,-464,-482,-590,590,591,-587,-495]],"id":"RS","properties":{"name":"Serbia"}},{"type":"Polygon","arcs":[[-492,592,-497,-588,-592,593]],"id":"ME","properties":{"name":"Montenegro"}},{"type":"Polygon","arcs":[[-493,-594,-591,-589]],"properties":{"name":"Kosovo"}},{"type":"Polygon","arcs":[[594]],"id":"TT","properties":{"name":"Trinidad and Tobago"}},{"type":"Polygon","arcs":[[-109,-310,-128,-579,-118,-586]],"id":"SS","properties":{"name":"S. Sudan"}}]},"land":{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","arcs":[[[0]],[[1]],[[3,320,184,255,323,104,322,311,313,315,289,284,273,290,293,297,305,307,302,304,263,336,258,272,13,573,341,338,577,575,329,332,423,487,535,153,435,164,436,461,477,489,484,490,592,497,548,525,240,507,505,506,242,501,503,474,528,476,446,142,464,466,468,158,549,430,172,161,387,391,389,522,385,371,372,543,374,380,401,394,404,422,360,354,559,352,560,347,365,349,362,557,561,346,576,124,551,581,583,115,119],[421,416,64,150,533]],[[17,48,186,229,227,223,219,216,213,209,230,232,234,236,200,191,93,100,203,246,207,211,214,217,220,224,228,189,50,15,58]],[[19]],[[20]],[[21]],[[22]],[[23]],[[24]],[[25]],[[26]],[[27]],[[28]],[[29]],[[30]],[[31]],[[32]],[[33]],[[34]],[[35]],[[36]],[[37]],[[38]],[[39]],[[40]],[[41]],[[42]],[[43]],[[44]],[[45]],[[46]],[[47]],[[51]],[[52]],[[53]],[[54]],[[55]],[[56]],[[57]],[[59]],[[70,75]],[[72]],[[73]],[[74]],[[77,177]],[[78]],[[546,79,544,547]],[[81]],[[82]],[[83]],[[84]],[[85]],[[86]],[[87]],[[88]],[[89]],[[90,98]],[[133,134]],[[135]],[[136]],[[137]],[[138]],[[139]],[[140]],[[144]],[[145]],[[162]],[[165]],[[166]],[[167]],[[168]],[[169]],[[173]],[[174]],[[175]],[[176]],[[245]],[[247]],[[248]],[[249]],[[334]],[[366]],[[367]],[[482]],[[508,530]],[[510]],[[511]],[[512]],[[513]],[[514]],[[515]],[[516]],[[517]],[[518]],[[519]],[[520]],[[521]],[[523]],[[526]],[[527]],[[529]],[[531]],[[532]],[[536]],[[537]],[[538]],[[539]],[[540]],[[541]],[[542]],[[554]],[[555]],[[556]],[[562]],[[563]],[[564]],[[565]],[[566]],[[567]],[[568]],[[569]],[[570,572]],[[594]]]}]}},"arcs":[[[99478,40237],[69,98],[96,-171],[-46,-308],[-172,-81],[-153,73],[-27,260],[107,203],[126,-74]],[[0,41087],[57,27],[-34,-284],[-23,-32],[99822,-145],[-177,-124],[-36,220],[139,121],[88,33],[163,184],[-99999,0]],[[59417,50018],[47,-65],[1007,-1203],[19,-343],[399,-590]],[[60889,47817],[-128,-728],[16,-335],[178,-216],[8,-153],[-76,-357],[16,-180],[-18,-282],[97,-370],[115,-583],[101,-129]],[[61198,44484],[-221,-342],[-303,-230],[-167,10],[-99,-177],[-193,-16],[-73,-74],[-334,166],[-209,-48]],[[59599,43773],[-77,804],[-95,275],[-55,164],[-273,110]],[[59099,45126],[-157,177],[-177,100],[-111,99],[-116,150]],[[58538,45652],[-150,745],[-161,330],[-55,343],[27,307],[-50,544]],[[58149,47921],[115,28],[101,214],[108,308],[69,124],[-3,192],[-60,134],[-16,233]],[[58463,49154],[80,74],[16,348],[-110,333]],[[58449,49909],[98,71],[304,-7],[566,45]],[[47592,66920],[1,-40],[-6,-114]],[[47587,66766],[-1,-895],[-911,31],[9,-1512],[-261,-53],[-68,-304],[53,-853],[-1088,4],[-60,-197]],[[45260,62987],[12,249]],[[45272,63236],[5,-1],[625,48],[33,213],[114,265],[92,816],[386,637],[131,745],[86,44],[91,460],[234,63],[100,-76],[126,0],[90,134],[172,19],[-7,317],[42,0]],[[15878,79530],[-38,1],[-537,581],[-199,255],[-503,244],[-155,523],[40,363],[-356,252],[-48,476],[-336,429],[-6,304]],[[13740,82958],[154,285],[-7,373],[-473,376],[-284,674],[-173,424],[-255,266],[-187,242],[-147,306],[-279,-192],[-270,-330],[-247,388],[-194,259],[-271,164],[-273,17],[1,3364],[2,2193]],[[10837,91767],[518,-142],[438,-285],[289,-54],[244,247],[336,184],[413,-72],[416,259],[455,148],[191,-245],[207,138],[62,278],[192,-63],[470,-530],[369,401],[38,-449],[341,97],[105,173],[337,-34],[424,-248],[650,-217],[383,-100],[272,38],[374,-300],[-390,-293],[502,-127],[750,70],[236,103],[296,-354],[302,299],[-283,251],[179,202],[338,27],[223,59],[224,-141],[279,-321],[310,47],[491,-266],[431,94],[405,-14],[-32,367],[247,103],[431,-200],[-2,-559],[177,471],[223,-16],[126,594],[-298,364],[-324,239],[22,653],[329,429],[366,-95],[281,-261],[378,-666],[-247,-290],[517,-120],[-1,-604],[371,463],[332,-380],[-83,-438],[269,-399],[290,427],[202,510],[16,649],[394,-46],[411,-87],[373,-293],[17,-293],[-207,-315],[196,-316],[-36,-288],[-544,-413],[-386,-91],[-287,178],[-83,-297],[-268,-498],[-81,-259],[-322,-399],[-397,-39],[-220,-250],[-18,-384],[-323,-74],[-340,-479],[-301,-665],[-108,-466],[-16,-686],[409,-99],[125,-553],[130,-448],[388,117],[517,-256],[277,-225],[199,-279],[348,-163],[294,-248],[459,-34],[302,-58],[-45,-511],[86,-594],[201,-661],[414,-561],[214,192],[150,607],[-145,934],[-196,311],[445,276],[314,415],[154,411],[-23,395],[-188,502],[-338,445],[328,619],[-121,535],[-93,922],[194,137],[476,-161],[286,-57],[230,155],[258,-200],[342,-343],[85,-229],[495,-45],[-8,-496],[92,-747],[254,-92],[201,-348],[402,328],[266,652],[184,274],[216,-527],[362,-754],[307,-709],[-112,-371],[370,-333],[250,-338],[442,-152],[179,-189],[110,-500],[216,-78],[112,-223],[20,-664],[-202,-222],[-199,-207],[-458,-210],[-349,-486],[-470,-96],[-594,125],[-417,4],[-287,-41],[-233,-424],[-354,-262],[-401,-782],[-320,-545],[236,97],[446,776],[583,493],[415,58],[246,-289],[-262,-397],[88,-637],[91,-446],[361,-295],[459,86],[278,664],[19,-429],[180,-214],[-344,-387],[-615,-351],[-276,-239],[-310,-426],[-211,44],[-11,500],[483,488],[-445,-19],[-309,-72]],[[31350,77248],[-181,334],[0,805],[-123,171],[-187,-100],[-92,155],[-212,-446],[-84,-460],[-99,-269],[-118,-91],[-89,-30],[-28,-146],[-512,0],[-422,-4],[-125,-109],[-294,-425],[-34,-46],[-89,-231],[-255,1],[-273,-3],[-125,-93],[44,-116],[25,-181],[-5,-60],[-363,-293],[-286,-93],[-323,-316],[-70,0],[-94,93],[-31,85],[6,61],[61,207],[131,325],[81,349],[-56,514],[-59,536],[-290,277],[35,105],[-41,73],[-76,0],[-56,93],[-14,140],[-54,-61],[-75,18],[17,59],[-65,58],[-27,155],[-216,189],[-224,197],[-272,229],[-261,214],[-248,-167],[-91,-6],[-342,154],[-225,-77],[-269,183],[-284,94],[-194,36],[-86,100],[-49,325],[-94,-3],[-1,-227],[-575,0],[-951,0],[-944,0],[-833,0],[-834,0],[-819,0],[-847,0],[-273,0],[-824,0],[-789,0]],[[26668,87478],[207,273],[381,-6],[-6,-114],[-325,-326],[-196,13],[-61,160]],[[27840,93593],[-306,313],[12,213],[133,39],[636,-63],[479,-325],[25,-163],[-296,17],[-299,13],[-304,-80],[-80,36]],[[27690,87261],[107,177],[114,-13],[70,-121],[-108,-310],[-123,50],[-73,176],[13,41]],[[23996,94879],[-151,-229],[-403,44],[-337,155],[148,266],[399,159],[243,-208],[101,-187]],[[23933,96380],[-126,-17],[-521,38],[-74,165],[559,-9],[195,-109],[-33,-68]],[[23124,97116],[332,-205],[-76,-214],[-411,-122],[-226,138],[-119,221],[-22,245],[360,-24],[162,-39]],[[25514,94532],[-449,73],[-738,190],[-96,325],[-34,293],[-279,258],[-574,72],[-322,183],[104,242],[573,-37],[308,-190],[547,1],[240,-194],[-64,-222],[319,-134],[177,-140],[374,-26],[406,-50],[441,128],[566,51],[451,-42],[298,-223],[62,-244],[-174,-157],[-414,-127],[-355,72],[-797,-91],[-570,-11]],[[19093,96754],[392,-92],[-93,-177],[-518,-170],[-411,191],[224,188],[406,60]],[[19177,97139],[361,-120],[-339,-115],[-461,1],[5,84],[285,177],[149,-27]],[[34555,80899],[-148,-372],[-184,-517],[181,199],[187,-126],[-98,-206],[247,-162],[128,144],[277,-182],[-86,-433],[194,101],[36,-313],[86,-367],[-117,-520],[-125,-22],[-183,111],[60,484],[-77,75],[-322,-513],[-166,21],[196,277],[-267,144],[-298,-35],[-539,18],[-43,175],[173,208],[-121,160],[234,356],[287,941],[172,336],[241,204],[129,-26],[-54,-160]],[[26699,89048],[304,-203],[318,-184],[25,-281],[204,46],[199,-196],[-247,-186],[-432,142],[-156,266],[-275,-314],[-396,-306],[-95,346],[-377,-57],[242,292],[35,465],[95,542],[201,-49],[51,-259],[143,91],[161,-155]],[[28119,93327],[263,235],[616,-299],[383,-282],[36,-258],[515,134],[290,-376],[670,-234],[242,-238],[263,-553],[-510,-275],[654,-386],[441,-130],[400,-543],[437,-39],[-87,-414],[-487,-687],[-342,253],[-437,568],[-359,-74],[-35,-338],[292,-344],[377,-272],[114,-157],[181,-584],[-96,-425],[-350,160],[-697,473],[393,-509],[289,-357],[45,-206],[-753,236],[-596,343],[-337,287],[97,167],[-414,304],[-405,286],[5,-171],[-803,-94],[-235,203],[183,435],[522,10],[571,76],[-92,211],[96,294],[360,576],[-77,261],[-107,203],[-425,286],[-563,201],[178,150],[-294,367],[-245,34],[-219,201],[-149,-175],[-503,-76],[-1011,132],[-588,174],[-450,89],[-231,207],[290,270],[-394,2],[-88,599],[213,528],[286,241],[717,158],[-204,-382],[219,-369],[256,477],[704,242],[477,-611],[-42,-387],[550,172]],[[23749,94380],[579,-20],[530,-144],[-415,-526],[-331,-115],[-298,-442],[-317,22],[-173,519],[4,294],[145,251],[276,161]],[[15873,95551],[472,442],[570,383],[426,-9],[381,87],[-38,-454],[-214,-205],[-259,-29],[-517,-252],[-444,-91],[-377,128]],[[13136,82508],[267,47],[-84,-671],[242,-475],[-111,1],[-167,270],[-103,272],[-140,184],[-51,260],[16,188],[131,-76]],[[20696,97433],[546,-81],[751,-215],[212,-281],[108,-247],[-453,66],[-457,192],[-619,21],[268,176],[-335,142],[-21,227]],[[15692,79240],[-140,-82],[-456,269],[-84,209],[-248,207],[-50,168],[-286,107],[-107,321],[24,137],[291,-129],[171,-89],[261,-63],[94,-204],[138,-280],[277,-244],[115,-327]],[[16239,94566],[397,-123],[709,-33],[270,-171],[298,-249],[-349,-149],[-681,-415],[-344,-414],[0,-257],[-731,-285],[-147,259],[-641,312],[119,250],[192,432],[241,388],[-272,362],[939,93]],[[20050,95391],[247,99],[291,-26],[49,-289],[-169,-281],[-940,-91],[-701,-256],[-423,-14],[-35,193],[577,261],[-1255,-70],[-389,106],[379,577],[262,165],[782,-199],[493,-350],[485,-45],[-397,565],[255,215],[286,-68],[94,-282],[109,-210]],[[20410,93755],[311,-239],[175,-575],[86,-417],[466,-293],[502,-279],[-31,-260],[-456,-48],[178,-227],[-94,-217],[-503,93],[-478,160],[-322,-36],[-522,-201],[-704,-88],[-494,-56],[-151,279],[-379,161],[-246,-66],[-343,468],[185,62],[429,101],[392,-26],[362,103],[-537,138],[-594,-47],[-394,12],[-146,217],[644,237],[-428,-9],[-485,156],[233,443],[193,235],[744,359],[284,-114],[-139,-277],[618,179],[386,-298],[314,302],[254,-194],[227,-580],[140,244],[-197,606],[244,86],[276,-94]],[[22100,93536],[-306,386],[329,286],[331,-124],[496,75],[72,-172],[-259,-283],[420,-254],[-50,-532],[-455,-229],[-268,50],[-192,225],[-690,456],[5,189],[567,-73]],[[20389,94064],[372,24],[211,-130],[-244,-390],[-434,413],[95,83]],[[22639,95907],[212,-273],[9,-303],[-127,-440],[-458,-60],[-298,94],[5,345],[-455,-46],[-18,457],[299,-18],[419,201],[390,-34],[22,77]],[[23329,98201],[192,180],[285,42],[-122,135],[646,30],[355,-315],[468,-127],[455,-112],[220,-390],[334,-190],[-381,-176],[-513,-445],[-492,-42],[-575,76],[-299,240],[4,215],[220,157],[-508,-4],[-306,196],[-176,268],[193,262]],[[24559,98965],[413,112],[324,19],[545,96],[409,220],[344,-30],[300,-166],[211,319],[367,95],[498,65],[849,24],[148,-63],[802,100],[601,-38],[602,-37],[742,-47],[597,-75],[508,-161],[-12,-157],[-678,-257],[-672,-119],[-251,-133],[605,3],[-656,-358],[-452,-167],[-476,-483],[-573,-98],[-177,-120],[-841,-64],[383,-74],[-192,-105],[230,-292],[-264,-202],[-429,-167],[-132,-232],[-388,-176],[39,-134],[475,23],[6,-144],[-742,-355],[-726,163],[-816,-91],[-414,71],[-525,31],[-35,284],[514,133],[-137,427],[170,41],[742,-255],[-379,379],[-450,113],[225,229],[492,141],[79,206],[-392,231],[-118,304],[759,-26],[220,-64],[433,216],[-625,68],[-972,-38],[-491,201],[-232,239],[-324,173],[-61,202]],[[29106,90427],[-180,-174],[-312,-30],[-69,289],[118,331],[255,82],[217,-163],[3,-253],[-32,-82]],[[23262,91636],[169,-226],[-173,-207],[-374,179],[-226,-65],[-380,266],[245,183],[194,256],[295,-168],[166,-106],[84,-112]],[[32078,80046],[96,49],[365,-148],[284,-247],[8,-108],[-135,-11],[-360,186],[-258,279]],[[32218,78370],[97,-288],[202,-79],[257,16],[-137,-242],[-102,-38],[-353,250],[-69,198],[105,183]],[[31350,77248],[48,-194],[-296,-286],[-286,-204],[-293,-175],[-147,-351],[-47,-133],[-3,-313],[92,-313],[115,-15],[-29,216],[83,-131],[-22,-169],[-188,-96],[-133,11],[-205,-103],[-121,-29],[-162,-29],[-231,-171],[408,111],[82,-112],[-389,-177],[-177,-1],[8,72],[-84,-164],[82,-27],[-60,-424],[-203,-455],[-20,152],[-61,30],[-91,148],[57,-318],[69,-105],[5,-223],[-89,-230],[-157,-472],[-25,24],[86,402],[-142,225],[-33,491],[-53,-255],[59,-375],[-183,93],[191,-191],[12,-562],[79,-41],[29,-204],[39,-591],[-176,-439],[-288,-175],[-182,-346],[-139,-38],[-141,-217],[-39,-199],[-305,-383],[-157,-281],[-131,-351],[-43,-419],[50,-411],[92,-505],[124,-418],[1,-256],[132,-685],[-9,-398],[-12,-230],[-69,-361],[-83,-75],[-137,72],[-44,259],[-105,136],[-148,508],[-129,452],[-42,231],[57,393],[-77,325],[-217,494],[-108,90],[-281,-268],[-49,30],[-135,275],[-174,147],[-314,-75],[-247,66],[-212,-41],[-114,-92],[50,-157],[-5,-240],[59,-117],[-53,-77],[-103,87],[-104,-112],[-202,18],[-207,312],[-242,-73],[-202,137],[-173,-42],[-234,-138],[-253,-438],[-276,-255],[-152,-282],[-63,-266],[-3,-407],[14,-284],[52,-201]],[[23016,65864],[-108,-18],[-197,130],[-217,184],[-78,277],[-61,414],[-164,337],[-96,346],[-139,404],[-196,236],[-227,-11],[-175,-467],[-230,177],[-144,178],[-69,325],[-92,309],[-165,260],[-142,186],[-102,210],[-481,0],[0,-244],[-221,0],[-552,-4],[-634,416],[-419,287],[26,116],[-353,-64],[-316,-46]],[[17464,69802],[-46,302],[-180,340],[-130,71],[-30,169],[-156,30],[-100,159],[-258,59],[-71,95],[-33,324],[-270,594],[-231,821],[10,137],[-123,195],[-215,495],[-38,482],[-148,323],[61,489],[-10,507],[-89,453],[109,557],[34,536],[33,536],[-50,792],[-88,506],[-80,274],[33,115],[402,-200],[148,-558],[69,156],[-45,484],[-94,485]],[[6833,62443],[49,-51],[45,-79],[71,-207],[-7,-33],[-108,-126],[-89,-92],[-41,-99],[-69,84],[8,165],[-46,216],[14,65],[48,97],[-19,116],[16,55],[21,-11],[107,-100]],[[6668,62848],[-23,-71],[-94,-43],[-47,125],[-32,48],[-3,37],[27,50],[99,-56],[73,-90]],[[6456,63091],[-9,-63],[-149,17],[21,72],[137,-26]],[[6104,63411],[23,-38],[80,-196],[-15,-34],[-19,8],[-97,21],[-35,133],[-11,24],[74,82]],[[5732,63705],[5,-138],[-33,-58],[-93,107],[14,43],[43,58],[64,-12]],[[3759,86256],[220,-54],[27,-226],[-171,-92],[-182,110],[-168,161],[274,101]],[[7436,84829],[185,-40],[117,-183],[-240,-281],[-277,-225],[-142,152],[-43,277],[252,210],[148,90]],[[13740,82958],[-153,223],[-245,188],[-78,515],[-358,478],[-150,558],[-267,38],[-441,15],[-326,170],[-574,613],[-266,112],[-486,211],[-385,-51],[-546,272],[-330,252],[-309,-125],[58,-411],[-154,-38],[-321,-123],[-245,-199],[-308,-126],[-39,348],[125,580],[295,182],[-76,148],[-354,-329],[-190,-394],[-400,-420],[203,-287],[-262,-424],[-299,-248],[-278,-180],[-69,-261],[-434,-305],[-87,-278],[-325,-252],[-191,45],[-259,-165],[-282,-201],[-231,-197],[-477,-169],[-43,99],[304,276],[271,182],[296,324],[345,66],[137,243],[385,353],[62,119],[205,208],[48,448],[141,349],[-320,-179],[-90,102],[-150,-215],[-181,300],[-75,-212],[-104,294],[-278,-236],[-170,0],[-24,352],[50,216],[-179,211],[-361,-113],[-235,277],[-190,142],[-1,334],[-214,252],[108,340],[226,330],[99,303],[225,43],[191,-94],[224,285],[201,-51],[212,183],[-52,270],[-155,106],[205,228],[-170,-7],[-295,-128],[-85,-131],[-219,131],[-392,-67],[-407,142],[-117,238],[-351,343],[390,247],[620,289],[228,0],[-38,-296],[586,23],[-225,366],[-342,225],[-197,296],[-267,252],[-381,187],[155,309],[493,19],[350,270],[66,287],[284,281],[271,68],[526,262],[256,-40],[427,315],[421,-124],[201,-266],[123,114],[469,-35],[-16,-136],[425,-101],[283,59],[585,-186],[534,-56],[214,-77],[370,96],[421,-177],[302,-83]],[[2297,88264],[171,-113],[173,61],[225,-156],[276,-79],[-23,-64],[-211,-125],[-211,128],[-106,107],[-245,-34],[-66,52],[17,223]],[[74266,79657],[-212,-393],[-230,-56],[-13,-592],[-155,-267],[-551,194],[-200,-1058],[-143,-131],[-550,-236],[250,-1026],[-190,-154],[22,-337]],[[72294,75601],[-171,87],[-140,212],[-412,62],[-461,16],[-100,-65],[-396,248],[-158,-122],[-43,-349],[-457,204],[-183,-84],[-62,-259]],[[69711,75551],[-159,-109],[-367,-412],[-121,-422],[-104,-4],[-76,280],[-353,19],[-57,484],[-135,4],[21,593],[-333,431],[-476,-46],[-326,-86],[-265,533],[-227,223],[-431,423],[-52,51],[-715,-349],[11,-2178]],[[65546,74986],[-142,-29],[-195,463],[-188,166],[-315,-123],[-123,-197]],[[64583,75266],[-15,144],[68,246],[-53,206],[-322,202],[-125,530],[-154,150],[-9,192],[270,-56],[11,432],[236,96],[243,-88],[50,576],[-50,365],[-278,-28],[-236,144],[-321,-260],[-259,-124]],[[63639,77993],[-142,96],[29,304],[-177,395],[-207,-17],[-235,401],[160,448],[-81,120],[222,649],[285,-342],[35,431],[573,643],[434,15],[612,-409],[329,-239],[295,249],[440,12],[356,-306],[80,175],[391,-25],[69,280],[-450,406],[267,288],[-52,161],[266,153],[-200,405],[127,202],[1039,205],[136,146],[695,218],[250,245],[499,-127],[88,-612],[290,144],[356,-202],[-23,-322],[267,33],[696,558],[-102,-185],[355,-457],[620,-1500],[148,309],[383,-340],[399,151],[154,-106],[133,-341],[194,-115],[119,-251],[358,79],[147,-361]],[[69711,75551],[83,-58],[-234,-382],[205,-223],[198,147],[329,-311],[-355,-425],[-212,58]],[[69725,74357],[-114,-15],[-40,164],[58,274],[-371,-137],[-89,-380],[-132,-326],[-232,28],[-72,-261],[204,-140],[60,-440],[-156,-598]],[[68841,72526],[-210,124],[-154,4]],[[68477,72654],[7,362],[-369,253],[-291,289],[-181,278],[-317,408],[-137,609],[-93,108],[-301,-27],[-106,121],[-30,471],[-374,312],[-234,-343],[-237,-204],[45,-297],[-313,-8]],[[89166,49043],[482,-407],[513,-338],[192,-302],[154,-297],[43,-349],[462,-365],[68,-313],[-256,-64],[62,-393],[248,-388],[180,-627],[159,20],[-11,-262],[215,-100],[-84,-111],[295,-249],[-30,-171],[-184,-41],[-69,153],[-238,66],[-281,89],[-216,377],[-158,325],[-144,517],[-362,259],[-235,-169],[-170,-195],[35,-436],[-218,-203],[-155,99],[-288,25]],[[89175,45193],[-4,1925],[-5,1925]],[[92399,48417],[106,-189],[33,-307],[-87,-157],[-52,348],[-65,229],[-126,193],[-158,252],[-200,174],[77,143],[150,-166],[94,-130],[117,-142],[111,-248]],[[92027,47129],[-152,-144],[-142,-138],[-148,1],[-228,171],[-158,165],[23,183],[249,-86],[152,46],[42,283],[40,15],[27,-314],[158,45],[78,202],[155,211],[-30,348],[166,11],[56,-97],[-5,-327],[-93,-361],[-146,-48],[-44,-166]],[[92988,47425],[84,-134],[135,-375],[131,-200],[-39,-166],[-78,-59],[-120,227],[-122,375],[-59,450],[38,57],[30,-175]],[[89175,45193],[-247,485],[-282,118],[-69,-168],[-352,-18],[118,481],[175,164],[-72,642],[-134,496],[-538,500],[-229,50],[-417,546],[-82,-287],[-107,-52],[-63,216],[-1,257],[-212,290],[299,213],[198,-11],[-23,156],[-407,1],[-110,352],[-248,109],[-117,293],[374,143],[142,192],[446,-242],[44,-220],[78,-955],[287,-354],[232,627],[319,356],[247,1],[238,-206],[206,-212],[298,-113]],[[84713,45326],[28,-117],[5,-179]],[[84746,45030],[-181,-441],[-238,-130],[-33,71],[25,201],[119,360],[275,235]],[[87280,46506],[-27,445],[49,212],[58,200],[63,-173],[0,-282],[-143,-402]],[[82744,53024],[-158,-533],[204,-560],[-48,-272],[312,-546],[-329,-70],[-93,-403],[12,-535],[-267,-404],[-7,-589],[-107,-903],[-41,210],[-316,-266],[-110,361],[-198,34],[-139,189],[-330,-212],[-101,285],[-182,-32],[-229,68],[-43,793],[-138,164],[-134,505],[-38,517],[32,548],[165,392]],[[80461,51765],[47,-395],[190,-334],[179,121],[177,-43],[162,299],[133,52],[263,-166],[226,126],[143,822],[107,205],[96,672],[319,0],[241,-100]],[[85936,48924],[305,-172],[101,-452],[-234,244],[-232,49],[-157,-39],[-192,21],[65,325],[344,24]],[[85242,48340],[-192,108],[-54,254],[281,29],[69,-195],[-104,-196]],[[85536,51864],[20,-322],[164,-52],[26,-241],[-15,-517],[-143,58],[-42,-359],[114,-312],[-78,-71],[-112,374],[-82,755],[56,472],[92,215]],[[84146,51097],[319,25],[275,429],[48,-132],[-223,-587],[-209,-113],[-267,115],[-463,-29],[-243,-85],[-39,-447],[248,-526],[150,268],[518,201],[-22,-272],[-121,86],[-121,-347],[-245,-229],[263,-757],[-50,-203],[249,-682],[-2,-388],[-148,-173],[-109,207],[134,484],[-273,-229],[-69,164],[36,228],[-200,346],[21,576],[-186,-179],[24,-689],[11,-846],[-176,-85],[-119,173],[79,544],[-43,570],[-117,4],[-86,405],[115,387],[40,469],[139,891],[58,243],[237,439],[217,-174],[350,-82]],[[83414,44519],[-368,414],[259,116],[146,-180],[97,-180],[-17,-159],[-117,-11]],[[83705,45536],[185,45],[249,216],[-41,-328],[-417,-168],[-370,73],[0,216],[220,123],[174,-177]],[[82849,45639],[172,48],[69,-251],[-321,-119],[-193,-79],[-149,5],[95,340],[153,5],[74,209],[100,-158]],[[80134,46785],[38,-210],[533,-59],[61,244],[515,-284],[101,-383],[417,-108],[341,-351],[-317,-225],[-306,238],[-251,-16],[-288,44],[-260,106],[-322,225],[-204,59],[-116,-74],[-506,243],[-48,254],[-255,44],[191,564],[337,-35],[224,-231],[115,-45]],[[78991,49939],[47,-412],[97,-330],[204,-52],[135,-374],[-70,-735],[-11,-914],[-308,-12],[-234,494],[-356,482],[-119,358],[-210,481],[-138,443],[-212,827],[-244,493],[-81,508],[-103,461],[-250,372],[-145,506],[-209,330],[-290,652],[-24,300],[178,-24],[430,-114],[246,-577],[215,-401],[153,-246],[263,-635],[283,-9],[233,-405],[161,-495],[211,-270],[-111,-482],[159,-205],[100,-15]],[[30935,19481],[106,-274],[139,-443],[361,-355],[389,-147],[-125,-296],[-264,-29],[-141,208]],[[31400,18145],[-168,16],[-297,1],[0,1319]],[[33993,32727],[-70,-473],[-74,-607],[3,-588],[-61,-132],[-21,-382]],[[33770,30545],[-19,-308],[353,-506],[-38,-408],[173,-257],[-14,-289],[-267,-757],[-412,-317],[-557,-123],[-305,59],[59,-352],[-57,-442],[51,-298],[-167,-208],[-284,-82],[-267,216],[-108,-155],[39,-587],[188,-178],[152,186],[82,-307],[-255,-183],[-223,-367],[-41,-595],[-66,-316],[-262,-2],[-218,-302],[-80,-443],[273,-433],[266,-119],[-96,-531],[-328,-333],[-180,-692],[-254,-234],[-113,-276],[89,-614],[185,-342],[-117,30]],[[30952,19680],[-257,93],[-672,79],[-115,344],[6,443],[-185,-38],[-98,214],[-24,626],[213,260],[88,375],[-33,299],[148,504],[101,782],[-30,347],[122,112],[-30,223],[-129,118],[92,248],[-126,224],[-65,682],[112,120],[-47,720],[65,605],[75,527],[166,215],[-84,576],[-1,543],[210,386],[-7,494],[159,576],[1,544],[-72,108],[-128,1020],[171,607],[-27,572],[100,537],[182,555],[196,367],[-83,232],[58,190],[-9,985],[302,291],[96,614],[-34,148]],[[31359,37147],[231,534],[364,-144],[163,-427],[109,475],[316,-24],[45,-127]],[[32587,37434],[511,-964],[227,-89],[339,-437],[286,-231],[40,-261],[-273,-898],[280,-160],[312,-91],[220,95],[252,453],[45,521]],[[34826,35372],[138,114],[139,-341],[-6,-472],[-234,-326],[-186,-241],[-314,-573],[-370,-806]],[[31400,18145],[-92,-239],[-238,-183],[-137,19],[-164,48],[-202,177],[-291,86],[-350,330],[-283,317],[-383,662],[229,-124],[390,-395],[369,-212],[143,271],[90,405],[256,244],[198,-70]],[[30669,40193],[136,-402],[37,-426],[146,-250],[-88,-572],[150,-663],[109,-814],[200,81]],[[30952,19680],[-247,4],[-134,-145],[-250,-213],[-45,-552],[-118,-14],[-313,192],[-318,412],[-346,338],[-87,374],[79,346],[-140,393],[-36,1007],[119,568],[293,457],[-422,172],[265,522],[94,982],[309,-208],[145,1224],[-186,157],[-87,-738],[-175,83],[87,845],[95,1095],[127,404],[-80,576],[-22,666],[117,19],[170,954],[192,945],[118,881],[-64,885],[83,487],[-34,730],[163,721],[50,1143],[89,1227],[87,1321],[-20,967],[-58,832]],[[30452,39739],[143,151],[74,303]],[[58538,45652],[-109,60],[-373,-99],[-75,-71],[-79,-377],[62,-261],[-49,-699],[-34,-593],[75,-105],[194,-230],[76,107],[23,-637],[-212,5],[-114,325],[-103,252],[-213,82],[-62,310],[-170,-187],[-222,83],[-93,268],[-176,55],[-131,-15],[-15,184],[-96,15]],[[56642,44124],[-127,35],[-172,-89],[-121,15],[-68,-54],[15,703],[-93,219],[-21,363],[41,356],[-56,228],[-5,372],[-337,-5],[24,213],[-142,-2],[-15,-103],[-172,-23],[-69,-344],[-42,-148],[-154,83],[-91,-83],[-184,-47],[-106,309],[-64,191],[-80,354],[-68,440],[-820,8],[-98,-71],[-80,11],[-115,-79]],[[53422,46976],[-39,183]],[[53383,47159],[71,62],[9,258],[45,152],[101,124]],[[53609,47755],[73,-60],[95,226],[152,-6],[17,-167],[104,-105],[164,370],[161,289],[71,189],[-10,486],[121,574],[127,304],[183,285],[32,189],[7,216],[45,205],[-14,335],[34,524],[55,368],[83,316],[16,357]],[[55125,52650],[25,412],[108,300],[149,190],[229,-200],[177,-218],[203,-59],[207,-115],[83,357],[38,46],[127,-60],[309,295],[110,-125],[90,18],[41,143],[104,51],[209,-62],[178,-14],[91,63]],[[57603,53672],[169,-488],[124,-71],[75,99],[128,-39],[155,125],[66,-252],[244,-393]],[[58564,52653],[-16,-691],[111,-80],[-89,-210],[-107,-157],[-106,-308],[-59,-274],[-15,-475],[-65,-225],[-2,-446]],[[58216,49787],[-80,-165],[-10,-351],[-38,-46],[-26,-323]],[[58062,48902],[70,-268],[17,-713]],[[61551,49585],[-165,488],[-3,2152],[243,670]],[[61626,52895],[76,186],[178,11],[247,417],[362,26],[785,1773]],[[63274,55308],[194,493],[125,363],[0,308],[0,596],[1,244],[2,9]],[[63596,57321],[89,12],[128,88],[147,59],[132,202],[105,2],[6,-163],[-25,-344],[1,-310],[-59,-214],[-78,-639],[-134,-659],[-172,-755],[-238,-866],[-237,-661],[-327,-806],[-278,-479],[-415,-586],[-259,-450],[-304,-715],[-64,-312],[-63,-140]],[[59417,50018],[-3,627],[80,239],[137,391],[101,431],[-123,678],[-32,296],[-132,411]],[[59445,53091],[171,352],[188,390]],[[59804,53833],[145,-99],[0,-332],[95,-194],[193,0],[352,-502],[87,-6],[65,16],[62,-68],[185,-47],[82,247],[254,247],[112,-200],[190,0]],[[61551,49585],[-195,-236],[-68,-246],[-104,-44],[-40,-416],[-89,-238],[-54,-393],[-112,-195]],[[56824,55442],[-212,258],[-96,170],[-18,184],[45,246],[-1,241],[-160,369],[-31,253]],[[56351,57163],[3,143],[-102,174],[-3,343],[-58,228],[-98,-34],[28,217],[72,246],[-32,245],[92,181],[-58,138],[73,365],[127,435],[240,-41],[-14,2345]],[[56621,62148],[3,248],[320,2],[0,1180]],[[56944,63578],[1117,0],[1077,0],[1102,0]],[[60240,63578],[90,-580],[-61,-107],[40,-608],[102,-706],[106,-145],[152,-219]],[[60669,61213],[-141,-337],[-204,-97],[-88,-181],[-27,-393],[-120,-868],[30,-236]],[[60119,59101],[-45,-508],[-112,-582],[-168,-293],[-119,-451],[-28,-241],[-132,-166],[-82,-618],[4,-531]],[[59437,55711],[-3,460],[-39,12],[5,294],[-33,203],[-143,233],[-34,426],[34,436],[-129,41],[-19,-132],[-167,-30],[67,-173],[23,-355],[-152,-324],[-138,-426],[-144,-61],[-233,345],[-105,-122],[-29,-172],[-143,-112],[-9,-122],[-277,0],[-38,122],[-200,20],[-100,-101],[-77,51],[-143,344],[-48,163],[-200,-81],[-76,-274],[-72,-528],[-95,-111],[-85,-65],[189,-230]],[[56351,57163],[-176,-101],[-141,-239],[-201,-645],[-261,-273],[-269,36],[-78,-54],[28,-208],[-145,-207],[-118,-230],[-350,-226],[-69,134],[-46,11],[-52,-152],[-229,-44]],[[54244,54965],[43,160],[-87,407],[-39,245],[-121,100],[-164,345],[60,279],[127,-60],[78,42],[155,-6],[-151,537],[10,393],[-18,392],[-111,378]],[[54026,58177],[28,279],[-178,13],[0,380],[-115,219],[120,778],[354,557],[15,769],[107,1199],[60,254],[-116,203],[-4,188],[-104,153],[-68,919]],[[54125,64088],[280,323],[1108,-1132],[1108,-1131]],[[30080,62227],[24,-321],[-21,-228],[-68,-99],[71,-177],[-5,-161]],[[30081,61241],[-185,100],[-131,-41],[-169,43],[-130,-110],[-149,184],[24,190],[256,-82],[210,-47],[100,131],[-127,256],[2,226],[-175,92],[62,163],[170,-26],[241,-93]],[[30080,62227],[34,101],[217,-3],[165,-152],[73,15],[50,-209],[152,11],[-9,-176],[124,-21],[136,-217],[-103,-240],[-132,128],[-127,-25],[-92,28],[-50,-107],[-106,-37],[-43,144],[-92,-85],[-111,-405],[-71,94],[-14,170]],[[76049,98451],[600,133],[540,-297],[640,-572],[-69,-531],[-606,-73],[-773,170],[-462,226],[-213,423],[-379,117],[722,404]],[[78565,97421],[704,-336],[-82,-240],[-1566,-228],[507,776],[229,66],[208,-38]],[[88563,95563],[734,-26],[1004,-313],[-219,-439],[-1023,16],[-461,-139],[-550,384],[149,406],[366,111]],[[91172,95096],[697,-155],[-321,-234],[-444,53],[-516,233],[66,192],[518,-89]],[[88850,93928],[263,234],[348,54],[394,-226],[34,-155],[-421,-4],[-569,66],[-49,31]],[[62457,98194],[542,107],[422,8],[57,-160],[159,142],[262,97],[412,-129],[-107,-90],[-373,-78],[-250,-45],[-39,-97],[-324,-98],[-301,140],[158,185],[-618,18]],[[56314,82678],[-511,-9],[-342,67]],[[55461,82736],[63,260],[383,191]],[[55907,83187],[291,-103],[123,-94],[-30,-162],[23,-150]],[[64863,94153],[665,518],[-75,268],[621,312],[917,380],[925,110],[475,220],[541,76],[193,-233],[-187,-184],[-984,-293],[-848,-282],[-863,-562],[-414,-577],[-435,-568],[56,-491],[531,-484],[-164,-52],[-907,77],[-74,262],[-503,158],[-40,320],[284,126],[-10,323],[551,503],[-255,73]],[[89698,82309],[96,-569],[-7,-581],[114,-597],[280,-1046],[-411,195],[-171,-854],[271,-605],[-8,-413],[-211,356],[-182,-457],[-51,496],[31,575],[-32,638],[64,446],[13,790],[-163,581],[24,808],[257,271],[-110,274],[123,83],[73,-391]],[[86327,75524],[-39,104]],[[86288,75628],[-2,300],[142,16],[40,698],[-73,506],[238,208],[338,-104],[186,575],[96,647],[107,216],[146,532],[-459,-175],[-240,-233],[-423,1],[-112,555],[-329,420],[-483,189],[-103,579],[-97,363],[-104,254],[-172,596],[-244,217],[-415,176],[-369,-16],[-345,-106],[-229,-294],[152,-141],[4,-326],[-155,-189],[-251,-627],[3,-260],[-392,-373],[-333,223]],[[82410,80055],[-331,-49],[-146,198],[-166,63],[-407,-416],[-366,-98],[-255,-146],[-350,96],[-258,-6],[-168,302],[-272,284],[-279,78],[-351,-78],[-263,-109],[-394,248],[-53,443],[-327,152],[-252,69],[-311,244],[-288,-612],[113,-348],[-270,-411],[-402,148],[-277,22],[-186,276],[-289,8],[-242,182],[-423,-278],[-530,-509],[-292,-102]],[[74375,79706],[-109,-49]],[[63639,77993],[-127,-350],[-269,-97],[-276,-610],[252,-561],[-27,-398],[303,-696]],[[63495,75281],[-166,-238],[-48,-150],[-122,40],[-191,359],[-78,20]],[[62890,75312],[-175,137],[-85,242],[-259,124],[-169,-93],[-48,110],[-378,283],[-409,96],[-235,101],[-34,-70]],[[61098,76242],[-354,499],[-317,223],[-240,347],[202,95],[231,494],[-156,234],[410,241],[-8,129],[-249,-95]],[[60617,78409],[9,262],[143,165],[269,43],[44,197],[-62,326],[113,310],[-3,173],[-410,192],[-162,-6],[-172,277],[-213,-94],[-352,208],[6,116],[-99,256],[-222,29],[-23,183],[70,120],[-178,334],[-288,-57],[-84,30],[-70,-134],[-104,23]],[[58829,81362],[-68,379],[-66,196],[54,55],[224,-20],[108,129],[-80,157],[-187,104],[16,107],[-113,108],[-174,387],[60,159],[-27,277],[-272,141],[-146,-70],[-39,146],[-293,149]],[[57826,83766],[-89,348],[-24,287],[-134,136]],[[57579,84537],[120,187],[-83,551],[198,341],[-42,103]],[[57772,85719],[316,327],[-291,280]],[[57797,86326],[594,755],[258,341],[105,301],[-411,405],[113,385],[-250,440],[187,506],[-323,673],[256,445],[-425,394],[41,414]],[[57942,91385],[224,54],[473,237]],[[58639,91676],[286,206],[456,-358],[761,-140],[1050,-668],[213,-281],[18,-393],[-308,-311],[-454,-157],[-1240,449],[-204,-75],[453,-433],[18,-274],[18,-604],[358,-180],[217,-153],[36,286],[-168,254],[177,224],[672,-368],[233,144],[-186,433],[647,578],[256,-34],[260,-206],[161,406],[-231,352],[136,353],[-204,367],[777,-190],[158,-331],[-351,-73],[1,-328],[219,-203],[429,128],[68,377],[580,282],[970,507],[209,-29],[-273,-359],[344,-61],[199,202],[521,16],[412,245],[317,-356],[315,391],[-291,343],[145,195],[820,-179],[385,-185],[1006,-675],[186,309],[-282,313],[-8,125],[-335,58],[92,280],[-149,461],[-8,189],[512,535],[183,537],[206,116],[736,-156],[57,-328],[-263,-479],[173,-189],[89,-413],[-63,-809],[307,-362],[-120,-395],[-544,-839],[318,-87],[110,213],[306,151],[74,293],[240,281],[-162,336],[130,390],[-304,49],[-67,328],[222,593],[-361,482],[497,398],[-64,421],[139,13],[145,-328],[-109,-570],[297,-108],[-127,426],[465,233],[577,31],[513,-337],[-247,492],[-28,630],[483,119],[669,-26],[602,77],[-226,309],[321,388],[319,16],[540,293],[734,79],[93,162],[729,55],[227,-133],[624,314],[510,-10],[77,255],[265,252],[656,242],[476,-191],[-378,-146],[629,-90],[75,-292],[254,143],[812,-7],[626,-289],[223,-221],[-69,-307],[-307,-175],[-730,-328],[-209,-175],[345,-83],[410,-149],[251,112],[141,-379],[122,153],[444,93],[892,-97],[67,-276],[1162,-88],[15,451],[590,-104],[443,4],[449,-312],[128,-378],[-165,-247],[349,-465],[437,-240],[268,620],[446,-266],[473,159],[538,-182],[204,166],[455,-83],[-201,549],[367,256],[2509,-384],[236,-351],[727,-451],[1122,112],[553,-98],[231,-244],[-33,-432],[342,-168],[372,121],[492,15],[525,-116],[526,66],[484,-526],[344,189],[-224,378],[123,262],[886,-165],[578,36],[799,-282],[-99610,-258],[681,-451],[728,-588],[-24,-367],[187,-147],[-64,429],[754,-88],[544,-553],[-276,-257],[-455,-61],[-7,-578],[-111,-122],[-260,17],[-212,206],[-369,172],[-62,257],[-283,96],[-315,-76],[-151,207],[60,219],[-333,-140],[126,-278],[-158,-251],[99997,-3],[-357,-260],[-360,44],[250,-315],[166,-487],[128,-159],[32,-244],[-71,-157],[-518,129],[-777,-445],[-247,-69],[-425,-415],[-403,-362],[-102,-269],[-397,409],[-724,-464],[-126,219],[-268,-253],[-371,81],[-90,-388],[-333,-572],[10,-239],[316,-132],[-37,-860],[-258,-22],[-119,-494],[116,-255],[-486,-302],[-96,-674],[-415,-144],[-83,-600],[-400,-551],[-103,407],[-119,862],[-155,1313],[134,819],[234,353],[14,276],[432,132],[496,744],[479,608],[499,471],[223,833],[-337,-50],[-167,-487],[-705,-649],[-227,727],[-717,-201],[-696,-990],[230,-362],[-620,-154],[-430,-61],[20,427],[-431,90],[-344,-291],[-850,102],[-914,-175],[-899,-1153],[-1065,-1394],[438,-74],[136,-370],[270,-132],[178,295],[305,-38],[401,-650],[9,-503],[-217,-590],[-23,-705],[-126,-945],[-418,-855],[-94,-409],[-377,-688],[-374,-682],[-179,-349],[-370,-346],[-175,-8],[-175,287],[-373,-432],[-43,-197]],[[0,92833],[36,24],[235,-1],[402,-169],[-24,-81],[-286,-141],[-363,-36],[99694,-30],[-49,187],[-99645,247]],[[59287,77741],[73,146],[198,-127],[89,-23],[36,-117],[42,-18]],[[59725,77602],[2,-51],[136,-142],[284,35],[-55,-210],[-304,-103],[-377,-342],[-154,121],[61,277],[-304,173],[50,113],[265,197],[-42,71]],[[28061,66408],[130,47],[184,-18],[8,-153],[-303,-95],[-19,219]],[[28391,66555],[220,-265],[-48,-420],[-51,75],[4,309],[-124,234],[-1,67]],[[28280,65474],[84,-23],[97,-491],[1,-343],[-68,-29],[-70,340],[-104,171],[60,375]],[[33000,19946],[333,354],[236,-148],[167,237],[222,-266],[-83,-207],[-375,-177],[-125,207],[-236,-266],[-139,266]],[[54206,97653],[105,202],[408,20],[350,-206],[915,-440],[-699,-233],[-155,-435],[-243,-111],[-132,-490],[-335,-23],[-598,361],[252,210],[-416,170],[-541,499],[-216,463],[757,212],[152,-207],[396,8]],[[57942,91385],[117,414],[-356,235],[-431,-200],[-137,-433],[-265,-262],[-298,143],[-362,-29],[-309,312],[-167,-156]],[[55734,91409],[-172,-24],[-41,-389],[-523,95],[-74,-329],[-267,2],[-183,-421],[-278,-655],[-431,-831],[101,-202],[-97,-234],[-275,10],[-180,-554],[17,-784],[177,-300],[-92,-694],[-231,-405],[-122,-341]],[[53063,85353],[-187,363],[-548,-684],[-371,-138],[-384,301],[-99,635],[-88,1363],[256,381],[733,496],[549,609],[508,824],[668,1141],[465,444],[763,741],[610,259],[457,-31],[423,489],[506,-26],[499,118],[869,-433],[-358,-158],[305,-371]],[[57613,97879],[-412,-318],[-806,-70],[-819,98],[-50,163],[-398,11],[-304,271],[858,165],[403,-142],[281,177],[702,-148],[545,-207]],[[56867,96577],[-620,-241],[-490,137],[191,152],[-167,189],[575,119],[110,-222],[401,-134]],[[37010,99398],[932,353],[975,-27],[354,218],[982,57],[2219,-74],[1737,-469],[-513,-227],[-1062,-26],[-1496,-58],[140,-105],[984,65],[836,-204],[540,181],[231,-212],[-305,-344],[707,220],[1348,229],[833,-114],[156,-253],[-1132,-420],[-157,-136],[-888,-102],[643,-28],[-324,-431],[-224,-383],[9,-658],[333,-386],[-434,-24],[-457,-187],[513,-313],[65,-502],[-297,-55],[360,-508],[-617,-42],[322,-241],[-91,-208],[-391,-91],[-388,-2],[348,-400],[4,-263],[-549,244],[-143,-158],[375,-148],[364,-361],[105,-476],[-495,-114],[-214,228],[-344,340],[95,-401],[-322,-311],[732,-25],[383,-32],[-745,-515],[-755,-466],[-813,-204],[-306,-2],[-288,-228],[-386,-624],[-597,-414],[-192,-24],[-370,-145],[-399,-138],[-238,-365],[-4,-415],[-141,-388],[-453,-472],[112,-462],[-125,-488],[-142,-577],[-391,-36],[-410,482],[-556,3],[-269,324],[-186,577],[-481,735],[-141,385],[-38,530],[-384,546],[100,435],[-186,208],[275,691],[418,220],[110,247],[58,461],[-318,-209],[-151,-88],[-249,-84],[-341,193],[-19,401],[109,314],[258,9],[567,-157],[-478,375],[-249,202],[-276,-83],[-232,147],[310,550],[-169,220],[-220,409],[-335,626],[-353,230],[3,247],[-745,346],[-590,43],[-743,-24],[-677,-44],[-323,188],[-482,372],[729,186],[559,31],[-1188,154],[-627,241],[39,229],[1051,285],[1018,284],[107,214],[-750,213],[243,235],[961,413],[404,63],[-115,265],[658,156],[854,93],[853,5],[303,-184],[737,325],[663,-221],[390,-46],[577,-192],[-660,318],[38,253]],[[69148,21851],[179,-186],[263,-74],[9,-112],[-77,-269],[-427,-38],[-7,314],[41,244],[19,121]],[[84713,45326],[32,139],[239,133],[194,20],[87,74],[105,-74],[-102,-160],[-289,-258],[-233,-170]],[[54540,33696],[133,292],[109,-162],[47,-252],[125,-43],[175,-112],[149,43],[248,302],[0,2182]],[[55526,35946],[75,-88],[165,-562],[-26,-360],[62,-207],[199,60],[139,264],[132,177],[68,283],[135,137],[117,-71],[133,-166],[226,-29],[178,138],[28,184],[48,283],[152,47],[83,222],[93,393],[249,442],[393,435]],[[58175,37528],[113,-7],[134,-100],[94,71],[148,-59]],[[58664,37433],[133,-832],[72,-419],[-49,-659],[23,-212]],[[58843,35311],[-140,108],[-80,-42],[-26,-172],[-76,-222],[2,-204],[166,-320],[163,63],[56,263]],[[58908,34785],[211,-5]],[[59119,34780],[-70,-430],[-32,-491],[-72,-267],[-190,-298],[-54,-86],[-118,-300],[-77,-303],[-158,-424],[-314,-609],[-196,-355],[-210,-269],[-290,-229],[-141,-31],[-36,-164],[-169,88],[-138,-113],[-301,114],[-168,-72],[-115,31],[-286,-233],[-238,-94],[-171,-223],[-127,-14],[-117,210],[-94,11],[-120,264],[-13,-82],[-37,159],[2,346],[-90,396],[89,108],[-7,453],[-182,553],[-139,501],[-1,1],[-199,768]],[[58049,33472],[-121,182],[-130,-120],[-151,-232],[-148,-374],[209,-454],[99,59],[51,188],[155,93],[47,192],[85,288],[-96,178]],[[23016,65864],[-107,-518],[-49,-426],[-20,-791],[-27,-289],[48,-322],[86,-288],[56,-458],[184,-440],[65,-337],[109,-291],[295,-157],[114,-247],[244,165],[212,60],[208,106],[175,101],[176,241],[67,345],[22,496],[48,173],[188,155],[294,137],[246,-21],[169,50],[66,-125],[-9,-285],[-149,-351],[-66,-360],[51,-103],[-42,-255],[-69,-461],[-71,152],[-58,-10]],[[25472,61510],[-53,-8],[-99,-357],[-51,70],[-33,-27],[2,-87]],[[25238,61101],[-257,7],[-259,-1],[-1,-333],[-125,-1],[103,-198],[103,-136],[31,-128],[45,-36],[-7,-201],[-357,-2],[-133,-481],[39,-111],[-32,-138],[-7,-172]],[[24381,59170],[-314,636],[-144,191],[-226,155],[-156,-43],[-223,-223],[-140,-58],[-196,156],[-208,112],[-260,271],[-208,83],[-314,275],[-233,282],[-70,158],[-155,35],[-284,187],[-116,270],[-299,335],[-139,373],[-66,288],[93,57],[-29,169],[64,153],[1,204],[-93,266],[-25,235],[-94,298],[-244,587],[-280,462],[-135,368],[-238,241],[-51,145],[42,365],[-142,138],[-164,287],[-69,412],[-149,48],[-162,311],[-130,288],[-12,184],[-149,446],[-99,452],[5,227],[-201,234],[-93,-25],[-159,163],[-44,-240],[46,-284],[27,-444],[95,-243],[206,-407],[46,-139],[42,-42],[37,-203],[49,8],[56,-381],[85,-150],[59,-210],[174,-300],[92,-550],[83,-259],[77,-277],[15,-311],[134,-20],[112,-268],[100,-264],[-6,-106],[-117,-217],[-49,3],[-74,359],[-181,337],[-201,286],[-142,150],[9,432],[-42,320],[-132,183],[-191,264],[-37,-76],[-70,154],[-171,143],[-164,343],[20,44],[115,-33],[103,221],[10,266],[-214,422],[-163,163],[-102,369],[-103,388],[-129,472],[-113,531]],[[33993,32727],[180,63],[279,-457],[103,18],[286,-379],[218,-327],[160,-402],[-122,-280],[77,-334]],[[35174,30629],[-121,-372],[-313,-328],[-205,118],[-151,-63],[-256,253],[-189,-19],[-169,327]],[[34826,35372],[54,341],[38,350],[0,325],[-100,107],[-104,-96],[-103,26],[-33,228],[-26,541],[-52,177],[-187,160],[-114,-116],[-293,113],[18,802],[-82,329]],[[33842,38659],[87,122],[-27,337],[77,259],[49,465],[-66,367],[-151,166],[-30,233],[41,342],[-533,24],[-107,688],[81,10],[-3,255],[-55,172],[-12,342],[-161,175],[-175,-6],[-115,172],[-188,117],[-109,220],[-311,98],[-302,529],[23,396],[-34,227],[29,443],[-363,-100],[-147,-222],[-243,-239],[-62,-179],[-143,-13],[-206,50]],[[30686,44109],[-157,-102],[-126,68],[18,898],[-228,-348],[-245,15],[-105,315],[-184,34],[59,254],[-155,359],[-115,532],[73,108],[0,250],[168,171],[-28,319],[71,206],[20,275],[318,402],[227,114],[37,89],[251,-28]],[[30585,48040],[125,1620],[6,256],[-43,339],[-123,215],[1,430],[156,97],[56,-61],[9,226],[-162,61],[-4,370],[541,-13],[92,203],[77,-187],[55,-349],[52,73]],[[31423,51320],[153,-312],[216,38],[54,181],[206,138],[115,97],[32,250],[198,168],[-15,124],[-235,51],[-39,372],[12,396],[-125,153],[52,55],[206,-76],[221,-148],[80,140],[200,92],[310,221],[102,225],[-37,167]],[[33129,53652],[145,26],[64,-136],[-36,-259],[96,-90],[63,-274],[-77,-209],[-44,-502],[71,-299],[20,-274],[171,-277],[137,-29],[30,116],[88,25],[126,104],[90,157],[154,-50],[67,21]],[[34294,51702],[151,-48],[25,120],[-46,118],[28,171],[112,-53],[131,61],[159,-125]],[[34854,51946],[121,-122],[86,160],[62,-25],[38,-166],[133,42],[107,224],[85,436],[164,540]],[[35650,53035],[95,28],[69,-327],[155,-1033],[149,-97],[7,-408],[-208,-487],[86,-178],[491,-92],[10,-593],[211,388],[349,-212],[462,-361],[135,-346],[-45,-327],[323,182],[540,-313],[415,23],[411,-489],[355,-662],[214,-170],[237,-24],[101,-186],[94,-752],[46,-358],[-110,-977],[-142,-385],[-391,-822],[-177,-668],[-206,-513],[-69,-11],[-78,-435],[20,-1107],[-77,-910],[-30,-390],[-88,-233],[-49,-790],[-282,-771],[-47,-610],[-225,-256],[-65,-355],[-302,2],[-437,-227],[-195,-263],[-311,-173],[-327,-470],[-235,-586],[-41,-441],[46,-326],[-51,-597],[-63,-289],[-195,-325],[-308,-1040],[-244,-468],[-189,-277],[-127,-562],[-183,-337]],[[33842,38659],[-4,182],[-259,302],[-258,9],[-484,-172],[-133,-520],[-7,-318],[-110,-708]],[[30669,40193],[175,638],[-119,496],[63,199],[-49,219],[108,295],[6,503],[13,415],[60,200],[-240,951]],[[30452,39739],[-279,340],[-24,242],[-551,593],[-498,646],[-214,365],[-115,488],[46,170],[-236,775],[-274,1090],[-262,1177],[-114,269],[-87,435],[-216,386],[-198,239],[90,264],[-134,563],[86,414],[221,373]],[[27693,48568],[33,-246],[-79,-141],[8,-216],[114,47],[113,-64],[116,-298],[157,243],[53,398],[170,514],[334,233],[303,619],[86,384],[-38,449]],[[29063,50490],[74,56],[184,-280],[89,-279],[129,-152],[163,-620],[207,-74],[153,157],[101,-103],[166,51],[213,-276],[-179,-602],[83,-14],[139,-314]],[[29063,50490],[-119,140],[-137,195],[-79,-94],[-235,82],[-68,255],[-52,-10],[-278,338]],[[28095,51396],[-37,183],[103,44],[-12,296],[65,214],[138,40],[117,371],[106,310],[-102,141],[52,343],[-62,540],[59,155],[-44,500],[-112,315]],[[28366,54848],[36,287],[89,-43],[52,176],[-64,348],[34,86]],[[28513,55702],[143,-18],[209,412],[114,63],[3,195],[51,500],[159,274],[175,11],[22,123],[218,-49],[218,298],[109,132],[134,285],[98,-36],[73,-156],[-54,-199]],[[30185,57537],[-178,-99],[-71,-295],[-107,-169],[-81,-220],[-34,-422],[-77,-345],[144,-40],[35,-271],[62,-130],[21,-238],[-33,-219],[10,-123],[69,-49],[66,-207],[357,57],[161,-75],[196,-508],[112,63],[200,-32],[158,68],[99,-102],[-50,-318],[-62,-199],[-22,-423],[56,-393],[79,-175],[9,-133],[-140,-294],[100,-130],[74,-207],[85,-589]],[[28366,54848],[-93,170],[-59,319],[68,158],[-70,40],[-52,196],[-138,164],[-122,-38],[-56,-205],[-112,-149],[-61,-20],[-27,-123],[132,-321],[-75,-76],[-40,-87],[-130,-30],[-48,353],[-36,-101],[-92,35],[-56,238],[-114,39],[-72,69],[-119,-1],[-8,-128],[-32,89]],[[26954,55439],[14,117],[23,120],[-10,107],[41,70],[-58,88],[-1,238],[107,53]],[[27070,56232],[100,-212],[-6,-126],[111,-26],[26,48],[77,-145],[136,42],[119,150],[168,119],[95,176],[153,-34],[-10,-58],[155,-21],[124,-102],[90,-177],[105,-164]],[[26954,55439],[-151,131],[-56,124],[32,103],[-11,130],[-77,142],[-109,116],[-95,76],[-19,173],[-73,105],[18,-172],[-55,-141],[-64,164],[-89,58],[-38,120],[2,179],[36,187],[-78,83],[64,114]],[[26191,57131],[42,76],[183,-156],[63,77],[89,-50],[46,-121],[82,-40],[66,126]],[[26762,57043],[70,-321],[108,-238],[130,-252]],[[26191,57131],[-96,186],[-130,238],[-61,200],[-117,185],[-140,267],[31,91],[46,-88],[21,41]],[[25745,58251],[86,25],[35,135],[41,5],[-6,290],[65,14],[58,-4],[60,158],[82,-120],[29,74],[51,70],[97,163],[4,121],[27,-5],[36,141],[29,17],[47,-90],[56,-27],[61,76],[70,0],[97,77],[38,81],[95,-12]],[[26903,59440],[-24,-57],[-14,-132],[29,-216],[-64,-202],[-30,-237],[-9,-261],[15,-152],[7,-266],[-43,-58],[-26,-253],[19,-156],[-56,-151],[12,-159],[43,-97]],[[25745,58251],[-48,185],[-84,51]],[[25613,58487],[19,237],[-38,64],[-57,42],[-122,-70],[-10,79],[-84,95],[-60,118],[-82,50]],[[25179,59102],[58,150],[-22,116],[20,113],[131,166],[127,225]],[[25493,59872],[29,-23],[61,104],[79,8],[26,-48],[43,29],[129,-53],[128,15],[90,66],[32,66],[89,-31],[66,-40],[73,14],[55,51],[127,-82],[44,-13],[85,-110],[80,-132],[101,-91],[73,-162]],[[25613,58487],[-31,-139],[-161,9],[-100,57],[-115,117],[-154,37],[-79,127]],[[24973,58695],[9,86],[95,149],[52,66],[-15,69],[65,37]],[[25238,61101],[-2,-468],[-22,-667],[83,0]],[[25297,59966],[90,-107],[24,88],[82,-75]],[[24973,58695],[-142,103],[-174,11],[-127,117],[-149,244]],[[25472,61510],[1,-87],[53,-3],[-5,-160],[-45,-256],[24,-91],[-29,-212],[18,-56],[-32,-299],[-55,-156],[-50,-19],[-55,-205]],[[30185,57537],[-8,-139],[-163,-69],[91,-268],[-3,-309],[-123,-344],[105,-468],[120,38],[62,427],[-86,208],[-14,447],[346,241],[-38,278],[97,186],[100,-415],[195,-9],[180,-330],[11,-195],[249,-6],[297,61],[159,-264],[213,-74],[155,185],[4,149],[344,35],[333,9],[-236,-175],[95,-279],[222,-44],[210,-291],[45,-473],[144,13],[109,-139]],[[33400,55523],[-220,-347],[-24,-215],[95,-220],[-69,-110],[-171,-95],[5,-273],[-75,-163],[188,-448]],[[33400,55523],[183,-217],[171,-385],[8,-304],[105,-14],[149,-289],[109,-205]],[[34125,54109],[-44,-532],[-169,-154],[15,-139],[-51,-305],[123,-429],[89,-1],[37,-333],[169,-514]],[[34125,54109],[333,-119],[30,107],[225,43],[298,-159]],[[35011,53981],[-144,-508],[22,-404],[109,-351],[-49,-254],[-24,-270],[-71,-248]],[[35011,53981],[95,-65],[204,-140],[294,-499],[46,-242]],[[51718,79804],[131,-155],[400,-109],[-140,-404],[-35,-421]],[[52074,78715],[-77,-101],[-126,54],[9,-150],[-203,-332],[-5,-267],[133,92],[95,-259]],[[51900,77752],[-11,-167],[82,-222],[-97,-180],[72,-457],[151,-75],[-32,-256]],[[52065,76395],[-252,-334],[-548,160],[-404,-192],[-32,-355]],[[50829,75674],[-322,-77],[-313,267],[-101,-127],[-511,268],[-111,230]],[[49471,76235],[144,354],[53,1177],[-287,620],[-205,299],[-424,227],[-28,431],[360,129],[466,-152],[-88,669],[263,-254],[646,461],[84,484],[243,119]],[[50698,80799],[40,-207],[129,-10],[129,-237],[194,-279],[143,46],[243,-269]],[[51576,79843],[62,-52],[80,13]],[[52429,75765],[179,226],[47,-507],[-92,-456],[-126,120],[-64,398],[56,219]],[[27693,48568],[148,442],[-60,258],[-106,-275],[-166,259],[56,167],[-47,536],[97,89],[52,368],[105,381],[-20,241],[153,126],[190,236]],[[31588,61519],[142,-52],[50,-118],[-71,-149],[-209,4],[-163,-21],[-16,253],[40,86],[227,-3]],[[28453,61504],[187,-53],[147,-142],[46,-161],[-195,-11],[-84,-99],[-156,95],[-159,215],[34,135],[116,41],[64,-20]],[[27147,64280],[240,-42],[219,-7],[261,-201],[110,-216],[260,66],[98,-138],[235,-366],[173,-267],[92,8],[165,-120],[-20,-167],[205,-24],[210,-242],[-33,-138],[-185,-75],[-187,-29],[-191,46],[-398,-57],[186,329],[-113,154],[-179,39],[-96,171],[-66,336],[-157,-23],[-259,159],[-83,124],[-362,91],[-97,115],[104,148],[-273,30],[-199,-307],[-115,-8],[-40,-144],[-138,-65],[-118,56],[146,183],[60,213],[126,131],[142,116],[210,56],[67,65]],[[58175,37528],[-177,267],[-215,90],[-82,375],[0,208],[-119,64],[-315,649],[-87,342],[-56,105],[-107,473]],[[57017,40101],[311,-65],[90,-68],[94,13],[154,383],[241,486],[100,46],[33,205],[159,235],[210,81]],[[58409,41417],[18,-220],[232,12],[128,-125],[60,-146],[132,-43],[145,-190],[0,-748],[-54,-409],[-12,-442],[45,-175],[-31,-348],[-42,-53],[-74,-426],[-292,-671]],[[55526,35946],[0,1725],[274,20],[8,2105],[207,19],[428,207],[106,-243],[177,231],[85,2],[156,133]],[[56967,40145],[50,-44]],[[54540,33696],[-207,446],[-108,432],[-62,575],[-68,428],[-93,910],[-7,707],[-35,322],[-108,243],[-144,489],[-146,708],[-60,371],[-226,577],[-17,453]],[[53259,40357],[134,113],[166,100],[180,-17],[166,-267],[42,41],[1126,26],[192,-284],[673,-83],[510,241]],[[56448,40227],[228,134],[180,-34],[109,-133],[2,-49]],[[45357,58612],[-115,460],[-138,210],[122,112],[134,415],[66,304]],[[45426,60113],[96,189],[138,-51],[135,129],[155,6],[133,-173],[184,-157],[168,-435],[184,-405]],[[46619,59216],[13,-368],[54,-338],[104,-166],[24,-229],[-13,-184]],[[46801,57931],[-40,-33],[-151,47],[-21,-66],[-61,-13],[-200,144],[-134,6]],[[46194,58016],[-513,25],[-75,-67],[-92,19],[-147,-96]],[[45367,57897],[-46,453]],[[45321,58350],[253,-13],[67,83],[50,5],[103,136],[119,-124],[121,-11],[120,133],[-56,170],[-92,-99],[-86,3],[-110,145],[-88,-9],[-63,-140],[-302,-17]],[[46619,59216],[93,107],[47,348],[88,14],[194,-165],[157,117],[107,-39],[42,131],[1114,9],[62,414],[-48,73],[-134,2550],[-134,2550],[425,10]],[[48632,65335],[937,-1289],[937,-1289],[66,-277],[173,-169],[129,-96],[3,-376],[308,58]],[[51185,61897],[1,-1361],[-152,-394],[-24,-364],[-247,-94],[-379,-51],[-102,-210],[-178,-23]],[[50104,59400],[-178,-3],[-70,114],[-153,-84],[-259,-246],[-53,-184],[-216,-265],[-38,-152],[-116,-120],[-134,79],[-76,-144],[-41,-405],[-221,-490],[7,-200],[-76,-250],[18,-343]],[[48498,56707],[-114,-88],[-65,-74],[-43,253],[-80,-67],[-48,11],[-51,-172],[-215,5],[-77,89],[-36,-54]],[[47769,56610],[-85,170],[15,176],[-35,69],[-59,-58],[11,192],[57,152],[-114,248],[-33,163],[-62,130],[-55,15],[-67,-83],[-90,-79],[-76,-128],[-119,48],[-77,150],[-46,19],[-73,-78],[-44,-1],[-16,216]],[[47587,66766],[1045,-1431]],[[45426,60113],[-24,318],[78,291],[34,557],[-30,583],[-34,294],[28,295],[-72,281],[-146,255]],[[50747,54278],[-229,-69]],[[50518,54209],[-69,407],[13,1357],[-56,122],[-11,290],[-96,207],[-85,174],[35,311]],[[50249,57077],[96,67],[56,258],[136,56],[61,176]],[[50598,57634],[93,173],[100,2],[212,-340]],[[51003,57469],[-11,-197],[62,-350],[-54,-238],[29,-159],[-135,-366],[-86,-181],[-52,-372],[7,-376],[-16,-952]],[[54026,58177],[-78,-34],[-9,-188]],[[53939,57955],[-52,-13],[-188,647],[-65,24],[-217,-331],[-215,173],[-150,34],[-80,-83],[-163,18],[-164,-252],[-141,-14],[-337,305],[-131,-145],[-142,10],[-104,223],[-279,221],[-298,-70],[-72,-128],[-39,-340],[-80,-238],[-19,-527]],[[50598,57634],[6,405],[-320,134],[-9,286],[-156,386],[-37,269],[22,286]],[[51185,61897],[392,263],[804,1161],[952,1126]],[[53333,64447],[439,-255],[156,-324],[197,220]],[[53939,57955],[110,-235],[-31,-107],[-14,-196],[-234,-457],[-74,-377],[-39,-307],[-59,-132],[-56,-414],[-148,-243],[-43,-299],[-63,-238],[-26,-246],[-191,-199],[-156,243],[-105,-10],[-165,-345],[-81,-6],[-132,-570],[-71,-418]],[[52361,53399],[-289,-213],[-105,31],[-107,-132],[-222,13],[-149,370],[-91,427],[-197,389],[-209,-7],[-245,1]],[[54244,54965],[-140,-599],[-67,-107],[-21,-458],[28,-249],[-23,-176],[132,-309],[23,-212],[103,-305],[127,-190],[12,-269],[29,-172]],[[54447,51919],[-20,-319],[-220,140],[-225,156],[-350,23]],[[53632,51919],[-35,32],[-164,-76],[-169,79],[-132,-38]],[[53132,51916],[-452,13]],[[52680,51929],[40,466],[-108,391],[-127,100],[-56,265],[-72,85],[4,163]],[[50518,54209],[-224,-126]],[[50294,54083],[-62,207],[-74,375],[-22,294],[61,532],[-69,215],[-27,466],[1,429],[-116,305],[20,184]],[[50006,57090],[243,-13]],[[50294,54083],[-436,-346],[-154,-203],[-250,-171],[-248,168]],[[49206,53531],[13,233],[-121,509],[73,667],[117,496],[-74,841]],[[49214,56277],[-38,444],[7,336],[482,27],[123,-43],[90,96],[128,-47]],[[48498,56707],[125,-129],[49,-195],[125,-125],[97,149],[130,22],[190,-152]],[[49206,53531],[-126,-7],[-194,116],[-178,-7],[-329,-103],[-193,-170],[-275,-217],[-54,15]],[[47857,53158],[22,487],[26,74],[-8,233],[-118,247],[-88,40],[-81,162],[60,262],[-28,286],[13,172]],[[47655,55121],[44,0],[17,258],[-22,114],[27,82],[103,71],[-69,473],[-64,245],[23,200],[55,46]],[[47655,55121],[-78,15],[-57,-238],[-78,3],[-55,126],[19,237],[-116,362],[-73,-67],[-59,-13]],[[47158,55546],[-77,-34],[3,217],[-44,155],[9,171],[-60,249],[-78,211],[-222,1],[-65,-112],[-76,-13],[-48,-128],[-32,-163],[-148,-260]],[[46320,55840],[-122,349],[-108,232],[-71,76],[-69,118],[-32,261],[-41,130],[-80,97]],[[45797,57103],[123,288],[84,-11],[73,99],[61,1],[44,78],[-24,196],[31,62],[5,200]],[[45797,57103],[-149,247],[-117,39],[-63,166],[1,90],[-84,125],[-18,127]],[[47857,53158],[-73,-5],[-286,282],[-252,449],[-237,324],[-187,381]],[[46822,54589],[66,189],[15,172],[126,320],[129,276]],[[46822,54589],[-75,44],[-200,238],[-144,316],[-49,216],[-34,437]],[[55125,52650],[-178,33],[-188,99],[-166,-313],[-146,-550]],[[56824,55442],[152,-239],[2,-192],[187,-308],[116,-255],[70,-355],[208,-234],[44,-187]],[[53609,47755],[-104,203],[-84,-100],[-112,-255]],[[53309,47603],[-228,626]],[[53081,48229],[212,326],[-105,391],[95,148],[187,73],[23,261],[148,-283],[245,-25],[85,279],[36,393],[-31,461],[-131,350],[120,684],[-69,117],[-207,-48],[-78,305],[21,258]],[[53081,48229],[-285,596],[-184,488],[-169,610],[9,196],[61,189],[67,430],[56,438]],[[52636,51176],[94,35],[404,-6],[-2,711]],[[52636,51176],[-52,90],[96,663]],[[59099,45126],[131,-264],[71,-501],[-47,-160],[-56,-479],[53,-490],[-87,-205],[-85,-549],[147,-153]],[[59226,42325],[-843,-487],[26,-421]],[[56448,40227],[-181,369],[-188,483],[13,1880],[579,-7],[-24,203],[41,222],[-49,277],[32,286],[-29,184]],[[59599,43773],[-77,-449],[77,-768],[97,9],[100,-191],[116,-427],[24,-760],[-120,-124],[-85,-410],[-181,365],[-21,417],[59,274],[-16,237],[-110,149],[-77,-54],[-159,284]],[[61198,44484],[45,-265],[-11,-588],[34,-519],[11,-923],[49,-290],[-83,-422],[-108,-410],[-177,-366],[-254,-225],[-313,-287],[-313,-634],[-107,-108],[-194,-420],[-115,-136],[-23,-421],[132,-448],[54,-346],[4,-177],[49,29],[-8,-579],[-45,-275],[65,-101],[-41,-245],[-116,-211],[-229,-199],[-334,-320],[-122,-219],[24,-248],[71,-40],[-24,-311]],[[58908,34785],[-24,261],[-41,265]],[[53383,47159],[-74,444]],[[53259,40357],[-26,372],[38,519],[96,541],[15,254],[90,532],[66,243],[159,386],[90,263],[29,438],[-15,335],[-83,211],[-74,358],[-68,355],[15,122],[85,235],[-84,570],[-57,396],[-139,374],[26,115]],[[58062,48902],[169,-46],[85,336],[147,-38]],[[59922,69905],[-49,-186]],[[59873,69719],[-100,82],[-58,-394],[69,-66],[-71,-81],[-12,-156],[131,80]],[[59832,69184],[7,-230],[-139,-944]],[[59700,68010],[-27,153],[-155,862]],[[59518,69025],[80,194],[-19,34],[74,276],[56,446],[40,149],[8,6]],[[59757,70130],[93,-1],[25,104],[75,8]],[[59950,70241],[4,-242],[-38,-90],[6,-4]],[[59757,70130],[99,482],[138,416],[5,21]],[[59999,71049],[125,-31],[45,-231],[-151,-223],[-68,-323]],[[63761,43212],[74,-251],[69,-390],[45,-711],[72,-276],[-28,-284],[-49,-174],[-94,347],[-53,-175],[53,-438],[-24,-250],[-77,-137],[-18,-500],[-109,-689],[-137,-814],[-172,-1120],[-106,-821],[-125,-685],[-226,-140],[-243,-250],[-160,151],[-220,211],[-77,312],[-18,524],[-98,471],[-26,425],[50,426],[128,102],[1,197],[133,447],[25,377],[-65,280],[-52,372],[-23,544],[97,331],[38,375],[138,22],[155,121],[103,107],[122,7],[158,337],[229,364],[83,297],[-38,253],[118,-71],[153,410],[6,356],[92,264],[96,-254]],[[59873,69719],[0,-362],[-41,-173]],[[45321,58350],[36,262]],[[52633,68486],[-118,1061],[-171,238],[-3,143],[-227,352],[-24,445],[171,330],[65,487],[-44,563],[57,303]],[[52339,72408],[302,239],[195,-71],[-9,-299],[236,217],[20,-113],[-139,-290],[-2,-273],[96,-147],[-36,-511],[-183,-297],[53,-322],[143,-10],[70,-281],[106,-92]],[[53191,70158],[-16,-454],[-135,-170],[-86,-189],[-191,-228],[30,-244],[-24,-250],[-136,-137]],[[47592,66920],[-2,700],[449,436],[277,90],[227,159],[107,295],[324,234],[12,438],[161,51],[126,219],[363,99],[51,230],[-73,125],[-96,624],[-17,359],[-104,379]],[[49397,71358],[267,323],[300,102],[175,244],[268,180],[471,105],[459,48],[140,-87],[262,232],[297,5],[113,-137],[190,35]],[[52633,68486],[90,-522],[15,-274],[-49,-482],[21,-270],[-36,-323],[24,-371],[-110,-247],[164,-431],[11,-253],[99,-330],[130,109],[219,-275],[122,-370]],[[59922,69905],[309,-234],[544,630]],[[60775,70301],[112,-720]],[[60887,69581],[-53,-89],[-556,-296],[277,-591],[-92,-101],[-46,-197],[-212,-82],[-66,-213],[-120,-182],[-310,94]],[[59709,67924],[-9,86]],[[64327,64904],[49,29],[11,-162],[217,93],[230,-15],[168,-18],[190,400],[207,379],[176,364]],[[65575,65974],[52,-202]],[[65627,65772],[38,-466]],[[65665,65306],[-142,-3],[-23,-384],[50,-82],[-126,-117],[-1,-241],[-81,-245],[-7,-238]],[[65335,63996],[-56,-125],[-835,298],[-106,599],[-11,136]],[[64113,65205],[-18,430],[75,310],[76,64],[84,-185],[5,-346],[-61,-348]],[[64274,65130],[-77,-42],[-84,117]],[[63326,68290],[58,-261],[-25,-135],[89,-445]],[[63448,67449],[-196,-16],[-69,282],[-248,57]],[[62935,67772],[204,567],[187,-49]],[[60775,70301],[615,614],[105,715],[-26,431],[152,146],[142,369]],[[61763,72576],[119,92],[324,-77],[97,-150],[133,100]],[[62436,72541],[180,-705],[182,-177],[21,-345],[-139,-204],[-65,-461],[193,-562],[340,-324],[143,-449],[-46,-428],[89,0],[3,-314],[153,-311]],[[63490,68261],[-164,29]],[[62935,67772],[-516,47],[-784,1188],[-413,414],[-335,160]],[[65665,65306],[125,-404],[155,-214],[203,-78],[165,-107],[125,-339],[75,-196],[100,-75],[-1,-132],[-101,-352],[-44,-166],[-117,-189],[-104,-404],[-126,31],[-58,-141],[-44,-300],[34,-395],[-26,-72],[-128,2],[-174,-221],[-27,-288],[-63,-125],[-173,5],[-109,-149],[1,-238],[-134,-165],[-153,56],[-186,-199],[-128,-34]],[[64752,60417],[-91,413],[-217,975]],[[64444,61805],[833,591],[185,1182],[-127,418]],[[65575,65974],[80,201],[35,-51],[-26,-244],[-37,-108]],[[96448,41190],[175,-339],[-92,-78],[-93,259],[10,158]],[[96330,41322],[-39,163],[-6,453],[133,-182],[45,-476],[-75,74],[-58,-32]],[[78495,57780],[-66,713],[178,492],[359,112],[261,-84]],[[79227,59013],[229,-232],[126,407],[246,-217]],[[79828,58971],[64,-394],[-34,-708],[-467,-455],[122,-358],[-292,-43],[-240,-238]],[[78981,56775],[-233,87],[-112,307],[-141,611]],[[78495,57780],[-249,271],[-238,-11],[41,464],[-245,-3],[-22,-650],[-150,-863],[-90,-522],[19,-428],[181,-18],[113,-539],[50,-512],[155,-338],[168,-69],[144,-306]],[[78372,54256],[-91,-243],[-183,-71],[-22,304],[-227,258],[-48,-105]],[[77801,54399],[-110,227],[-47,292],[-148,334],[-135,280],[-45,-347],[-53,328],[30,369],[82,566]],[[77375,56448],[135,607],[152,551],[-108,539],[4,274],[-32,330],[-185,470],[-66,296],[96,109],[101,514],[-113,390],[-177,431],[-134,519],[117,107],[127,639],[196,26],[162,256],[159,137]],[[77809,62643],[120,-182],[16,-355],[188,-27],[-68,-623],[6,-530],[293,353],[83,-104],[163,17],[56,205],[210,-40],[211,-480],[18,-583],[224,-515],[-12,-500],[-90,-266]],[[77809,62643],[59,218],[237,384]],[[78105,63245],[25,-139],[148,-16],[-42,676],[144,86]],[[78380,63852],[162,-466],[125,-537],[342,-5],[108,-515],[-178,-155],[-80,-212],[333,-353],[231,-699],[175,-520],[210,-411],[70,-418],[-50,-590]],[[77375,56448],[-27,439],[86,452],[-94,350],[23,644],[-113,306],[-90,707],[-50,746],[-121,490],[-183,-297],[-315,-421],[-156,53],[-172,138],[96,732],[-58,554],[-218,681],[34,213],[-163,76],[-197,481]],[[75657,62792],[-18,476],[97,-90],[6,424]],[[75742,63602],[137,140],[-30,251],[63,201],[11,612],[217,-135],[124,487],[14,288],[153,496],[-8,338],[359,408],[199,-107],[-23,364],[97,108],[-20,224]],[[77035,67277],[162,44],[93,-348],[121,-141],[8,-452],[-11,-487],[-263,-493],[-33,-701],[293,98],[66,-544],[176,-115],[-81,-490],[206,-222],[121,-109],[203,172],[9,-244]],[[78380,63852],[149,145],[221,-3],[271,68],[236,315],[134,-222],[254,-108],[-44,-340],[132,-240],[280,-154]],[[80013,63313],[-371,-505],[-231,-558],[-61,-410],[212,-623],[260,-772],[252,-365],[169,-475],[127,-1093],[-37,-1039],[-232,-389],[-318,-381],[-227,-492],[-346,-550],[-101,378],[78,401],[-206,335]],[[86327,75524],[0,0]],[[86327,75524],[-106,36],[-120,-200],[-83,-202],[10,-424],[-143,-130],[-50,-105],[-104,-174],[-185,-97],[-121,-159],[-9,-256],[-32,-65],[111,-96],[157,-259]],[[85652,73393],[-40,-143],[-118,-39],[-197,-29],[-108,-266],[-124,21],[-17,-54]],[[85048,72883],[-135,112],[-34,-111],[-81,-49],[-10,112],[-72,54],[-75,94],[76,260],[66,69],[-25,108],[71,319],[-18,96],[-163,65],[-131,158]],[[84517,74170],[227,379],[306,318],[191,419],[131,-185],[241,-22],[-44,312],[429,254],[111,331],[179,-348]],[[85652,73393],[240,-697],[68,-383],[3,-681],[-105,-325],[-252,-113],[-222,-245],[-250,-51],[-31,322],[51,443],[-122,615],[206,99],[-190,506]],[[82410,80055],[-135,-446],[-197,-590],[72,-241],[157,74],[274,-92],[214,219],[223,-189],[251,-413],[-30,-210],[-219,66],[-404,-78],[-195,-168],[-204,-391],[-423,-229],[-277,-313],[-286,120],[-156,53],[-146,-381],[89,-227],[45,-195],[-194,-199],[-200,-316],[-324,-208],[-417,-22],[-448,-205],[-324,-318],[-123,184],[-336,-1],[-411,359],[-274,88],[-369,-82],[-574,133],[-306,-14],[-163,351],[-127,544],[-171,66],[-336,368],[-374,83],[-330,101],[-100,256],[107,690],[-192,476],[-396,222],[-233,313],[-73,413]],[[75742,63602],[-147,937],[-76,-2],[-46,-377],[-152,306],[86,336],[124,34],[128,500],[-160,101],[-257,-8],[-265,81],[-24,410],[-133,30],[-220,255],[-98,-401],[200,-313],[-173,-220],[-62,-215],[171,-159],[-47,-356],[96,-444],[43,-486]],[[74730,63611],[-39,-216],[-189,7],[-343,-122],[16,-445],[-148,-349],[-400,-398],[-311,-695],[-209,-373],[-276,-387],[-1,-271],[-138,-146],[-251,-212],[-129,-31],[-84,-450],[58,-769],[15,-490],[-118,-561],[-1,-1004],[-144,-29],[-126,-450],[84,-195],[-253,-168],[-93,-401],[-112,-170],[-263,552],[-128,827],[-107,596],[-97,279],[-148,568],[-69,739],[-48,369],[-253,811],[-115,1145],[-83,756],[1,716],[-54,553],[-404,-353],[-196,70],[-362,716],[133,214],[-82,232],[-326,501]],[[68937,64577],[185,395],[612,-2],[-56,507],[-156,300],[-31,455],[-182,265],[306,619],[323,-45],[290,620],[174,599],[270,593],[-4,421],[236,342],[-224,292],[-96,400],[-99,517],[137,255],[421,-144],[310,88],[268,496]],[[71621,71550],[298,-692],[-28,-482],[111,-303],[-9,-301],[-200,79],[78,-651],[273,-374],[386,-413]],[[72530,68413],[-176,-268],[-108,-553],[269,-224],[262,-289],[362,-332],[381,-76],[160,-301],[215,-56],[334,-138],[231,10],[32,234],[-36,375],[21,255]],[[74477,67050],[170,124],[23,-465]],[[74670,66709],[6,-119],[252,-224],[175,92],[234,-39],[227,17],[20,363],[-113,189]],[[75471,66988],[224,74],[252,439],[321,376],[233,-145],[198,249],[130,-367],[-94,-248],[300,-89]],[[75657,62792],[-79,308],[-16,301],[-53,285],[-116,344],[-256,23],[25,-243],[-87,-329],[-118,120],[-41,-108],[-78,65],[-108,53]],[[74670,66709],[184,439],[150,150],[198,-137],[147,-14],[122,-159]],[[72530,68413],[115,141],[223,-182],[280,-385],[157,-84],[93,-284],[216,-117],[225,-259],[314,-136],[324,-57]],[[68937,64577],[-203,150],[-83,424],[-215,450],[-512,-111],[-451,-11],[-391,-83]],[[67082,65396],[105,687],[400,305],[-23,272],[-133,96],[-7,520],[-266,260],[-112,357],[-137,310]],[[66909,68203],[465,-301],[278,88],[166,-75],[56,129],[194,-52],[361,246],[10,503],[154,334],[207,-1],[31,166],[212,77],[103,-55],[108,166],[-15,355],[118,356],[177,150],[-110,390],[265,-18],[76,213],[-12,227],[139,248],[-32,294],[-66,250],[163,258],[298,124],[319,68],[141,109],[162,67]],[[70877,72519],[205,-276],[82,-454],[457,-239]],[[68841,72526],[85,-72],[201,189],[93,-114],[90,271],[166,-12],[43,86],[29,239],[120,205],[150,-134],[-30,-181],[84,-28],[-26,-496],[110,-194],[97,125],[123,58],[173,265],[192,-44],[286,-1]],[[70827,72688],[50,-169]],[[66909,68203],[252,536],[-23,380],[-210,100],[-22,375],[-91,472],[119,323],[-121,87],[76,430],[113,736]],[[67002,71642],[284,-224],[209,79],[58,268],[219,89],[157,180],[55,472],[234,114],[44,211],[131,-158],[84,-19]],[[69725,74357],[-101,-182],[-303,98],[-26,-340],[301,46],[343,-192],[526,89]],[[70465,73876],[70,-546],[91,59],[169,-134],[-10,-230],[42,-337]],[[72294,75601],[-39,-134],[-438,-320],[-99,-234],[-356,-70],[-105,-378],[-294,80],[-192,-116],[-266,-279],[39,-138],[-79,-136]],[[67002,71642],[-24,498],[-207,21],[-318,523],[-221,65],[-308,299],[-197,55],[-122,-110],[-186,17],[-197,-338],[-244,-114]],[[64978,72558],[-52,417],[40,618],[-216,200],[71,405],[-184,34],[61,498],[262,-145],[244,189],[-202,355],[-80,338],[-224,-151],[-28,-433],[-87,383]],[[62436,72541],[-152,473],[55,183],[-87,678],[190,168]],[[62442,74043],[44,-223],[141,-273],[190,-78]],[[62817,73469],[101,17]],[[62918,73486],[327,436],[104,44],[82,-174],[-95,-292],[173,-309],[69,29]],[[63578,73220],[88,-436],[263,-123],[193,-296],[395,-102],[434,156],[27,139]],[[67082,65396],[-523,179],[-303,136],[-313,76],[-118,725],[-133,105],[-214,-106],[-280,-286],[-339,196],[-281,454],[-267,168],[-186,561],[-205,788],[-149,-96],[-177,196],[-104,-231]],[[59999,71049],[-26,452],[68,243]],[[60041,71744],[74,129],[75,130],[15,329],[91,-115],[306,165],[147,-112],[229,2],[320,222],[149,-10],[316,92]],[[62817,73469],[-113,342],[1,91],[-123,-2],[-82,159],[-58,-16]],[[62442,74043],[-109,172],[-207,147],[27,288],[-47,208]],[[62106,74858],[386,92]],[[62492,74950],[57,-155],[106,-103],[-56,-148],[148,-202],[-78,-189],[118,-160],[124,-97],[7,-410]],[[55734,91409],[371,-289],[433,-402],[8,-910],[93,-230]],[[56639,89578],[-478,-167],[-269,-413],[43,-361],[-441,-475],[-537,-509],[-202,-832],[198,-416],[265,-328],[-255,-666],[-289,-138],[-106,-992],[-157,-554],[-337,57],[-158,-468],[-321,-27],[-89,558],[-232,671],[-211,835]],[[58829,81362],[-239,-35],[-85,-129],[-18,-298],[-111,57],[-250,-28],[-73,138],[-104,-103],[-105,86],[-218,12],[-310,141],[-281,47],[-215,-14],[-152,-160],[-133,-23]],[[56535,81053],[-6,263],[-85,274],[166,121],[2,235],[-77,225],[-12,261]],[[56523,82432],[268,-4],[302,223],[64,333],[228,190],[-26,264]],[[57359,83438],[169,100],[298,228]],[[60617,78409],[-222,-48],[-185,-191],[-260,-31],[-239,-220],[14,-317]],[[59287,77741],[-38,64],[-432,149],[-19,221],[-257,-73],[-103,-325],[-215,-437]],[[58223,77340],[-126,101],[-131,-95],[-124,109]],[[57842,77455],[70,64],[49,203],[76,188],[-20,106],[58,47],[27,-81],[164,-18],[74,44],[-52,60],[19,88],[-97,150],[-40,247],[-101,97],[20,200],[-125,159],[-115,22],[-204,184],[-185,-58],[-66,-87]],[[57394,79070],[-118,0],[-69,-139],[-205,-56],[-95,-91],[-129,144],[-178,3],[-172,65],[-120,-127]],[[56308,78869],[-19,159],[-155,161]],[[56134,79189],[55,238],[77,154]],[[56266,79581],[60,-35],[-71,266],[252,491],[138,69],[29,166],[-139,515]],[[56266,79581],[-264,227],[-200,-84],[-131,61],[-165,-127],[-140,210],[-114,-81],[-16,36]],[[55236,79823],[-127,291],[-207,36],[-26,185],[-191,66],[-41,-153],[-151,122],[17,163],[-207,51],[-132,191]],[[54171,80775],[-114,377],[22,204],[-69,316],[-101,210],[77,158],[-64,300]],[[53922,82340],[189,174],[434,273],[350,200],[277,-100],[21,-144],[268,-7]],[[56314,82678],[142,-64],[67,-182]],[[54716,79012],[-21,-241],[-156,-2],[53,-128],[-92,-380]],[[54500,78261],[-53,-100],[-243,-14],[-140,-134],[-229,45]],[[53835,78058],[-398,153],[-62,205],[-274,-102],[-32,-113],[-169,84]],[[52900,78285],[-142,16],[-125,108],[42,145],[-10,104]],[[52665,78658],[83,33],[141,-164],[39,156],[245,-25],[199,106],[133,-18],[87,-121],[26,100],[-40,385],[100,75],[98,272]],[[53776,79457],[206,-190],[157,242],[98,44],[215,-180],[131,30],[128,-111]],[[54711,79292],[-23,-75],[28,-205]],[[56308,78869],[-170,-123],[-131,-401],[-168,-401],[-223,-111]],[[55616,77833],[-173,26],[-213,-155]],[[55230,77704],[-104,-89],[-229,114],[-208,253],[-88,73]],[[54601,78055],[-54,200],[-47,6]],[[54716,79012],[141,-151],[103,-65],[233,73],[22,118],[111,18],[135,92],[30,-38],[130,74],[66,139],[91,36],[297,-180],[59,61]],[[57842,77455],[-50,270],[30,252],[-9,259],[-160,352],[-89,249],[-86,175],[-84,58]],[[58223,77340],[6,-152],[-135,-128],[-84,56],[-78,-713]],[[57932,76403],[-163,62],[-202,215],[-327,-138],[-138,-150],[-408,31],[-213,92],[-108,-43],[-80,243]],[[56293,76715],[-51,103],[65,99],[-69,74],[-87,-133],[-162,172],[-22,244],[-169,139],[-31,188],[-151,232]],[[55907,83187],[-59,497]],[[55848,83684],[318,181],[466,-38],[273,59],[39,-123],[148,-38],[267,-287]],[[55848,83684],[10,445],[136,371],[262,202],[221,-442],[223,12],[53,453]],[[56753,84725],[237,105],[121,-73],[239,-219],[229,-1]],[[56753,84725],[32,349],[-102,-75],[-176,210],[-24,340],[351,164],[350,86],[301,-97],[287,17]],[[54171,80775],[-124,-62],[-73,68],[-70,-113],[-200,-114],[-103,-147],[-202,-129],[49,-176],[30,-249],[141,-142],[157,-254]],[[52665,78658],[-298,181],[-57,-128],[-236,4]],[[51718,79804],[16,259],[-56,133]],[[51678,80196],[32,400]],[[51710,80596],[-47,619],[167,0],[70,222],[69,541],[-51,200]],[[51918,82178],[54,125],[232,32],[52,-130],[188,291],[-63,222],[-13,335]],[[52368,83053],[210,-78],[178,90]],[[52756,83065],[4,-228],[281,-138],[-3,-210],[283,111],[156,162],[313,-233],[132,-189]],[[57932,76403],[-144,-245],[-101,-422],[89,-337]],[[57776,75399],[-239,79],[-283,-186]],[[57254,75292],[-3,-294],[-252,-56],[-196,206],[-222,-162],[-206,17]],[[56375,75003],[-20,391],[-139,189]],[[56216,75583],[46,84],[-30,70],[47,188],[105,185],[-135,255],[-24,216],[68,134]],[[57302,71436],[-35,-175],[-400,-50],[3,98],[-339,115],[52,251],[152,-199],[216,34],[207,-42],[-7,-103],[151,71]],[[57254,75292],[135,-157],[-86,-369],[-66,-67]],[[57237,74699],[-169,17],[-145,56],[-336,-154],[192,-332],[-141,-96],[-154,-1],[-147,305],[-52,-130],[62,-353],[139,-277],[-105,-129],[155,-273],[137,-171],[4,-334],[-257,157],[82,-302],[-176,-62],[105,-521],[-184,-8],[-228,257],[-104,473],[-49,393],[-108,272],[-143,337],[-18,168]],[[55597,73991],[129,287],[16,192],[91,85],[5,155]],[[55838,74710],[182,53],[106,129],[150,-12],[46,103],[53,20]],[[60041,71744],[-102,268],[105,222],[-169,-51],[-233,136],[-191,-340],[-421,-66],[-225,317],[-300,20],[-64,-245],[-192,-70],[-268,314],[-303,-11],[-165,588],[-203,328],[135,459],[-176,283],[308,565],[428,23],[117,449],[529,-78],[334,383],[324,167],[459,13],[485,-417],[399,-228],[323,91],[239,-53],[328,309]],[[61542,75120],[296,28],[268,-290]],[[57776,75399],[33,-228],[243,-190],[-51,-145],[-330,-33],[-118,-182],[-232,-319],[-87,276],[3,121]],[[55597,73991],[-48,41],[-5,130],[-154,199],[-24,281],[23,403],[38,184],[-47,93]],[[55380,75322],[-18,188],[120,291],[18,-111],[75,52]],[[55575,75742],[59,-159],[66,-60],[19,-214]],[[55719,75309],[-35,-201],[39,-254],[115,-144]],[[55230,77704],[67,-229],[89,-169],[-107,-222]],[[55279,77084],[-126,131],[-192,-8],[-239,98],[-130,-13],[-60,-123],[-99,136],[-59,-245],[136,-277],[61,-183],[127,-221],[106,-130],[105,-247],[246,-224]],[[55155,75778],[-31,-100]],[[55124,75678],[-261,218],[-161,213],[-254,176],[-233,434],[56,45],[-127,248],[-5,200],[-179,93],[-85,-255],[-82,198],[6,205],[10,9]],[[53809,77462],[194,-20],[51,100],[94,-97],[109,-11],[-1,165],[97,60],[27,239],[221,157]],[[52900,78285],[-22,-242],[-122,-100],[-206,75],[-60,-239],[-132,-19],[-48,94],[-156,-200],[-134,-28],[-120,126]],[[51576,79843],[30,331],[72,22]],[[50698,80799],[222,117]],[[50920,80916],[204,-47],[257,123],[176,-258],[153,-138]],[[50920,80916],[143,162],[244,869],[380,248],[231,-17]],[[47490,75324],[101,150],[113,86],[70,-289],[164,0],[47,75],[162,-21],[78,-296],[-129,-160],[-3,-461],[-45,-86],[-11,-280],[-120,-48],[111,-355],[-77,-388],[96,-175],[-38,-161],[-103,-222],[23,-195]],[[47929,72498],[-112,-153],[-146,83],[-143,-65],[42,462],[-26,363],[-124,55],[-67,224],[22,386],[111,215],[20,239],[58,355],[-6,250],[-56,212],[-12,200]],[[47490,75324],[14,420],[-114,257],[393,426],[340,-106],[373,3],[296,-101],[230,31],[449,-19]],[[50829,75674],[15,-344],[-263,-393],[-356,-125],[-25,-199],[-171,-327],[-107,-481],[108,-338],[-160,-263],[-60,-384],[-210,-118],[-197,-454],[-352,-9],[-265,11],[-174,-209],[-106,-223],[-136,49],[-103,199],[-79,340],[-259,92]],[[48278,82406],[46,-422],[-210,-528],[-493,-349],[-393,89],[225,617],[-145,601],[378,463],[210,276]],[[47896,83153],[57,-317],[-57,-317],[172,9],[210,-122]],[[96049,38125],[228,-366],[144,-272],[-105,-142],[-153,160],[-199,266],[-179,313],[-184,416],[-38,201],[119,-9],[156,-201],[122,-200],[89,-166]],[[95032,44386],[78,-203],[-194,4],[-106,363],[166,-142],[56,-22]],[[94910,44908],[-42,-109],[-206,512],[-57,353],[94,0],[100,-473],[111,-283]],[[94680,44747],[-108,-14],[-170,60],[-58,91],[17,235],[183,-93],[91,-124],[45,-155]],[[94344,45841],[65,-187],[12,-119],[-218,251],[-152,212],[-104,197],[41,60],[128,-142],[228,-272]],[[93649,46431],[111,-193],[-56,-33],[-121,134],[-114,243],[14,99],[166,-250]],[[99134,26908],[-105,-319],[-138,-404],[-214,-236],[-48,155],[-116,85],[160,486],[-91,326],[-299,236],[8,214],[201,206],[47,455],[-13,382],[-113,396],[8,104],[-133,244],[-218,523],[-117,418],[104,46],[151,-328],[216,-153],[78,-526],[202,-622],[5,403],[126,-161],[41,-447],[224,-192],[188,-48],[158,226],[141,-69],[-67,-524],[-85,-345],[-212,12],[-74,-179],[26,-254],[-41,-110]],[[97129,24846],[238,310],[167,306],[123,441],[106,149],[41,330],[195,273],[61,-251],[63,-244],[198,239],[80,-249],[0,-249],[-103,-274],[-182,-435],[-142,-238],[103,-284],[-214,-7],[-238,-223],[-75,-387],[-157,-597],[-219,-264],[-138,-169],[-256,13],[-180,194],[-302,42],[-46,217],[149,438],[349,583],[179,111],[200,225]],[[91024,26469],[166,-39],[20,-702],[-95,-203],[-29,-476],[-97,162],[-193,-412],[-57,32],[-171,19],[-171,505],[-38,390],[-160,515],[7,271],[181,-52],[269,-204],[151,81],[217,113]],[[85040,31546],[-294,-303],[-241,-137],[-53,-309],[-103,-240],[-236,-15],[-174,-52],[-246,107],[-199,-64],[-191,-27],[-165,-315],[-81,26],[-140,-167],[-133,-187],[-203,23],[-186,0],[-295,377],[-149,113],[6,338],[138,81],[47,134],[-10,212],[34,411],[-31,350],[-147,598],[-45,337],[12,336],[-111,385],[-7,174],[-123,235],[-35,463],[-158,467],[-39,252],[122,-255],[-93,548],[137,-171],[83,-229],[-5,303],[-138,465],[-26,186],[-65,177],[31,341],[56,146],[38,295],[-29,346],[114,425],[21,-450],[118,406],[225,198],[136,252],[212,217],[126,46],[77,-73],[219,220],[168,66],[42,129],[74,54],[153,-14],[292,173],[151,262],[71,316],[163,300],[13,236],[7,321],[194,502],[117,-510],[119,118],[-99,279],[87,287],[122,-128],[34,449],[152,291],[67,233],[140,101],[4,165],[122,-69],[5,148],[122,85],[134,80],[205,-271],[155,-350],[173,-4],[177,-56],[-59,325],[133,473],[126,155],[-44,147],[121,338],[168,208],[142,-70],[234,111],[-5,302],[-204,195],[148,86],[184,-147],[148,-242],[234,-151],[79,60],[172,-182],[162,169],[105,-51],[65,113],[127,-292],[-74,-316],[-105,-239],[-96,-20],[32,-236],[-81,-295],[-99,-291],[20,-166],[221,-327],[214,-189],[143,-204],[201,-350],[78,1],[145,-151],[43,-183],[265,-200],[183,202],[55,317],[56,262],[34,324],[85,470],[-39,286],[20,171],[-32,339],[37,445],[53,120],[-43,197],[67,313],[52,325],[7,168],[104,222],[78,-289],[19,-371],[70,-71],[11,-249],[101,-300],[21,-335],[-10,-214],[100,-464],[179,223],[92,-250],[133,-231],[-29,-262],[60,-506],[42,-295],[70,-72],[75,-505],[-27,-307],[90,-400],[301,-309],[197,-281],[186,-257],[-37,-143],[159,-371],[108,-639],[111,130],[113,-256],[68,91],[48,-626],[197,-363],[129,-226],[217,-478],[78,-475],[7,-337],[-19,-365],[132,-502],[-16,-523],[-48,-274],[-75,-527],[6,-339],[-55,-423],[-123,-538],[-205,-290],[-102,-458],[-93,-292],[-82,-510],[-107,-294],[-70,-442],[-36,-407],[14,-187],[-159,-205],[-311,-22],[-257,-242],[-127,-229],[-168,-254],[-230,262],[-170,104],[43,308],[-152,-112],[-243,-428],[-240,160],[-158,94],[-159,42],[-269,171],[-179,364],[-52,449],[-64,298],[-137,240],[-267,71],[91,287],[-67,438],[-136,-408],[-247,-109],[146,327],[42,341],[107,289],[-22,438],[-226,-504],[-174,-202],[-106,-470],[-217,243],[9,313],[-174,429],[-147,221],[52,137],[-356,358],[-195,17],[-267,287],[-498,-56],[-359,-211],[-317,-197],[-265,39]],[[72718,55024],[-42,-615],[-116,-168],[-242,-135],[-132,470],[-49,849],[126,959],[192,-328],[129,-416],[134,-616]],[[80409,61331],[-228,183],[-8,509],[137,267],[304,166],[159,-14],[62,-226],[-122,-260],[-64,-341],[-240,-284]],[[84517,74170],[-388,-171],[-204,-277],[-300,-161],[148,274],[-58,230],[220,397],[-147,310],[-242,-209],[-314,-411],[-171,-381],[-272,-29],[-142,-275],[147,-400],[227,-97],[9,-265],[220,-173],[311,422],[247,-230],[179,-15],[45,-310],[-393,-165],[-130,-319],[-270,-296],[-142,-414],[299,-325],[109,-581],[169,-541],[189,-454],[-5,-439],[-174,-161],[66,-315],[164,-184],[-43,-481],[-71,-468],[-155,-53],[-203,-640],[-225,-775],[-258,-705],[-382,-545],[-386,-498],[-313,-68],[-170,-262],[-96,192],[-157,-294],[-388,-296],[-294,-90],[-95,-624],[-154,-35],[-73,429],[66,228],[-373,189],[-131,-96]],[[83826,64992],[-167,-947],[-119,-485],[-146,499],[-32,438],[163,581],[223,447],[127,-176],[-49,-357]],[[53835,78058],[-31,-291],[67,-251]],[[53871,77516],[-221,86],[-226,-210],[15,-293],[-34,-168],[91,-301],[261,-298],[140,-488],[309,-476],[217,3],[68,-130],[-78,-118],[249,-214],[204,-178],[238,-308],[29,-111],[-52,-211],[-154,276],[-242,97],[-116,-382],[200,-219],[-33,-309],[-116,-35],[-148,-506],[-116,-46],[1,181],[57,317],[60,126],[-108,342],[-85,298],[-115,74],[-82,255],[-179,107],[-120,238],[-206,38],[-217,267],[-254,384],[-189,340],[-86,585],[-138,68],[-226,195],[-128,-80],[-161,-274],[-115,-43]],[[54100,73116],[211,51],[-100,-465],[41,-183],[-58,-303],[-213,222],[-141,64],[-387,300],[38,304],[325,-54],[284,64]],[[52419,74744],[139,183],[166,-419],[-39,-782],[-126,38],[-113,-197],[-105,156],[-11,713],[-64,338],[153,-30]],[[52368,83053],[-113,328],[-8,604],[46,159],[80,177],[244,37],[98,163],[223,167],[-9,-304],[-82,-192],[33,-166],[151,-89],[-68,-223],[-83,64],[-200,-425],[76,-288]],[[53436,83731],[88,-296],[-166,-478],[-291,333],[-39,246],[408,195]],[[47896,83153],[233,24],[298,-365],[-149,-406]],[[49140,82132],[1,0],[40,343],[-186,364],[-4,8],[-337,104],[-66,160],[101,264],[-92,163],[-149,-279],[-17,569],[-140,301],[101,611],[216,480],[222,-47],[335,49],[-297,-639],[283,81],[304,-3],[-72,-481],[-250,-530],[287,-38],[22,-62],[248,-697],[190,-95],[171,-673],[79,-233],[337,-113],[-34,-378],[-142,-173],[111,-305],[-250,-310],[-371,6],[-473,-163],[-130,116],[-183,-276],[-257,67],[-195,-226],[-148,118],[407,621],[249,127],[-2,1],[-434,98],[-79,235],[291,183],[-152,319],[52,387],[413,-54]],[[45969,89843],[-64,-382],[314,-403],[-361,-451],[-801,-405],[-240,-107],[-365,87],[-775,187],[273,261],[-605,289],[492,114],[-12,174],[-583,137],[188,385],[421,87],[433,-400],[422,321],[349,-167],[453,315],[461,-42]],[[63495,75281],[146,-311],[141,-419],[130,-28],[85,-159],[-228,-47],[-49,-459],[-48,-207],[-101,-138],[7,-293]],[[62492,74950],[68,96],[207,-169],[149,-36],[38,70],[-136,319],[72,82]],[[61542,75120],[42,252],[-70,403],[-160,218],[-154,68],[-102,181]],[[83564,58086],[-142,450],[238,-22],[97,-213],[-74,-510],[-119,295]],[[84051,56477],[70,165],[30,367],[153,35],[-44,-398],[205,570],[-26,-563],[-100,-195],[-87,-373],[-87,-175],[-171,409],[57,158]],[[85104,55551],[28,-392],[16,-332],[-94,-540],[-102,602],[-130,-300],[89,-435],[-79,-277],[-327,343],[-78,428],[84,280],[-176,280],[-87,-245],[-131,23],[-205,-330],[-46,173],[109,498],[175,166],[151,223],[98,-268],[212,162],[45,264],[196,15],[-16,457],[225,-280],[23,-297],[20,-218]],[[82917,56084],[-369,-561],[136,414],[200,364],[167,409],[146,587],[49,-482],[-183,-325],[-146,-406]],[[83982,61347],[-46,-245],[95,-423],[-73,-491],[-164,-196],[-43,-476],[62,-471],[147,-65],[123,70],[347,-328],[-27,-321],[91,-142],[-29,-272],[-216,290],[-103,310],[-71,-217],[-177,354],[-253,-87],[-138,130],[14,244],[87,151],[-83,136],[-36,-213],[-137,340],[-41,257],[-11,566],[112,-195],[29,925],[90,535],[169,-1],[171,-168],[85,153],[26,-150]],[[83899,57324],[-43,282],[166,-183],[177,1],[-5,-247],[-129,-251],[-176,-178],[-10,275],[20,301]],[[84861,57766],[78,-660],[-214,157],[5,-199],[68,-364],[-132,-133],[-11,416],[-84,31],[-43,357],[163,-47],[-4,224],[-169,451],[266,-13],[77,-220]],[[78372,54256],[64,-56],[164,-356],[116,-396],[16,-398],[-29,-269],[27,-203],[20,-349],[98,-163],[109,-523],[-5,-199],[-197,-40],[-263,438],[-329,469],[-32,301],[-161,395],[-38,489],[-100,322],[30,431],[-61,250]],[[80461,51765],[204,-202],[214,110],[56,500],[119,112],[333,128],[199,467],[137,374]],[[81723,53254],[126,-307],[58,202],[133,-19],[16,377],[13,291]],[[82069,53798],[214,411],[140,462],[112,2],[143,-299],[13,-257],[183,-165],[231,-177],[-20,-232],[-186,-29],[50,-289],[-205,-201]],[[81723,53254],[110,221],[236,323]],[[53809,77462],[62,54]],[[57797,86326],[-504,-47],[-489,-216],[-452,-125],[-161,323],[-269,193],[62,582],[-135,533],[133,345],[252,371],[635,640],[185,124],[-28,250],[-387,279]],[[54711,79292],[39,130],[123,-10],[95,61],[7,55],[54,28],[18,134],[64,26],[43,106],[82,1]],[[60669,61213],[161,-684],[77,-542],[152,-288],[379,-558],[154,-336],[151,-341],[87,-203],[136,-178]],[[61966,58083],[-83,-144],[-119,51]],[[61764,57990],[-95,191],[-114,346],[-124,190],[-71,204],[-242,237],[-191,7],[-67,124],[-163,-139],[-168,268],[-87,-441],[-323,124]],[[89411,73729],[-256,-595],[4,-610],[-104,-472],[48,-296],[-145,-416],[-355,-278],[-488,-36],[-396,-675],[-186,227],[-12,442],[-483,-130],[-329,-279],[-325,-11],[282,-435],[-186,-1004],[-179,-248],[-135,229],[69,533],[-176,172],[-113,405],[263,182],[145,371],[280,306],[203,403],[553,177],[297,-121],[291,1050],[185,-282],[408,591],[158,229],[174,723],[-47,664],[117,374],[295,108],[152,-819],[-9,-479]],[[90169,76553],[197,250],[62,-663],[-412,-162],[-244,-587],[-436,404],[-152,-646],[-308,-9],[-39,587],[138,455],[296,33],[81,817],[83,460],[326,-615],[213,-198],[195,-126]],[[86769,70351],[154,352],[158,-68],[114,248],[204,-127],[35,-203],[-156,-357],[-114,189],[-143,-137],[-73,-346],[-181,168],[2,281]],[[64752,60417],[-201,-158],[-54,-263],[-6,-201],[-277,-249],[-444,-276],[-249,-417],[-122,-33],[-83,35],[-163,-245],[-177,-114],[-233,-30],[-70,-34],[-61,-156],[-73,-43],[-43,-150],[-137,13],[-89,-80],[-192,30],[-72,345],[8,323],[-46,174],[-54,437],[-80,243],[56,29],[-29,270],[34,114],[-12,257]],[[61883,60238],[121,189],[-28,249],[74,290],[114,-153],[75,53],[321,14],[50,-59],[269,-60],[106,30],[70,-197],[130,99],[199,620],[259,266],[801,226]],[[63448,67449],[109,-510],[137,-135],[47,-207],[190,-249],[16,-243],[-27,-197],[35,-199],[80,-165],[37,-194],[41,-145]],[[64274,65130],[53,-226]],[[61883,60238],[-37,252],[-83,178],[-22,236],[-143,212],[-148,495],[-79,482],[-192,406],[-124,97],[-184,563],[-32,411],[12,350],[-159,655],[-130,231],[-150,122],[-92,339],[15,133],[-77,306],[-81,132],[-108,440],[-170,476],[-141,406],[-139,-3],[44,325],[12,206],[34,236]],[[36483,4468],[141,0],[414,127],[419,-127],[342,-255],[120,-359],[33,-254],[11,-301],[-430,-186],[-452,-150],[-522,-139],[-582,-116],[-658,35],[-365,197],[49,243],[593,162],[239,197],[174,254],[126,220],[168,209],[180,243]],[[31586,3163],[625,-23],[599,-58],[207,243],[147,208],[288,-243],[-82,-301],[-81,-266],[-582,81],[-621,-35],[-348,197],[0,23],[-152,174]],[[29468,8472],[190,70],[321,-23],[82,301],[16,219],[-6,475],[158,278],[256,93],[147,-220],[65,-220],[120,-267],[92,-254],[76,-267],[33,-266],[-49,-231],[-76,-220],[-326,-81],[-311,-116],[-364,11],[136,232],[-327,-81],[-310,-81],[-212,174],[-16,243],[305,231]],[[21575,8103],[174,104],[353,-81],[403,-46],[305,-81],[304,69],[163,-335],[-217,46],[-337,-23],[-343,23],[-376,-35],[-283,116],[-146,243]],[[15938,7061],[60,197],[332,-104],[359,-93],[332,104],[-158,-208],[-261,-151],[-386,47],[-278,208]],[[14643,7177],[202,127],[277,-139],[425,-231],[-164,23],[-359,58],[-381,162]],[[4524,4144],[169,220],[517,-93],[277,-185],[212,-209],[76,-266],[-533,-81],[-364,208],[-163,209],[-11,35],[-180,162]],[[0,529],[16,-5],[245,344],[501,-185],[32,21],[294,188],[38,-7],[32,-4],[402,-246],[352,246],[63,34],[816,104],[265,-138],[130,-71],[419,-196],[789,-151],[625,-185],[1072,-139],[800,162],[1181,-116],[669,-185],[734,174],[773,162],[60,278],[-1094,23],[-898,139],[-234,231],[-745,128],[49,266],[103,243],[104,220],[-55,243],[-462,162],[-212,209],[-430,185],[675,-35],[642,93],[402,-197],[495,173],[457,220],[223,197],[-98,243],[-359,162],[-408,174],[-571,35],[-500,81],[-539,58],[-180,220],[-359,185],[-217,208],[-87,672],[136,-58],[250,-185],[457,58],[441,81],[228,-255],[441,58],[370,127],[348,162],[315,197],[419,58],[-11,220],[-97,220],[81,208],[359,104],[163,-196],[425,115],[321,151],[397,12],[375,57],[376,139],[299,128],[337,127],[218,-35],[190,-46],[414,81],[370,-104],[381,11],[364,81],[375,-57],[414,-58],[386,23],[403,-12],[413,-11],[381,23],[283,174],[337,92],[349,-127],[331,104],[300,208],[179,-185],[98,-208],[180,-197],[288,174],[332,-220],[375,-70],[321,-162],[392,35],[354,104],[418,-23],[376,-81],[381,-104],[147,254],[-180,197],[-136,209],[-359,46],[-158,220],[-60,220],[-98,440],[213,-81],[364,-35],[359,35],[327,-93],[283,-174],[119,-208],[376,-35],[359,81],[381,116],[342,70],[283,-139],[370,46],[239,451],[224,-266],[321,-104],[348,58],[228,-232],[365,-23],[337,-69],[332,-128],[218,220],[108,209],[278,-232],[381,58],[283,-127],[190,-197],[370,58],[288,127],[283,151],[337,81],[392,69],[354,81],[272,127],[163,186],[65,254],[-32,244],[-87,231],[-98,232],[-87,231],[-71,209],[-16,231],[27,232],[130,220],[109,243],[44,231],[-55,255],[-32,232],[136,266],[152,173],[180,220],[190,186],[223,173],[109,255],[152,162],[174,151],[267,34],[174,186],[196,115],[228,70],[202,150],[157,186],[218,69],[163,-151],[-103,-196],[-283,-174],[-120,-127],[-206,92],[-229,-58],[-190,-139],[-202,-150],[-136,-174],[-38,-231],[17,-220],[130,-197],[-190,-139],[-261,-46],[-153,-197],[-163,-185],[-174,-255],[-44,-220],[98,-243],[147,-185],[229,-139],[212,-185],[114,-232],[60,-220],[82,-232],[130,-196],[82,-220],[38,-544],[81,-220],[22,-232],[87,-231],[-38,-313],[-152,-243],[-163,-197],[-370,-81],[-125,-208],[-169,-197],[-419,-220],[-370,-93],[-348,-127],[-376,-128],[-223,-243],[-446,-23],[-489,23],[-441,-46],[-468,0],[87,-232],[424,-104],[311,-162],[174,-208],[-310,-185],[-479,58],[-397,-151],[-17,-243],[-11,-232],[327,-196],[60,-220],[353,-220],[588,-93],[500,-162],[398,-185],[506,-186],[690,-92],[681,-162],[473,-174],[517,-197],[272,-278],[136,-220],[337,209],[457,173],[484,186],[577,150],[495,162],[691,12],[680,-81],[560,-139],[180,255],[386,173],[702,12],[550,127],[522,128],[577,81],[614,104],[430,150],[-196,209],[-119,208],[0,220],[-539,-23],[-571,-93],[-544,0],[-77,220],[39,440],[125,128],[397,138],[468,139],[337,174],[337,174],[251,231],[380,104],[376,81],[190,47],[430,23],[408,81],[343,116],[337,139],[305,139],[386,185],[245,197],[261,173],[82,232],[-294,139],[98,243],[185,185],[288,116],[305,139],[283,185],[217,232],[136,277],[202,163],[331,-35],[136,-197],[332,-23],[11,220],[142,231],[299,-58],[71,-220],[331,-34],[360,104],[348,69],[315,-34],[120,-243],[305,196],[283,105],[315,81],[310,81],[283,139],[310,92],[240,128],[168,208],[207,-151],[288,81],[202,-277],[157,-209],[316,116],[125,232],[283,162],[365,-35],[108,-220],[229,220],[299,69],[326,23],[294,-11],[310,-70],[300,-34],[130,-197],[180,-174],[304,104],[327,24],[315,0],[310,11],[278,81],[294,70],[245,162],[261,104],[283,58],[212,162],[152,324],[158,197],[288,-93],[109,-208],[239,-139],[289,46],[196,-208],[206,-151],[283,139],[98,255],[250,104],[289,197],[272,81],[326,116],[218,127],[228,139],[218,127],[261,-69],[250,208],[180,162],[261,-11],[229,139],[54,208],[234,162],[228,116],[278,93],[256,46],[244,-35],[262,-58],[223,-162],[27,-254],[245,-197],[168,-162],[332,-70],[185,-162],[229,-162],[266,-35],[223,116],[240,243],[261,-127],[272,-70],[261,-69],[272,-46],[277,0],[229,-614],[-11,-150],[-33,-267],[-266,-150],[-218,-220],[38,-232],[310,12],[-38,-232],[-141,-220],[-131,-243],[212,-185],[321,-58],[321,104],[153,232],[92,220],[153,185],[174,174],[70,208],[147,289],[174,58],[316,24],[277,69],[283,93],[136,231],[82,220],[190,220],[272,151],[234,115],[153,197],[157,104],[202,93],[277,-58],[250,58],[272,69],[305,-34],[201,162],[142,393],[103,-162],[131,-278],[234,-115],[266,-47],[267,70],[283,-46],[261,-12],[174,58],[234,-35],[212,-127],[250,81],[300,0],[255,81],[289,-81],[185,197],[141,196],[191,163],[348,439],[179,-81],[212,-162],[185,-208],[354,-359],[272,-12],[256,0],[299,70],[299,81],[229,162],[190,174],[310,23],[207,127],[218,-116],[141,-185],[196,-185],[305,23],[190,-150],[332,-151],[348,-58],[288,47],[218,185],[185,185],[250,46],[251,-81],[288,-58],[261,93],[250,0],[245,-58],[256,-58],[250,104],[299,93],[283,23],[316,0],[255,58],[251,46],[76,290],[11,243],[174,-162],[49,-266],[92,-244],[115,-196],[234,-105],[315,35],[365,12],[250,35],[364,0],[262,11],[364,-23],[310,-46],[196,-186],[-54,-220],[179,-173],[299,-139],[310,-151],[360,-104],[375,-92],[283,-93],[315,-12],[180,197],[245,-162],[212,-185],[245,-139],[337,-58],[321,-69],[136,-232],[316,-139],[212,-208],[310,-93],[321,12],[299,-35],[332,12],[332,-47],[310,-81],[288,-139],[289,-116],[195,-173],[-32,-232],[-147,-208],[-125,-266],[-98,-209],[-131,-243],[-364,-93],[-163,-208],[-360,-127],[-125,-232],[-190,-220],[-201,-185],[-115,-243],[-70,-220],[-28,-266],[6,-220],[158,-232],[60,-220],[130,-208],[517,-81],[109,-255],[-501,-93],[-424,-127],[-528,-23],[-234,-336],[-49,-278],[-119,-220],[-147,-220],[370,-196],[141,-244],[239,-219],[338,-197],[386,-186],[419,-185],[636,-185],[142,-289],[800,-128],[53,-45],[208,-175],[767,151],[636,-186],[479,-142],[-99999,0]],[[59092,71341],[19,3],[40,143],[200,-8],[253,176],[-188,-251],[21,-111]],[[59437,71293],[-30,21],[-53,-45],[-42,12],[-14,-22],[-5,59],[-20,37],[-54,6],[-75,-51],[-52,31]],[[59437,71293],[8,-48],[-285,-240],[-136,77],[-64,237],[132,22]],[[45272,63236],[13,274],[106,161],[91,308],[-18,200],[96,417],[155,376],[93,95],[74,344],[6,315],[100,365],[185,216],[177,603],[5,8],[139,227],[259,65],[218,404],[140,158],[232,493],[-70,735],[106,508],[37,312],[179,399],[278,270],[206,244],[186,612],[87,362],[205,-2],[167,-251],[264,41],[288,-131],[121,-6]],[[56944,63578],[0,2175],[0,2101],[-83,476],[71,365],[-43,253],[101,283]],[[56990,69231],[369,10],[268,-156],[275,-175],[129,-92],[214,188],[114,169],[245,49],[198,-75],[75,-293],[65,193],[222,-140],[217,-33],[137,149]],[[59700,68010],[-78,-238],[-60,-446],[-75,-308],[-65,-103],[-93,191],[-125,263],[-198,847],[-29,-53],[115,-624],[171,-594],[210,-920],[102,-321],[90,-334],[249,-654],[-55,-103],[9,-384],[323,-530],[49,-121]],[[53191,70158],[326,-204],[117,51],[232,-98],[368,-264],[130,-526],[250,-114],[391,-248],[296,-293],[136,153],[133,272],[-65,452],[87,288],[200,277],[192,80],[375,-121],[95,-264],[104,-2],[88,-101],[276,-70],[68,-195]],[[59804,53833],[-164,643],[-127,137],[-48,236],[-141,288],[-171,42],[95,337],[147,14],[42,181]],[[61764,57990],[-98,-261],[-94,-277],[22,-163],[4,-180],[155,-10],[67,42],[62,-106]],[[61882,57035],[-61,-209],[103,-325],[102,-285],[106,-210],[909,-702],[233,4]],[[61966,58083],[66,-183],[-9,-245],[-158,-142],[119,-161]],[[61984,57352],[-102,-317]],[[61984,57352],[91,-109],[54,-245],[125,-247],[138,-2],[262,151],[302,70],[245,184],[138,39],[99,108],[158,20]],[[58449,49909],[-166,-182],[-67,60]],[[58564,52653],[115,161],[176,-132],[224,138],[195,-1],[171,272]],[[55279,77084],[100,2],[-69,-260],[134,-227],[-41,-278],[-65,-27]],[[55338,76294],[-52,-53],[-90,-138],[-41,-325]],[[55719,75309],[35,-5],[13,121],[164,91],[62,23]],[[55993,75539],[95,35],[128,9]],[[55993,75539],[-9,44],[33,71],[31,144],[-39,-4],[-54,110],[-46,28],[-36,94],[-52,36],[-40,84],[-50,-33],[-38,-196],[-66,-43]],[[55627,75874],[22,51],[-106,123],[-91,63],[-40,82],[-74,101]],[[55380,75322],[-58,46],[-78,192],[-120,118]],[[55627,75874],[-52,-132]],[[32866,56937],[160,77],[58,-21],[-11,-440],[-232,-65],[-50,53],[81,163],[-6,233]]],"bbox":[-180,-85.60903777459771,180,83.64513000000001],"transform":{"scale":[0.0036000360003600037,0.0016925586033320105],"translate":[-180,-85.60903777459771]}} ================================================ FILE: resources/css/app.css ================================================ /* GLOBAL */ html, body { background: linear-gradient(to bottom, #fdfdfd 0%, #e3e3e3 50%, #e9e9e9 100%); background-attachment: fixed; color: #1e293b; overflow-x: hidden; } h1 { font-weight: bold; letter-spacing: -3px; margin: 0; text-transform: lowercase; } h3 { font-size: 21px; letter-spacing: -1px; } .page-header { border-bottom: 1px solid #e2e8f0; margin: 2.5rem 0 2rem; position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; } .pagination { margin: 5px 0; } .clickable, .expandable>td { cursor: pointer; } .loading-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } .spinner { color: #999; margin-bottom: 10px; } .app-loading-status { color: #999; text-align: center; text-shadow: 1px 1px 0 #FFF; text-transform: uppercase; } .powered { bottom: 190px; color: #9E9E9E; font-size: smaller; position: absolute; right: 20px; transform-origin: 100% 0; transform: rotate(-90deg); } .powered a { color: #636363; } .powered span { color: #007bc3; } .dropdown-header { color: #007bc3; padding: 3px 25px; text-transform: uppercase; } hgroup h2, hgroup small { text-transform: uppercase; } hgroup h2 { letter-spacing: -1px; } /* NAVIGATION - dark base with subtle gradient */ nav { background: linear-gradient(to bottom, #1c1c1c 0%, #171717 50%, #121212 100%); border-color: transparent; height: 100%; left: -236px; overflow: hidden; position: fixed; top: 0; width: 300px; z-index: 2; transition: left .2s; } /* Only apply shadow in light/default mode */ html:not(.dark) nav { box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4); } /* Navigation List */ nav .nav-list { visibility: hidden; display: none; position: absolute; bottom: 0; left: 0; right: -17px; top: 0; overflow-y: scroll; } /* Show Navigation List on Active */ nav.active .nav-list { visibility: visible; display: block; } /* Media Query for Large Screens */ @media only screen and (min-width: 993px) { nav .nav-bars, nav .nav-gears, nav .nav-ws-status { left: 0; position: fixed; top: 1.5rem; transition: opacity .2s; } nav .nav-gears { top: 7.9rem; } nav .nav-ws-status { left: 38px; top: 12.3rem; } nav.active .nav-list { margin-block-start: 0; } } /* Navigation Header */ nav header { margin: 40px 20px 30px; } nav header a { color: rgba(240, 240, 240, 0.9); font-size: 2.7em; font-weight: 300; text-transform: uppercase; } nav header a:hover { color: #ffffff; } /* Active Navigation */ nav.active { display: block !important; left: 0; opacity: .98; } nav.active .nav-bars, nav.active .nav-gears, nav.active .nav-ws-status { opacity: 0; visibility: hidden; } /* Navigation Icons */ nav .nav-bars, nav .nav-gears, nav .nav-ws-status { background: none; border: none; color: #bbbbbb; font-size: 36px; height: 60px; width: 60px; transition: opacity .2s; } nav .nav-bars:hover, nav .nav-gears:hover { color: #ffffff; } /* WebSocket Status */ nav .nav-ws-status, .nav-ws-status.mini { color: crimson; cursor: help; display: none; font-size: 12px; height: 12px; width: 12px; } .nav-ws-status.mini { top: 14px; left: 40px; position: absolute; } .nav-ws-status.fa-circle { color: #5DB56A; } /* Navigation List Items */ nav li { position: relative; } nav li .toggle-panel { cursor: pointer; opacity: 0; padding: 9px 20px; position: absolute; right: 0; top: 0; transition: all .2s; visibility: hidden; } nav li .toggle-panel i { color: rgba(220, 220, 220, 0.6); opacity: 0; } nav li .toggle-panel.active i { color: #ffffff; opacity: 1; } /* Show Toggle Panel in Active Navigation */ nav.active li .toggle-panel { visibility: visible; opacity: 1; } nav.active li:hover .toggle-panel i { opacity: 1; } /* Navigation Links - fixed colors for dark background */ nav li a { border-left: 3px solid transparent; color: #bbbbbb; display: block; font-size: smaller; max-width: 235px; opacity: 0; overflow: hidden; padding: 9px 20px; text-overflow: ellipsis; text-transform: uppercase; transition: all .2s; white-space: nowrap; } nav.active li a { max-width: 90%; opacity: 1; } nav li:hover a, nav li.active a { /* subtle blue tint on dark */ border-color: #60a5fa; color: #e0f0ff; /* bright readable blue-white */ } /* Unordered List */ nav ul { padding-left: 0; list-style: none; } /* Navigation Links */ nav a, nav a:hover { text-decoration: none; } /* Navigation Section Titles */ nav h3 { color: #e0e0e0 !important; font-size: medium; font-weight: bold; margin: 20px 25px 10px; text-transform: uppercase; } /* CONTAINER */ @media (min-width: 768px) { .container { width: 750px; } } .container-fluid { margin-left: 75px; } @media (min-width: 1120px) { .container { width: 970px; } } @media (min-width: 1320px) { .container { width: 1170px; } } @media (max-width: 992px) { .container-fluid { margin-left: auto; } } @media (max-width: 768px) { .container-fluid { padding-left: 5px; padding-right: 5px; } } /* PANEL STYLES */ #panels { margin-block-end: 10px; } article header { margin-block-end: 15px; position: relative; display: flex; justify-content: space-between; gap: 0.5em; } article h2 { font-size: 1.8rem; margin: 0; } article>div { background: linear-gradient(to bottom, #ffffff, #f8fafc); border: none; border-radius: 12px; margin-top: 16px; padding: 24px 16px 16px; box-shadow: 0 4px 10px rgb(0 0 0 / 0%), 0 2px 4px rgba(0, 0, 0, 0.06); } hgroup small { font-size: smaller; } /* PANEL TABLES */ article table.table-borderless tbody tr td, article table.table-borderless tbody tr th, article table.table-borderless thead tr th { border: none; } article thead th { text-align: right; border-bottom-width: 1px; } article table .string, article table .date { text-align: left; } article table .percent { color: #898989; } article table td, article table th { white-space: nowrap; overflow: hidden; } article table th.sortable { cursor: pointer; } article table.table-borderless thead>tr.thead-cols th { font-size: 78%; text-transform: uppercase; } article table .cell-hl { padding: 2px 3px; color: #FFF; border-radius: 5px; display: block; text-align: center; } article table .span-hl { padding: 2px 3px; border-radius: 3px; color: #000; } article table .span-hl.g5 { background: #e9ecef; } article table .cell-hl.b1 { background: #7F669D; } article table .cell-hl.b2 { background: #BA94D1; } article table .cell-hl.b3 { background: #DEBACE; } article table .cell-hl.d1 { background: #9d9d9d38; } article table .cell-hl.d2 { background: #9d9d9d61; } article table .cell-hl.d3 { background: #9d9d9d9c; } article table .cell-hl.d4 { background: #9d9d9d; } article table .span-hl.lgrn { background: #e6f4ea; color: #137333; } article table .span-hl.lyel { background: #fff3cd; color: #d38a10; } article table .span-hl.lred { background: #fce8e6; color: #c5221f; } article table .span-hl.lgry { background: #898989; color: #ffffff; } article table .span-hl.lblu { background: #cfe2ff; color: #052c65; } article table .span-hl.lprp { background: #cdc7ff; color: #343150; } /* thead meta */ article table thead>tr.thead-min th.meta-label, article table thead>tr.thead-avg th.meta-label, article table tfoot>tr.tfoot-totals th.meta-label, article table thead>tr.thead-max th.meta-label { font-weight: bold; text-transform: uppercase; } article table .thead-min, article table .thead-avg, article table .thead-max { background: #f8fafc; } article table .thead-avg { border-bottom: 2px solid #94a3b8; } article table thead>tr.thead-min th, article table thead>tr.thead-avg th, article table thead>tr.thead-max th { font-size: smaller; font-weight: normal; padding: 3px 8px 3px 8px; text-transform: inherit; } article table .thead-min th, article table .thead-avg th, article table .thead-max th { padding: 3px; } article table tfoot>tr>th { border-top: 1px dotted #cbd5e1; padding: 8px; } /* thead data */ article table tbody.tbody-data tr td { border-right: 1px solid #f1f5f9; font-size: smaller; } article table tbody.tbody-data td:last-child { border-right: none; } article table tbody.tbody-data td.row-idx { font-weight: 700; } article table>thead>tr.thead-cols { border-bottom: 2px solid #cbd5e1; } article table tbody.tbody-data tr.shaded { background-color: #f8fafc; } article table tbody.tbody-data tr.child td:nth-child(1), article table tbody.tbody-data tr.child td:nth-child(2) { border-right: none; } article table.table-hover>tbody>tr:hover { background-color: rgba(59, 130, 246, 0.05); } article .row:nth-child(2):not(.table-wrapper)>.col-md-12 { padding: 0; } /* GENERAL */ .report-title { margin: 0; background: #ffffff; color: #475569; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); bottom: -10px; font-size: small; padding: 0 10px; position: absolute; right: 0; z-index: 1; } ul[role="list"], ol[role="list"] { padding: 0; list-style: none; } #overall h2, #overall p { margin: 0; } #overall hgroup { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75em; margin-block-end: 4px; } #overall hgroup p { font-weight: 400; text-transform: uppercase; font-size: 18px; } #overall ul { margin-block-end: 0; padding: 0; } #overall li span { display: block; } #overall li span:first-of-type { font-size: 85%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; } #overall li span:last-of-type { font-size: 2.5rem; font-weight: 500; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #overall li div { background: #ffffff; color: rgb(36, 36, 36); margin-top: 0.5rem; padding: 0.9rem; border-radius: 10px; position: relative; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07); } #overall li div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; } /* Color variants */ #overall li.black div::before { background: #0F1214; } #overall li.gray div::before { background: #cbd5e1; } #overall li.red div::before { background: #FF303E; } #overall li.blue div::before { background: #3b82f6; } #overall li.green div::before { background: #229f75; } @media (max-width: 767px) { .powered { bottom: 10px; left: 25px; transform: initial; } header hgroup { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 70% } } /* CHARTS */ .chart-wrap { margin-bottom: 15px; position: relative; } svg { background-color: transparent; display: block; } .axis path { fill: transparent; stroke: black; shape-rendering: crispEdges; stroke-width: 1; } .grid.y .tick line, .grid.x .tick line { shape-rendering: crispEdges; stroke: #999; stroke-dasharray: 3 3; stroke-width: 1; } .axis.x .tick line, .axis.y0 .tick line, .axis.y1 .tick line, .grid.y .tick:first-child line { stroke: black; stroke-width: 1; shape-rendering: crispEdges; } .bars rect.bar { shape-rendering: crispEdges; } .rects rect { fill: transparent; } .area { opacity: 0.2; } .points { stroke: transparent; } line.indicator { fill: transparent; pointer-events: none; shape-rendering: crispEdges; stroke: #999; stroke-width: 1; display: none; } .area0, .bars.y0 .bar, .points.y0, rect.legend.y0 { fill: #447FB3; } .area1, .bars.y1 .bar, .points.y1, rect.legend.y1 { fill: #FF6854; } .line0, .line1 { fill: transparent; stroke-width: 1; } .line0 { stroke: #007BC3; } .line1 { stroke: #FF303E; } .axis text, .axis-label, text.legend { font: 10px sans-serif; } .axis-label.y0, .axis-label.y1 { text-anchor: end; } rect.legend { height: 10px; width: 10px; } .legend { cursor: pointer; } .wrap-text text { text-anchor: start !important; } /* CHART TOOLTIP */ .chart-tooltip-wrap { left: 0; pointer-events: none; position: absolute; top: 10px; z-index: 10; } .chart-tooltip { background-color: #ffffff; border: 1px solid #e2e8f0; color: #1e293b; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); } .chart-tooltip tr { border: 1px solid #e2e8f0; } .chart-tooltip th { background-color: #f1f5f9; color: #1e293b; font-size: 14px; max-width: 380px; overflow: hidden; padding: 2px 5px; text-align: left; text-overflow: ellipsis; white-space: nowrap; } .chart-tooltip td { border-left: 1px dotted #cbd5e1; font-size: 13px; padding: 3px 6px; } .chart-tooltip td>span { display: inline-block; height: 10px; margin-right: 6px; width: 10px; } .chart-tooltip td.value { text-align: right; } .chart-tooltip .blue { background-color: #3b82f6; } .chart-tooltip .red { background-color: #FF303E; } /* SCROLLBARS */ ::-webkit-scrollbar-track, .table-responsive::-webkit-scrollbar-track { background-color: #f1f5f9; } ::-webkit-scrollbar, .table-responsive::-webkit-scrollbar { width: 10px; height: 10px; background-color: #f1f5f9; } ::-webkit-scrollbar-thumb, .table-responsive::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 8px; } ::-webkit-scrollbar-thumb:hover, .table-responsive::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; } a, .nav li a:hover, .nav li.active a, .nav li:hover a { color: #3b82f6; } .btn-default { color: #475569; background-color: #f1f5f9; border-color: #cbd5e1; border-radius: 8px; transition: all 0.2s ease; } .btn-default:hover, .btn-default:active, .btn-default.active, .open>.dropdown-toggle.btn-default { color: #1e293b; background-color: #e2e8f0; border-color: #94a3b8; transform: translateY(-1px); } .pagination>.disabled>a, .pagination>.disabled>a:hover, .pagination>.disabled>a:focus { color: #94a3b8; } .pagination>li>a { background-color: #ffffff; border: 1px solid #cbd5e1; color: #475569; border-radius: 6px; } .pagination>li>a:hover, .pagination>li>a:active, .pagination>li>a:focus { color: #3b82f6; background-color: #f8fafc; border-color: #94a3b8; } .dropdown-menu { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } .dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus { color: #1e293b; background-color: #f1f5f9; } .cell-hl.b1, .progress-bar, .cell-hl.b2 { background: linear-gradient(90deg, #3b82f6, #60a5fa); color: white; } .clickable:hover, .expandable>td:hover, nav li:hover { background: rgba(59, 130, 246, 0.06); } /* DARK THEME */ .dark h1 { color: rgba(255, 255, 255, 0.6); } .dark hgroup, .dark h2, .dark h3, .dark h4, .dark h5 { color: rgba(255, 255, 255, 0.4); } .dark .table-responsive { border: none; } .dark article>div>table { color: #D2D2D2; } .dark article table tbody.tbody-data tr td { border-right: none; } .dark article table.table-hover>tbody.tbody-data>tr:hover { background-color: rgba(255, 255, 255, 0.08) !important; } .dark #overall li span:first-of-type { color: #9e9e9e; } .dark #overall li span:last-of-type { color: #FFF; } .dark .dropdown-menu>li>a { color: #FFF; } .dark article>div { color: #EEE; border-top: 1px solid rgba(255, 255, 255, 0.15); } .dark article table .cell-hl.d1 { background: #161616; } .dark article table .cell-hl.d2 { background: #3c3c3c; } .dark article table .cell-hl.d3 { background: #5a5a5a; } .dark article table .cell-hl.d4 { background: #7e7e7e; } .dark.graticule { stroke: #DDD; } /* DARK CHARTS */ .dark .area { opacity: 0.1; } .dark .line0, .dark .line1 { stroke-width: 2; } .dark .area0, .dark .bars.y0 .bar, .dark rect.legend.y0 { fill: #007BC3; } .dark .area1, .dark .bars.y1 .bar, .dark .points.y1, .dark rect.legend.y1 { fill: #FF303E; } .dark .points.y0 { fill: #00D4E1; } .dark .line0 { stroke: #007BC3; } .dark .line1 { stroke: #FF303E; } .dark .grid.y .tick line, .dark .grid.x .tick line { stroke: #44474B; stroke-dasharray: 1 1; } .dark .axis text, .dark .axis-label, .dark text.legend { fill: #9E9E9E; } .dark .axis path { stroke: #999999; } .dark .axis.x .tick line, .dark .axis.y0 .tick line, .dark .axis.y1 .tick line, .dark .grid.y .tick:first-child line { stroke: #3B444C; } .dark .chart-tooltip th { background-color: #1c1c1c; color: #fff; } .dark .chart-tooltip tr { border: 1px solid #363737; } .dark .sphere { fill: #0076d433; } .dark.gray .sphere { fill: #52646733; } .graticule { stroke: #8f8f8f; } /* DARK BLUE THEME */ html.dark.blue, .dark.blue body { background: linear-gradient(to bottom, #1e2b43 0%, #172033 50%, #0f172a 100%); background-attachment: fixed; /* Keeps gradient stable on scroll */ color: #e2e8f0; } .dark.blue .container { background: transparent; } .dark.blue .page-header { border-bottom: 1px solid #1e293b; background: transparent; } .dark.blue #last-updated { background-color: transparent; } .dark.blue nav { /* Match the main background gradient for cohesion */ background: linear-gradient(to bottom, #1e2b43 0%, #172033 50%, #0f172a 100%); border-color: transparent; /* Remove side border for cleaner look */ box-shadow: none; /* Rely on gradient for depth */ } .dark.blue article>div { background: linear-gradient(to bottom, #1e2b43, #172033); /* Your preferred card gradient */ border: none; /* Border removed as requested */ border-radius: 12px; margin-top: 16px; padding: 24px 16px 16px; } .dark.blue article table tfoot>tr>th { border-top: 1px dotted #475569; } .dark.blue article table .thead-min, .dark.blue article table .thead-avg, .dark.blue article table .thead-max { background: #1e2b43; } .dark.blue article table .thead-avg { border-bottom: 2px solid #64748b; } .dark.blue article table>thead>tr.thead-cols { border-bottom: 2px solid #475569; } .dark.blue article table tbody.tbody-data tr.shaded { background-color: #172033; } .dark.blue #overall li.gray div { border-top: 4px solid #334155; } .dark.blue #overall li div { background: #1e2b43; border-radius: 10px; } .dark.blue .btn-default { color: #cbd5e1; background-color: #1e2b43; border-color: #334155; border-radius: 8px; transition: all 0.2s ease; } .dark.blue .btn-default:hover, .dark.blue .btn-default:active, .dark.blue .btn-default.active, .dark.blue .open>.dropdown-toggle.btn-default { color: #e2e8f0; background-color: #334155; border-color: #475569; transform: translateY(-1px); } .dark.blue .pagination>.disabled>a, .dark.blue .pagination>.disabled>a:hover, .dark.blue .pagination>.disabled>a:focus { color: #64748b; } .dark.blue .pagination>li>a { background-color: #1e2b43; border: 1px solid #334155; color: #cbd5e1; border-radius: 6px; } .dark.blue .pagination>li>a:hover, .dark.blue .pagination>li>a:active, .dark.blue .pagination>li>a:focus { color: #60a5fa; background-color: #1e2b43; border-color: #475569; } .dark.blue .dropdown-menu>li>a:hover, .dark.blue .dropdown-menu>li>a:focus { color: #e2e8f0; background-color: #334155; } .dark.blue .dropdown-menu { background-color: #1e2b43; border: 1px solid #334155; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); } .dark.blue .chart-tooltip { background-color: #1e2b43; border: 1px solid #334155; color: #e2e8f0; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); } .dark.blue .chart-tooltip th { background-color: #334155; color: #fff; } .dark.blue .report-title { background: #1e2b43; color: #cbd5e1; border-radius: 6px; } .dark.blue .cell-hl.b1, .dark.blue .progress-bar, .dark.blue .cell-hl.b2 { background: linear-gradient(90deg, #3b82f6, #60a5fa); } /* Subtle interactive hover */ .dark.blue .clickable:hover, .dark.blue .expandable>td:hover, .dark.blue nav li:hover { background: rgba(96, 165, 250, 0.09); } /* SCROLLBARS - Dark Blue Theme */ html.dark.blue::-webkit-scrollbar-track, .dark.blue body::-webkit-scrollbar-track, .dark.blue .table-responsive::-webkit-scrollbar-track { background-color: #0f172a; } html.dark.blue::-webkit-scrollbar, .dark.blue body::-webkit-scrollbar, .dark.blue .table-responsive::-webkit-scrollbar { width: 10px; height: 10px; background-color: #0f172a; } html.dark.blue::-webkit-scrollbar-thumb, .dark.blue body::-webkit-scrollbar-thumb, .dark.blue .table-responsive::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 8px; } html.dark.blue::-webkit-scrollbar-thumb:hover, .dark.blue body::-webkit-scrollbar-thumb:hover, .dark.blue .table-responsive::-webkit-scrollbar-thumb:hover { background-color: #475569; } /* DARK GREY THEME */ html.dark.gray, .dark.gray body { background: linear-gradient(to bottom, #2a2a2a 0%, #1f1f1f 50%, #141414 100%); background-attachment: fixed; color: #e5e5e5; } .dark.gray .container { background: transparent; } .dark.gray .page-header { border-bottom: 1px solid #2f2f2f; background: transparent; } .dark.gray #last-updated { background-color: transparent; } .dark.gray nav { background: linear-gradient(to bottom, #2a2a2a 0%, #1f1f1f 50%, #141414 100%); border-color: transparent; } .dark.gray article>div { background: linear-gradient(to bottom, #2a2a2a, #1f1f1f); border: none; border-radius: 12px; margin-top: 16px; padding: 24px 16px 16px; } .dark.gray article table .thead-min, .dark.gray article table .thead-avg, .dark.gray article table .thead-max { background: #2a2a2a; } .dark.gray article table .thead-avg { border-bottom: 2px solid #555; } .dark.gray article table>thead>tr.thead-cols { border-bottom: 2px solid #444; } .dark.gray article table tbody.tbody-data tr.shaded { background-color: #1a1a1a; } .dark.gray #overall li.gray div { border-top: 4px solid #444; } .dark.gray #overall li div { background: #2a2a2a; border-radius: 10px; } .dark.gray .btn-default { color: #d1d5db; background-color: #2a2a2a; border-color: #444; border-radius: 8px; transition: all 0.2s ease; } .dark.gray .btn-default:hover, .dark.gray .btn-default:active, .dark.gray .btn-default.active, .dark.gray .open>.dropdown-toggle.btn-default { color: #f1f5f9; background-color: #3a3a3a; border-color: #555; transform: translateY(-1px); } .dark.gray .pagination>li>a { background-color: #2a2a2a; border: 1px solid #444; color: #d1d5db; border-radius: 6px; } .dark.gray .pagination>li>a:hover, .dark.gray .pagination>li>a:focus { color: #9ca3af; background-color: #2a2a2a; border-color: #555; } .dark.gray .dropdown-menu { background-color: #2a2a2a; border: 1px solid #444; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); } .dark.gray .dropdown-menu>li>a:hover, .dark.gray .dropdown-menu>li>a:focus { color: #fff; background-color: #3a3a3a; } .dark.gray .chart-tooltip { background-color: #2a2a2a; border: 1px solid #444; color: #e5e5e5; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); } .dark.gray .chart-tooltip th { background-color: #3a3a3a; color: #fff; } .dark.gray .report-title { background: #2a2a2a; color: #d1d5db; border-radius: 6px; } /* SCROLLBARS - Dark Gray Theme */ html.dark.gray::-webkit-scrollbar-track, .dark.gray body::-webkit-scrollbar-track, .dark.gray .table-responsive::-webkit-scrollbar-track { background-color: #141414; } html.dark.gray::-webkit-scrollbar, .dark.gray body::-webkit-scrollbar, .dark.gray .table-responsive::-webkit-scrollbar { width: 10px; height: 10px; background-color: #141414; } html.dark.gray::-webkit-scrollbar-thumb, .dark.gray body::-webkit-scrollbar-thumb, .dark.gray .table-responsive::-webkit-scrollbar-thumb { background-color: #444444; border-radius: 8px; } html.dark.gray::-webkit-scrollbar-thumb:hover, .dark.gray body::-webkit-scrollbar-thumb:hover, .dark.gray .table-responsive::-webkit-scrollbar-thumb:hover { background-color: #5a5a5a; } /* subtle hover */ .dark.gray .clickable:hover, .dark.gray .expandable>td:hover, .dark.gray nav li:hover { background: rgba(255, 255, 255, 0.05); } /* DARK PURPLE THEME */ html.dark.purple, .dark.purple body { background: linear-gradient(to bottom, #2a2240 0%, #1e1e2f 50%, #151523 100%); background-attachment: fixed; color: #e6e1ff; } .dark.purple .container { background: transparent; } .dark.purple .page-header { border-bottom: 1px solid #2f2a4a; background: transparent; } .dark.purple #last-updated { background-color: transparent; } .dark.purple nav { background: linear-gradient(to bottom, #2a2240 0%, #1e1e2f 50%, #151523 100%); border-color: transparent; } .dark.purple article>div { background: linear-gradient(to bottom, #2a2240, #1e1e2f); border: none; border-radius: 12px; margin-top: 16px; padding: 24px 16px 16px; } .dark.purple article table .thead-min, .dark.purple article table .thead-avg, .dark.purple article table .thead-max { background: #2a2240; } .dark.purple article table .thead-avg { border-bottom: 2px solid #5b4f85; } .dark.purple article table>thead>tr.thead-cols { border-bottom: 2px solid #4b3f72; } .dark.purple article table tbody.tbody-data tr.shaded { background-color: #181824; } .dark.purple #overall li div { background: #2a2240; border-radius: 10px; } .dark.purple .btn-default { color: #d6ccff; background-color: #2a2240; border-color: #4b3f72; border-radius: 8px; transition: all 0.2s ease; } .dark.purple .btn-default:hover, .dark.purple .btn-default:active, .dark.purple .btn-default.active, .dark.purple .open>.dropdown-toggle.btn-default { color: #f1edff; background-color: #3a2f66; border-color: #5b4f85; transform: translateY(-1px); } .dark.purple .pagination>li>a { background-color: #2a2240; border: 1px solid #4b3f72; color: #d6ccff; border-radius: 6px; } .dark.purple .pagination>li>a:hover, .dark.purple .pagination>li>a:focus { color: #c4b5fd; background-color: #2a2240; border-color: #5b4f85; } .dark.purple .dropdown-menu { background-color: #2a2240; border: 1px solid #4b3f72; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); } .dark.purple .dropdown-menu>li>a:hover, .dark.purple .dropdown-menu>li>a:focus { color: #fff; background-color: #3a2f66; } .dark.purple .chart-tooltip { background-color: #2a2240; border: 1px solid #4b3f72; color: #e6e1ff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); } .dark.purple .chart-tooltip th { background-color: #3a2f66; color: #fff; } .dark.purple .report-title { background: #2a2240; color: #d6ccff; border-radius: 6px; } /* subtle hover */ .dark.purple .clickable:hover, .dark.purple .expandable>td:hover, .dark.purple nav li:hover { background: rgba(208, 72, 182, 0.08); } /* SCROLLBARS - Dark Purple Theme */ html.dark.purple::-webkit-scrollbar-track, .dark.purple body::-webkit-scrollbar-track, .dark.purple .table-responsive::-webkit-scrollbar-track { background-color: #151523; } html.dark.purple::-webkit-scrollbar, .dark.purple body::-webkit-scrollbar, .dark.purple .table-responsive::-webkit-scrollbar { width: 10px; height: 10px; background-color: #151523; } html.dark.purple::-webkit-scrollbar-thumb, .dark.purple body::-webkit-scrollbar-thumb, .dark.purple .table-responsive::-webkit-scrollbar-thumb { background-color: #4b3f72; border-radius: 8px; } html.dark.purple::-webkit-scrollbar-thumb:hover, .dark.purple body::-webkit-scrollbar-thumb:hover, .dark.purple .table-responsive::-webkit-scrollbar-thumb:hover { background-color: #5b4f85; } /* DARK PURPLE CHART COLORS */ .dark.purple .area0, .dark.purple .bars.y0 .bar, .dark.purple rect.legend.y0 { fill: #007BC3; } .dark.purple .area1, .dark.purple .bars.y1 .bar, .dark.purple .points.y1, .dark.purple rect.legend.y1 { fill: #d048b6; } .dark.purple .points.y0 { fill: #00D4E1; } .dark.purple .line0 { stroke: #007BC3; } .dark.purple .line1 { stroke: #d048b6; } /* Grid and axes */ .dark.purple .grid.y .tick line, .dark.purple .grid.x .tick line { stroke: #44474B; stroke-dasharray: 1 1; } .dark.purple .axis text, .dark.purple .axis-label, .dark.purple text.legend { fill: #9E9E9E; } .dark.purple .axis path { stroke: #999999; } .dark.purple .axis.x .tick line, .dark.purple .axis.y0 .tick line, .dark.purple .axis.y1 .tick line, .dark.purple .grid.y .tick:first-child line { stroke: #44474B; } /* Tooltip header */ .dark.purple .chart-tooltip th { background-color: #1e1e2f; } .country { fill: #ccc; stroke: #fff; stroke-width: 0.5px; } .country:hover { fill: #b3b3b3; } .dark .country { fill: #ccc; stroke: #222; stroke-width: 0.5px; } .dark .legend-svg text { fill: #FFF; } /* DRAG AND DROP STYLES */ /* Make the drag handle visible and interactive */ .nav-list li .drag-handle { display: inline-block; padding: 8px 10px; margin-right: 5px; cursor: grab; color: #999; transition: color 0.2s; } .nav-list li .drag-handle:hover { color: #333; } /* Dark theme adjustments */ .dark .nav-list li .drag-handle:hover { color: #fff; } /* Hide drag handle on overall stats (first item) */ .nav-list li:first-child .drag-handle { display: none; } .nav-list li:first-child { cursor: default; } /* Visual feedback during drag */ .nav-list li.dragging { opacity: 0.5; cursor: grabbing; } .nav-list li.drag-over { border-top: 2px solid #4CAF50; background-color: rgba(76, 175, 80, 0.1); } .dark .nav-list li.drag-over { background-color: rgba(76, 175, 80, 0.2); } /* Ensure draggable items have proper spacing */ .nav-list li[draggable="true"] { position: relative; transition: background-color 0.2s, border 0.2s; } /* Layout adjustments for drag handle */ .nav-list li { display: flex; align-items: center; position: relative; } .nav-list li a { flex: 1; } .nav-list li .toggle-panel { margin-left: auto; } ================================================ FILE: resources/js/app.js ================================================ /*jshint sub:true*/ (function () { 'use strict'; // Syntactic sugar function $(selector) { return document.querySelector(selector); } // Syntactic sugar & execute callback function $$(selector, callback) { var elems = document.querySelectorAll(selector); for (var i = 0; i < elems.length; ++i) { if (callback && typeof callback == 'function') callback.call(this, elems[i]); } } var debounce = function (func, wait, now) { var timeout; return function debounced () { var that = this, args = arguments; function delayed() { if (!now) func.apply(that, args); timeout = null; } if (timeout) { clearTimeout(timeout); } else if (now) { func.apply(obj, args); } timeout = setTimeout(delayed, wait || 250); }; }; // global namespace window.GoAccess = window.GoAccess || { initialize: function (options) { this.opts = options; var cw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0); this.AppState = {}; this.AppTpls = {}; this.AppCharts = {}; this.AppUIData = (this.opts || {}).uiData || {}; this.AppData = (this.opts || {}).panelData || {}; this.AppWSConn = (this.opts || {}).wsConnection || {}; this.i18n = (this.opts || {}).i18n || {}; this.AppPrefs = { 'autoHideTables': true, 'layout': cw > 2560 ? 'wide' : 'horizontal', 'panelOrder': [], 'perPage': 7, 'theme': (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'darkPurple' : 'bright', 'hiddenPanels': [], }; this.AppPrefs = GoAccess.Util.merge(this.AppPrefs, this.opts.prefs); this.currentJWT = null; this.csrfToken = null; // WebSocket reconnection settings this.wsDelay = this.currDelay = 1E3; this.maxDelay = 20E3; this.retries = 0; this.maxRetries = 20; this.tokenRefreshLeadTime = 60; this.handleLocalStorage(); this.isAppInitialized = false; // Initialize message rotation this.startMessageRotation(); // Handle WebSocket setup this.handleWebSocketSetup(); }, handleLocalStorage: function () { // Check if the browser supports localStorage if (GoAccess.Util.hasLocalStorage()) { // Retrieve the AppPrefs object stored in localStorage const ls = JSON.parse(localStorage.getItem('AppPrefs')); // Merge stored preferences into the current application preferences this.AppPrefs = GoAccess.Util.merge(this.AppPrefs, ls); } }, startMessageRotation: function () { // Define the messages that will be displayed during the loading process const messages = [ 'Fetching authentication token... Please wait.', 'Validating WebSocket tokens... Please wait.', 'Authenticating WebSocket connection... Please wait.', 'Verifying WebSocket credentials... Please wait.', 'Authorizing WebSocket session... Please wait.' ]; let currentMessageIndex = 0; // Tracks the index of the currently displayed message // Set up an interval to rotate through the messages every 100ms this.messageInterval = setInterval(() => { if (currentMessageIndex < messages.length) { // Update the loading status element with the current message $('.app-loading-status > small').innerHTML = messages[currentMessageIndex]; currentMessageIndex++; // Move to the next message } }, 500); }, handleWebSocketSetup: function () { // Fetch and authenticate the JWT using the provided WebSocket auth URL (external JWT) if (this.AppWSConn.ws_auth_url) { this.fetchAndAuthenticateJWT(); } // If a JWT exists or WebSocket configuration is provided else if (window.goaccessJWT || Object.keys(this.AppWSConn).length) { // Set up the WebSocket connection using the existing JWT this.setWebSocket(this.AppWSConn, window.goaccessJWT, this.messageInterval); } else { // Initialize the application without WebSocket authentication this.initializeWithoutWebSocket(); } }, fetchAndAuthenticateJWT: function () { // Attempt to fetch a JWT from the WebSocket authentication URL this.fetchJWT(this.AppWSConn.ws_auth_url) .then(data => { if (data.status === "success") { // Extract the JWT, refresh token, and expiration time from the response const jwt = data.access_token; const refreshToken = data.refresh_token; const expiresIn = data.expires_in; // Set up the WebSocket connection using the fetched JWT this.setWebSocket(this.AppWSConn, jwt, this.messageInterval); // Schedule automatic token refresh before it expires this.scheduleTokenRefresh(expiresIn, refreshToken); } else { // Handle failure response from the authentication server this.handleAuthenticationFailure(data.message); } }) .catch(error => { // Handle errors during the JWT fetch process this.handleAuthenticationError(error); }); }, initializeWithoutWebSocket: function () { // Stop the message rotation interval clearInterval(this.messageInterval); // Update the UI to indicate that no authentication is provided $('.app-loading-status > small').innerHTML = 'No authentication provided.'; // Proceed to initialize the app without WebSocket support GoAccess.App.initialize(); this.isAppInitialized = true; }, handleAuthenticationFailure: function (message) { // Stop the message rotation interval clearInterval(this.messageInterval); // Update the UI to display the failure message $('.app-loading-status > small').innerHTML = `Authentication failed: ${message}`; // Hide the loading spinner $('.loading-container > .spinner').style.display = 'none'; }, handleAuthenticationError: function (error) { // Stop the message rotation interval clearInterval(this.messageInterval); // Update the UI to indicate an error occurred during the JWT fetch process $('.app-loading-status > small').innerHTML = 'Error fetching authentication token.'; }, getPanelUI: function (panel) { return panel ? this.AppUIData[panel] : this.AppUIData; }, getPrefs: function (panel) { return panel ? this.AppPrefs[panel] : this.AppPrefs; }, setPrefs: function () { if (GoAccess.Util.hasLocalStorage()) { localStorage.setItem('AppPrefs', JSON.stringify(GoAccess.getPrefs())); } }, getPanelData: function (panel) { return panel ? this.AppData[panel] : this.AppData; }, // Include cookies for session validation fetchJWT: function (url) { return fetch(url, { method: 'GET', credentials: 'include', headers: { 'Accept': 'application/json' }, referrerPolicy: 'no-referrer-when-downgrade' }) .then(response => response.json()) .then(data => { if (data.status === 'success' && data.csrf_token) { this.csrfToken = data.csrf_token; } return data; }); }, refreshJWT: function (url, refreshToken) { const headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }; if (this.csrfToken) { headers['X-CSRF-TOKEN'] = this.csrfToken; } return fetch(url, { method: 'POST', credentials: 'include', headers: headers, referrerPolicy: 'no-referrer-when-downgrade', body: JSON.stringify({ refresh_token: refreshToken }) }).then(response => response.json()); }, // Schedule the next token refresh, triggering a refresh shortly before the token expires scheduleTokenRefresh: function (expiresIn, refreshToken) { // Refresh 1 minute before expiration const refreshUrl = this.AppWSConn.ws_auth_refresh_url || this.AppWSConn.ws_auth_url; // Set the timer to trigger one minute before the token expires setTimeout(() => { this.refreshJWT(refreshUrl, refreshToken) .then(data => { if (data.status === "success") { const newJwt = data.access_token; const newRefreshToken = data.refresh_token; const newExpiresIn = data.expires_in; // Update token without reconnecting this.sendNewJWT(newJwt); // Schedule the next refresh using the new expiration time this.scheduleTokenRefresh(newExpiresIn, newRefreshToken); } else { // Update token without reconnecting this.sendNewJWT(null); } }) .catch(error => { console.error("Error refreshing JWT:", error); }); }, (expiresIn - this.tokenRefreshLeadTime) * 1000); }, // Sends the new JWT to the server over the already-open WebSocket connection sendNewJWT: function (newJwt) { if (this.socket && this.socket.readyState === WebSocket.OPEN) { // Notify the server to update the JWT used for authentication this.socket.send(JSON.stringify({ action: "validate_token", token: newJwt })); } // Also update the locally stored token this.currentJWT = newJwt; }, reconnect: function (wsConn) { if (this.retries >= this.maxRetries) return window.clearTimeout(this.wsTimer); this.retries++; // Exponential backoff if (this.currDelay < this.maxDelay) this.currDelay *= 2; this.setWebSocket(wsConn, this.currentJWT, null); }, buildWSURI: function (wsConn) { var url = null; if (!wsConn.url || !wsConn.port) return null; url = /^wss?:\/\//i.test(wsConn.url) ? wsConn.url : window.location.protocol === "https:" ? 'wss://' + wsConn.url : 'ws://' + wsConn.url; return new URL(url).protocol + '//' + new URL(url).hostname + ':' + wsConn.port + new URL(url).pathname; }, setWebSocket: function (wsConn, jwt, messageInterval) { var host = null, pingId = null, uri = null, defURI = null, str = null; // Store the JWT used for this connection this.currentJWT = jwt; // If no external messageInterval is provided, set up local message rotation if (jwt && !messageInterval) { const messages = [ 'Validating WebSocket tokens... Please wait.', 'Authenticating WebSocket connection... Please wait.', 'Verifying WebSocket credentials... Please wait.', 'Authorizing WebSocket session... Please wait.' ]; let currentMessageIndex = 0; messageInterval = setInterval(() => { if (currentMessageIndex < messages.length) { $('.app-loading-status > small').innerHTML = messages[currentMessageIndex]; currentMessageIndex++; } }, 100); } defURI = window.location.hostname ? window.location.hostname + ':' + wsConn.port : "localhost" + ':' + wsConn.port; uri = wsConn.url && /^(wss?:\/\/)?[^\/]+:[0-9]{1,5}/.test(wsConn.url) ? wsConn.url : this.buildWSURI(wsConn); str = uri || defURI; str = !/^wss?:\/\//i.test(str) ? (window.location.protocol === "https:" ? 'wss://' : 'ws://') + str : str; if (jwt) { const separator = str.includes('?') ? '&' : '?'; str = str + separator + 'token=' + encodeURIComponent(jwt); } // Store socket for token refresh var socket = new WebSocket(str); this.socket = socket; socket.onopen = function (event) { clearInterval(messageInterval); if (this.currentJWT) $('.app-loading-status > small').innerHTML = 'Authentication successful.'; this.currDelay = this.wsDelay; this.retries = 0; if (wsConn.ping_interval) { pingId = setInterval(() => { socket.send('ping'); }, wsConn.ping_interval * 1E3); } GoAccess.Nav.WSOpen(str); }.bind(this); socket.onmessage = function (event) { this.AppState['updated'] = true; this.AppData = JSON.parse(event.data); if (!this.isAppInitialized) { GoAccess.App.initialize(); GoAccess.Nav.WSOpen(str); this.isAppInitialized = true; } this.App.renderData(); }.bind(this); socket.onclose = function (event) { clearInterval(messageInterval); $('.app-loading-status > small').innerHTML = 'Unable to authenticate WebSocket.'; $('.loading-container > .spinner').style.display = 'none'; GoAccess.Nav.WSClose(); window.clearInterval(pingId); this.socket = null; this.wsTimer = setTimeout(() => { this.reconnect(wsConn); }, this.currDelay); }.bind(this); }, }; // HELPERS GoAccess.Util = { months: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul","Aug", "Sep", "Oct", "Nov", "Dec"], // Add all attributes of n to o merge: function (o, n) { var obj = {}, i = 0, il = arguments.length, key; for (; i < il; i++) { for (key in arguments[i]) { if (arguments[i].hasOwnProperty(key)) { obj[key] = arguments[i][key]; } } } return obj; }, // hash a string hashCode: function (s) { return (s.split('').reduce(function (a, b) { a = ((a << 5) - a) + b.charCodeAt(0); return a&a; }, 0) >>> 0).toString(16); }, // Format bytes to human-readable formatBytes: function (bytes, decimals, numOnly) { if (bytes == 0) return numOnly ? 0 : '0 Byte'; var k = 1024; var dm = decimals + 1 || 2; var sizes = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB']; var i = Math.floor(Math.log(bytes) / Math.log(k)); return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + (numOnly ? '' : (' ' + sizes[i])); }, // Validate number isNumeric: function (n) { return !isNaN(parseFloat(n)) && isFinite(n); }, // Format microseconds to human-readable utime2str: function (usec) { if (usec >= 864E8) return ((usec) / 864E8).toFixed(2) + ' d'; else if (usec >= 36E8) return ((usec) / 36E8).toFixed(2) + ' h'; else if (usec >= 6E7) return ((usec) / 6E7).toFixed(2) + ' m'; else if (usec >= 1E6) return ((usec) / 1E6).toFixed(2) + ' s'; else if (usec >= 1E3) return ((usec) / 1E3).toFixed(2) + ' ms'; return (usec).toFixed(2) + ' us'; }, // Format date from 20120124 to 24/Jan/2012 formatDate: function (str) { var y = str.substr(0,4), m = str.substr(4,2) - 1, d = str.substr(6,2), h = str.substr(8,2) || 0, i = str.substr(10, 2) || 0, s = str.substr(12, 2) || 0; var date = new Date(y,m,d,h,i,s); var out = ('0' + date.getDate()).slice(-2) + '/' + this.months[date.getMonth()] + '/' + date.getFullYear(); 10 <= str.length && (out += ":" + h); 12 <= str.length && (out += ":" + i); 14 <= str.length && (out += ":" + s); return out; }, shortNum: function (n) { if (n < 1e3) return n; if (n >= 1e3 && n < 1e6) return +(n / 1e3).toFixed(1) + "K"; if (n >= 1e6 && n < 1e9) return +(n / 1e6).toFixed(1) + "M"; if (n >= 1e9 && n < 1e12) return +(n / 1e9).toFixed(1) + "B"; if (n >= 1e12) return +(n / 1e12).toFixed(1) + "T"; }, // Format field value to human-readable fmtValue: function (value, dataType, decimals, shorten, hlregex, hlvalue) { var val = 0; if (!dataType) val = value; switch (dataType) { case 'utime': val = this.utime2str(+value); break; case 'date': val = this.formatDate(value); break; case 'numeric': if (this.isNumeric(value)) val = shorten ? this.shortNum(value) : (+value).toLocaleString(); break; case 'bytes': val = this.formatBytes(value, decimals); break; case 'percent': val = value.replace(',', '.') + '%'; break; case 'time': if (this.isNumeric(value)) val = value.toLocaleString(); break; case 'secs': var t = new Date(null); t.setSeconds(value); val = t.toISOString().substr(11, 8); break; default: val = value; } if (hlregex) { let o = JSON.parse(hlregex), tmp = ''; for (var x in o) { if (!val) continue; tmp = val.replace(new RegExp(x, 'gi'), o[x]); if (tmp != val) { val = tmp; break; } val = tmp; } } return value == 0 ? String(val) : (val === undefined ? '-' : val); }, isPanelHidden: function (panel) { return GoAccess.AppPrefs.hiddenPanels.includes(panel); }, isPanelValid: function (panel) { var data = GoAccess.getPanelData(), ui = GoAccess.getPanelUI(); return (!ui.hasOwnProperty(panel) || !data.hasOwnProperty(panel) || !ui[panel].id); }, // Attempts to extract the count from either an object or a scalar. // e.g., item = Object {count: 14351, percent: 5.79} OR item = 4824825140 getCount: function (item) { if (this.isObject(item) && 'count' in item) return item.count; return item; }, getPercent: function (item) { if (this.isObject(item) && 'percent' in item) return this.fmtValue(item.percent, 'percent'); return null; }, isObject: function (o) { return o === Object(o); }, setProp: function (o, s, v) { var schema = o; var a = s.split('.'); for (var i = 0, n = a.length; i < n-1; ++i) { var k = a[i]; if (!schema[k]) schema[k] = {}; schema = schema[k]; } schema[a[n-1]] = v; }, getProp: function (o, s) { s = s.replace(/\[(\w+)\]/g, '.$1'); s = s.replace(/^\./, ''); var a = s.split('.'); for (var i = 0, n = a.length; i < n; ++i) { var k = a[i]; if (this.isObject(o) && k in o) { o = o[k]; } else { return; } } return o; }, hasLocalStorage: function () { try { localStorage.setItem('test', 'test'); localStorage.removeItem('test'); return true; } catch(e) { return false; } }, isWithinViewPort: function (el) { var elemTop = el.getBoundingClientRect().top; var elemBottom = el.getBoundingClientRect().bottom; return elemTop < window.innerHeight && elemBottom >= 0; }, togglePanel: function(panel) { var index = GoAccess.AppPrefs.hiddenPanels.indexOf(panel); if (index == -1) { GoAccess.AppPrefs.hiddenPanels.push(panel); } else { GoAccess.AppPrefs.hiddenPanels.splice(index, 1); } GoAccess.setPrefs(); delete GoAccess.AppCharts[panel]; GoAccess.OverallStats.initialize(); GoAccess.Panels.initialize(); GoAccess.Charts.initialize(); GoAccess.Tables.initialize(); }, reorderPanels: function(fromIndex, toIndex) { var order = GoAccess.AppPrefs.panelOrder; // Ensure we have a valid order array if (!order || order.length === 0) { console.error('Panel order not initialized'); return; } // Validate indices if (fromIndex < 0 || fromIndex >= order.length || toIndex < 0 || toIndex >= order.length) { console.error('Invalid drag indices', fromIndex, toIndex); return; } // Perform the reorder var item = order.splice(fromIndex, 1)[0]; order.splice(toIndex, 0, item); // Save preferences GoAccess.setPrefs(); // Re-render panels in new order GoAccess.Panels.initialize(); GoAccess.Charts.initialize(); GoAccess.Tables.initialize(); }, }; // OVERALL STATS GoAccess.OverallStats = { total_requests: 0, // Render each overall stats box renderBox: function (data, ui, row, x, idx) { var wrap = $('#overall ul'); var box = document.createElement('li'); // we need to append the element first, otherwise outerHTML won't work wrap.appendChild(box); box.outerHTML = GoAccess.AppTpls.General.items.render({ 'id': x, 'className': ui.items[x].className, 'label': ui.items[x].label, 'value': GoAccess.Util.fmtValue(data[x], ui.items[x].dataType), }); return wrap; }, // Render overall stats renderData: function (data, ui) { var idx = 0, row = null; $('.last-updated').innerHTML = data.date_time; $('#overall').innerHTML = ''; if (GoAccess.Util.isPanelHidden('general')) return false; $('#overall').innerHTML = GoAccess.AppTpls.General.wrap.render(GoAccess.Util.merge(ui, { 'from': data.start_date, 'to': data.end_date, })); $('#overall').setAttribute('aria-labelledby', 'overall-heading'); // Iterate over general data object for (var x in data) { if (!data.hasOwnProperty(x) || !ui.items.hasOwnProperty(x)) continue; row = this.renderBox(data, ui, row, x, idx); idx++; } }, // Render general/overall analyzed requests. initialize: function () { var ui = GoAccess.getPanelUI('general'); var data = GoAccess.getPanelData('general'); this.total_requests = data.total_requests; this.renderData(data, ui); } }; // RENDER PANELS GoAccess.Nav = { events: function () { $('.nav-bars').onclick = function (e) { e.stopPropagation(); this.renderMenu(e); }.bind(this); $('.nav-gears').onclick = function (e) { e.stopPropagation(); this.renderOpts(e); }.bind(this); $('.nav-minibars').onclick = function (e) { e.stopPropagation(); this.renderOpts(e); }.bind(this); $('body').onclick = function (e) { $('nav').classList.remove('active'); }.bind(this); $$('.export-json', function (item) { item.onclick = function (e) { this.downloadJSON(e); }.bind(this); }.bind(this)); $$('.theme-bright', function (item) { item.onclick = function (e) { this.setTheme('bright'); }.bind(this); }.bind(this)); $$('.theme-dark-blue', function (item) { item.onclick = function (e) { this.setTheme('darkBlue'); }.bind(this); }.bind(this)); $$('.theme-dark-gray', function (item) { item.onclick = function (e) { this.setTheme('darkGray'); }.bind(this); }.bind(this)); $$('.theme-dark-purple', function (item) { item.onclick = function (e) { this.setTheme('darkPurple'); }.bind(this); }.bind(this)); $$('.layout-horizontal', function (item) { item.onclick = function (e) { this.setLayout('horizontal'); }.bind(this); }.bind(this)); $$('.layout-vertical', function (item) { item.onclick = function (e) { this.setLayout('vertical'); }.bind(this); }.bind(this)); $$('.layout-wide', function (item) { item.onclick = function (e) { this.setLayout('wide'); }.bind(this); }.bind(this)); $$('[data-perpage]', function (item) { item.onclick = function (e) { this.setPerPage(e); }.bind(this); }.bind(this)); $$('[data-show-tables]', function (item) { item.onclick = function (e) { this.toggleTables(); }.bind(this); }.bind(this)); $$('[data-autohide-tables]', function (item) { item.onclick = function (e) { this.toggleAutoHideTables(); }.bind(this); }.bind(this)); $$('.toggle-panel', function (item) { item.onclick = function (e) { e.stopPropagation(); var panel = e.currentTarget.getAttribute('data-panel'); GoAccess.Util.togglePanel(panel); item.classList.toggle('active'); }.bind(this); }.bind(this)); $$('.drag-handle', function (item) { var li = item.closest('li'); // Don't make the overall stats draggable var link = li.querySelector('a'); if (link && link.getAttribute('href') === '#') { return; // Skip overall stats item } li.setAttribute('draggable', 'true'); li.ondragstart = function(e) { e.dataTransfer.effectAllowed = 'move'; e.dataTransfer.setData('text/html', this.innerHTML); this.classList.add('dragging'); // Get the actual panel key from the link var panelLink = this.querySelector('a'); var panelKey = panelLink ? panelLink.getAttribute('href').substring(1) : ''; e.dataTransfer.setData('panelKey', panelKey); // Store the index in the ordered list (excluding overall) var allItems = Array.from(this.parentNode.children); var draggableItems = allItems.filter(function(item) { var itemLink = item.querySelector('a'); return itemLink && itemLink.getAttribute('href') !== '#'; }); var fromIndex = draggableItems.indexOf(this); e.dataTransfer.setData('index', fromIndex); }; li.ondragend = function(e) { this.classList.remove('dragging'); $$('.nav-list li', function(item) { item.classList.remove('drag-over'); }); }; li.ondragover = function(e) { e.preventDefault(); e.dataTransfer.dropEffect = 'move'; // Only allow drop on other draggable items var link = this.querySelector('a'); if (link && link.getAttribute('href') !== '#') { return false; } return true; }; li.ondragenter = function(e) { e.preventDefault(); // Only highlight if it's a valid drop target var link = this.querySelector('a'); if (link && link.getAttribute('href') !== '#') { this.classList.add('drag-over'); } }; li.ondragleave = function(e) { // Check if we're actually leaving the element (not just entering a child) if (e.target === this) { this.classList.remove('drag-over'); } }; li.ondrop = function(e) { e.stopPropagation(); e.preventDefault(); // Don't allow dropping on overall stats var targetLink = this.querySelector('a'); if (targetLink && targetLink.getAttribute('href') === '#') { return false; } var fromIndex = parseInt(e.dataTransfer.getData('index')); // Calculate toIndex from draggable items only var allItems = Array.from(this.parentNode.children); var draggableItems = allItems.filter(function(item) { var itemLink = item.querySelector('a'); return itemLink && itemLink.getAttribute('href') !== '#'; }); var toIndex = draggableItems.indexOf(this); if (fromIndex !== toIndex && fromIndex !== -1 && toIndex !== -1) { GoAccess.Util.reorderPanels(fromIndex, toIndex); // Re-render the menu to show new order GoAccess.Nav.renderMenu(); } this.classList.remove('drag-over'); return false; }; }.bind(this)); }, downloadJSON: function (e) { var targ = e.currentTarget; var data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(GoAccess.getPanelData())); targ.href = 'data:' + data; targ.download = 'goaccess-' + (+new Date()) + '.json'; }, setLayout: function (layout) { if (('horizontal' == layout || 'wide' == layout) && $('.container')) { $('.container').classList.add('container-fluid'); $('.container').classList.remove('container'); } else if ('vertical' == layout && $('.container-fluid')) { $('.container-fluid').classList.add('container'); $('.container').classList.remove('container-fluid'); } GoAccess.AppPrefs['layout'] = layout; GoAccess.setPrefs(); GoAccess.Panels.initialize(); GoAccess.Charts.initialize(); GoAccess.Tables.initialize(); }, toggleAutoHideTables: function (e) { var autoHideTables = GoAccess.Tables.autoHideTables(); $$('.table-wrapper', function (item) { if (autoHideTables) { item.classList.remove('hidden-xs'); } else { item.classList.add('hidden-xs'); } }.bind(this)); GoAccess.AppPrefs['autoHideTables'] = !autoHideTables; GoAccess.setPrefs(); }, toggleTables: function () { var ui = GoAccess.getPanelUI(); var showTables = GoAccess.Tables.showTables(); Object.keys(ui).forEach(function (panel, idx) { if (!GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) ui[panel]['table'] = !showTables; }.bind(this)); GoAccess.AppPrefs['showTables'] = !showTables; GoAccess.setPrefs(); GoAccess.Panels.initialize(); GoAccess.Charts.initialize(); GoAccess.Tables.initialize(); }, setTheme: function (theme) { if (!theme) return; $('html').className = ''; switch(theme) { case 'darkGray': document.querySelector('meta[name="theme-color"]')?.setAttribute('content', '#212121'); $('html').classList.add('dark'); $('html').classList.add('gray'); break; case 'darkBlue': document.querySelector('meta[name="theme-color"]')?.setAttribute('content', '#252B30'); $('html').classList.add('dark'); $('html').classList.add('blue'); break; case 'darkPurple': document.querySelector('meta[name="theme-color"]')?.setAttribute('content', '#1e1e2f'); $('html').classList.add('dark'); $('html').classList.add('purple'); break; default: document.querySelector('meta[name="theme-color"]')?.setAttribute('content', '#f0f0f0'); } GoAccess.AppPrefs['theme'] = theme; GoAccess.setPrefs(); }, getIcon: function (key) { switch(key) { case 'visitors' : return 'users'; case 'requests' : return 'file'; case 'static_requests' : return 'file-text'; case 'not_found' : return 'file-o'; case 'hosts' : return 'user'; case 'os' : return 'desktop'; case 'browsers' : return 'chrome'; case 'visit_time' : return 'clock-o'; case 'vhosts' : return 'th-list'; case 'referrers' : return 'external-link'; case 'referring_sites' : return 'external-link'; case 'keyphrases' : return 'google'; case 'status_codes' : return 'warning'; case 'remote_user' : return 'users'; case 'geolocation' : return 'map-marker'; case 'asn' : return 'map-marker'; case 'mime_type' : return 'file-o'; case 'tls_type' : return 'warning'; default : return 'pie-chart'; } }, getItems: function () { var ui = GoAccess.getPanelUI(), menu = [], panels = []; // Collect all valid panels for (var panel in ui) { if (GoAccess.Util.isPanelValid(panel)) continue; panels.push({ 'current': window.location.hash.substr(1) == panel, 'head': ui[panel].head, 'key': panel, 'icon': this.getIcon(panel), 'hidden': GoAccess.Util.isPanelHidden(panel) }); } // Initialize panel order if empty if (!GoAccess.AppPrefs.panelOrder || GoAccess.AppPrefs.panelOrder.length === 0) { GoAccess.AppPrefs.panelOrder = panels.map(function(p) { return p.key; }); GoAccess.setPrefs(); } // Sort panels according to saved order var orderedPanels = []; var order = GoAccess.AppPrefs.panelOrder; // First add panels in the saved order for (var i = 0; i < order.length; i++) { var panel = panels.find(function(p) { return p.key === order[i]; }); if (panel) orderedPanels.push(panel); } // Then add any new panels that aren't in the saved order for (var j = 0; j < panels.length; j++) { if (!order.includes(panels[j].key)) { orderedPanels.push(panels[j]); GoAccess.AppPrefs.panelOrder.push(panels[j].key); } } return orderedPanels; }, setPerPage: function (e) { GoAccess.AppPrefs['perPage'] = +e.currentTarget.getAttribute('data-perpage'); GoAccess.App.renderData(); GoAccess.setPrefs(); GoAccess.Tables.initialize(); }, getTheme: function () { return GoAccess.AppPrefs.theme || 'darkGray'; }, getLayout: function () { return GoAccess.AppPrefs.layout || 'horizontal'; }, getPerPage: function () { return GoAccess.AppPrefs.perPage || 7; }, // Render left-hand side navigation options. renderOpts: function () { var o = {}; o[this.getLayout()] = true; o[this.getTheme()] = true; o['perPage' + this.getPerPage()] = true; o['autoHideTables'] = GoAccess.Tables.autoHideTables(); o['showTables'] = GoAccess.Tables.showTables(); o['labels'] = GoAccess.i18n; $('.nav-list').innerHTML = GoAccess.AppTpls.Nav.opts.render(o); requestAnimationFrame(function () { $('nav').classList.toggle('active'); }); this.events(); }, // Render left-hand side navigation given the available panels. renderMenu: function (e) { $('.nav-list').innerHTML = GoAccess.AppTpls.Nav.menu.render({ 'nav': this.getItems(), 'overall_current': window.location.hash.substr(1) == '', 'overall_hidden': GoAccess.Util.isPanelHidden('general'), 'labels': GoAccess.i18n, }); requestAnimationFrame(function () { $('nav').classList.toggle('active'); }); this.events(); }, WSStatus: function () { if (Object.keys(GoAccess.AppWSConn).length) $$('.nav-ws-status', function (item) { item.style.display = 'block'; }); }, WSClose: function () { $$('.nav-ws-status', function (item) { item.classList.remove('fa-circle'); item.classList.add('fa-stop'); item.setAttribute('aria-label', GoAccess.i18n.websocket_disconnected); item.setAttribute('title', GoAccess.i18n.websocket_disconnected); }); }, WSOpen: function (str) { const baseUrl = str.split('?')[0].split('#')[0]; $$('.nav-ws-status', function (item) { item.classList.remove('fa-stop'); item.classList.add('fa-circle'); item.setAttribute('aria-label', `${GoAccess.i18n.websocket_connected} (${baseUrl})`); item.setAttribute('title', `${GoAccess.i18n.websocket_connected} (${baseUrl})`); }); }, // Render left-hand side navigation given the available panels. renderWrap: function (nav) { $('nav').innerHTML = GoAccess.AppTpls.Nav.wrap.render(GoAccess.i18n); }, // Iterate over all available panels and render each. initialize: function () { this.setTheme(GoAccess.AppPrefs.theme); this.renderWrap(); this.WSStatus(); this.events(); } }; // RENDER PANELS GoAccess.Panels = { events: function () { $$('[data-toggle=dropdown]', function (item) { item.onclick = function (e) { this.openOpts(e.currentTarget); }.bind(this); item.onblur = function (e) { this.closeOpts(e); }.bind(this); }.bind(this)); $$('[data-plot]', function (item) { item.onclick = function (e) { GoAccess.Charts.redrawChart(e.currentTarget); }.bind(this); }.bind(this)); $$('[data-chart]', function (item) { item.onclick = function (e) { GoAccess.Charts.toggleChart(e.currentTarget); }.bind(this); }.bind(this)); $$('[data-chart-type]', function (item) { item.onclick = function (e) { GoAccess.Charts.setChartType(e.currentTarget); }.bind(this); }.bind(this)); $$('[data-metric]', function (item) { item.onclick = function (e) { GoAccess.Tables.toggleColumn(e.currentTarget); }.bind(this); }.bind(this)); }, openOpts: function (targ) { var panel = targ.getAttribute('data-panel'); targ.setAttribute('aria-expanded', 'true'); targ.parentElement.classList.toggle('open'); this.renderOpts(panel); }, closeOpts: function (e) { e.currentTarget.parentElement.classList.remove('open'); e.currentTarget.parentElement.querySelector('[aria-expanded]').setAttribute('aria-expanded', 'false'); // Trigger the click event on the target if not opening another menu if (e.relatedTarget && e.relatedTarget.getAttribute('data-toggle') !== 'dropdown') e.relatedTarget.click(); }, setPlotSelection: function (ui, prefs) { var chartType = ((prefs || {}).plot || {}).chartType || ui.plot[0].chartType; var metric = ((prefs || {}).plot || {}).metric || ui.plot[0].className; ui[chartType] = true; for (var i = 0, len = ui.plot.length; i < len; ++i) if (ui.plot[i].className == metric) ui.plot[i]['selected'] = true; }, setColSelection: function (items, prefs) { var columns = (prefs || {}).columns || {}; for (var i = 0, len = items.length; i < len; ++i) if ((items[i].key in columns) && columns[items[i].key]['hide']) items[i]['hide'] = true; }, setChartSelection: function (ui, prefs) { ui['showChart'] = prefs && ('chart' in prefs) ? prefs.chart : true; }, setOpts: function (panel) { var ui = JSON.parse(JSON.stringify(GoAccess.getPanelUI(panel))), prefs = GoAccess.getPrefs(panel); // set preferences selection upon opening panel options this.setChartSelection(ui, prefs); this.setPlotSelection(ui, prefs); this.setColSelection(ui.items, prefs); return GoAccess.Util.merge(ui, {'labels': GoAccess.i18n}); }, renderOpts: function (panel) { $('.panel-opts-' + panel).innerHTML = GoAccess.AppTpls.Panels.opts.render(this.setOpts(panel)); this.events(); }, enablePrev: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-prev'); if ($pagination) $pagination.parentNode.classList.remove('disabled'); }, disablePrev: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-prev'); if ($pagination) $pagination.parentNode.classList.add('disabled'); }, enableNext: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-next'); if ($pagination) $pagination.parentNode.classList.remove('disabled'); }, disableNext: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-next'); if ($pagination) $pagination.parentNode.classList.add('disabled'); }, enableFirst: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-first'); if ($pagination) $pagination.parentNode.classList.remove('disabled'); }, disableFirst: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-first'); if ($pagination) $pagination.parentNode.classList.add('disabled'); }, enableLast: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-last'); if ($pagination) $pagination.parentNode.classList.remove('disabled'); }, disableLast: function (panel) { var $pagination = $('#panel-' + panel + ' .pagination a.panel-last'); if ($pagination) $pagination.parentNode.classList.add('disabled'); }, enablePagination: function (panel) { this.enablePrev(panel); this.enableNext(panel); this.enableFirst(panel); this.enableLast(panel); }, disablePagination: function (panel) { this.disablePrev(panel); this.disableNext(panel); this.disableFirst(panel); this.disableLast(panel); }, hasSubItems: function (ui, data) { for (var i = 0, len = data.length; i < len; ++i) { if (!data[i].items) return (ui['hasSubItems'] = false); if (data[i].items.length) { return (ui['hasSubItems'] = true); } } return false; }, setComputedData: function (panel, ui, data) { this.hasSubItems(ui, data.data); GoAccess.Charts.hasChart(panel, ui); GoAccess.Tables.hasTable(ui); }, // Render the given panel given a user interface definition. renderPanel: function (panel, ui, col) { // set some computed values before rendering panel structure var data = GoAccess.getPanelData(panel); this.setComputedData(panel, ui, data); // per panel wrapper var box = document.createElement('div'); box.id = 'panel-' + panel; box.innerHTML = GoAccess.AppTpls.Panels.wrap.render(GoAccess.Util.merge(ui, { 'labels': GoAccess.i18n })); // add accessible label to parent article col.setAttribute('aria-labelledby', panel); col.appendChild(box); // Remove pagination if not enough data for the given panel if (data.data.length <= GoAccess.getPrefs().perPage) this.disablePagination(panel); GoAccess.Tables.renderThead(panel, ui); return col; }, createCol: function (row) { var layout = GoAccess.AppPrefs['layout']; var perRow = 'horizontal' == layout ? 6 : 'wide' == layout ? 3 : 12; // set the number of columns based on current layout var col = document.createElement('article'); col.setAttribute('class', 'col-md-' + perRow); row.appendChild(col); return col; }, createRow: function (row, idx) { var wrap = $('#panels'); var layout = GoAccess.AppPrefs['layout']; var every = 'horizontal' == layout ? 2 : 'wide' == layout ? 4 : 1; // create a new bootstrap row every one or two elements depending on // the layout if (idx % every == 0) { row = document.createElement('div'); row.setAttribute('class', 'row' + (every == 2 || every == 4 ? ' equal' : '')); wrap.appendChild(row); } return row; }, resetPanel: function (panel) { var ui = GoAccess.getPanelUI(); var ele = $('#panel-' + panel); if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) return false; var col = ele.parentNode; col.removeChild(ele); // Render panel given a user interface definition this.renderPanel(panel, ui[panel], col); this.events(); }, // Iterate over all available panels and render each panel // structure. renderPanels: function () { var ui = GoAccess.getPanelUI(), idx = 0, row = null, col = null; var order = GoAccess.AppPrefs.panelOrder || []; $('#panels').innerHTML = ''; // If no order is set, create default order if (order.length === 0) { for (var panel in ui) { if (!GoAccess.Util.isPanelValid(panel) && !GoAccess.Util.isPanelHidden(panel)) { order.push(panel); } } GoAccess.AppPrefs.panelOrder = order; GoAccess.setPrefs(); } // Render panels in the specified order for (var i = 0; i < order.length; i++) { var panel = order[i]; if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) continue; row = this.createRow(row, idx++); col = this.createCol(row); this.renderPanel(panel, ui[panel], col); } // Render any new panels not in the order array for (var panel in ui) { if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) continue; if (!order.includes(panel)) { row = this.createRow(row, idx++); col = this.createCol(row); this.renderPanel(panel, ui[panel], col); order.push(panel); } } GoAccess.AppPrefs.panelOrder = order; GoAccess.setPrefs(); }, initialize: function () { this.renderPanels(); this.events(); } }; // RENDER CHARTS GoAccess.Charts = { iter: function (callback) { Object.keys(GoAccess.AppCharts).forEach(function (panel) { // redraw chart only if it's within the viewport if (!GoAccess.Util.isWithinViewPort($('#panel-' + panel))) return; if (callback && typeof callback === 'function') callback.call(this, GoAccess.AppCharts[panel], panel); }); }, getMetricKeys: function (panel, key) { return GoAccess.getPanelUI(panel)['items'].map(function (a) { return a[key]; }); }, getPanelData: function (panel, data) { // Grab ui plot data for the selected panel var plot = GoAccess.Util.getProp(GoAccess.AppState, panel + '.plot'); // Grab the data for the selected panel, respecting expanded state if (!data) { var subItems = GoAccess.Tables.getSubItemsData(panel); data = this.processChartData(subItems.length ? subItems : GoAccess.getPanelData(panel).data); } return plot.chartReverse ? data.reverse() : data; }, drawPlot: function (panel, plotUI, data) { var chart = this.getChart(panel, plotUI, data); if (!chart) return; this.renderChart(panel, chart, data); GoAccess.AppCharts[panel] = null; GoAccess.AppCharts[panel] = chart; }, setChartType: function (targ) { var panel = targ.getAttribute('data-panel'); var type = targ.getAttribute('data-chart-type'); GoAccess.Util.setProp(GoAccess.AppPrefs, panel + '.plot.chartType', type); GoAccess.setPrefs(); var plotUI = GoAccess.Util.getProp(GoAccess.AppState, panel + '.plot'); // Extract data for the selected panel and process it this.drawPlot(panel, plotUI, this.getPanelData(panel)); }, toggleChart: function (targ) { var panel = targ.getAttribute('data-panel'); var prefs = GoAccess.getPrefs(panel), chart = prefs && ('chart' in prefs) ? prefs.chart : true; GoAccess.Util.setProp(GoAccess.AppPrefs, panel + '.chart', !chart); GoAccess.setPrefs(); GoAccess.Panels.resetPanel(panel); GoAccess.Charts.resetChart(panel); GoAccess.Tables.renderFullTable(panel); }, hasChart: function (panel, ui) { var prefs = GoAccess.getPrefs(panel), chart = prefs && ('chart' in prefs) ? prefs.chart : true; ui['chart'] = ui.plot.length && chart && chart; }, // Redraw a chart upon selecting a metric. redrawChart: function (targ) { var plot = targ.getAttribute('data-plot'); var panel = targ.getAttribute('data-panel'); var ui = GoAccess.getPanelUI(panel); var plotUI = ui.plot; GoAccess.Util.setProp(GoAccess.AppPrefs, panel + '.plot.metric', plot); GoAccess.setPrefs(); // Iterate over plot user interface definition for (var x in plotUI) { if (!plotUI.hasOwnProperty(x) || plotUI[x].className != plot) continue; GoAccess.Util.setProp(GoAccess.AppState, panel + '.plot', plotUI[x]); // Extract data for the selected panel and process it this.drawPlot(panel, plotUI[x], this.getPanelData(panel)); break; } }, // Iterate over the item properties and extract the count value. extractCount: function (item) { var o = {}; for (var prop in item) o[prop] = GoAccess.Util.getCount(item[prop]); return o; }, // Extract an array of objects that D3 can consume to process the chart. // e.g., o = Object {hits: 37402, visitors: 6949, bytes: // 505881789, avgts: 118609, cumts: 4436224010...} processChartData: function (data) { var out = []; for (var i = 0; i < data.length; ++i) out.push(this.extractCount(data[i])); return out; }, findUIItem: function (panel, key) { var items = GoAccess.getPanelUI(panel).items; for (var i = 0; i < items.length; ++i) { if (items[i].key == key) return items[i]; } return null; }, getXKey: function (datum, key) { var arr = []; if (typeof key === 'string') return datum[key]; for (var prop in key) arr.push(datum[key[prop]]); return arr.join(' '); }, getWMap: function (panel, plotUI, data, projectionType) { var chart = WorldMap(d3.select("#chart-" + panel)); chart.width($("#chart-" + panel).getBoundingClientRect().width); chart.height(400); chart.metric(plotUI['d3']['y0']['key']); chart.opts(plotUI); chart.projectionType(projectionType == 'wmap' ? 'mercator' : 'orthographic'); chart.panel(panel); return chart; }, getAreaSpline: function (panel, plotUI, data) { var dualYaxis = plotUI['d3']['y1']; var chart = AreaChart(dualYaxis) .labels({ y0: plotUI['d3']['y0'].label, y1: dualYaxis ? plotUI['d3']['y1'].label : '' }) .x(function (d) { if ((((plotUI || {}).d3 || {}).x || {}).key) return this.getXKey(d, plotUI['d3']['x']['key']); return d.data; }.bind(this)) .y0(function (d) { return +d[plotUI['d3']['y0']['key']]; }) .width($("#chart-" + panel).getBoundingClientRect().width) .height(175) .format({ x: (this.findUIItem(panel, 'data') || {}).dataType || null, y0: ((plotUI.d3 || {}).y0 || {}).format, y1: ((plotUI.d3 || {}).y1 || {}).format, }) .opts(plotUI); dualYaxis && chart.y1(function (d) { return +d[plotUI['d3']['y1']['key']]; }); return chart; }, getVBar: function (panel, plotUI, data) { var dualYaxis = plotUI['d3']['y1']; var chart = BarChart(dualYaxis) .labels({ y0: plotUI['d3']['y0'].label, y1: dualYaxis ? plotUI['d3']['y1'].label : '' }) .x(function (d) { if ((((plotUI || {}).d3 || {}).x || {}).key) return this.getXKey(d, plotUI['d3']['x']['key']); return d.data; }.bind(this)) .y0(function (d) { return +d[plotUI['d3']['y0']['key']]; }) .width($("#chart-" + panel).getBoundingClientRect().width) .height(175) .format({ x: (this.findUIItem(panel, 'data') || {}).dataType || null, y0: ((plotUI.d3 || {}).y0 || {}).format, y1: ((plotUI.d3 || {}).y1 || {}).format, }) .opts(plotUI); dualYaxis && chart.y1(function (d) { return +d[plotUI['d3']['y1']['key']]; }); return chart; }, getChartType: function (panel) { var ui = GoAccess.getPanelUI(panel); if (!ui.chart) return ''; return GoAccess.Util.getProp(GoAccess.getPrefs(), panel + '.plot.chartType') || ui.plot[0].chartType; }, getPlotUI: function (panel, ui) { var metric = GoAccess.Util.getProp(GoAccess.getPrefs(), panel + '.plot.metric'); if (!metric) return ui.plot[0]; return ui.plot.filter(function (v) { return v.className == metric; })[0]; }, getChart: function (panel, plotUI, data) { var chart = null; // Render given its type switch (this.getChartType(panel)) { case 'area-spline': chart = this.getAreaSpline(panel, plotUI, data); break; case 'bar': chart = this.getVBar(panel, plotUI, data); break; case 'wmap': case 'gmap': chart = this.getWMap(panel, plotUI, data, this.getChartType(panel)); break; } return chart; }, renderChart: function (panel, chart, data) { // remove popup d3.select('#chart-' + panel + '>.chart-tooltip-wrap') .remove(); // remove svg d3.select('#chart-' + panel).selectAll('svg') .remove(); // add chart to the document d3.select("#chart-" + panel) .datum(data) .call(chart) .append("div").attr("class", "chart-tooltip-wrap"); }, addChart: function (panel, ui) { var plotUI = null, chart = null; // Ensure it has a plot definition if (!ui.plot || !ui.plot.length) return; plotUI = this.getPlotUI(panel, ui); // set ui plot data GoAccess.Util.setProp(GoAccess.AppState, panel + '.plot', plotUI); // Grab the data for the selected panel var data = this.getPanelData(panel); if (!(chart = this.getChart(panel, plotUI, data))) return; this.renderChart(panel, chart, data); GoAccess.AppCharts[panel] = chart; }, // Render all charts for the applicable panels. renderCharts: function (ui) { for (var panel in ui) { if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) continue; this.addChart(panel, ui[panel]); } }, resetChart: function (panel) { var ui = {}; if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) return false; ui = GoAccess.getPanelUI(panel); this.addChart(panel, ui); }, // Reload (doesn't redraw) the given chart's data reloadChart: function (chart, panel) { d3.select("#chart-" + panel) .datum(this.getPanelData(panel)) .call(chart.width($("#chart-" + panel).offsetWidth)) .append("div").attr("class", "chart-tooltip-wrap"); }, // Reload (doesn't redraw) all chart's data reloadCharts: function () { this.iter(function (chart, panel) { this.reloadChart(chart, panel); }.bind(this)); GoAccess.AppState.updated = false; }, // Only redraw charts with current data redrawCharts: function () { this.iter(function (chart, panel) { d3.select("#chart-" + panel).call(chart.width($("#chart-" + panel).offsetWidth)); }); }, initialize: function () { this.renderCharts(GoAccess.getPanelUI()); // reload on scroll & redraw on resize d3.select(window).on('scroll.charts', debounce(function () { this.reloadCharts(); }, 250, false).bind(this)).on('resize.charts', function () { this.redrawCharts(); }.bind(this)); } }; // RENDER TABLES GoAccess.Tables = { chartData: {}, // holds all panel sub items data that feeds the chart events: function () { $$('.panel-next', function (item) { item.onclick = function (e) { var panel = e.currentTarget.getAttribute('data-panel'); this.renderTable(panel, this.nextPage(panel)); }.bind(this); }.bind(this)); $$('.panel-prev', function (item) { item.onclick = function (e) { var panel = e.currentTarget.getAttribute('data-panel'); this.renderTable(panel, this.prevPage(panel)); }.bind(this); }.bind(this)); $$('.panel-first', function (item) { item.onclick = function (e) { var panel = e.currentTarget.getAttribute('data-panel'); this.renderTable(panel, "FIRST_PAGE"); }.bind(this); }.bind(this)); $$('.panel-last', function (item) { item.onclick = function (e) { var panel = e.currentTarget.getAttribute('data-panel'); this.renderTable(panel, "LAST_PAGE"); }.bind(this); }.bind(this)); $$('.expandable>td', function (item) { item.onclick = function (e) { if (!window.getSelection().toString()) this.toggleRow(e.currentTarget); }.bind(this); }.bind(this)); $$('.row-expandable.clickable', function (item) { item.onclick = function (e) { this.toggleRow(e.currentTarget); }.bind(this); }.bind(this)); $$('.sortable', function (item) { item.onclick = function (e) { this.sortColumn(e.currentTarget); }.bind(this); }.bind(this)); }, toggleColumn: function (targ) { var panel = targ.getAttribute('data-panel'); var metric = targ.getAttribute('data-metric'); var columns = (GoAccess.getPrefs(panel) || {}).columns || {}; if (metric in columns) { delete columns[metric]; } else { GoAccess.Util.setProp(columns, metric + '.hide', true); } GoAccess.Util.setProp(GoAccess.AppPrefs, panel + '.columns', columns); GoAccess.setPrefs(); GoAccess.Tables.renderThead(panel, GoAccess.getPanelUI(panel)); GoAccess.Tables.renderFullTable(panel); }, sortColumn: function (ele) { var field = ele.getAttribute('data-key'); var order = ele.getAttribute('data-order'); var panel = ele.parentElement.parentElement.parentElement.getAttribute('data-panel'); order = order ? 'asc' == order ? 'desc' : 'asc' : 'asc'; GoAccess.App.sortData(panel, field, order); GoAccess.Util.setProp(GoAccess.AppState, panel + '.sort', { 'field': field, 'order': order, }); this.renderThead(panel, GoAccess.getPanelUI(panel)); this.renderTable(panel, this.getCurPage(panel)); GoAccess.Charts.reloadChart(GoAccess.AppCharts[panel], panel); }, getDataByKey: function (panel, key) { var data = GoAccess.getPanelData(panel).data; for (var i = 0, n = data.length; i < n; ++i) { if (GoAccess.Util.hashCode(data[i].data) == key) return data[i]; } return null; }, getSubItemsData: function (panel) { const expanded = GoAccess.Util.getProp(GoAccess.AppState, panel + '.expanded') || {}; const fullData = (GoAccess.getPanelData(panel) || {}).data || []; let results = []; fullData.forEach(function (continent) { const continentKey = GoAccess.Util.hashCode(continent.data); if (!expanded[continentKey]) return; if (!continent.items) return; continent.items.forEach(function (country) { const countryKey = GoAccess.Util.hashCode(country.data); if (expanded[countryKey] && country.items) { // expanded country -> show e.g., its cities results = results.concat(country.items); } else { // not expanded -> show e.g., country results.push(country); } }); }); return results; }, addChartData: function (panel, keyPath) { if (!keyPath) return GoAccess.getPanelData(panel).data; const parts = keyPath.split('|'); let current = GoAccess.getPanelData(panel).data; // Traverse the tree to the target node for (const part of parts) { const found = current.find(item => GoAccess.Util.hashCode(item.data) === part); if (!found || !found.items) return []; current = found.items; } // Store the current level's items under this exact path GoAccess.Util.setProp(this.chartData, panel + '.' + keyPath, current); // For the chart: we return **only the items at the current drill level** // (not all sub-items flattened - that was the old behavior) return current; }, removeChartData: function (panel, keyPath) { // Remove this specific path const path = panel + '.' + keyPath; if (GoAccess.Util.getProp(this.chartData, path)) { // We don't have deleteProp -> set to null / empty GoAccess.Util.setProp(this.chartData, path, null); } // Find the deepest remaining expanded path (or fall back to top-level) const expanded = GoAccess.Util.getProp(GoAccess.AppState, panel + '.expanded') || {}; let deepestPath = ''; let maxDepth = -1; for (const k in expanded) { if (expanded[k] !== true) continue; const depth = k.split('|').length; if (depth > maxDepth) { maxDepth = depth; deepestPath = k; } } if (deepestPath) { return GoAccess.Util.getProp(this.chartData, panel + '.' + deepestPath) || GoAccess.getPanelData(panel).data; } return GoAccess.getPanelData(panel).data; }, isExpanded: function (panel, key) { // getProp returns undefined if path doesn't exist -> treat as not expanded return !!GoAccess.Util.getProp(GoAccess.AppState, panel + '.expanded.' + key); }, toggleExpanded: function (panel, key) { var path = panel + '.expanded.' + key; var currentlyExpanded = this.isExpanded(panel, key); if (currentlyExpanded) { // Instead of delete -> set to false or null GoAccess.Util.setProp(GoAccess.AppState, path, false); // or: GoAccess.Util.setProp(GoAccess.AppState, path, null); // or even remove the property completely if you prefer (see Option 2) } else { GoAccess.Util.setProp(GoAccess.AppState, path, true); } return currentlyExpanded; // returns true if it WAS expanded (now collapsed) }, // Toggle children rows toggleRow: function (ele) { const row = ele.closest('tr'); if (!row) return; const panel = row.getAttribute('data-panel'); let key = row.getAttribute('data-node-key') || row.getAttribute('data-key'); if (!key) return; // If this is a nested row, we need to build the full path // For simplicity, we'll assume nodeKey is unique enough for now. // If collisions happen, we can later implement full path building. const wasExpanded = this.toggleExpanded(panel, key); this.renderTable(panel, this.getCurPage(panel)); const plotUI = GoAccess.AppCharts[panel]?.opts?.(); if (!plotUI || !plotUI.redrawOnExpand) return; GoAccess.Charts.reloadChart(GoAccess.AppCharts[panel], panel); }, // Get current panel page getCurPage: function (panel) { return GoAccess.Util.getProp(GoAccess.AppState, panel + '.curPage') || 0; }, // Page offset. // e.g., Return Value: 11, curPage: 2 pageOffSet: function (panel) { return ((this.getCurPage(panel) - 1) * GoAccess.getPrefs().perPage); }, // Get total number of pages given the number of items on array getTotalPages: function (dataItems) { return Math.ceil(dataItems.length / GoAccess.getPrefs().perPage); }, // Get a shallow copy of a portion of the given data array and the // current page. getPage: function (panel, dataItems, page) { var totalPages = this.getTotalPages(dataItems); if (page < 1) page = 1; if (page > totalPages) page = totalPages; GoAccess.Util.setProp(GoAccess.AppState, panel + '.curPage', page); var start = this.pageOffSet(panel); var end = start + GoAccess.getPrefs().perPage; return dataItems.slice(start, end); }, // Get previous page prevPage: function (panel) { return this.getCurPage(panel) - 1; }, // Get next page nextPage: function (panel) { return this.getCurPage(panel) + 1; }, getMetaCell: function (ui, o, key) { var val = o && (key in o) && o[key].value ? o[key].value : null; var perc = o && (key in o) && o[key].percent ? o[key].percent : null; // use metaType if exist else fallback to dataType var vtype = ui.metaType || ui.dataType; var className = ui.className || ''; className += !['string'].includes(ui.dataType) ? 'text-right' : ''; return { 'className': className, 'value' : val ? GoAccess.Util.fmtValue(val, vtype) : null, 'percent' : perc, 'title' : ui.meta, 'label' : ui.metaLabel || null, }; }, hideColumn: function (panel, col) { var columns = (GoAccess.getPrefs(panel) || {}).columns || {}; return ((col in columns) && columns[col]['hide']); }, showTables: function () { return ('showTables' in GoAccess.getPrefs()) ? GoAccess.getPrefs().showTables : true; }, autoHideTables: function () { return ('autoHideTables' in GoAccess.getPrefs()) ? GoAccess.getPrefs().autoHideTables : true; }, hasTable: function (ui) { ui['table'] = this.showTables(); ui['autoHideTables'] = this.autoHideTables(); }, getMetaRows: function (panel, ui, key) { var cells = [], uiItems = ui.items; var data = GoAccess.getPanelData(panel).metadata; for (var i = 0; i < uiItems.length; ++i) { var item = uiItems[i]; if (this.hideColumn(panel, item.key)) continue; cells.push(this.getMetaCell(item, data[item.key], key)); } return [{ 'hasSubItems': ui.hasSubItems, 'cells': cells, 'key' : key.substring(0, 3), }]; }, renderMetaRow: function (panel, metarows, className) { // find the table to set var table = $('.table-' + panel + ' tr.' + className); if (!table) return; table.innerHTML = GoAccess.AppTpls.Tables.meta.render({ row: metarows }); }, // Iterate over user interface definition properties iterUIItems: function (panel, uiItems, dataItems, callback) { var out = []; for (var i = 0; i < uiItems.length; ++i) { var uiItem = uiItems[i]; if (this.hideColumn(panel, uiItem.key)) continue; // Data for the current user interface property. // e.g., dataItem = Object {count: 13949, percent: 5.63} var dataItem = dataItems[uiItem.key]; // Apply the callback and push return data to output array if (callback && typeof callback == 'function') { var ret = callback.call(this, panel, uiItem, dataItem); if (ret) out.push(ret); } } return out; }, // Return an object that can be consumed by the table template given a user // interface definition and a cell value object. // e.g., value = Object {count: 14351, percent: 5.79} getObjectCell: function (panel, ui, value) { var className = ui.className || ''; className += !['string'].includes(ui.dataType) ? 'text-right' : ''; return { 'className': className, 'percent': GoAccess.Util.getPercent(value), 'value': GoAccess.Util.fmtValue(GoAccess.Util.getCount(value), ui.dataType, null, null, ui.hlregex, ui.hlvalue, ui.hlidx) }; }, // Given a data item object, set all the row cells and return a // table row that the template can consume. renderRow: function (panel, callback, ui, dataItem, idx, subItem, parentId, expanded, level) { var shade = ((!subItem && idx % 2 !== 0) ? 'shaded' : '') || (subItem && (parentId % 2 !== 0) ? 'shaded' : ''); var hasChildren = !!(dataItem.items && dataItem.items.length > 0); return { 'panel' : panel, 'idx' : !subItem ? String((idx + 1) + this.pageOffSet(panel)) : '', 'key' : !subItem ? GoAccess.Util.hashCode(dataItem.data) : '', 'nodeKey' : GoAccess.Util.hashCode(dataItem.data || dataItem), 'level' : level || 0, 'expanded' : !!expanded, // must be boolean 'parentId' : subItem ? String(parentId) : '', 'className' : (subItem ? 'child' : 'parent') + shade, 'hasSubItems' : hasChildren, // true if has children 'items' : hasChildren ? dataItem.items.length : 0, 'cells' : callback.call(this), }; }, renderRows: function(rows, panel, ui, dataItems, subItem, parentId, level = 0) { subItem = subItem || false; level = level || 0; /* no data rows */ if (dataItems.length === 0 && ui.items.length) { rows.push({ cells: [{ className: 'text-center', colspan: ui.items.length + 1, value: 'No data on this panel.' }] }); return; } for (var i = 0; i < dataItems.length; ++i) { var dataItem = dataItems[i]; var data = dataItem.data || dataItem; var isString = typeof dataItem === 'string'; var cellcb; if (isString) { cellcb = function() { return { 'colspan': ui.items.length, 'value': data }; }; } else { cellcb = this.iterUIItems.bind(this, panel, ui.items, dataItem, this.getObjectCell.bind(this)); } /* Unique key for this node (important for nested expansion state) */ var nodeKey = !isString ? GoAccess.Util.hashCode(data) : null; var expanded = nodeKey && this.isExpanded(panel, nodeKey); /* Build row with indentation level */ var row = this.renderRow(panel, cellcb, ui, dataItem, i, subItem, parentId, expanded); /* Add level for CSS indentation */ row.level = level; row.nodeKey = nodeKey; /* for future use in events */ row.isLeaf = !(dataItem.items && dataItem.items.length > 0); row.showPlaceholder = ui.hasSubItems && !row.hasSubItems; rows.push(row); /* Recurse into children if expanded */ if (!isString && dataItem.items && dataItem.items.length && expanded) { this.renderRows(rows, panel, ui, dataItem.items, true, /* is sub-item */ i, /* parent index (or could use nodeKey) */ level + 1); } } }, // Entry point to render all data rows into the table renderDataRows: function (panel, ui, dataItems, page) { // find the table to set var table = $('.table-' + panel + ' tbody.tbody-data'); if (!table) return; dataItems = this.getPage(panel, dataItems, page); var rows = []; this.renderRows(rows, panel, ui, dataItems); if (rows.length == 0) return; table.innerHTML = GoAccess.AppTpls.Tables.data.render({ rows: rows }); }, togglePagination: function (panel, page, dataItems) { GoAccess.Panels.enablePagination(panel); // Disable pagination next button if last page is reached if (page >= this.getTotalPages(dataItems)) { GoAccess.Panels.disableNext(panel); GoAccess.Panels.disableLast(panel); } if (page <= 1) { GoAccess.Panels.disablePrev(panel); GoAccess.Panels.disableFirst(panel); } }, renderTable: function (panel, page) { var dataItems = GoAccess.getPanelData(panel).data; var ui = GoAccess.getPanelUI(panel); if (page === "LAST_PAGE") { page = this.getTotalPages(dataItems); } else if (page === "FIRST_PAGE") { page = 1; } this.togglePagination(panel, page, dataItems); // Render data rows this.renderDataRows(panel, ui, dataItems, page); this.events(); }, renderFullTable: function (panel) { var ui = GoAccess.getPanelUI(panel), page = 0; // panel's data var data = GoAccess.getPanelData(panel); // render meta data if (data.hasOwnProperty('metadata')) { this.renderMetaRow(panel, this.getMetaRows(panel, ui, 'min'), 'thead-min'); this.renderMetaRow(panel, this.getMetaRows(panel, ui, 'max'), 'thead-max'); this.renderMetaRow(panel, this.getMetaRows(panel, ui, 'avg'), 'thead-avg'); } // render actual data if (data.hasOwnProperty('data')) { page = this.getCurPage(panel); this.togglePagination(panel, page, data.data); this.renderDataRows(panel, ui, data.data, page); } // render meta data if (data.hasOwnProperty('metadata')) { this.renderMetaRow(panel, this.getMetaRows(panel, ui, 'total'), 'tfoot-totals'); } }, // Iterate over all panels and determine which ones should contain // a data table. renderTables: function (force) { var ui = GoAccess.getPanelUI(); for (var panel in ui) { if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel) || !this.showTables()) continue; if (force || GoAccess.Util.isWithinViewPort($('#panel-' + panel))) this.renderFullTable(panel); } }, // Given a UI panel definition, make a copy of it and assign the sort // fields to the template object to render sort2Tpl: function (panel, ui) { var uiClone = JSON.parse(JSON.stringify(ui)), out = []; var sort = GoAccess.Util.getProp(GoAccess.AppState, panel + '.sort'); for (var i = 0, len = uiClone.items.length; i < len; ++i) { var item = uiClone.items[i]; if (this.hideColumn(panel, item.key)) continue; item['sort'] = false; if (item.key == sort.field && sort.order) { item['sort'] = true; item[sort.order.toLowerCase()] = true; } out.push(item); } uiClone.items = out; return uiClone; }, renderThead: function (panel, ui) { var $thead = $('.table-' + panel + '>thead>tr.thead-cols'), $colgroup = $('.table-' + panel + '>colgroup'); if ($thead && $colgroup && this.showTables()) { ui = this.sort2Tpl(panel, ui); $thead.innerHTML = GoAccess.AppTpls.Tables.head.render(ui); $colgroup.innerHTML = GoAccess.AppTpls.Tables.colgroup.render(ui); } }, reloadTables: function () { this.renderTables(false); this.events(); }, initialize: function () { this.renderTables(true); this.events(); // redraw on scroll d3.select(window).on('scroll.tables', debounce(function () { this.reloadTables(); }, 250, false).bind(this)); }, }; // Main App GoAccess.App = { hasFocus: true, tpl: function (tpl) { return Hogan.compile(tpl); }, setTpls: function () { GoAccess.AppTpls = { 'Nav': { 'wrap': this.tpl($('#tpl-nav-wrap').innerHTML), 'menu': this.tpl($('#tpl-nav-menu').innerHTML), 'opts': this.tpl($('#tpl-nav-opts').innerHTML), }, 'Panels': { 'wrap': this.tpl($('#tpl-panel').innerHTML), 'opts': this.tpl($('#tpl-panel-opts').innerHTML), }, 'General': { 'wrap': this.tpl($('#tpl-general').innerHTML), 'items': this.tpl($('#tpl-general-items').innerHTML), }, 'Tables': { 'colgroup': this.tpl($('#tpl-table-colgroup').innerHTML), 'head': this.tpl($('#tpl-table-thead').innerHTML), 'meta': this.tpl($('#tpl-table-row-meta').innerHTML), 'totals': this.tpl($('#tpl-table-row-totals').innerHTML), 'data': this.tpl($('#tpl-table-row').innerHTML), }, }; }, sortField: function (o, field) { var f = o[field]; if (GoAccess.Util.isObject(f) && (f !== null)) f = o[field].count; return f; }, sortData: function (panel, field, order) { // panel's data var panelData = GoAccess.getPanelData(panel).data; // Function to sort an array of objects var sortArray = function(arr) { arr.sort(function (a, b) { a = this.sortField(a, field); b = this.sortField(b, field); if (typeof a === 'string' && typeof b === 'string') return 'asc' == order ? a.localeCompare(b) : b.localeCompare(a); return 'asc' == order ? a - b : b - a; }.bind(this)); }.bind(this); // Sort panelData sortArray(panelData); // Sort the items sub-array panelData.forEach(function(item) { if (item.items) { sortArray(item.items); } }); }, setInitSort: function () { var ui = GoAccess.getPanelUI(); for (var panel in ui) { if (GoAccess.Util.isPanelValid(panel)) continue; GoAccess.Util.setProp(GoAccess.AppState, panel + '.sort', ui[panel].sort); } }, // Verify if we need to sort panels upon data re-entry verifySort: function () { var ui = GoAccess.getPanelUI(); for (var panel in ui) { if (GoAccess.Util.isPanelValid(panel) || GoAccess.Util.isPanelHidden(panel)) continue; var sort = GoAccess.Util.getProp(GoAccess.AppState, panel + '.sort'); // do not sort panels if they still hold the same sort properties if (JSON.stringify(sort) === JSON.stringify(ui[panel].sort)) continue; this.sortData(panel, sort.field, sort.order); } }, initDom: function () { $('nav').classList.remove('hide'); $('.container').classList.remove('hide'); $('.spinner').classList.add('hide'); $('.app-loading-status > small').style.display = 'none'; if (GoAccess.AppPrefs['layout'] == 'horizontal' || GoAccess.AppPrefs['layout'] == 'wide') { $('.container').classList.add('container-fluid'); $('.container-fluid').classList.remove('container'); } }, renderData: function () { // update data and charts if tab/document has focus if (!this.hasFocus) return; // some panels may not have been properly rendered since no data was // passed when bootstrapping the report, thus we do a one full // re-render of all panels if (GoAccess.OverallStats.total_requests == 0 && GoAccess.OverallStats.total_requests != GoAccess.AppData.general.total_requests) GoAccess.Panels.initialize(); GoAccess.OverallStats.total_requests = GoAccess.AppData.general.total_requests; this.verifySort(); GoAccess.OverallStats.initialize(); // do not rerender tables/charts if data hasn't changed if (!GoAccess.AppState.updated) return; GoAccess.Charts.reloadCharts(); GoAccess.Tables.reloadTables(); }, renderPanels: function () { GoAccess.Nav.initialize(); GoAccess.OverallStats.initialize(); GoAccess.Panels.initialize(); GoAccess.Charts.initialize(); GoAccess.Tables.initialize(); }, initialize: function () { this.setInitSort(); this.setTpls(); this.initDom(); this.renderPanels(); }, }; // Adds the visibilitychange EventListener document.addEventListener('visibilitychange', function () { // fires when user switches tabs, apps, etc. if (document.visibilityState === 'hidden') GoAccess.App.hasFocus = false; // fires when app transitions from hidden or user returns to the app/tab. if (document.visibilityState === 'visible' && GoAccess.isAppInitialized) { var hasFocus = GoAccess.App.hasFocus; GoAccess.App.hasFocus = true; hasFocus || GoAccess.App.renderData(); } }); // Init app window.onload = function () { GoAccess.initialize({ 'i18n': window.json_i18n, 'uiData': window.user_interface, 'panelData': window.json_data, 'wsConnection': window.connection || null, 'prefs': window.html_prefs || {}, }); }; }()); ================================================ FILE: resources/js/charts.js ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2018 Gerardo Orellana <hello @ goaccess.io> */ 'use strict'; // This is faster than calculating the exact length of each label. // e.g., getComputedTextLength(), slice()... function truncate(text, width) { text.each(function () { var parent = this.parentNode, $d3parent = d3.select(parent); var gw = $d3parent.node().getBBox(); var x = (Math.min(gw.width, width) / 2) * -1; // adjust wrapper <svg> width if ('svg' == parent.nodeName) { $d3parent.attr('width', width).attr('x', x); } // wrap <text> within an svg else { $d3parent.insert('svg', function () { return this; }.bind(this)) .attr('class', 'wrap-text') .attr('width', width) .attr('x', x) .append(function () { return this; }.bind(this)); } }); } function WorldMap(selection) { const maxLat = 84; let path = null; let projection = null; let tlast = [0, 0]; let slast = null; let opts = {}; let metric = 'hits'; let margin = { top: 20, right: 50, bottom: 40, left: 50 }; let width = 760; let height = 170; // default value; will be set externally let projectionType = 'mercator'; let initialScale; let panelName = null; let cityIndex = null; let citySizeScale = null; function innerW() { return width - margin.left - margin.right; } function innerH() { return height - margin.top - margin.bottom; } function buildCityIndex() { if (cityIndex) return; var cityData = window.cities10m; if (!cityData) return; cityIndex = {}; var features = topojson.feature(cityData, cityData.objects.cities).features; features.forEach(function(f) { var p = f.properties; var iso = (p.ISO_A2 || '').toUpperCase(); var asciiKey = iso + '|' + (p.NAMEASCII || '').toLowerCase().trim(); cityIndex[asciiKey] = f; var nameKey = iso + '|' + (p.NAME || '').toLowerCase().trim(); if (nameKey !== asciiKey) cityIndex[nameKey] = f; }); } function collectCities(country, code) { var out = []; if (!country.items) return out; country.items.forEach(function(city) { out.push({ data: city.data, countryCode: code, hits: city.hits.count, visitors: city.visitors.count, bytes: city.bytes.count }); }); return out; } function isCityVisible(coords) { if (projectionType !== 'orthographic') return true; var rotate = projection.rotate(); var center = [-rotate[0], -rotate[1]]; return d3.geoDistance(coords, center) < Math.PI / 2; } function getMapRenderState() { if (!panelName) return null; var fullData = (GoAccess.getPanelData(panelName) || {}).data || []; var expanded = GoAccess.Util.getProp(GoAccess.AppState, panelName + '.expanded') || {}; var allCountries = []; var highlightCodes = new Set(); var expandedCountryCodes = new Set(); var cities = []; var expandedContinents = new Set(); // pass 1: detect expanded continents and collect countries fullData.forEach(function(continent) { if (!continent.items) return; var continentKey = GoAccess.Util.hashCode(continent.data); if (expanded[continentKey]) { expandedContinents.add(continentKey); } continent.items.forEach(function(country) { var code = country.data.split(' ')[0]; allCountries.push({ data: country.data, hits: country.hits.count, visitors: country.visitors.count, bytes: country.bytes.count, region: continent.data }); }); }); var hasExpandedContinent = expandedContinents.size > 0; // pass 2: resolve each continent independently fullData.forEach(function(continent) { if (!continent.items) return; var continentKey = GoAccess.Util.hashCode(continent.data); var isContinentExpanded = expandedContinents.has(continentKey); // if nothing expanded, treat all continents as expanded if (!hasExpandedContinent) { isContinentExpanded = true; } if (!isContinentExpanded) return; // detect expanded countries inside this continent var localExpandedCountries = new Set(); continent.items.forEach(function(country) { var code = country.data.split(' ')[0]; var countryKey = GoAccess.Util.hashCode(country.data); if (expanded[countryKey]) { localExpandedCountries.add(code); expandedCountryCodes.add(code); } }); var hasLocalExpanded = localExpandedCountries.size > 0; continent.items.forEach(function(country) { var code = country.data.split(' ')[0]; // highlight logic if (hasLocalExpanded) { if (localExpandedCountries.has(code)) { highlightCodes.add(code); } } else { highlightCodes.add(code); } // city logic if (hasLocalExpanded) { if (localExpandedCountries.has(code)) { cities = cities.concat(collectCities(country, code)); } } else { cities = cities.concat(collectCities(country, code)); } }); }); // nothing expanded at all -> show everything if (!hasExpandedContinent) { highlightCodes = null; cities = []; fullData.forEach(function(continent) { if (!continent.items) return; continent.items.forEach(function(country) { var code = country.data.split(' ')[0]; cities = cities.concat(collectCities(country, code)); }); }); } return { allCountries: allCountries, highlightCodes: highlightCodes, expandedCountryCodes: expandedCountryCodes.size ? expandedCountryCodes : null, cities: cities }; } function formatTooltip(data) { const d = { ...data }; let out = {}; out[0] = GoAccess.Util.fmtValue(d['data'], 'str'); out[1] = metric === 'bytes' ? GoAccess.Util.fmtValue(d['bytes'], 'bytes') : d3.format(',')(d['hits']); if (metric === 'hits') out[2] = d3.format(',')(d['visitors']); const template = d3.select('#tpl-chart-tooltip') .html(); return Hogan.compile(template) .render({ 'data': out }); } function mouseover(event, selection, data) { const tooltip = selection.select('.chart-tooltip-wrap'); tooltip.html(formatTooltip(data)) .style('left', `${d3.pointer(event)[0] + 10}px`) .style('top', `${d3.pointer(event)[1] + 10}px`) .style('display', 'block'); } function mouseout(selection) { const tooltip = selection.select('.chart-tooltip-wrap'); tooltip.style('display', 'none'); } function drawLegend(selection, colorScale) { const legendHeight = 10; const legendPadding = 10; let svg = selection.select('.legend-svg'); if (svg.empty()) { svg = selection.append('svg') .attr('class', 'legend-svg') .attr('width', width + margin.left + margin.right) .attr('height', legendHeight + 2 * legendPadding); } let legend = svg.select('.legend'); if (legend.empty()) { legend = svg.append('g') .attr('class', 'legend') .attr('transform', `translate(${margin.left}, ${legendPadding})`); } const legendData = colorScale.quantiles(); const legendRects = legend.selectAll('rect') .data(legendData); legendRects.enter() .append('rect') .merge(legendRects) .attr('x', (d, i) => (i * (innerW())) / legendData.length) .attr('y', 0) .attr('width', innerW() / legendData.length) .attr('height', legendHeight) .style('fill', d => colorScale(d)); legendRects.exit() .remove(); const legendTexts = legend.selectAll('text') .data(legendData); legendTexts.enter() .append('text') .merge(legendTexts) .attr('x', (d, i) => (i * (innerW())) / legendData.length) .attr('y', legendHeight + legendPadding) .style('font-size', '10px') .attr('text-anchor', 'middle') .text(d => metric === 'bytes' ? GoAccess.Util.fmtValue(d, 'bytes') : d3.format(',')(d)); legendTexts.exit() .remove(); } function updateSphere(svg, g) { if (projectionType === 'orthographic') { let sphere = g.selectAll('.sphere') .data([{ type: 'Sphere' }]); // Insert as first child to be behind countries let sphereEnter = sphere.enter() .insert('path', ':first-child') .attr('class', 'sphere') .attr('d', path) .attr('fill', '#DDEEFF') /* Light blue for ocean */ .attr('opacity', 0); sphere = sphereEnter.merge(sphere); sphere.transition() .duration(500) .attr('opacity', 1); } else { // Remove sphere when not in orthographic projection g.selectAll('.sphere') .transition() .duration(500) .attr('opacity', 0) .remove(); } } function updateMap(selection, svg, data, countries, countryNameToGeoJson) { buildCityIndex(); var state = getMapRenderState(); var activeData; if (state) { activeData = state.allCountries; } else { // Fallback: flatten data the old way when panel is not set activeData = data.reduce(function(acc, region) { if (!region.items) acc.push(region); else region.items.forEach(function(item) { acc.push({ data: item.data, hits: item.hits.count !== undefined ? item.hits.count : item.hits, visitors: item.visitors.count !== undefined ? item.visitors.count : item.visitors, bytes: item.bytes.count !== undefined ? item.bytes.count : item.bytes, region: region.data }); }); return acc; }, []); state = { allCountries: activeData, highlightCodes: null, expandedCountryCodes: null, cities: [] }; } path = d3.geoPath() .projection(projection); const colorScale = d3.scaleQuantile() .domain(activeData.map(d => d[metric])) .range(['#eafff1', '#a7e3d7', '#6cc5c0', '#44a2b1', '#246e96']); if (activeData.length) drawLegend(selection, colorScale); // Create a mapping from country code to data const dataByName = {}; activeData.forEach(d => { const k = d.data.split(' ')[0]; dataByName[k] = d; }); // Add graticule (grid lines) if (projectionType !== 'mercator') { const graticule = d3.geoGraticule(); let grid = svg.select('g') .selectAll('.graticule') .data([graticule()]); let gridEnter = grid.enter() .append('path') .attr('class', 'graticule') .attr('d', path) .attr('fill', 'none') .attr('stroke', '#ccc') .attr('stroke-width', 0.5) .attr('stroke-dasharray', '3,3') .attr('opacity', 0); grid = gridEnter.merge(grid); grid.transition() .duration(500) .attr('opacity', 0.4); } let country = svg.select('g') .selectAll('.country') .data(countries); let countryEnter = country.enter() .append('path') .attr('class', 'country') .attr('d', path) .attr('opacity', 0); country = countryEnter.merge(country) .on('mouseover', function(event, d) { const countryData = dataByName[d.id]; if (countryData) mouseover(event, selection, countryData); }) .on('mouseout', function() { mouseout(selection); }); country.transition() .duration(500) .style('fill', function(d) { const countryData = dataByName[d.id]; if (!countryData) return '#cccccc54'; if (state.highlightCodes) { return state.highlightCodes.has(d.id) ? colorScale(countryData[metric]) : '#cccccc30'; } return colorScale(countryData[metric]); }) .attr('opacity', 1); country.exit() .transition() .duration(500) .attr('opacity', 0) .remove(); // Update city markers updateCities(selection, svg, state, colorScale); } function updateCities(selection, svg, state, colorScale) { var g = svg.select('g'); var cityMarkers = []; if (state.cities.length && cityIndex) { state.cities.forEach(function(c) { var key = c.countryCode.toUpperCase() + '|' + c.data.toLowerCase().trim(); var feature = cityIndex[key]; if (feature) { cityMarkers.push({ feature: feature, data: c.data, hits: c.hits, visitors: c.visitors, bytes: c.bytes }); } }); } var sizeExtent = d3.extent(cityMarkers, function(d) { return d[metric]; }); if (!sizeExtent[0] && !sizeExtent[1]) sizeExtent = [0, 1]; var sizeScale = d3.scaleSqrt() .domain(sizeExtent) .range([3, 10]) .clamp(true); var strokeScale = d3.scaleSqrt() .domain(sizeExtent) .range([1, 2.5]) .clamp(true); citySizeScale = sizeScale; var circles = g.selectAll('.city-marker') .data(cityMarkers, function(d) { return d.data + '|' + d.feature.properties.ISO_A2; }); circles.exit() .transition().duration(300) .attr('r', 0) .remove(); var circlesEnter = circles.enter() .append('circle') .attr('class', 'city-marker') .attr('r', 0) .style('fill', '#ff6b6b') .style('stroke', '#fff') .style('cursor', 'pointer') .on('mouseover', function(event, d) { mouseover(event, selection, d); }) .on('mouseout', function() { mouseout(selection); }); circlesEnter.merge(circles) .transition().duration(500) .attr('cx', function(d) { if (!isCityVisible(d.feature.geometry.coordinates)) return -9999; var coords = projection(d.feature.geometry.coordinates); return coords ? coords[0] : -9999; }) .attr('cy', function(d) { if (!isCityVisible(d.feature.geometry.coordinates)) return -9999; var coords = projection(d.feature.geometry.coordinates); return coords ? coords[1] : -9999; }) .attr('r', function(d) { if (!isCityVisible(d.feature.geometry.coordinates)) return 0; var coords = projection(d.feature.geometry.coordinates); return coords ? sizeScale(d[metric]) : 0; }) .style('fill', '#ff6b6b') .style('stroke', '#fff') .style('stroke-width', function(d) { return strokeScale(d[metric]) + 'px'; }); } function setBounds(projection, maxLat) { // Top-left corner of the ~viewable~ lat const [yaw] = projection.rotate(); const xymax = projection([-yaw + 180 - 1e-6, -maxLat]); const xymin = projection([-yaw - 180 + 1e-6, maxLat]); return [xymin, xymax]; } function clampVertical(projection, maxLat, height) { const b = setBounds(projection, maxLat); // top-left const [xMin, yMin] = b[0]; // bottom-right const [xMax, yMax] = b[1]; const t = projection.translate(); // If the top (yMin) is now below 0, shift upward. if (yMin > 0) t[1] -= yMin; // If the bottom (yMax) is now above the container height, shift downward. else if (yMax < height) t[1] += (height - yMax); projection.translate(t); } function baseScale() { // If the effective width is small, use a fixed mobile scale; otherwise use the computed scale. return innerW() < 400 ? 150 : innerW() / (2 * Math.PI); } function setProjection(type) { if (type === 'mercator') { const bScale = baseScale(); projection = d3.geoMercator() .center([0, 15]) .scale(bScale) .translate([innerW() / 2, height / 1.5]); } else if (type === 'orthographic') { const globeScale = Math.min(innerW(), height) / 1.5; projection = d3.geoOrthographic() .scale(globeScale) .translate([innerW() / 2, height / 2]) .rotate([0, 0, 0]); } initialScale = projection.scale(); path = d3.geoPath().projection(projection); } function zoomed(event, projection, path, scaleExtent, g) { const scale = event.transform.k; if (projectionType === 'mercator') { const containerCenter = [innerW() / 2, height / 2]; let anchor = containerCenter; if (Math.abs(scale - slast) > 1e-3) { const geoCoord = projection.invert(anchor); // Use baseScale() here instead of innerW()/(2*Math.PI) projection.scale(scale * baseScale()); const newPixel = projection(geoCoord); const dxAnchor = anchor[0] - newPixel[0]; const dyAnchor = anchor[1] - newPixel[1]; const t = projection.translate(); projection.translate([t[0] + dxAnchor, t[1] + dyAnchor]); clampVertical(projection, maxLat, height); } else { const newX = event.transform.x; const newY = event.transform.y; const dx = newX - tlast[0]; const dy = newY - tlast[1]; let [longitude] = projection.rotate(); longitude += 360 * (dx / width) * (scaleExtent[0] / scale); projection.rotate([longitude, 0, 0]); const t = projection.translate(); t[1] += dy; projection.translate(t); clampVertical(projection, maxLat, height); } } else if (projectionType === 'orthographic') { // Use the zoom transform's k to compute a new scale, // clamping to a maximum factor (here, 2x the initialScale). let newScale = scale * initialScale; const maxOrthoScale = initialScale * 2; if (newScale > maxOrthoScale) newScale = maxOrthoScale; if (newScale < initialScale) newScale = initialScale; projection.scale(newScale); // Update rotation using the difference between the current and previous transform values. const dx = event.transform.x - tlast[0]; const dy = event.transform.y - tlast[1]; let [longitude, latitude] = projection.rotate(); // we could reduce sensitivity for smoother rotation const sensitivity = 0.2; longitude += dx * sensitivity; latitude -= dy * sensitivity; latitude = Math.max(-90, Math.min(90, latitude)); projection.rotate([longitude, latitude, 0]); } g.selectAll('path') .attr('d', path); g.selectAll('.city-marker') .attr('cx', function(d) { if (!isCityVisible(d.feature.geometry.coordinates)) return -9999; var coords = projection(d.feature.geometry.coordinates); return coords ? coords[0] : -9999; }) .attr('cy', function(d) { if (!isCityVisible(d.feature.geometry.coordinates)) return -9999; var coords = projection(d.feature.geometry.coordinates); return coords ? coords[1] : -9999; }) .attr('r', function(d) { if (!isCityVisible(d.feature.geometry.coordinates)) return 0; return citySizeScale ? citySizeScale(d[metric]) : 0; }); tlast = [event.transform.x, event.transform.y]; slast = scale; } function createSVG(selectionElem) { const svg = d3.select(selectionElem) .append('svg') .attr('class', 'map') .attr('style', 'display:block; margin:auto;') .attr('width', innerW()) .attr('height', height) .lower(); const g = svg.append('g') .attr('transform', 'translate(0,0)'); // Use the externally provided projectionType setProjection(projectionType); // Compute scale extent based on projection type. let scaleExtent; if (projectionType === 'mercator') { // For cellphones (narrow screens), use a fixed scale and limit zoom-out to the initial state. if (innerW() < 400) { // Here 1 means the initial zoom level (no zoom-out), 6 is arbitrary for max zoom in. scaleExtent = [1, 6]; } else { // Otherwise, calculate the base scale from the bounds. const bounds = setBounds(projection, maxLat); const s = innerW() / (bounds[1][0] - bounds[0][0]); scaleExtent = [s, 6 * s]; } } else if (projectionType === 'orthographic') { // For orthographic, let d3.zoom use a relative scale factor. // The identity transform (k = 1) corresponds to the initialScale, // and we allow zooming from 1x to 2x. scaleExtent = [1, 2]; } const zoom = d3.zoom() .scaleExtent(scaleExtent) .on('zoom', event => { zoomed(event, projection, path, scaleExtent, g); }); svg.call(zoom); return { svg, g }; } function chart(selectionData) { selectionData.each(function(data) { const worldData = window.countries110m; const countries = topojson.feature(worldData, worldData.objects.countries) .features; /* Build a mapping from country names to GeoJSON if needed */ const countryNameToGeoJson = {}; countries.forEach(country => { countryNameToGeoJson[country.properties.name] = country; }); let svgObj = d3.select(this) .select('svg.map'); let g; if (svgObj.empty()) { const created = createSVG(this); svgObj = created.svg; g = created.g; } else { /* If the SVG already exists, select its group */ g = svgObj.select('g'); } updateMap(d3.select(this), svgObj, data, countries, countryNameToGeoJson); /* Update sphere in case the projection is orthographic */ updateSphere(svgObj, g); }); } // Getter-setter for metric chart.metric = function(_) { if (!arguments.length) return metric; metric = _; return chart; }; // Getter-setter for opts chart.opts = function(_) { if (!arguments.length) return opts; opts = _; return chart; }; // Getter-setter for width chart.width = function(_) { if (!arguments.length) return width; width = _; return chart; }; // Getter-setter for height chart.height = function(_) { if (!arguments.length) return height; height = _; return chart; }; // Getter-setter for projectionType chart.projectionType = function(_) { if (!arguments.length) return projectionType; projectionType = _; return chart; }; // Getter-setter for panel name chart.panel = function(_) { if (!arguments.length) return panelName; panelName = _; return chart; }; return chart; } function AreaChart(dualYaxis) { var opts = {}; var margin = { top : 20, right : 50, bottom : 40, left : 50, }, height = 170, nTicks = 10, padding = 10, width = 760; var labels = { x: 'Unnamed', y0: 'Unnamed', y1: 'Unnamed' }; var format = { x: null, y0: null, y1: null}; var xValue = function (d) { return d[0]; }, yValue0 = function (d) { return d[1]; }, yValue1 = function (d) { return d[2]; }; var xScale = d3.scaleBand(); var yScale0 = d3.scaleLinear().nice(); var yScale1 = d3.scaleLinear().nice(); var xAxis = d3.axisBottom(xScale) .tickFormat(function(d) { if (format.x) return GoAccess.Util.fmtValue(d, format.x); return d; }); var yAxis0 = d3.axisLeft(yScale0) .tickFormat(function(d) { return d3.format('.2s')(d); }); var yAxis1 = d3.axisRight(yScale1) .tickFormat(function(d) { if (format.y1) return GoAccess.Util.fmtValue(d, format.y1); return d3.format('.2s')(d); }); var xGrid = d3.axisBottom(xScale); var yGrid = d3.axisLeft(yScale0); var area0 = d3.area() .curve(d3.curveMonotoneX) .x(X) .y0(height) .y1(Y0); var area1 = d3.area() .curve(d3.curveMonotoneX) .x(X) .y0(Y1) .y1(height); var line0 = d3.line() .curve(d3.curveMonotoneX) .x(X) .y(Y0); var line1 = d3.line() .curve(d3.curveMonotoneX) .x(X) .y(Y1); // The x-accessor for the path generator; xScale xValue. function X(d) { return (xScale(d[0]) + xScale.bandwidth() / 2); } // The x-accessor for the path generator; yScale0 yValue0. function Y0(d) { return yScale0(d[1]); } // The x-accessor for the path generator; yScale0 yValue0. function Y1(d) { return yScale1(d[2]); } function innerW() { return width - margin.left - margin.right; } function innerH() { return height - margin.top - margin.bottom; } function getXTicks(data) { const domain = xScale.domain(); if (data.length < nTicks) return domain; return d3.range(0, nTicks).map(function(i) { const index = Math.floor(i * (domain.length - 1) / (nTicks - 1)); if (index >= 0 && index < domain.length) return domain[index]; return null; }); } function getYTicks(scale) { var domain = scale.domain(); return d3.range(domain[0], domain[1], Math.ceil(domain[1] / nTicks)); } // Convert data to standard representation greedily; // this is needed for nondeterministic accessors. function mapData(data) { var _datum = function (d, i) { var datum = [xValue.call(data, d, i), yValue0.call(data, d, i)]; dualYaxis && datum.push(yValue1.call(data, d, i)); return datum; }; return data.map(function (d, i) { return _datum(d, i); }); } function updateScales(data) { // Update the x-scale. xScale.domain(data.map(function (d) { return d[0]; })) .range([0, innerW()]); // Update the y-scale. yScale0.domain([0, d3.max(data, function (d) { return d[1]; })]) .range([innerH(), 0]); // Update the y-scale. dualYaxis && yScale1.domain([0, d3.max(data, function (d) { return d[2]; })]) .range([innerH(), 0]); } function toggleOpacity(ele, op) { d3.select(ele.parentNode).selectAll('.' + (ele.getAttribute('data-yaxis') == 'y0' ? 'y1' : 'y0')).attr('style', op); } function setLegendLabels(svg) { // Legend Color var rect = svg.selectAll('rect.legend.y0').data([null]); var rectEnter = rect.enter() .append('rect') .attr('class', 'legend y0') .attr('data-yaxis', 'y0') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 15)); rectEnter.merge(rect) .attr('x', (width / 2) - 100); // Legend Labels var text = svg.selectAll('text.legend.y0').data([null]); var textEnter = text.enter() .append('text') .attr('class', 'legend y0') .attr('data-yaxis', 'y0') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 6)); textEnter.merge(text) .attr('x', (width / 2) - 85) .text(labels.y0); if (!dualYaxis) return; // Legend Labels rect = svg.selectAll('rect.legend.y1').data([null]); var rectEnter = rect.enter() .append('rect') .attr('class', 'legend y1') .attr('data-yaxis', 'y1') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 15)); rectEnter.merge(rect) .attr('x', (width / 2)); // Legend Labels text = svg.selectAll('text.legend.y1').data([null]); var textEnter = text.enter() .append('text') .attr('class', 'legend y1') .attr('data-yaxis', 'y1') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 6)); textEnter.merge(text) .attr('x', (width / 2) + 15) .text(labels.y1); } function setAxisLabels(svg) { // Labels svg.selectAll('text.axis-label.y0') .data([null]) .enter() .append('text') .attr('class', 'axis-label y0') .attr('y', 10) .attr('x', 53) .text(labels.y0); if (!dualYaxis) return; // Labels var tEnter = svg.selectAll('text.axis-label.y1') .data([null]) .enter() .append('text') .attr('class', 'axis-label y1') .attr('y', 10) .text(labels.y1); dualYaxis && tEnter.attr('x', width - 25); } function createSkeleton(svg) { const g = svg.append('g'); // Lines g.append('g') .attr('class', 'line line0 y0'); dualYaxis && g.append('g') .attr('class', 'line line1 y1'); // Areas g.append('g') .attr('class', 'area area0 y0'); dualYaxis && g.append('g') .attr('class', 'area area1 y1'); // Points g.append('g') .attr('class', 'points y0'); dualYaxis && g.append('g') .attr('class', 'points y1'); // Grid g.append('g') .attr('class', 'x grid'); g.append('g') .attr('class', 'y grid'); // Axis g.append('g') .attr('class', 'x axis'); g.append('g') .attr('class', 'y0 axis'); dualYaxis && g.append('g') .attr('class', 'y1 axis'); // Rects g.append('g') .attr('class', 'rects'); setAxisLabels(svg); setLegendLabels(svg); // Mouseover line g.append('line') .attr('y2', innerH()) .attr('y1', 0) .attr('class', 'indicator'); } function pathLen(d) { return d.node().getTotalLength(); } function addLine(g, data, line, cName) { // Update the line path. var path = g.select('g.' + cName).selectAll('path.' + cName).data([data]); // enter var pathEnter = path.enter() .append('svg:path') .attr('d', line) .attr('class', cName) .attr('stroke-dasharray', function(d) { var pl = pathLen(d3.select(this)); return pl + ' ' + pl; }) .attr('stroke-dashoffset', function(d) { return pathLen(d3.select(this)); }); // update pathEnter.merge(path) .attr('d', line) .transition() .attr('stroke-dasharray', function(d) { var pl = pathLen(d3.select(this)); return pl + ' ' + pl; }) .duration(2000) .attr('stroke-dashoffset', 0); // remove elements path.exit().remove(); } function addArea(g, data, cb, cName) { // Update the area path. var area = g.select('g.' + cName).selectAll('path.' + cName) .data([data]); var areaEnter = area.enter() .append('svg:path') .attr('class', cName); areaEnter.merge(area) .attr('d', cb); // remove elements area.exit().remove(); } // Update the area path and lines. function addAreaLines(g, data) { // Update the area path. addArea(g, data, area0.y0(yScale0.range()[0]), 'area0'); // Update the line path. addLine(g, data, line0, 'line0'); // Update the area path. addArea(g, data, area1.y1(yScale1.range()[0]), 'area1'); // Update the line path. addLine(g, data, line1, 'line1'); } // Update chart points function addPoints(g, data) { var radius = data.length > 100 ? 1 : 2.5; var points = g.select('g.points.y0').selectAll('circle.point').data(data); var pointsEnter = points.enter() .append('svg:circle') .attr('r', radius) .attr('class', 'point'); pointsEnter.merge(points) .attr('cx', function(d) { return (xScale(d[0]) + xScale.bandwidth() / 2); }) .attr('cy', function(d) { return yScale0(d[1]); }); // remove elements points.exit().remove(); if (!dualYaxis) return; points = g.select('g.points.y1').selectAll('circle.point').data(data); pointsEnter = points.enter() .append('svg:circle') .attr('r', radius) .attr('class', 'point'); pointsEnter.merge(points) .attr('cx', function(d) { return (xScale(d[0]) + xScale.bandwidth() / 2); }) .attr('cy', function(d) { return yScale1(d[2]); }); // remove elements points.exit().remove(); } function addAxis(g, data) { var xTicks = getXTicks(data); var tickDistance = xTicks.length > 1 ? (xScale(xTicks[1]) - xScale(xTicks[0])) : innerW(); var labelW = tickDistance - padding; // Update the x-axis. g.select('.x.axis') .attr('transform', 'translate(0,' + yScale0.range()[0] + ')') .call(xAxis.tickValues(xTicks)) .selectAll(".tick text") .call(truncate, labelW > 0 ? labelW : innerW()); // Update the y0-axis. g.select('.y0.axis') .call(yAxis0.tickValues(getYTicks(yScale0))); if (!dualYaxis) return; // Update the y1-axis. g.select('.y1.axis') .attr('transform', 'translate(' + innerW() + ', 0)') .call(yAxis1.tickValues(getYTicks(yScale1))); } // Update the X-Y grid. function addGrid(g, data) { g.select('.x.grid') .attr('transform', 'translate(0,' + yScale0.range()[0] + ')') .call(xGrid .tickValues(getXTicks(data)) .tickSize(-innerH(), 0, 0) .tickSizeOuter(0) .tickFormat('') ); g.select('.y.grid') .call(yGrid .tickValues(getYTicks(yScale0)) .tickSize(-innerW(), 0) .tickSizeOuter(0) .tickFormat('') ); } function formatTooltip(data) { var d = data.slice(0); d[0] = (format.x) ? GoAccess.Util.fmtValue(d[0], format.x) : d[0]; d[1] = (format.y0) ? GoAccess.Util.fmtValue(d[1], format.y0) : d3.format(',')(d[1]); dualYaxis && (d[2] = (format.y1) ? GoAccess.Util.fmtValue(d[2], format.y1) : d3.format(',')(d[2])); var template = d3.select('#tpl-chart-tooltip').html(); return Hogan.compile(template).render({ 'data': d }); } function mouseover(event, selection, data) { var tooltip = selection.select('.chart-tooltip-wrap'); tooltip.html(formatTooltip(data)) .style('left', X(data) + 'px') .style('top', (d3.pointer(event)[1] + 10) + 'px') .style('display', 'block'); selection.select('line.indicator') .style('display', 'block') .attr('transform', 'translate(' + X(data) + ',' + 0 + ')'); } function mouseout(selection, g) { var tooltip = selection.select('.chart-tooltip-wrap'); tooltip.style('display', 'none'); g.select('line.indicator').style('display', 'none'); } function addRects(selection, g, data) { var w = (innerW() / data.length); var rects = g.select('g.rects').selectAll('rect').data(data); var rectsEnter = rects.enter() .append('svg:rect') .attr('height', innerH()) .attr('class', 'point'); rectsEnter.merge(rects) .attr('width', w) .attr('x', function(d, i) { return (w * i); }) .attr('y', 0) .on('mousemove', function(event) { mouseover(event, selection, d3.select(this).datum()); }) .on('mouseleave', function(event) { mouseout(selection, g); }); // remove elements rects.exit().remove(); } function chart(selection) { selection.each(function (data) { // normalize data data = mapData(data); // updates X-Y scales updateScales(data); // select the SVG element, if it exists let svg = d3.select(this).select('svg'); // if the SVG element doesn't exist, create it if (svg.empty()) { svg = d3.select(this).append('svg').attr('width', width).attr('height', height); createSkeleton(svg); } // Update the inner dimensions. var g = svg.select('g') .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')'); // Add grid addGrid(g, data); // Add chart lines and areas addAreaLines(g, data); // Add chart points addPoints(g, data); // Add axis addAxis(g, data); // Add rects addRects(selection, g, data); }); } chart.opts = function (_) { if (!arguments.length) return opts; opts = _; return chart; }; chart.format = function (_) { if (!arguments.length) return format; format = _; return chart; }; chart.labels = function (_) { if (!arguments.length) return labels; labels = _; return chart; }; chart.margin = function (_) { if (!arguments.length) return margin; margin = _; return chart; }; chart.width = function (_) { if (!arguments.length) return width; width = _; return chart; }; chart.height = function (_) { if (!arguments.length) return height; height = _; return chart; }; chart.x = function (_) { if (!arguments.length) return xValue; xValue = _; return chart; }; chart.y0 = function (_) { if (!arguments.length) return yValue0; yValue0 = _; return chart; }; chart.y1 = function (_) { if (!arguments.length) return yValue1; yValue1 = _; return chart; }; return chart; } function BarChart(dualYaxis) { var opts = {}; var margin = { top : 20, right : 50, bottom : 40, left : 50, }, height = 170, nTicks = 10, padding = 10, width = 760; var labels = { x: 'Unnamed', y0: 'Unnamed', y1: 'Unnamed' }; var format = { x: null, y0: null, y1: null}; var xValue = function (d) { return d[0]; }, yValue0 = function (d) { return d[1]; }, yValue1 = function (d) { return d[2]; }; var xScale = d3.scaleBand() .paddingInner(0.1) .paddingOuter(0.1); var yScale0 = d3.scaleLinear().nice(); var yScale1 = d3.scaleLinear().nice(); var xAxis = d3.axisBottom(xScale) .tickFormat(function (d) { if (format.x) return GoAccess.Util.fmtValue(d, format.x); return d; }); var yAxis0 = d3.axisLeft(yScale0) .tickFormat(function (d) { return d3.format('.2s')(d); }); var yAxis1 = d3.axisRight(yScale1) .tickFormat(function (d) { if (format.y1) return GoAccess.Util.fmtValue(d, format.y1); return d3.format('.2s')(d); }); var xGrid = d3.axisBottom(xScale); var yGrid = d3.axisLeft(yScale0); function innerW() { return width - margin.left - margin.right; } function innerH() { return height - margin.top - margin.bottom; } function getXTicks(data) { const domain = xScale.domain(); if (data.length < nTicks) return domain; return d3.range(0, nTicks).map(function(i) { const index = Math.floor(i * (domain.length - 1) / (nTicks - 1)); if (index >= 0 && index < domain.length) return domain[index]; return null; }); } function getYTicks(scale) { var domain = scale.domain(); return d3.range(domain[0], domain[1], Math.ceil(domain[1] / nTicks)); } // The x-accessor for the path generator; xScale - xValue. function X(d) { return (xScale(d[0]) + xScale.bandwidth() / 2); } // Convert data to standard representation greedily; // this is needed for nondeterministic accessors. function mapData(data) { var _datum = function (d, i) { var datum = [xValue.call(data, d, i), yValue0.call(data, d, i)]; dualYaxis && datum.push(yValue1.call(data, d, i)); return datum; }; return data.map(function (d, i) { return _datum(d, i); }); } function updateScales(data) { // Update the x-scale. xScale.domain(data.map(function (d) { return d[0]; })) .range([0, innerW()]); // Update the y-scale. yScale0.domain([0, d3.max(data, function (d) { return d[1]; })]) .range([innerH(), 0]); // Update the y-scale. // If all values are [0, 0]. This can cause issues when drawing the // chart because all values passed to the scale will be mapped to the // same value in the range, thus + 0.1 e.g., Not Found visitors. dualYaxis && yScale1.domain([0, d3.max(data, function (d) { return d[2]; }) + 0.1]) .range([innerH(), 0]); } function toggleOpacity(ele, op) { d3.select(ele.parentNode).selectAll('.' + (ele.getAttribute('data-yaxis') == 'y0' ? 'y1' : 'y0')).attr('style', op); } function setLegendLabels(svg) { // Legend Color var rect = svg.selectAll('rect.legend.y0').data([null]); var rectEnter = rect.enter() .append('rect') .attr('class', 'legend y0') .attr('data-yaxis', 'y0') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 15)); rectEnter.merge(rect) .attr('x', (width / 2) - 100); // Legend Labels var text = svg.selectAll('text.legend.y0').data([null]); var textEnter = text.enter() .append('text') .attr('class', 'legend y0') .attr('data-yaxis', 'y0') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 6)); textEnter.merge(text) .attr('x', (width / 2) - 85) .text(labels.y0); if (!dualYaxis) return; // Legend Labels rect = svg.selectAll('rect.legend.y1').data([null]); var rectEnter = rect.enter() .append('rect') .attr('class', 'legend y1') .attr('data-yaxis', 'y1') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 15)); rectEnter.merge(rect) .attr('x', (width / 2)); // Legend Labels text = svg.selectAll('text.legend.y1').data([null]); var textEnter = text.enter() .append('text') .attr('class', 'legend y1') .attr('data-yaxis', 'y1') .on('mousemove', function(d, i) { toggleOpacity(this, 'opacity:0.1'); }) .on('mouseleave', function(d, i) { toggleOpacity(this, null); }) .attr('y', (height - 6)); textEnter.merge(text) .attr('x', (width / 2) + 15) .text(labels.y1); } function setAxisLabels(svg) { // Labels svg.selectAll('text.axis-label.y0') .data([null]) .enter() .append('text') .attr('class', 'axis-label y0') .attr('y', 10) .attr('x', 53) .text(labels.y0); if (!dualYaxis) return; // Labels var tEnter = svg.selectAll('text.axis-label.y1') .data([null]) .enter() .append('text') .attr('class', 'axis-label y1') .attr('y', 10) .text(labels.y1); dualYaxis && tEnter.attr('x', width - 25); } function createSkeleton(svg) { const g = svg.append('g'); // Grid g.append('g') .attr('class', 'x grid'); g.append('g') .attr('class', 'y grid'); // Axis g.append('g') .attr('class', 'x axis'); g.append('g') .attr('class', 'y0 axis'); dualYaxis && g.append('g') .attr('class', 'y1 axis'); // Bars g.append('g') .attr('class', 'bars y0'); dualYaxis && g.append('g') .attr('class', 'bars y1'); // Rects g.append('g') .attr('class', 'rects'); setAxisLabels(svg); setLegendLabels(svg); // Mouseover line g.append('line') .attr('y2', innerH()) .attr('y1', 0) .attr('class', 'indicator'); } // Update the area path and lines. function addBars(g, data) { var bars = g.select('g.bars.y0').selectAll('rect.bar').data(data); // enter var enter = bars.enter() .append('svg:rect') .attr('class', 'bar') .attr('height', 0) .attr('width', function (d, i) { return xScale.bandwidth() / 2; }) .attr('x', function (d, i) { return xScale(d[0]); }) .attr('y', function (d, i) { return innerH(); }); // update bars.merge(enter) .attr('width', xScale.bandwidth() / 2) .attr('x', function (d) { return xScale(d[0]); }) .transition() .delay(function (d, i) { return i / data.length * 1000; }) .duration(500) .attr('height', function (d, i) { return innerH() - yScale0(d[1]); }) .attr('y', function (d, i) { return yScale0(d[1]); }); // remove elements bars.exit().remove(); if (!dualYaxis) return; bars = g.select('g.bars.y1').selectAll('rect.bar').data(data); // enter enter = bars.enter() .append('svg:rect') .attr('class', 'bar') .attr('height', 0) .attr('width', function (d, i) { return xScale.bandwidth() / 2; }) .attr('x', function (d) { return (xScale(d[0]) + xScale.bandwidth() / 2); }) .attr('y', function (d, i) { return innerH(); }); // update bars.merge(enter) .attr('width', xScale.bandwidth() / 2) .attr('x', function (d) { return (xScale(d[0]) + xScale.bandwidth() / 2); }) .transition() .delay(function (d, i) { return i / data.length * 1000; }) .duration(500) .attr('height', function (d, i) { return innerH() - yScale1(d[2]); }) .attr('y', function (d, i) { return yScale1(d[2]); }); // remove elements bars.exit().remove(); } function addAxis(g, data) { var xTicks = getXTicks(data); var tickDistance = xTicks.length > 1 ? (xScale(xTicks[1]) - xScale(xTicks[0])) : innerW(); var labelW = tickDistance - padding; // Update the x-axis. g.select('.x.axis') .attr('transform', 'translate(0,' + yScale0.range()[0] + ')') .call(xAxis.tickValues(xTicks)) .selectAll(".tick text") .call(truncate, labelW > 0 ? labelW : innerW()); // Update the y0-axis. g.select('.y0.axis') .call(yAxis0.tickValues(getYTicks(yScale0))); if (!dualYaxis) return; // Update the y1-axis. g.select('.y1.axis') .attr('transform', 'translate(' + innerW() + ', 0)') .call(yAxis1.tickValues(getYTicks(yScale1))); } // Update the X-Y grid. function addGrid(g, data) { g.select('.x.grid') .attr('transform', 'translate(0,' + yScale0.range()[0] + ')') .call(xGrid .tickValues(getXTicks(data)) .tickSize(-innerH(), 0, 0) .tickSizeOuter(0) .tickFormat('') ); g.select('.y.grid') .call(yGrid .tickValues(getYTicks(yScale0)) .tickSize(-innerW(), 0) .tickSizeOuter(0) .tickFormat('') ); } function formatTooltip(data) { var d = data.slice(0); d[0] = (format.x) ? GoAccess.Util.fmtValue(d[0], format.x) : d[0]; d[1] = (format.y0) ? GoAccess.Util.fmtValue(d[1], format.y0) : d3.format(',')(d[1]); dualYaxis && (d[2] = (format.y1) ? GoAccess.Util.fmtValue(d[2], format.y1) : d3.format(',')(d[2])); var template = d3.select('#tpl-chart-tooltip').html(); return Hogan.compile(template).render({ 'data': d }); } function mouseover(event, selection, data) { var tooltip = selection.select('.chart-tooltip-wrap'); tooltip.html(formatTooltip(data)) .style('left', X(data) + 'px') .style('top', (d3.pointer(event)[1] + 10) + 'px') .style('display', 'block'); selection.select('line.indicator') .style('display', 'block') .attr('transform', 'translate(' + X(data) + ',' + 0 + ')'); } function mouseout(selection, g) { var tooltip = selection.select('.chart-tooltip-wrap'); tooltip.style('display', 'none'); g.select('line.indicator').style('display', 'none'); } function addRects(selection, g, data) { var w = (innerW() / data.length); var rects = g.select('g.rects').selectAll('rect').data(data); var rectsEnter = rects.enter() .append('svg:rect') .attr('height', innerH()) .attr('class', 'point'); rectsEnter.merge(rects) .attr('width', w) .attr('x', function(d, i) { return (w * i); }) .attr('y', 0) .on('mousemove', function(event) { mouseover(event, selection, d3.select(this).datum()); }) .on('mouseleave', function(event) { mouseout(selection, g); }); // remove elements rects.exit().remove(); } function chart(selection) { selection.each(function (data) { // normalize data data = mapData(data); // updates X-Y scales updateScales(data); // select the SVG element, if it exists let svg = d3.select(this).select('svg'); // if the SVG element doesn't exist, create it if (svg.empty()) { svg = d3.select(this).append('svg').attr('width', width).attr('height', height); createSkeleton(svg); } // Update the inner dimensions. var g = svg.select('g') .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')'); // Add grid addGrid(g, data); // Add axis addAxis(g, data); // Add chart lines and areas addBars(g, data); // Add rects addRects(selection, g, data); }); } chart.opts = function (_) { if (!arguments.length) return opts; opts = _; return chart; }; chart.format = function (_) { if (!arguments.length) return format; format = _; return chart; }; chart.labels = function (_) { if (!arguments.length) return labels; labels = _; return chart; }; chart.width = function (_) { if (!arguments.length) return width; width = _; return chart; }; chart.height = function (_) { if (!arguments.length) return height; height = _; return chart; }; chart.x = function (_) { if (!arguments.length) return xValue; xValue = _; return chart; }; chart.y0 = function (_) { if (!arguments.length) return yValue0; yValue0 = _; return chart; }; chart.y1 = function (_) { if (!arguments.length) return yValue1; yValue1 = _; return chart; }; return chart; } ================================================ FILE: resources/tpls.html ================================================ <!-- TPL General --> <script id="tpl-general" type="text/template"> <hgroup> <h2 class="gheader h4" id="overall-heading">{{head}}</h2> <p>{{#from}}{{from}}{{/from}}{{#to}} – {{to}}{{/to}}</p> </hgroup> <ul role="list" class="row"></ul> </script> <!-- TPL General Items --> <script id="tpl-general-items" type="text/template"> <li class="col-sm-6 col-md-2 {{#className}}{{className}}{{/className}}{{^className}}gray{{/className}}" aria-live="polite" aria-atomic="true"> <div> <span><i class="fa fa-bar-chart"></i> {{#label}}{{label}}{{/label}}</span> <span id="{{id}}">{{value}}</span> </div> </li> </script> <!-- TPL Panel Table --> <script id="tpl-table-row" type="text/template"> {{#rows}} <tr class="{{#className}}{{className}} {{/className}}{{#hasSubItems}}{{#items}}expandable{{/items}}{{/hasSubItems}} level-{{level}}" data-panel="{{panel}}" {{#key}}data-key="{{key}}" {{/key}} {{#nodeKey}}data-node-key="{{nodeKey}}" {{/nodeKey}} data-level="{{level}}"> {{#hasSubItems}} <td class="row-expandable text-center {{#items}}clickable{{/items}}"> {{#items}}<i class="fa {{#expanded}}fa-caret-down{{/expanded}}{{^expanded}}fa fa-caret-right{{/expanded}}"></i>{{/items}} {{^items}}<i></i>{{/items}} </td> {{/hasSubItems}} {{^hasSubItems}} {{#showPlaceholder}} <td class="row-expandable text-center"> <i></i> </td> {{/showPlaceholder}} {{/hasSubItems}} <td class="row-idx text-right"> {{#idx}}{{idx}}{{/idx}} </td> {{#cells}} <td class="{{className}}" {{#colspan}}colspan="{{colspan}}"{{/colspan}}> <span class="value">{{{value}}}</span>{{#percent}}<span class="percent"> ({{percent}})</span>{{/percent}} </td> {{/cells}} </tr> {{/rows}} </script> <!-- TPL Panel Table Meta --> <script id="tpl-table-row-meta" type="text/template"> {{#row}} {{#hasSubItems}} <th class=""></th> {{/hasSubItems}} <th class="meta-label">{{key}}.</th> {{#cells}} <th class="{{className}}" {{#colspan}}colspan="{{colspan}}"{{/colspan}}> {{#value}} <span>{{value}} {{#percent}}<span class="text-muted">({{percent}}%)</span>{{/percent}}</span> {{/value}} {{^value}} <span class="text-muted">—</span> {{/value}} </th> {{/cells}} {{/row}} </script> <!-- TPL Panel Table Totals --> <script id="tpl-table-row-totals" type="text/template"> {{#row}} {{#hasSubItems}} <td class=""></td> {{/hasSubItems}} <td class="meta-label">Tot.</td> {{#cells}} <td class="{{className}}" {{#colspan}}colspan="{{colspan}}"{{/colspan}}> {{#label}} <span>{{label}}</span>  {{/label}} <span>{{value}}</span> </td> {{/cells}} {{/row}} </script> <!-- TPL Table thead --> <script id="tpl-table-thead" type="text/template"> {{#hasSubItems}} <th></th> {{/hasSubItems}} <th>#</th> {{#items}} <th class="{{dataType}} {{#key}}sortable{{/key}}" data-key="{{key}}" {{#sort}}data-order="{{#asc}}asc{{/asc}}{{^asc}}desc{{/asc}}"{{/sort}}> {{label}} <i class="fa fa-{{^sort}}sort{{/sort}}{{#sort}}{{#asc}}caret-up{{/asc}}{{^asc}}caret-down{{/asc}}{{/sort}}"></i> </th> {{/items}} </script> <!-- TPL Panel Options DropDown --> <script id="tpl-panel-opts" type="text/template"> <li class="dropdown-header">{{ labels.chart_opts }}</li> <li><a href="javascript:void(0);" data-panel="{{id}}" data-chart="{{showChart}}"><i class="fa fa-{{#showChart}}check-{{/showChart}}square-o"></i> {{labels.chart}}</a></li> {{#plot.length}} <li class="dropdown-header">{{ labels.type }}</li> <li><a href="javascript:void(0);" data-panel="{{id}}" data-chart-type="area-spline"><i class="fa fa-circle{{^area-spline}}-o{{/area-spline}}"></i> {{labels.area_spline}}</a></li> <li><a href="javascript:void(0);" data-panel="{{id}}" data-chart-type="bar"><i class="fa fa-circle{{^bar}}-o{{/bar}}"></i> {{labels.bar}}</a></li> {{#hasMap}} <li><a href="javascript:void(0);" data-panel="{{id}}" data-chart-type="wmap"><i class="fa fa-circle{{^wmap}}-o{{/wmap}}"></i> {{labels.wmap}}</a></li> <li><a href="javascript:void(0);" data-panel="{{id}}" data-chart-type="gmap"><i class="fa fa-circle{{^gmap}}-o{{/gmap}}"></i> {{labels.gmap}}</a></li> {{/hasMap}} <li class="dropdown-header">{{labels.plot_metric}}</li> {{#plot}} <li><a href="javascript:void(0);" data-panel="{{id}}" data-plot="{{className}}" class="panel-plot-{{className}}"><i class="fa fa-circle{{^selected}}-o{{/selected}}"></i> {{label}}</a></li> {{/plot}} {{/plot.length}} <li class="dropdown-header">{{labels.table_columns}}</li> {{#items}} <li><a href="javascript:void(0);" data-panel="{{id}}" data-metric="{{key}}"><i class="fa fa-{{^hide}}check-{{/hide}}square-o"></i> {{label}}</a></li> {{/items}} </script> <!-- TPL Table colgroup --> <script id="tpl-table-colgroup" type="text/template"> {{#hasSubItems}} <col style="width: 2%;"> <!-- right-caret --> {{/hasSubItems}} <col style="width: 3%;"> <!-- row # --> {{#items}} <col style="width:{{colWidth}}"> {{/items}} </script> <!-- TPL Panel --> <script id="tpl-panel" type="text/template"> <div class="row"> <div class="col-md-12"> <header> <hgroup> <h2 id="{{id}}" class="gheader">{{head}}</h2> <small class="text-muted">{{desc}}</small> </hgroup> <div> <div class="dropdown"> <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-panel="{{id}}" aria-label="{{labels.panel_opts}}, {{head}}"> <i class="fa fa-gear" aria-hidden="true"></i> {{labels.panel_opts}} <span class="fa fa-caret-down" aria-hidden="true"></span> </button> <ul class="dropdown-menu dropdown-menu-right panel-opts-{{id}}"> </ul> </div> </div> </header> </div> </div> {{#chart}} <div class="row"> <div class="col-md-12"> <div id="chart-{{id}}" class="chart-wrap"></div> </div> </div> {{/chart}} {{#table}} <div class="row clearfix table-wrapper {{#autoHideTables}}hidden-xs{{/autoHideTables}}"> <div class="col-md-12"> <div class="table-responsive"> <table data-panel="{{id}}" class="table table-borderless table-hover table-{{id}}"> <colgroup> </colgroup> <thead > <tr class="thead-cols"></tr> <tr class="thead-min"></tr> <tr class="thead-max"></tr> <tr class="thead-avg"></tr> </thead> <tbody class="tbody-data"> </tbody> <tfoot class="tfoot-totals"> <tr class="tfoot-totals"> </tr> </tfoot> </table> </div> <ul class="pagination pagination-sm pull-left"> <li class="disabled"> <a class="panel-first" href="javascript:void(0);" aria-label="{{labels.first}}" data-panel="{{id}}" title="{{labels.first}}"> <i class="fa fa-angle-double-left"></i> </a> </li> <li class="disabled"> <a class="panel-prev" href="javascript:void(0);" aria-label="{{labels.previous}}" data-panel="{{id}}" title="{{labels.previous}}"> <i class="fa fa-angle-left"></i> </a> </li> <li> <a class="panel-next" href="javascript:void(0);" aria-label="{{labels.next}}" data-panel="{{id}}" title="{{labels.next}}"> <i class="fa fa-angle-right"></i> </a> </li> <li> <a class="panel-last" href="javascript:void(0);" aria-label="{{labels.last}}" data-panel="{{id}}" title="{{labels.last}}"> <i class="fa fa-angle-double-right"></i> </a> </li> </ul> </div> </div> {{/table}} </script> <!-- TPL Nav Bar wrapper --> <script id="tpl-nav-wrap" type="text/template"> <button type="button"class="nav-bars" aria-label="{{ button_menu }}"><i class="fa fa-bars" aria-hidden="true"></i></button> <button type="button"class="nav-gears" aria-label="{{ button_settings }}"><i class="fa fa-cog" aria-hidden="true"></i></button> <i class="nav-ws-status fa fa-stop" aria-live="polite" aria-label="{{ websocket_disconnected }}" title="{{ websocket_disconnected }}"></i> <div class="nav-list"></div> <div class="powered hidden-xs hidden-sm">by <a href="https://goaccess.io/">GoAccess</a> <span>v{{version}}</span> and <a href="https://gwsocket.io/">GWSocket</a></div> </script> <!-- TPL Nav Bar items --> <script id="tpl-nav-menu" type="text/template"> <h3>{{labels.panels}}</h3> <ul> <!-- Overall stats - not draggable --> <li {{#overall_current}}class="active"{{/overall_current}}> <span class="drag-handle" style="visibility: hidden;"> <i class="fa fa-bars"></i> </span> <a href="#"><i class="fa fa-bar-chart"></i> {{labels.thead}}</a> <span title="{{labels.toggle_panel}}" class="toggle-panel {{#overall_hidden}}active{{/overall_hidden}}" data-panel="general"><i class="fa fa-circle-o"></i></span> </li> <!-- Panel items - draggable --> {{#nav}} <li {{#current}}class="active"{{/current}}> <span class="drag-handle" title="{{labels.drag_to_reorder}}"> <i class="fa fa-bars"></i> </span> <a href="#{{key}}"><i class="fa fa-{{icon}}"></i> {{head}}</a> <span title="{{labels.toggle_panel}}" class="toggle-panel {{#hidden}}active{{/hidden}}" data-panel="{{key}}"><i class="fa fa-circle-o"></i></span> </li> {{/nav}} </ul> </script> <!-- TPL Nav Bar options --> <script id="tpl-nav-opts" type="text/template"> <h3><i class="fa fa-hashtag"></i> {{labels.theme}}</h3> <ul> <li {{#darkGray}}class="active"{{/darkGray}}> <a href="javascript:void(0);" class="theme-dark-gray"><i class="fa fa-circle{{^darkGray}}-o{{/darkGray}}"></i> {{labels.dark_gray}}</a> </li> <li {{#bright}}class="active"{{/bright}}> <a href="javascript:void(0);" class="theme-bright"><i class="fa fa-circle{{^bright}}-o{{/bright}}"></i> {{labels.bright}}</a> </li> <li {{#darkBlue}}class="active"{{/darkBlue}}> <a href="javascript:void(0);" class="theme-dark-blue"><i class="fa fa-circle{{^darkBlue}}-o{{/darkBlue}}"></i> {{labels.dark_blue}}</a> </li> <li {{#darkPurple}}class="active"{{/darkPurple}}> <a href="javascript:void(0);" class="theme-dark-purple"><i class="fa fa-circle{{^darkPurple}}-o{{/darkPurple}}"></i> {{labels.dark_purple}}</a> </li> </ul> <h3><i class="fa fa-list-alt"></i> {{labels.panels}}</h3> <ul class="perpage-wrap"> <li class="dropdown-header"><i class="fa fa-list"></i> {{labels.items_per_page}}</li> <li {{#perPage3}}class="active"{{/perPage3}}> <a href="javascript:void(0);" data-perpage="3"><i class="fa fa-circle{{^perPage3}}-o{{/perPage3}}"></i> 3</a> </li> <li {{#perPage5}}class="active"{{/perPage5}}> <a href="javascript:void(0);" data-perpage="5"><i class="fa fa-circle{{^perPage5}}-o{{/perPage5}}"></i> 5</a> </li> <li {{#perPage7}}class="active"{{/perPage7}}> <a href="javascript:void(0);" data-perpage="7"><i class="fa fa-circle{{^perPage7}}-o{{/perPage7}}"></i> 7</a> </li> <li {{#perPage10}}class="active"{{/perPage10}}> <a href="javascript:void(0);" data-perpage="10"><i class="fa fa-circle{{^perPage10}}-o{{/perPage10}}"></i> 10</a> </li> <li {{#perPage15}}class="active"{{/perPage15}}> <a href="javascript:void(0);" data-perpage="15"><i class="fa fa-circle{{^perPage15}}-o{{/perPage15}}"></i> 15</a> </li> <li {{#perPage20}}class="active"{{/perPage20}}> <a href="javascript:void(0);" data-perpage="20"><i class="fa fa-circle{{^perPage20}}-o{{/perPage20}}"></i> 20</a> </li> <li {{#perPage24}}class="active"{{/perPage24}}> <a href="javascript:void(0);" data-perpage="24"><i class="fa fa-circle{{^perPage24}}-o{{/perPage24}}"></i> 24</a> </li> <li class="dropdown-header"><i class="fa fa-table"></i> {{labels.tables}}</li> <li {{#showTables}}class="active"{{/showTables}}> <a href="javascript:void(0);" data-show-tables="1"><i class="fa fa-{{#showTables}}check-{{/showTables}}square-o"></i> {{labels.display_tables}}</a> </li> <li {{#autoHideTables}}class="active"{{/autoHideTables}}> <a href="javascript:void(0);" data-autohide-tables="1" title="{{labels.ah_small_title}}"> <i class="fa fa-{{#autoHideTables}}check-{{/autoHideTables}}square-o"></i> {{labels.ah_small}} </a> </li> </ul> <h3><i class="fa fa-th-large"></i> {{labels.layout}}</h3> <ul> <li {{#horizontal}}class="active"{{/horizontal}}> <a href="javascript:void(0);" class="layout-horizontal"><i class="fa fa-circle{{^horizontal}}-o{{/horizontal}}"></i> {{labels.horizontal}}</a> </li> <li {{#wide}}class="active"{{/wide}}> <a href="javascript:void(0);" class="layout-wide"><i class="fa fa-circle{{^wide}}-o{{/wide}}"></i> {{labels.wide}}</a> </li> <li {{#vertical}}class="active"{{/vertical}}> <a href="javascript:void(0);" class="layout-vertical"><i class="fa fa-circle{{^vertical}}-o{{/vertical}}"></i> {{labels.vertical}}</a> </li> </ul> <h3><i class="fa fa-cog"></i> {{labels.file_opts}}</h3> <ul> <li><a href="javascript:void(0);" class="export-json"><i class="fa fa-code"></i> {{labels.export_json}}</a></li> </ul> </script> <!-- TPL Chart tooltip --> <script id="tpl-chart-tooltip" type="text/template"> <table class="chart-tooltip"> <tbody> <tr> <th colspan="2">{{data.0}}</th> </tr> <tr> <td class="name"><span class="blue"></span>hits</td> <td class="value">{{data.1}}</td> </tr> {{#data.2}} <tr> <td class="name"><span class="red"></span>visitors</td> <td class="value">{{data.2}}</td> </tr> {{/data.2}} </tbody> </table> </script> ================================================ FILE: snap/snapcraft.yaml ================================================ name: goaccess version: git summary: Real-time web log analyzer and interactive viewer description: | GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. confinement: classic grade: devel apps: goaccess: command: bin/goaccess parts: goaccess: plugin: autotools source: . configflags: - --enable-utf8 - --enable-geoip=legacy build-packages: - gettext - libncurses-dev - libncursesw5-dev - libgeoip-dev stage-packages: - libgeoip-dev ================================================ FILE: src/base64.c ================================================ /** * base64.c -- A basic base64 encode implementation * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <string.h> #include <stdlib.h> #include <inttypes.h> #include "base64.h" #include "xmalloc.h" /* Encodes the given data with base64. * * On success, the encoded nul-terminated data, as a string is returned. */ char * base64_encode (const void *buf, size_t size) { static const char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; char *str = (char *) xmalloc ((size + 3) * 4 / 3 + 1); char *p = str; const unsigned char *q = (const unsigned char *) buf; size_t i = 0; while (i < size) { int c = q[i++]; c *= 256; if (i < size) c += q[i]; i++; c *= 256; if (i < size) c += q[i]; i++; *p++ = base64[(c & 0x00fc0000) >> 18]; *p++ = base64[(c & 0x0003f000) >> 12]; if (i > size + 1) *p++ = '='; else *p++ = base64[(c & 0x00000fc0) >> 6]; if (i > size) *p++ = '='; else *p++ = base64[c & 0x0000003f]; } *p = 0; return str; } /* * base64_decode * * Given a Base64 encoded string in 'data', this function decodes it into * a newly allocated binary buffer. The length of the decoded data is stored * in *out_len. The caller is responsible for freeing the returned buffer. * * Returns NULL on error (for example, if the data's length is not a multiple * of 4). */ char * base64_decode (const char *data, size_t *out_len) { size_t decoded_len = 0, i = 0, j = 0, pad = 0, len = 0; char *out = NULL; uint32_t triple = 0; /* Create a lookup table for decoding. * For valid Base64 characters 'A'-'Z', 'a'-'z', '0'-'9', '+', '/', * we place their value; for '=' we simply return 0. * All other characters are marked as 0x80 (an invalid marker). */ static const unsigned char dtable[256] = { ['A'] = 0,['B'] = 1,['C'] = 2,['D'] = 3, ['E'] = 4,['F'] = 5,['G'] = 6,['H'] = 7, ['I'] = 8,['J'] = 9,['K'] = 10,['L'] = 11, ['M'] = 12,['N'] = 13,['O'] = 14,['P'] = 15, ['Q'] = 16,['R'] = 17,['S'] = 18,['T'] = 19, ['U'] = 20,['V'] = 21,['W'] = 22,['X'] = 23, ['Y'] = 24,['Z'] = 25, ['a'] = 26,['b'] = 27,['c'] = 28,['d'] = 29, ['e'] = 30,['f'] = 31,['g'] = 32,['h'] = 33, ['i'] = 34,['j'] = 35,['k'] = 36,['l'] = 37, ['m'] = 38,['n'] = 39,['o'] = 40,['p'] = 41, ['q'] = 42,['r'] = 43,['s'] = 44,['t'] = 45, ['u'] = 46,['v'] = 47,['w'] = 48,['x'] = 49, ['y'] = 50,['z'] = 51, ['0'] = 52,['1'] = 53,['2'] = 54,['3'] = 55, ['4'] = 56,['5'] = 57,['6'] = 58,['7'] = 59, ['8'] = 60,['9'] = 61, ['+'] = 62,['/'] = 63, ['='] = 0, /* All other values are implicitly 0 (or you can mark them as invalid by setting them to 0x80 if you prefer stricter checking). */ }; len = strlen (data); /* Validate length: Base64 encoded data must be a multiple of 4 */ if (len % 4 != 0) return NULL; /* Count padding characters at the end */ if (len) { if (data[len - 1] == '=') pad++; if (len > 1 && data[len - 2] == '=') pad++; } /* Calculate the length of the decoded data */ decoded_len = (len / 4) * 3 - pad; out = (char *) xmalloc (decoded_len + 1); /* +1 for a null terminator if needed */ for (i = 0, j = 0; i < len;) { unsigned int sextet_a = data[i] == '=' ? 0 : dtable[(unsigned char) data[i]]; unsigned int sextet_b = data[i + 1] == '=' ? 0 : dtable[(unsigned char) data[i + 1]]; unsigned int sextet_c = data[i + 2] == '=' ? 0 : dtable[(unsigned char) data[i + 2]]; unsigned int sextet_d = data[i + 3] == '=' ? 0 : dtable[(unsigned char) data[i + 3]]; i += 4; triple = (sextet_a << 18) | (sextet_b << 12) | (sextet_c << 6) | sextet_d; if (j < decoded_len) out[j++] = (triple >> 16) & 0xFF; if (j < decoded_len) out[j++] = (triple >> 8) & 0xFF; if (j < decoded_len) out[j++] = triple & 0xFF; } out[decoded_len] = '\0'; /* Null-terminate the output buffer */ if (out_len) *out_len = decoded_len; return out; } /* * base64UrlEncode - Converts a standard Base64 encoded string * into Base64Url format. * * This replaces '+' with '-', '/' with '_', and removes '=' padding. */ char * base64UrlEncode (const char *base64) { char *url = NULL; size_t len = 0; if (!base64) return NULL; // Duplicate the input string to modify it in-place. url = strdup (base64); if (!url) return NULL; // Replace characters: '+' => '-', '/' => '_' for (char *p = url; *p; p++) { if (*p == '+') *p = '-'; else if (*p == '/') *p = '_'; } // Remove trailing '=' characters. len = strlen (url); while (len && url[len - 1] == '=') { url[len - 1] = '\0'; len--; } return url; } /* * base64UrlDecode - Converts a Base64Url encoded string into standard Base64 format. * * This replaces '-' with '+', '_' with '/', and adds the necessary '=' padding. * Caller is responsible for freeing the returned string. */ char * base64UrlDecode (const char *base64Url) { size_t len = 0, padding = 0, i = 0; char *padded = NULL, *base64 = NULL; if (!base64Url) return NULL; // Duplicate the input so we can modify it. base64 = strdup (base64Url); if (!base64) return NULL; // Replace '-' with '+' and '_' with '/' for (char *p = base64; *p; p++) { if (*p == '-') *p = '+'; else if (*p == '_') *p = '/'; } // Calculate the padding required (base64 length must be a multiple of 4) len = strlen (base64); padding = (4 - (len % 4)) % 4; padded = xmalloc (len + padding + 1); if (!padded) { free (base64); return NULL; } strcpy (padded, base64); for (i = 0; i < padding; i++) { padded[len + i] = '='; } padded[len + padding] = '\0'; free (base64); return padded; } ================================================ FILE: src/base64.h ================================================ /** * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef BASE64_H_INCLUDED #define BASE64_H_INCLUDED #include <stddef.h> char *base64_encode (const void *buf, size_t size); char *base64_decode (const char *data, size_t *out_len); char *base64UrlDecode (const char *base64Url); char *base64UrlEncode (const char *base64); #endif // for #ifndef BASE64_H ================================================ FILE: src/bin2c.c ================================================ /* * This is bin2c program, which allows you to convert binary file to * C language array, for use as embedded resource, for instance you can * embed graphics or audio file directly into your program. * This is public domain software, use it on your own risk. * Contact Serge Fukanchik at fuxx@mail.ru if you have any questions. * * Some modifications were made by Gwilym Kuiper (kuiper.gwilym@gmail.com) * I have decided not to change the licence. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef USE_BZ2 #include <bzlib.h> #endif int main (int argc, char *argv[]) { char *buf; char *ident; int need_comma; long file_size_orig; size_t file_size, i; FILE *f_input, *f_output; #ifdef USE_BZ2 int status; char *bz2_buf; unsigned int uncompressed_size, bz2_size; #endif if (argc < 4) { fprintf (stderr, "Usage: %s binary_file output_file array_name\n", argv[0]); return -1; } f_input = fopen (argv[1], "rb"); if (f_input == NULL) { fprintf (stderr, "%s: can't open %s for reading\n", argv[0], argv[1]); return -1; } // Get the file length fseek (f_input, 0, SEEK_END); file_size_orig = ftell (f_input); if (file_size_orig < 0) { fprintf (stderr, "%s: can't get size of file %s\n", argv[0], argv[1]); fclose (f_input); return -1; } file_size = (size_t) file_size_orig; fseek (f_input, 0, SEEK_SET); if ((buf = malloc (file_size)) == NULL) { fprintf (stderr, "Unable to malloc bin2c.c buffer\n"); fclose (f_input); return -1; } if (fread (buf, file_size, 1, f_input) != 1) { fprintf (stderr, "%s: can't read from %s\n", argv[0], argv[1]); free (buf); fclose (f_input); return -1; } if (fgetc (f_input) != EOF) { fprintf (stderr, "%s: can't read complete file %s\n", argv[0], argv[1]); free (buf); fclose (f_input); return -1; } if (ferror (f_input)) { fprintf (stderr, "%s: error while reading from %s\n", argv[0], argv[1]); free (buf); fclose (f_input); return -1; } fclose (f_input); #ifdef USE_BZ2 // allocate for bz2. bz2_size = (file_size + file_size / 100 + 1) + 600; // as per the documentation if ((bz2_buf = malloc (bz2_size)) == NULL) { fprintf (stderr, "Unable to malloc bin2c.c buffer\n"); free (buf); return -1; } // compress the data status = BZ2_bzBuffToBuffCompress (bz2_buf, &bz2_size, buf, file_size, 9, 1, 0); if (status != BZ_OK) { fprintf (stderr, "Failed to compress data: error %i\n", status); free (buf); free (bz2_buf); return -1; } // and be very lazy free (buf); uncompressed_size = file_size; file_size = bz2_size; buf = bz2_buf; #endif f_output = fopen (argv[2], "w"); if (f_output == NULL) { fprintf (stderr, "%s: can't open %s for writing\n", argv[0], argv[1]); free (buf); return -1; } ident = argv[3]; need_comma = 0; fprintf (f_output, "const char %s[%lu] = {", ident, file_size); for (i = 0; i < file_size; ++i) { if (buf[i] == '\0') { fprintf (stderr, "%s: writing a null character terminates the content prematurely\n", argv[0]); fclose (f_output); free (buf); return -1; } if (need_comma) fprintf (f_output, ", "); else need_comma = 1; if ((i % 11) == 0) fprintf (f_output, "\n\t"); fprintf (f_output, "0x%.2x", buf[i] & 0xff); } fprintf (f_output, "\n};\n\n"); fprintf (f_output, "const int %s_length = %lu;\n", ident, file_size); #ifdef USE_BZ2 fprintf (f_output, "const int %s_length_uncompressed = %u;\n", ident, uncompressed_size); #endif if (ferror (f_output)) { fprintf (stderr, "%s: error while writing to %s\n", argv[0], argv[2]); fclose (f_output); free (buf); return -1; } fclose (f_output); free (buf); return 0; } ================================================ FILE: src/bitmap.c ================================================ /** * bitmap.c -- A quick bitmap implementation * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdlib.h> #include <string.h> #include <stdint.h> #include "error.h" #include "xmalloc.h" #include "bitmap.h" /* * Returns the hamming weight (i.e. the number of bits set) in a word. * NOTE: This routine borrowed from Linux 2.4.9 <linux/bitops.h>. */ static uint32_t hweight (uint32_t w) { uint32_t res; res = (w & 0x55555555) + ((w >> 1) & 0x55555555); res = (res & 0x33333333) + ((res >> 2) & 0x33333333); res = (res & 0x0F0F0F0F) + ((res >> 4) & 0x0F0F0F0F); res = (res & 0x00FF00FF) + ((res >> 8) & 0x00FF00FF); res = (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF); return res; } /* Returns the number of bytes required for bm->len bits. */ inline uint32_t bitmap_sizeof (uint32_t i) { return bitmap_word (i) * sizeof (word_t); } void free_bitmap (bitmap *bm) { free ((uint32_t *) bm->bmp); free (bm); } int bitmap_set_bit (word_t *words, uint32_t n) { words[WORD_OFFSET (n)] |= ((word_t) 1 << BIT_OFFSET (n)); return 0; } int bitmap_get_bit (word_t *words, uint32_t n) { word_t bit = words[WORD_OFFSET (n)] & ((word_t) 1 << BIT_OFFSET (n)); return bit != 0; } uint32_t bitmap_count_set (const bitmap *bm) { uint32_t i, n = 0, len = 0; if (!bm) return 0; len = bitmap_word (bm->len); for (i = 0; i < len; ++i) n += hweight (bm->bmp[i]); return n; } uint32_t bitmap_ffs (bitmap *bm) { uint32_t i, pos = 1, len = 0; uint32_t __bitset; if (!bm) return 0; len = bitmap_word (bm->len); for (i = 0; i < len; ++i) { __bitset = bm->bmp[i]; if ((pos = __builtin_ffs (__bitset))) break; } return (BITS_PER_WORD * i) + pos; } bitmap * bitmap_create (uint32_t bit) { bitmap *bm = xcalloc (1, sizeof (bitmap)); uint32_t bytes = bitmap_sizeof (bit); bm->bmp = xmalloc (bytes); memset (bm->bmp, 0, bytes); bm->len = bit; return bm; } int bitmap_realloc (bitmap *bm, uint32_t bit) { uint32_t *tmp = NULL; uint32_t oldlen = 0, newlen = 0; newlen = bitmap_sizeof (bit); oldlen = bitmap_sizeof (bm->len); if (newlen <= oldlen) return 1; tmp = realloc (bm->bmp, newlen); if ((tmp == NULL && newlen > 0) || bit < bm->len) FATAL ("Unable to realloc bitmap hash value %u %u", newlen, bm->len); LOG_DEBUG (("bit: %d, bm->len: %d, oldlen: %d, newlen: %d\n", bit, bm->len, oldlen, newlen)); memset (tmp + bitmap_word (bm->len), 0, (newlen - oldlen)); bm->len = bit; bm->bmp = tmp; return 0; } bitmap * bitmap_copy (const bitmap *bm) { bitmap *ret; if (!bm) return NULL; if (!(ret = bitmap_create (bm->len))) return NULL; memcpy (ret->bmp, bm->bmp, bitmap_sizeof (bm->len)); return ret; } int bitmap_key_exists (bitmap *bm, uint32_t bit) { if (bm->len < bit) bitmap_realloc (bm, bit); /* if bit set, then it's the same visitor */ if (bitmap_get_bit (bm->bmp, bit - 1)) return 1; bitmap_set_bit (bm->bmp, bit - 1); return 0; } ================================================ FILE: src/bitmap.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef BITMAP_H_INCLUDED #define BITMAP_H_INCLUDED #include <limits.h> /* for CHAR_BIT */ typedef uint32_t word_t; // I want to change this, from uint32_t to uint64_t enum { BITS_PER_WORD = sizeof (word_t) * CHAR_BIT }; #define WORD_OFFSET(b) ((b) / BITS_PER_WORD) #define BIT_OFFSET(b) ((b) % BITS_PER_WORD) typedef struct bitmap_ { uint32_t *bmp; uint32_t len; /** Length of the bitmap, in bits */ } bitmap; static inline uint32_t bitmap_word (uint32_t i) { return (((i) + (BITS_PER_WORD) - 1) / (BITS_PER_WORD)); } #define BITMAP_FOREACH(bm, pos, code) { size_t __k; \ int __r; uint32_t __bitset, __t; \ uint32_t __len = bitmap_word(bm->len); \ for (__k = 0; __k < __len; ++__k) { \ __bitset = bm->bmp[__k]; \ while (__bitset != 0) { \ __t = __bitset & -__bitset; \ __r = __builtin_ctzl (__bitset); \ pos = (__k * 32) + __r + 1; \ code; \ __bitset ^= __t; \ } \ } } bitmap *bitmap_copy (const bitmap * bm); bitmap *bitmap_create (uint32_t bit); int bitmap_get_bit (word_t * words, uint32_t n); int bitmap_key_exists (bitmap * bm, uint32_t bit); int bitmap_realloc (bitmap * bm, uint32_t bit); int bitmap_set_bit (word_t * words, uint32_t n); uint32_t bitmap_count_set (const bitmap * bm); uint32_t bitmap_ffs (bitmap * bm); uint32_t bitmap_sizeof (uint32_t nbits); void free_bitmap (bitmap * bm); #endif // for #ifndef BITMAP_H ================================================ FILE: src/browsers.c ================================================ /** 6 browsers.c -- functions for dealing with browsers * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> #include "browsers.h" #include "error.h" #include "settings.h" #include "util.h" #include "xmalloc.h" /* ###NOTE: The size of the list is proportional to the run time, * which makes this pretty slow */ static char ***browsers_hash = NULL; static const char *const browsers[][2] = { /* Game Systems: place game console browsers here */ {"Xbox One", "Game Systems"}, {"Xbox", "Game Systems"}, {"PlayStation", "Game Systems"}, {"NintendoBrowser", "Game Systems"}, {"Valve Steam", "Game Systems"}, {"Origin", "Game Systems"}, {"Raptr", "Game Systems"}, /* Based on Internet Explorer: browsers based on IE engine */ {"Avant Browser", "Others"}, {"IEMobile", "MSIE"}, {"MSIE", "MSIE"}, {"Trident/7.0", "MSIE"}, {"Edg", "Edge"}, {"Edge", "Edge"}, /* Surf Browser */ {"Surf", "Surf"}, /* Opera: place all opera-related user agents here */ {"Opera Mini", "Opera"}, {"Opera Mobi", "Opera"}, {"Opera", "Opera"}, {"OPR", "Opera"}, {"OPiOS", "Opera"}, {"Coast", "Opera"}, {"FBAV", "Facebook App"}, {"FBSV", "Facebook App"}, {"FBAN", "Facebook App"}, {"FB_IAB", "Facebook App"}, /* Others: miscellaneous user agents that don't fit other categories */ {"Homebrew", "Others"}, {"APT-", "Others"}, {"Apt-Cacher", "Others"}, {"Aptly", "Others"}, {"Chef Client", "Others"}, {"Huawei", "Others"}, {"HUAWEI", "Others"}, {"BlackBerry", "Others"}, {"BrowserX", "Others"}, {"Dalvik", "Others"}, {"Dillo", "Others"}, {"ELinks", "Others"}, {"Epiphany", "Others"}, {"Firebird", "Others"}, {"Galeon", "Others"}, {"google-cloud-sdk", "Others"}, {"IBrowse", "Others"}, {"K-Meleon", "Others"}, {"Konqueror", "Others"}, {"Links", "Others"}, {"Lynx", "Others"}, {"Midori", "Others"}, {"Minefield", "Others"}, {"Mosaic", "Others"}, {"Netscape", "Others"}, {"SeaMonkey", "Others"}, {"UCBrowser", "Others"}, {"Wget", "Others"}, {"libfetch", "Others"}, {"check_http", "Others"}, {"Go-http-client", "Others"}, {"curl", "Others"}, {"midori", "Others"}, {"w3m", "Others"}, {"MicroMessenger", "Others"}, {"Apache", "Others"}, {"JOSM", "Others"}, {"pacman", "Others"}, {"Pamac", "Others"}, {"libwww-perl", "Others"}, {"python-requests", "Others"}, {"PackageKit", "Others"}, {"F-Droid", "Others"}, {"okhttp", "Others"}, {"node", "Others"}, {"PrivacyBrowser", "Others"}, {"Transmission", "Others"}, {"libmpv", "Others"}, {"aria2", "Others"}, {"Electron", "Others"}, {"Chromium", "Chrome"}, {"QtWebEngine", "Others"}, {"SamsungBrowser", "Samsung Internet"}, {"Silk/", "Silk"}, {"MiuiBrowser", "Others"}, {"HuaweiBrowser", "Others"}, {"HeyTapBrowser", "Others"}, {"VivoBrowser", "Others"}, {"QQBrowser", "Others"}, {"Instagram", "Others"}, {"TikTok", "Others"}, {"Snapchat", "Others"}, {"Pinterest", "Others"}, {"Roku", "Others"}, {"Tizen", "Others"}, {"Web0S", "Others"}, /* Feed Readers: place all feed reader user agents here */ {"AppleNewsBot", "Feeds"}, {"Bloglines", "Feeds"}, {"Digg Feed Fetcher", "Feeds"}, {"Feedbin", "Feeds"}, {"FeedHQ", "Feeds"}, {"Feedly", "Feeds"}, {"Flipboard", "Feeds"}, {"inoreader.com", "Feeds"}, {"Netvibes", "Feeds"}, {"NewsBlur", "Feeds"}, {"PinRSS", "Feeds"}, {"theoldreader.com", "Feeds"}, {"WordPress.com Reader", "Feeds"}, {"YandexBlogs", "Feeds"}, {"Brainstorm", "Feeds"}, {"Mastodon", "Feeds"}, {"Pleroma", "Feeds"}, {"Akregator", "Feeds"}, {"Apple-PubSub", "Feeds"}, {"BTWebClient", "Feeds"}, {"com apple.Safari.WebFeedParser", "Feeds"}, {"FeedDemon", "Feeds"}, {"Feedy", "Feeds"}, {"Fever", "Feeds"}, {"FreshRSS", "Feeds"}, {"Liferea", "Feeds"}, {"NetNewsWire", "Feeds"}, {"RSSOwl", "Feeds"}, {"Thunderbird", "Feeds"}, {"Tiny Tiny RSS", "Feeds"}, {"Winds", "Feeds"}, /* Crawlers: all bot and crawler user agents grouped together */ {"AdsBot", "Crawlers"}, {"AdsBot-Google", "Crawlers"}, {"APIs-Google", "Crawlers"}, {"AppEngine-Google", "Crawlers"}, {"Mediapartners-Google", "Crawlers"}, {"Google-InspectionTool", "Crawlers"}, {"Google-Extended", "Crawlers"}, {"GoogleOther", "Crawlers"}, {"Google-Read-Aloud", "Crawlers"}, {"Google", "Crawlers"}, {"WhatsApp", "Crawlers"}, {"AppleBot", "Crawlers"}, {"Applebot-Extended", "Crawlers"}, {"facebookexternalhit", "Crawlers"}, {"Facebot", "Crawlers"}, {"Twitter", "Crawlers"}, {"Twitterbot", "Crawlers"}, {"Slackbot-LinkExpanding", "Crawlers"}, {"Slack-ImgProxy", "Crawlers"}, {"Slack", "Crawlers"}, {"TelegramBot", "Crawlers"}, {"Sogou", "Crawlers"}, {"Java", "Crawlers"}, {"Jakarta Commons-HttpClient", "Crawlers"}, {"netEstate", "Crawlers"}, {"PiplBot", "Crawlers"}, {"Baidu", "Crawlers"}, {"Mastodon", "Crawlers"}, {"IstellaBot", "Crawlers"}, {"heritrix", "Crawlers"}, {"PagesInventory", "Crawlers"}, {"rogerbot", "Crawlers"}, {"fastbot", "Crawlers"}, {"yacybot", "Crawlers"}, {"PycURL", "Crawlers"}, {"PHP", "Crawlers"}, {"ClaudeBot", "Crawlers"}, {"Claude-User", "Crawlers"}, {"AndroidDownloadManager", "Crawlers"}, {"Embedly", "Crawlers"}, {"ruby", "Crawlers"}, {"Ruby", "Crawlers"}, {"python", "Crawlers"}, {"Python", "Crawlers"}, {"LinkedIn", "Crawlers"}, {"LinkedInBot", "Crawlers"}, {"Microsoft-WebDAV", "Crawlers"}, {"DuckDuckBot", "Crawlers"}, {"bingbot", "Crawlers"}, {"PetalBot", "Crawlers"}, {"Discordbot", "Crawlers"}, {"ZoominfoBot", "Crawlers"}, {"Googlebot", "Crawlers"}, {"DotBot", "Crawlers"}, {"AhrefsBot", "Crawlers"}, {"SemrushBot", "Crawlers"}, {"archive.org_bot", "Crawlers"}, {"BLEXBot", "Crawlers"}, {"NetcraftSurveyAgent", "Crawlers"}, {"Netcraft Web Server Survey", "Crawlers"}, {"masscan", "Crawlers"}, {"MJ12bot", "Crawlers"}, {"Pandalytics", "Crawlers"}, {"YandexBot", "Crawlers"}, {"Nimbostratus-Bot", "Crawlers"}, {"HTTP Banner Detection", "Crawlers"}, {"Hakai", "Crawlers"}, {"WinHttp_WINHTTPREQUEST5", "Crawlers"}, {"NetSystemsResearch", "Crawlers"}, {"Nextcloud Server Crawler", "Crawlers"}, {"CFNetwork", "Crawlers"}, {"GoScraper", "Crawlers"}, {"Googlebot-Image", "Crawlers"}, {"ZmEu", "Crawlers"}, {"DowntimeDetector", "Crawlers"}, {"MauiBot", "Crawlers"}, {"stagefright", "Crawlers"}, {"ImagesiftBot", "Crawlers"}, {"Bytespider", "Crawlers"}, {"WordPress/", "Crawlers"}, {"Synapse", "Crawlers"}, {"Yahoo! Slurp", "Crawlers"}, {"GoogleMobile", "Crawlers"}, {"ZoteroTranslationServer", "Crawlers"}, {"OAI-SearchBot", "Crawlers"}, {"GPTBot", "Crawlers"}, {"PerplexityBot", "Crawlers"}, {"Amazonbot", "Crawlers"}, {"SkypeUriPreview", "Crawlers"}, {"OAI-SearchBot", "Crawlers"}, {"OAI-SearchBot", "Crawlers"}, /* duplicate-safe if you dedupe elsewhere */ /* Based on Firefox: place all Firefox-based browsers here */ {"Camino", "Others"}, {"Iceweasel", "Firefox"}, {"Waterfox", "Firefox"}, {"PaleMoon", "Firefox"}, {"Focus", "Firefox"}, {"Klar", "Firefox"}, {"Firefox", "Firefox"}, /* Based on Chromium: place all Chromium-based browsers here, including BeakerBrowser under Others for consistency */ {"Brave", "Brave"}, {"Vivaldi", "Vivaldi"}, {"YaBrowser", "Yandex"}, {"DuckDuckGo/", "DuckDuckGo Browser"}, /* Chrome: place all Chrome-related user agents here */ {"HeadlessChrome", "Chrome"}, {"Chrome", "Chrome"}, {"CriOS", "Chrome"}, /* Safari: place all Safari-related user agents here */ {"Safari", "Safari"}, /* HTTP Library or HTTP Server User Agents: place here */ {"axios", "HTTP Library"}, /* NodeJS axios */ {"lua-resty-http", "HTTP Library"}, /* Ngx luarestyhttp module */ {"Apache-HttpClient", "HTTP Library"}, {"GuzzleHttp", "HTTP Library"}, {"RestSharp", "HTTP Library"}, {"http.rb", "HTTP Library"}, {"Java-http-client", "HTTP Library"}, {"node-fetch", "HTTP Library"}, /* Citation Services: place here */ {"Citoid", "Citation"}, /* MediaWiki Citoid */ {"EasyBib", "Citation"}, /* Easybib */ /* Podcast Fetchers: place here */ {"Downcast", "Podcasts"}, {"gPodder", "Podcasts"}, {"Instacast", "Podcasts"}, {"iTunes", "Podcasts"}, {"Miro", "Podcasts"}, {"Pocket Casts", "Podcasts"}, {"BashPodder", "Podcasts"}, /* Uptime and Monitoring Clients: place here */ {"Pingdom.com", "Uptime"}, {"jetmon", "Uptime"}, {"NodeUptime", "Uptime"}, {"NewRelicPinger", "Uptime"}, {"StatusCake", "Uptime"}, {"internetVista", "Uptime"}, {"Server Density Service Monitoring v2", "Uptime"}, {"Better Uptime Bot", "Uptime"}, {"Site24x7", "Uptime"}, {"Uptime-Kuma", "Uptime"}, {"UptimeRobot", "Uptime"}, {"NewRelicSynthetics", "Uptime"}, {"DatadogSynthetics", "Uptime"}, {"ELB-HealthChecker", "Uptime"}, {"GoogleHC", "Uptime"}, {"kube-probe", "Uptime"}, {"Fastly-HealthChecker", "Uptime"}, {"Cloudflare-Healthchecks", "Uptime"}, {"CloudFlare-AlwaysOnline", "Uptime"}, /* Performance and Caching: place here */ {"ShortPixel", "Performance"}, /* Image Optimization */ {"WP Rocket", "Caching"}, /* Preloading Cache for WordPress Plugin */ /* Security: place here */ {"Barracuda Sentinel", "Security"}, /* Barricuda spear fishing service */ {"ACI Site Scanner", "Security"}, /* Can't confirm specific vendor */ /* Mozilla: catch-all for Mozilla-related user agents */ {"mozilla", "Others"} }; /* Free all browser entries from our array of key/value pairs. */ void free_browsers_hash (void) { size_t i; int j; for (i = 0; i < ARRAY_SIZE (browsers); ++i) { free (browsers_hash[i][0]); free (browsers_hash[i][1]); free (browsers_hash[i]); } free (browsers_hash); for (j = 0; j < conf.browsers_hash_idx; ++j) { free (conf.user_browsers_hash[j][0]); free (conf.user_browsers_hash[j][1]); free (conf.user_browsers_hash[j]); } if (conf.browsers_file) { free (conf.user_browsers_hash); } } static int is_dup (char ***list, int len, const char *browser) { int i; /* check for dups */ for (i = 0; i < len; ++i) { if (strcmp (browser, list[i][0]) == 0) return 1; } return 0; } /* Set a browser/type pair into our multidimensional array of browsers. * * On duplicate functions returns void. * Otherwise memory is mallo'd for our array entry. */ static void set_browser (char ***list, int idx, const char *browser, const char *type) { list[idx] = xcalloc (2, sizeof (char *)); list[idx][0] = xstrdup (browser); list[idx][1] = xstrdup (type); } /* Parse the key/value pair from the browser list file. */ static void parse_browser_token (char ***list, char *line, int n) { char *val; size_t idx = 0; /* key */ idx = strcspn (line, "\t"); if (strlen (line) == idx) FATAL ("Malformed browser name at line: %d", n); line[idx] = '\0'; /* value */ val = line + (idx + 1); idx = strspn (val, "\t"); if (strlen (val) == idx) FATAL ("Malformed browser category at line: %d", n); val = val + idx; val = trim_str (val); if (is_dup (list, conf.browsers_hash_idx, line)) { LOG_INVALID (("Duplicate browser entry: %s", line)); return; } set_browser (list, conf.browsers_hash_idx, line, val); conf.browsers_hash_idx++; } /* Parse our default array of browsers and put them on our hash including those * from the custom parsed browsers file. * * On error functions returns void. * Otherwise browser entries are put into the hash. */ void parse_browsers_file (void) { char line[MAX_LINE_BROWSERS + 1]; FILE *file; int n = 0; size_t i, len = ARRAY_SIZE (browsers); browsers_hash = xmalloc (ARRAY_SIZE (browsers) * sizeof (char **)); /* load hash from the browser's array (default) */ for (i = 0; i < len; ++i) { set_browser (browsers_hash, i, browsers[i][0], browsers[i][1]); } if (!conf.browsers_file) return; /* could not open browsers file */ if ((file = fopen (conf.browsers_file, "r")) == NULL) FATAL ("Unable to open browser's file: %s", strerror (errno)); conf.user_browsers_hash = xmalloc (MAX_CUSTOM_BROWSERS * sizeof (char **)); /* load hash from the user's given browsers file */ while (fgets (line, sizeof line, file) != NULL) { while (line[0] == ' ' || line[0] == '\t') memmove (line, line + 1, strlen (line)); n++; if (line[0] == '\n' || line[0] == '\r' || line[0] == '#') continue; if (conf.browsers_hash_idx >= MAX_CUSTOM_BROWSERS) FATAL ("Maximum number of custom browsers has been reached"); parse_browser_token (conf.user_browsers_hash, line, n); } fclose (file); } /* Determine if the user-agent is a crawler. * * On error or is not a crawler, 0 is returned. * If it is a crawler, 1 is returned . */ int is_crawler (const char *agent) { char btype[BROWSER_TYPE_LEN]; char *browser, *a; if (agent == NULL || *agent == '\0') return 0; if ((a = xstrdup (agent), browser = verify_browser (a, btype)) != NULL) free (browser); free (a); return strcmp (btype, "Crawlers") == 0 ? 1 : 0; } /* Return the Opera 15 and beyond. * * On success, the opera string and version is returned. */ static char * parse_opera (char *token) { char *val = xmalloc (snprintf (NULL, 0, "Opera%s", token) + 1); sprintf (val, "Opera%s", token); return val; } /* Given the original user agent string, and a partial crawler match, iterate * back until the next delimiter is found and return occurrence. * * On error when attempting to extract crawler, NULL is returned. * If a possible crawler string is matched, then possible bot is returned . */ static char * parse_crawler (char *str, char *match, char *type) { char *ptr = NULL; int found = 0; while (match != str) { match--; if (*match == ' ' || *match == '+' || match == str) { found = 1; break; } } /* same addr */ if (!found && match == str) return NULL; /* account for the previous +|space */ if (found && match != str) match++; if ((ptr = strpbrk (match, "; "))) *ptr = '\0'; /* empty string after parsing it */ if (*match == '\0') return NULL; xstrncpy (type, "Crawlers", BROWSER_TYPE_LEN); return xstrdup (match); } /* If the following string matches are found within user agent, then it's * highly likely it's a possible crawler. * Note that this could certainly return false positives. * * If no occurrences are found, NULL is returned. * If an occurrence is found, a pointer to the match is returned . */ static char * check_http_crawler (const char *str) { char *match = NULL; /* e.g., compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm */ if ((match = strstr (str, "; +http"))) return match; /* compatible; UptimeRobot/2.0; http://www.uptimerobot.com/ */ if ((match = strstr (str, "; http"))) return match; /* Slack-ImgProxy (+https://api.slack.com/robots) */ if ((match = strstr (str, " (+http"))) return match; /* TurnitinBot/3.0 (http://www.turnitin.com/robot/crawlerinfo.html) */ if ((match = strstr (str, " (http"))) return match; /* w3c e.g., (compatible;+Googlebot/2.1;++http://www.google.com/bot.html) */ if ((match = strstr (str, ";++http"))) return match; return NULL; } /* Parse the given user agent match and extract the browser string. * * If no match, the original match is returned. * Otherwise the parsed browser is returned. */ static char * parse_browser (char *match, char *type, int i, char ***hash) { char *b = NULL, *ptr = NULL, *slh = NULL; size_t cnt = 0, space = 0; match = char_replace (match, '+', '-'); /* Check if there are spaces in the token string, that way strpbrk * does not stop at the first space within the token string */ if ((cnt = count_matches (hash[i][0], ' ')) && (b = match)) { while (space++ < cnt && (b = strchr (b, ' '))) b++; } else b = match; xstrncpy (type, hash[i][1], BROWSER_TYPE_LEN); /* Internet Explorer 11 */ if (strstr (match, "rv:11") && strstr (match, "Trident/7.0")) { return alloc_string ("MSIE/11.0"); } /* Opera +15 uses OPR/# */ if (strstr (match, "OPR") != NULL && (slh = strrchr (match, '/'))) { return parse_opera (slh); } /* Opera has the version number at the end */ if (strstr (match, "Opera") && (slh = strrchr (match, '/')) && match < slh) { memmove (match + 5, slh, strlen (slh) + 1); } /* IE Old */ if (strstr (match, "MSIE") != NULL) { if ((ptr = strpbrk (match, ";)-")) != NULL) *ptr = '\0'; match = char_replace (match, ' ', '/'); } /* all others */ else if ((ptr = strpbrk (b ? b : match, ";) \\")) != NULL) { *ptr = '\0'; } return alloc_string (match); } /* Given a user agent, determine the browser used. * * ###NOTE: The size of the list is proportional to the run time, * which makes this pretty slow * * On error, NULL is returned. * On success, a malloc'd string containing the browser is returned. */ char * verify_browser (char *str, char *type) { char *match = NULL, *token = NULL; int i = 0; size_t j = 0; if (str == NULL || *str == '\0') return NULL; /* check user's list */ for (i = 0; i < conf.browsers_hash_idx; ++i) { if ((match = strstr (str, conf.user_browsers_hash[i][0])) == NULL) continue; return parse_browser (match, type, i, conf.user_browsers_hash); } /* fallback to default browser list */ for (j = 0; j < ARRAY_SIZE (browsers); ++j) { if ((match = strstr (str, browsers_hash[j][0])) == NULL) continue; return parse_browser (match, type, j, browsers_hash); } /* try heuristics */ if ((match = check_http_crawler (str)) && (token = parse_crawler (str, match, type))) return token; if (conf.unknowns_log) LOG_UNKNOWNS (("%-7s%s\n", "[BR]", str)); if (conf.unknowns_as_crawlers && strcmp (type, "Crawlers")) xstrncpy (type, "Crawlers", BROWSER_TYPE_LEN); else xstrncpy (type, "Unknown", BROWSER_TYPE_LEN); return alloc_string ("Unknown"); } ================================================ FILE: src/browsers.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef BROWSERS_H_INCLUDED #define BROWSERS_H_INCLUDED #define BROWSER_TYPE_LEN 24 #define MAX_LINE_BROWSERS 128 #define MAX_CUSTOM_BROWSERS 256 /* Each Browser contains the number of hits and the Browser's type */ typedef struct GBrowser_ { char browser_type[BROWSER_TYPE_LEN]; int hits; } GBrowser; char *verify_browser (char *str, char *browser_type); int is_crawler (const char *agent); void free_browsers_hash (void); void parse_browsers_file (void); #endif ================================================ FILE: src/color.c ================================================ /** * color.c -- functions related to custom color * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include "color.h" #include "error.h" #include "gslist.h" #include "util.h" #include "xmalloc.h" static GSLList *color_list = NULL; static GSLList *pair_list = NULL; /* *INDENT-OFF* */ static const GEnum CSTM_COLORS[] = { {"COLOR_MTRC_HITS" , COLOR_MTRC_HITS}, {"COLOR_MTRC_VISITORS" , COLOR_MTRC_VISITORS}, {"COLOR_MTRC_HITS_PERC" , COLOR_MTRC_HITS_PERC}, {"COLOR_MTRC_VISITORS_PERC" , COLOR_MTRC_VISITORS_PERC}, {"COLOR_MTRC_BW_PERC" , COLOR_MTRC_BW_PERC}, {"COLOR_MTRC_BW" , COLOR_MTRC_BW}, {"COLOR_MTRC_AVGTS" , COLOR_MTRC_AVGTS}, {"COLOR_MTRC_CUMTS" , COLOR_MTRC_CUMTS}, {"COLOR_MTRC_MAXTS" , COLOR_MTRC_MAXTS}, {"COLOR_MTRC_PROT" , COLOR_MTRC_PROT}, {"COLOR_MTRC_MTHD" , COLOR_MTRC_MTHD}, {"COLOR_MTRC_DATA" , COLOR_MTRC_DATA}, {"COLOR_MTRC_HITS_PERC_MAX" , COLOR_MTRC_HITS_PERC_MAX}, {"COLOR_MTRC_VISITORS_PERC_MAX" , COLOR_MTRC_VISITORS_PERC_MAX}, {"COLOR_MTRC_BW_PERC_MAX" , COLOR_MTRC_BW_PERC_MAX}, {"COLOR_PANEL_COLS" , COLOR_PANEL_COLS}, {"COLOR_BARS" , COLOR_BARS}, {"COLOR_SUBBARS" , COLOR_SUBBARS}, {"COLOR_CHART_AXIS" , COLOR_CHART_AXIS}, {"COLOR_CHART_VALUES" , COLOR_CHART_VALUES}, {"COLOR_ERROR" , COLOR_ERROR}, {"COLOR_SELECTED" , COLOR_SELECTED}, {"COLOR_PANEL_ACTIVE" , COLOR_PANEL_ACTIVE}, {"COLOR_PANEL_HEADER" , COLOR_PANEL_HEADER}, {"COLOR_PANEL_DESC" , COLOR_PANEL_DESC}, {"COLOR_OVERALL_LBLS" , COLOR_OVERALL_LBLS}, {"COLOR_OVERALL_VALS" , COLOR_OVERALL_VALS}, {"COLOR_OVERALL_PATH" , COLOR_OVERALL_PATH}, {"COLOR_ACTIVE_LABEL" , COLOR_ACTIVE_LABEL}, {"COLOR_BG" , COLOR_BG}, {"COLOR_DEFAULT" , COLOR_DEFAULT}, {"COLOR_PROGRESS" , COLOR_PROGRESS}, }; static const char *const colors256_mono[] = { "COLOR_MTRC_HITS color7:color-1", "COLOR_MTRC_VISITORS color8:color-1", "COLOR_MTRC_DATA color7:color-1", "COLOR_MTRC_BW color8:color-1", "COLOR_MTRC_AVGTS color8:color-1", "COLOR_MTRC_CUMTS color8:color-1", "COLOR_MTRC_MAXTS color8:color-1", "COLOR_MTRC_PROT color8:color-1", "COLOR_MTRC_MTHD color7:color-1", "COLOR_MTRC_HITS_PERC color0:color-1 bold", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC color1:color-1 bold OS", "COLOR_MTRC_HITS_PERC color1:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISIT_TIMES", "COLOR_MTRC_HITS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold OS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISIT_TIMES", "COLOR_MTRC_VISITORS_PERC color0:color-1 bold", "COLOR_MTRC_VISITORS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_BW_PERC color0:color-1 bold", "COLOR_MTRC_BW_PERC_MAX color0:color-1 bold", "COLOR_PANEL_COLS color7:color-1", "COLOR_BARS color7:color-1", "COLOR_SUBBARS color8:color-1", "COLOR_CHART_AXIS color7:color-1", "COLOR_CHART_VALUES color7:color-1", "COLOR_ERROR color7:color1", "COLOR_SELECTED color7:color8", "COLOR_PANEL_ACTIVE color0:color3", "COLOR_PANEL_HEADER color0:color7", "COLOR_PANEL_DESC color7:color-1", "COLOR_OVERALL_LBLS color7:color-1 bold", "COLOR_OVERALL_VALS color6:color-1 bold", "COLOR_OVERALL_PATH color3:color-1", "COLOR_ACTIVE_LABEL color4:color7", "COLOR_BG color7:color-1", "COLOR_DEFAULT color7:color-1", "COLOR_PROGRESS color0:color6", }; static const char *const colors256_green[] = { "COLOR_MTRC_HITS color7:color-1", "COLOR_MTRC_VISITORS color8:color-1", "COLOR_MTRC_DATA color7:color-1", "COLOR_MTRC_BW color8:color-1", "COLOR_MTRC_AVGTS color8:color-1", "COLOR_MTRC_CUMTS color8:color-1", "COLOR_MTRC_MAXTS color8:color-1", "COLOR_MTRC_PROT color8:color-1", "COLOR_MTRC_MTHD color7:color-1", "COLOR_MTRC_HITS_PERC color0:color-1 bold", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC color1:color-1 bold OS", "COLOR_MTRC_HITS_PERC color1:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISIT_TIMES", "COLOR_MTRC_HITS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold OS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISIT_TIMES", "COLOR_MTRC_VISITORS_PERC color0:color-1 bold", "COLOR_MTRC_VISITORS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_BW_PERC color0:color-1 bold", "COLOR_MTRC_BW_PERC_MAX color0:color-1 bold", "COLOR_PANEL_COLS color7:color-1", "COLOR_BARS color7:color-1", "COLOR_SUBBARS color8:color-1", "COLOR_CHART_AXIS color7:color-1", "COLOR_CHART_VALUES color7:color-1", "COLOR_ERROR color7:color1", "COLOR_SELECTED color7:color8", "COLOR_PANEL_ACTIVE color0:color3", "COLOR_PANEL_HEADER color0:color35", "COLOR_PANEL_DESC color7:color-1", "COLOR_OVERALL_LBLS color7:color-1 bold", "COLOR_OVERALL_VALS color6:color-1 bold", "COLOR_OVERALL_PATH color3:color-1", "COLOR_ACTIVE_LABEL color7:color35", "COLOR_BG color7:color-1", "COLOR_DEFAULT color7:color-1", "COLOR_PROGRESS color0:color6", }; static const char *const colors256_monokai[] = { "COLOR_MTRC_HITS color197:color-1", "COLOR_MTRC_VISITORS color148:color-1", "COLOR_MTRC_DATA color7:color-1", "COLOR_MTRC_BW color81:color-1", "COLOR_MTRC_AVGTS color247:color-1", "COLOR_MTRC_CUMTS color95:color-1", "COLOR_MTRC_MAXTS color186:color-1", "COLOR_MTRC_PROT color141:color-1", "COLOR_MTRC_MTHD color81:color-1", "COLOR_MTRC_HITS_PERC color186:color-1", "COLOR_MTRC_HITS_PERC color186:color-1 VISITORS", "COLOR_MTRC_HITS_PERC color186:color-1 OS", "COLOR_MTRC_HITS_PERC color186:color-1 BROWSERS", "COLOR_MTRC_HITS_PERC color186:color-1 VISIT_TIMES", "COLOR_MTRC_HITS_PERC_MAX color208:color-1", "COLOR_MTRC_HITS_PERC_MAX color208:color-1 VISITORS", "COLOR_MTRC_HITS_PERC_MAX color208:color-1 OS", "COLOR_MTRC_HITS_PERC_MAX color208:color-1 BROWSERS", "COLOR_MTRC_HITS_PERC_MAX color208:color-1 VISIT_TIMES", "COLOR_MTRC_VISITORS_PERC color187:color-1", "COLOR_MTRC_VISITORS_PERC_MAX color208:color-1", "COLOR_MTRC_BW_PERC color187:color-1", "COLOR_MTRC_BW_PERC_MAX color208:color-1", "COLOR_PANEL_COLS color242:color-1", "COLOR_BARS color240:color-1", "COLOR_SUBBARS color250:color-1", "COLOR_CHART_AXIS color241:color-1", "COLOR_CHART_VALUES color248:color-1", "COLOR_ERROR color231:color197", "COLOR_SELECTED color0:color215", "COLOR_PANEL_ACTIVE color7:color240", "COLOR_PANEL_HEADER color7:color237", "COLOR_PANEL_DESC color242:color-1", "COLOR_OVERALL_LBLS color251:color-1", "COLOR_OVERALL_VALS color148:color-1", "COLOR_OVERALL_PATH color186:color-1", "COLOR_ACTIVE_LABEL color7:color237", "COLOR_BG color7:color-1", "COLOR_DEFAULT color7:color-1", "COLOR_PROGRESS color7:color141", }; static const char *const colors8_mono[] = { "COLOR_MTRC_HITS color7:color-1", "COLOR_MTRC_VISITORS color0:color-1 bold", "COLOR_MTRC_DATA color7:color-1", "COLOR_MTRC_BW color0:color-1 bold", "COLOR_MTRC_AVGTS color0:color-1 bold", "COLOR_MTRC_CUMTS color0:color-1 bold", "COLOR_MTRC_MAXTS color0:color-1 bold", "COLOR_MTRC_PROT color0:color-1 bold", "COLOR_MTRC_MTHD color7:color-1 ", "COLOR_MTRC_HITS_PERC color0:color-1 bold", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC color1:color-1 bold OS", "COLOR_MTRC_HITS_PERC color1:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISIT_TIMES", "COLOR_MTRC_HITS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold OS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISIT_TIMES", "COLOR_MTRC_VISITORS_PERC color0:color-1 bold", "COLOR_MTRC_VISITORS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_BW_PERC color0:color-1 bold", "COLOR_MTRC_BW_PERC_MAX color0:color-1 bold", "COLOR_PANEL_COLS color7:color-1", "COLOR_BARS color7:color-1", "COLOR_SUBBARS color8:color-1", "COLOR_CHART_AXIS color7:color-1", "COLOR_CHART_VALUES color7:color-1", "COLOR_ERROR color7:color1", "COLOR_SELECTED color0:color7", "COLOR_PANEL_ACTIVE color0:color3", "COLOR_PANEL_HEADER color0:color7", "COLOR_PANEL_DESC color7:color-1", "COLOR_OVERALL_LBLS color7:color-1 bold", "COLOR_OVERALL_VALS color6:color-1", "COLOR_OVERALL_PATH color3:color-1", "COLOR_ACTIVE_LABEL color4:color7", "COLOR_BG color7:color-1", "COLOR_DEFAULT color7:color-1", "COLOR_PROGRESS color0:color6", }; static const char *const colors8_green[] = { "COLOR_MTRC_HITS color7:color-1", "COLOR_MTRC_VISITORS color0:color-1 bold", "COLOR_MTRC_DATA color7:color-1", "COLOR_MTRC_BW color0:color-1 bold", "COLOR_MTRC_AVGTS color0:color-1 bold", "COLOR_MTRC_CUMTS color0:color-1 bold", "COLOR_MTRC_MAXTS color0:color-1 bold", "COLOR_MTRC_PROT color0:color-1 bold", "COLOR_MTRC_MTHD color7:color-1 ", "COLOR_MTRC_HITS_PERC color0:color-1 bold", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC color1:color-1 bold OS", "COLOR_MTRC_HITS_PERC color1:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC color1:color-1 bold VISIT_TIMES", "COLOR_MTRC_HITS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISITORS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold OS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold BROWSERS", "COLOR_MTRC_HITS_PERC_MAX color3:color-1 bold VISIT_TIMES", "COLOR_MTRC_VISITORS_PERC color0:color-1 bold", "COLOR_MTRC_VISITORS_PERC_MAX color0:color-1 bold", "COLOR_MTRC_BW_PERC color0:color-1 bold", "COLOR_MTRC_BW_PERC_MAX color0:color-1 bold", "COLOR_PANEL_COLS color7:color-1", "COLOR_BARS color2:color-1", "COLOR_SUBBARS color8:color-1", "COLOR_CHART_AXIS color2:color-1", "COLOR_CHART_VALUES color2:color-1", "COLOR_ERROR color7:color1", "COLOR_SELECTED color0:color7", "COLOR_PANEL_ACTIVE color0:color3", "COLOR_PANEL_HEADER color0:color2", "COLOR_PANEL_DESC color7:color-1", "COLOR_OVERALL_LBLS color7:color-1 bold", "COLOR_OVERALL_VALS color6:color-1", "COLOR_OVERALL_PATH color3:color-1", "COLOR_ACTIVE_LABEL color0:color2", "COLOR_BG color7:color-1", "COLOR_DEFAULT color7:color-1", "COLOR_PROGRESS color0:color6", }; static const char *const nocolors[] = { "COLOR_MTRC_HITS color0:color-1", "COLOR_MTRC_VISITORS color0:color-1", "COLOR_MTRC_DATA color0:color-1", "COLOR_MTRC_BW color0:color-1", "COLOR_MTRC_AVGTS color0:color-1", "COLOR_MTRC_CUMTS color0:color-1", "COLOR_MTRC_MAXTS color0:color-1", "COLOR_MTRC_PROT color0:color-1", "COLOR_MTRC_MTHD color0:color-1", "COLOR_MTRC_HITS_PERC color0:color-1", "COLOR_MTRC_HITS_PERC_MAX color0:color-1", "COLOR_MTRC_VISITORS_PERC color0:color-1", "COLOR_MTRC_VISITORS_PERC_MAX color0:color-1", "COLOR_MTRC_BW_PERC color0:color-1", "COLOR_MTRC_BW_PERC_MAX color0:color-1", "COLOR_PANEL_COLS color0:color-1", "COLOR_BARS color0:color-1", "COLOR_SUBBARS color0:color-1", "COLOR_CHART_AXIS color0:color-1", "COLOR_CHART_VALUES color0:color-1", "COLOR_ERROR color0:color-1", "COLOR_SELECTED color0:color-1 reverse", "COLOR_PANEL_ACTIVE color0:color-1 reverse", "COLOR_PANEL_HEADER color0:color-1 reverse", "COLOR_PANEL_DESC color0:color-1", "COLOR_OVERALL_LBLS color0:color-1", "COLOR_OVERALL_VALS color0:color-1", "COLOR_OVERALL_PATH color0:color-1", "COLOR_ACTIVE_LABEL color0:color-1 reverse", "COLOR_BG color0:color-1", "COLOR_DEFAULT color0:color-1", "COLOR_PROGRESS color0:color-1 reverse", }; /* *INDENT-ON* */ /* Allocate memory for color elements */ static GColors * new_gcolors (void) { GColors *color = xcalloc (1, sizeof (GColors)); color->module = -1; return color; } /* Allocate memory for a color element properties */ static GColorPair * new_gcolorpair (void) { GColorPair *pair = xcalloc (1, sizeof (GColorPair)); /* Must be between 2 and COLOR_PAIRS-1. * Starts at 2 since COLOR_NORMAL has already been set */ pair->idx = 2; return pair; } /* Free malloc'd memory for color elements */ void free_color_lists (void) { if (pair_list) list_remove_nodes (pair_list); if (color_list) list_remove_nodes (color_list); color_list = NULL; pair_list = NULL; } /* Set a default color - COLOR_NORMAL, this will be used if * no colors are supported by the terminal */ void set_normal_color (void) { GColorPair *pair = new_gcolorpair (); GColors *color = new_gcolors (); pair->idx = 1; pair->fg = COLOR_WHITE; pair->bg = -1; color->pair = pair; color->item = COLOR_NORMAL; pair_list = list_create (pair); color_list = list_create (color); init_pair (pair->idx, pair->fg, pair->bg); } /* Get color properties for COLOR_OVERALL_LBLS */ GColors * color_overall_lbls (void) { return get_color (COLOR_OVERALL_LBLS); } /* Get color properties for COLOR_OVERALL_VALS */ GColors * color_overall_vals (void) { return get_color (COLOR_OVERALL_VALS); } /* Get color properties for COLOR_OVERALL_PATH */ GColors * color_overall_path (void) { return get_color (COLOR_OVERALL_PATH); } /* Get color properties for COLOR_PANEL_HEADER */ GColors * color_panel_header (void) { return get_color (COLOR_PANEL_HEADER); } /* Get color properties for COLOR_PANEL_DESC */ GColors * color_panel_desc (void) { return get_color (COLOR_PANEL_DESC); } /* Get color properties for COLOR_PANEL_ACTIVE*/ GColors * color_panel_active (void) { return get_color (COLOR_PANEL_ACTIVE); } /* Get color properties for COLOR_SELECTED */ GColors * color_selected (void) { return get_color (COLOR_SELECTED); } /* Get color properties for COLOR_PROGRESS */ GColors * color_progress (void) { return get_color (COLOR_PROGRESS); } /* Get color properties for COLOR_DEFAULT */ GColors * color_default (void) { return get_color (COLOR_DEFAULT); } /* Get color properties for COLOR_ERROR */ GColors * color_error (void) { return get_color (COLOR_ERROR); } /* Get the enumerated color given its equivalent color string. * * On error, -1 is returned. * On success, the enumerated color is returned. */ static int get_color_item_enum (const char *str) { return str2enum (CSTM_COLORS, ARRAY_SIZE (CSTM_COLORS), str); } /* Extract color number from the given config string. * * On error, -2 is returned. If color is greater than max colors, it aborts. * On success, the color number is returned. */ static int extract_color (char *color) { char *sEnd; int col = 0; if (strncasecmp (color, "color", 5) != 0) return -2; color += 5; col = strtol (color, &sEnd, 10); if (color == sEnd || *sEnd != '\0' || errno == ERANGE) return -2; /* ensure used color is supported by the terminal */ if (col > COLORS) FATAL ("Terminal doesn't support color: %d - max colors: %d", col, COLORS); return col; } /* Assign the background and foreground color number from the given * config string to GColorPair. * * On error, 1 is returned. * On success, 0 is returned. */ static int parse_bg_fg_color (GColorPair *pair, const char *value) { char bgcolor[COLOR_STR_LEN] = "", fgcolor[COLOR_STR_LEN] = ""; int ret = 0; if (sscanf (value, "%8[^:]:%8[^ ]", fgcolor, bgcolor) != 2) return 1; if ((pair->bg = extract_color (bgcolor)) == -2) ret = 1; if ((pair->fg = extract_color (fgcolor)) == -2) ret = 1; return ret; } /* Assign color attributes from the given config string to GColors. */ static void locate_attr_color (GColors *color, const char *attr) { if (strstr (attr, "bold")) color->attr |= A_BOLD; if (strstr (attr, "underline")) color->attr |= A_UNDERLINE; if (strstr (attr, "normal")) color->attr |= A_NORMAL; if (strstr (attr, "reverse")) color->attr |= A_REVERSE; if (strstr (attr, "standout")) color->attr |= A_REVERSE; if (strstr (attr, "blink")) color->attr |= A_BLINK; } /* Parse color attributes from the given config string. * * On error, 1 is returned. * On success, 0 is returned. */ static int parse_attr_color (GColors *color, const char *value) { char *line, *ptr, *start; int ret = 0; line = xstrdup (value); start = strchr (line, ' '); if ((!start) || (!*(start + 1))) { LOG_DEBUG (("attempted to parse color attr: %s\n", value)); goto clean; } start++; while (1) { if ((ptr = strpbrk (start, ", ")) != NULL) *ptr = 0; locate_attr_color (color, start); if (ptr == NULL) break; start = ptr + 1; } clean: free (line); return ret; } /* Parse color module from the given config string. * * On error, 1 is returned. * On success, 0 is returned. */ static int parse_module_color (GColors *color, const char *value) { char *line = xstrdup (value), *p; p = strrchr (line, ' '); if (!p || !*(p + 1)) { LOG_DEBUG (("attempted to parse color module: %s\n", value)); goto clean; } if ((color->module = get_module_enum (p + 1)) == -1) LOG_DEBUG (("attempted to parse color module: %s\n", value)); clean: free (line); return 0; } /* Find a color by item and module attributes on the list of already * parsed colors. * * If color exists, 1 is returned. * If color does not exist, 1 is returned. */ static int find_color_in_list (void *data, void *color) { GColors *new_color = color; GColors *old_color = data; if (old_color->item != new_color->item) return 0; if (old_color->module != new_color->module) return 0; return 1; } /* Find a color by foreground and background attributes on the list of * already parsed colors. * * If color exists, 1 is returned. * If color does not exist, 1 is returned. */ static int find_pair_in_list (void *data, void *color) { GColorPair *new_color = color; GColorPair *old_color = data; if (old_color->fg != new_color->fg) return 0; if (old_color->bg != new_color->bg) return 0; return 1; } /* Compare a color item (GColorItem) that has no module with the given needle * item. * * If the items match and with no module, 1 is returned. * If condition is not satisfied, 0 is returned. */ static int find_color_item_in_list (void *data, void *needle) { GColors *color = data; GColorItem *item = needle; return color->item == (GColorItem) (*(int *) item) && color->module == -1; } /* Compare a color item (GColorItem) and module with the given needle item. * * If the items match and with no module, 1 is returned. * If condition is not satisfied, 0 is returned. */ static int find_color_item_module_in_list (void *data, void *needle) { GColors *color = data; GColors *item = needle; return color->item == item->item && color->module == item->module; } /* Get color item properties given an item (enumerated). * * On error, it aborts. * On success, the color item properties are returned, or NULL if no match * found. */ GColors * get_color (GColorItem item) { GColorItem normal = COLOR_NORMAL; GSLList *match = NULL; if ((match = list_find (color_list, find_color_item_in_list, &item))) return (GColors *) match->data; if ((match = list_find (color_list, find_color_item_in_list, &normal))) return (GColors *) match->data; /* should not get here */ FATAL ("Unable to find color item %d", item); } /* Get color item properties given an item (enumerated) and its module. * * On error, it aborts. * On success, the color item properties are returned, or NULL if no match * found. */ GColors * get_color_by_item_module (GColorItem item, GModule module) { GColors *needle = new_gcolors (), *color = NULL; GSLList *match = NULL; needle->module = module; needle->item = item; /* find color for specific item/module pair */ if ((match = list_find (color_list, find_color_item_module_in_list, needle))) color = match->data; /* attempt to find color by item (fallback) */ if (!color) color = get_color (item); free (needle); return color; } /* Parse a color definition line from the config file. * * On error, it aborts. * On success, the color properties are assigned */ static void parse_color_line (GColorPair *pair, GColors *color, char *line) { char *val; int item = 0; size_t idx; /* key */ idx = strcspn (line, " \t"); if (strlen (line) == idx) FATAL ("Malformed color key at line: %s", line); line[idx] = '\0'; if ((item = get_color_item_enum (line)) == -1) FATAL ("Unable to find color key: %s", line); /* value */ val = line + (idx + 1); idx = strspn (val, " \t"); if (strlen (val) == idx) FATAL ("Malformed color value at line: %s", line); val = val + idx; /* get background/foreground color */ if (parse_bg_fg_color (pair, val) == 1) FATAL ("Invalid bg/fg color pairs at: %s %s", line, val); if (parse_attr_color (color, val) == 1) FATAL ("Invalid color attrs at: %s %s", line, val); if (parse_module_color (color, val) == 1) FATAL ("Invalid color module at: %s %s", line, val); color->item = item; } /* Attempt to prepend the given color on our color linked list. * * On error, or if color already exists, the given color is freed. * On success, or if not color found, store color properties */ static void prepend_color (GColors **color) { /* create a list of colors if one does not exist */ if (color_list == NULL) { color_list = list_create (*color); } /* attempt to find the given color data type (by item and attributes) in * our color list */ else if (list_find (color_list, find_color_in_list, *color)) { /* if found, free the recently malloc'd color data type and use * existing color */ free (*color); *color = NULL; } else { /* not a dup, so insert the new color in our color list */ color_list = list_insert_prepend (color_list, *color); } } /* Parse a color definition line from the config file and store it on a single * linked-list. * * On error, it aborts. * On success, the color properties are stored */ static void parse_color (char *line) { GSLList *match = NULL; GColors *color = NULL; GColorPair *pair = NULL; color = new_gcolors (); pair = new_gcolorpair (); /* extract a color pair and color attributes from the given config line */ parse_color_line (pair, color, line); /* create a pair color list if one doesn't exist */ if (pair_list == NULL) { pair_list = list_create (pair); } /* attempt to find the given color pair in our pair list */ else if ((match = list_find (pair_list, find_pair_in_list, pair))) { /* pair found, use new pair and free existing one */ free (pair); pair = (GColorPair *) match->data; } /* pair not found, use it then */ else { pair->idx += list_count (pair_list); pair_list = list_insert_prepend (pair_list, pair); } /* set color pair */ color->pair = pair; prepend_color (&color); /* if no color pair was found, then we init the color pair */ if (!match && color) init_pair (color->pair->idx, color->pair->fg, color->pair->bg); free (line); } /* Iterate over all color definitions in the config file. * * On error, it aborts. * On success, the color properties are parsed and stored */ static void parse_colors (const char *const colors[], size_t n) { char *line; size_t i; for (i = 0; i < n; ++i) { line = strdup (colors[i]); /* did not find a valid format */ if (strchr (line, ':') == NULL) { free (line); continue; } parse_color (line); } } /* Use default color definitions if necessary. */ static void add_default_colors (void) { /* no colors */ if (COLORS < 8) parse_colors (nocolors, ARRAY_SIZE (nocolors)); /* 256 colors, and no color scheme set or set to monokai */ if (COLORS == 256 && (!conf.color_scheme || conf.color_scheme == MONOKAI)) parse_colors (colors256_monokai, ARRAY_SIZE (colors256_monokai)); /* otherwise use 16 colors scheme */ else if (COLORS > 16) { if (conf.color_scheme == STD_GREEN) parse_colors (colors256_green, ARRAY_SIZE (colors256_green)); else parse_colors (colors256_mono, ARRAY_SIZE (colors256_mono)); } /* 8 colors */ if (COLORS >= 8 && COLORS <= 16) { if (conf.color_scheme == STD_GREEN) parse_colors (colors8_green, ARRAY_SIZE (colors8_green)); else parse_colors (colors8_mono, ARRAY_SIZE (colors8_mono)); } } /* Entry point to parse color definitions or use default colors */ void set_colors (int force) { errno = 0; if (conf.color_idx > 0 && !force) parse_colors (conf.colors, conf.color_idx); else add_default_colors (); } ================================================ FILE: src/color.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef COLOR_H_INCLUDED #define COLOR_H_INCLUDED #define COLOR_STR_LEN 9 /* Color Items/Fields */ typedef enum CSTM_COLORS { COLOR_NORMAL, COLOR_MTRC_HITS, COLOR_MTRC_VISITORS, COLOR_MTRC_DATA, COLOR_MTRC_BW, COLOR_MTRC_AVGTS, COLOR_MTRC_CUMTS, COLOR_MTRC_MAXTS, COLOR_MTRC_PROT, COLOR_MTRC_MTHD, COLOR_MTRC_HITS_PERC, COLOR_MTRC_HITS_PERC_MAX, COLOR_MTRC_VISITORS_PERC, COLOR_MTRC_VISITORS_PERC_MAX, COLOR_MTRC_BW_PERC, COLOR_MTRC_BW_PERC_MAX, COLOR_PANEL_COLS, COLOR_BARS, COLOR_SUBBARS, COLOR_CHART_AXIS, COLOR_CHART_VALUES, COLOR_ERROR, COLOR_SELECTED, COLOR_PANEL_ACTIVE, COLOR_PANEL_HEADER, COLOR_PANEL_DESC, COLOR_OVERALL_LBLS, COLOR_OVERALL_VALS, COLOR_OVERALL_PATH, COLOR_ACTIVE_LABEL, COLOR_BG, COLOR_DEFAULT, COLOR_PROGRESS, } GColorItem; /* Default Color Schemes */ typedef enum SCHEMES { NO_COLOR, MONOCHROME, STD_GREEN, MONOKAI, } GSchemes; #include "commons.h" /* Each color properties */ typedef struct GColorPair_ { short idx; /* color pair index identifier */ short fg; /* foreground color */ short bg; /* background color */ } GColorPair; /* Color */ typedef struct GColors_ { GColorItem item; /* screen item */ GColorPair *pair; /* color pair */ int attr; /* color attributes, e.g., bold */ short module; /* panel */ int pair_idx; } GColors; GColors *color_default (void); GColors *color_error (void); GColors *color_overall_lbls (void); GColors *color_overall_path (void); GColors *color_overall_vals (void); GColors *color_panel_active (void); GColors *color_panel_desc (void); GColors *color_panel_header (void); GColors *color_progress (void); GColors *color_selected (void); GColors *get_color_by_item_module (GColorItem item, GModule module); GColors *get_color (GColorItem item); GColors *get_color_normal (void); void free_color_lists (void); void set_colors (int force); void set_normal_color (void); #endif // for #ifndef COLOR_H ================================================ FILE: src/commons.c ================================================ /** * commons.c -- holds different data types * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "commons.h" #include "labels.h" #include "settings.h" #include "util.h" #include "xmalloc.h" /* processing time */ time_t end_proc; time_t timestamp; time_t start_proc; /* list of available modules/panels */ int module_list[TOTAL_MODULES] = {[0 ... TOTAL_MODULES - 1] = -1 }; /* *INDENT-OFF* */ /* String modules to enumerated modules */ static const GEnum enum_modules[] = { {"VISITORS" , VISITORS} , {"REQUESTS" , REQUESTS} , {"REQUESTS_STATIC" , REQUESTS_STATIC} , {"NOT_FOUND" , NOT_FOUND} , {"HOSTS" , HOSTS} , {"OS" , OS} , {"BROWSERS" , BROWSERS} , {"VISIT_TIMES" , VISIT_TIMES} , {"VIRTUAL_HOSTS" , VIRTUAL_HOSTS} , {"REFERRERS" , REFERRERS} , {"REFERRING_SITES" , REFERRING_SITES} , {"KEYPHRASES" , KEYPHRASES} , {"STATUS_CODES" , STATUS_CODES} , {"REMOTE_USER" , REMOTE_USER} , {"CACHE_STATUS" , CACHE_STATUS} , #ifdef HAVE_GEOLOCATION {"GEO_LOCATION" , GEO_LOCATION} , {"ASN" , ASN} , #endif {"MIME_TYPE" , MIME_TYPE} , {"TLS_TYPE" , TLS_TYPE} , }; /* *INDENT-ON* */ /* Get number of items per panel/level to parse. * * If is_sub is true, returns sub-item limits, otherwise returns panel limits. * The number of items per panel/level is returned. */ static uint32_t get_max_choices_internal (int is_sub) { char *csv = NULL, *json = NULL, *html = NULL; int max = MAX_CHOICES; int rt_default = is_sub ? MAX_CHOICES_SUB_RT : MAX_CHOICES_RT; /* no max choices, return defaults */ if (conf.max_items <= 0) return conf.real_time_html ? rt_default : (conf.date_spec_hr == 2 ? MAX_CHOICES_MINUTE : MAX_CHOICES); /* TERM */ if (!conf.output_stdout) return conf.max_items > MAX_CHOICES ? MAX_CHOICES : conf.max_items; /* REAL-TIME STDOUT */ /* real time HTML, display max rt choices - always cap at MAX_CHOICES_RT */ if (conf.real_time_html) return conf.max_items > MAX_CHOICES_RT ? MAX_CHOICES_RT : conf.max_items; /* STDOUT */ /* CSV - allow n amount of choices */ if (find_output_type (&csv, "csv", 1) == 0) max = conf.max_items; /* JSON - allow n amount of choices */ if (find_output_type (&json, "json", 1) == 0 && conf.max_items > 0) max = conf.max_items; /* HTML - takes priority on cases where multiple outputs were given. Note that * we check either for an .html extension or we assume not extension was passed * via -o and therefore we are redirecting the output to a file. */ if (find_output_type (&html, "html", 1) == 0 || conf.output_format_idx == 0) max = conf.max_items; free (csv); free (html); free (json); return max; } /* Get number of items per panel to parse. */ uint32_t get_max_choices (void) { return get_max_choices_internal (0); } /* Get number of sub-items per hierarchy level to parse. */ uint32_t get_max_choices_sub (void) { return get_max_choices_internal (1); } /* Calculate a percentage. * * The percentage is returned. */ float get_percentage (unsigned long long total, unsigned long long hit) { return (total == 0 ? 0 : (((float) hit) / total) * 100); } /* Display the storage being used. */ void display_storage (void) { fprintf (stdout, "%s\n", BUILT_WITH_DEFHASH); } /* Display the path of the default configuration file when `-p` is not used */ void display_default_config_file (void) { char *path = get_config_file_path (); if (!path) { fprintf (stdout, "%s\n", ERR_NODEF_CONF_FILE); fprintf (stdout, "%s `-p /path/goaccess.conf`\n", ERR_NODEF_CONF_FILE_DESC); } else { fprintf (stdout, "%s\n", path); free (path); } } /* Display the current version. */ void display_version (void) { fprintf (stdout, "GoAccess - %s.\n", GO_VERSION); fprintf (stdout, "%s: %s\n", INFO_MORE_INFO, GO_WEBSITE); fprintf (stdout, "Copyright (C) 2009-2024 by Gerardo Orellana\n"); fprintf (stdout, "\nBuild configure arguments:\n"); #ifdef DEBUG fprintf (stdout, " --enable-debug\n"); #endif #ifdef HAVE_NCURSESW_NCURSES_H fprintf (stdout, " --enable-utf8\n"); #endif #ifdef HAVE_LIBGEOIP fprintf (stdout, " --enable-geoip=legacy\n"); #endif #ifdef HAVE_LIBMAXMINDDB fprintf (stdout, " --enable-geoip=mmdb\n"); #endif #ifdef WITH_GETLINE fprintf (stdout, " --with-getline\n"); #endif #ifdef HAVE_LIBSSL fprintf (stdout, " --with-openssl\n"); #endif } /* Get the enumerated value given a string. * * On error, -1 is returned. * On success, the enumerated module value is returned. */ int str2enum (const GEnum map[], int len, const char *str) { int i; for (i = 0; i < len; ++i) { if (!strcmp (str, map[i].str)) return map[i].idx; } return -1; } /* Get the string value given an enum. * * On error, -1 is returned. * On success, the enumerated module value is returned. */ const char * enum2str (const GEnum map[], int len, int idx) { int i; for (i = 0; i < len; ++i) { if (idx == map[i].idx) return map[i].str; } return NULL; } /* Get the enumerated module value given a module string. * * On error, -1 is returned. * On success, the enumerated module value is returned. */ int get_module_enum (const char *str) { return str2enum (enum_modules, ARRAY_SIZE (enum_modules), str); } /* Get the module string value given a module enum value. * * On error, NULL is returned. * On success, the string module value is returned. */ const char * get_module_str (GModule module) { return enum2str (enum_modules, ARRAY_SIZE (enum_modules), module); } /* Instantiate a new GAgents structure. * * On success, the newly malloc'd structure is returned. */ GAgents * new_gagents (uint32_t size) { GAgents *agents = xmalloc (sizeof (GAgents)); memset (agents, 0, sizeof *agents); agents->items = xcalloc (size, sizeof (GAgentItem)); agents->size = size; agents->idx = 0; return agents; } /* Clean the array of agents. */ void free_agents_array (GAgents *agents) { int i; if (agents == NULL) return; /* clean stuff up */ for (i = 0; i < agents->idx; ++i) free (agents->items[i].agent); if (agents->items) free (agents->items); free (agents); } /* Determine if the given date format is a timestamp. * * If not a timestamp, 0 is returned. * If it is a timestamp, 1 is returned. */ int has_timestamp (const char *fmt) { if (strcmp ("%s", fmt) == 0 || strcmp ("%f", fmt) == 0) return 1; return 0; } /* Determine if the given module is set to be enabled. * * If enabled, 1 is returned, else 0 is returned. */ int enable_panel (GModule mod) { int i, module; for (i = 0; i < conf.enable_panel_idx; ++i) { if ((module = get_module_enum (conf.enable_panels[i])) == -1) continue; if (mod == (unsigned int) module) { return 1; } } return 0; } /* Determine if the given module is set to be ignored. * * If ignored, 1 is returned, else 0 is returned. */ int ignore_panel (GModule mod) { int i, module; for (i = 0; i < conf.ignore_panel_idx; ++i) { if ((module = get_module_enum (conf.ignore_panels[i])) == -1) continue; if (mod == (unsigned int) module) { return 1; } } return 0; } /* Get the number of available modules/panels. * * The number of modules available is returned. */ uint32_t get_num_modules (void) { size_t idx = 0; uint32_t num = 0; FOREACH_MODULE (idx, module_list) { num++; } return num; } /* Get the index from the module_list given a module. * * If the module is not within the array, -1 is returned. * If the module is within the array, the index is returned. */ int get_module_index (int module) { size_t idx = 0; FOREACH_MODULE (idx, module_list) { if (module_list[idx] == module) return idx; } return -1; } /* Remove the given module from the module_list array. * * If the module is not within the array, 1 is returned. * If the module is within the array, it is removed from the array and * 0 is returned. */ int remove_module (GModule module) { int idx = get_module_index (module); if (idx == -1) return 1; if (idx < TOTAL_MODULES - 1) memmove (&module_list[idx], &module_list[idx + 1], ((TOTAL_MODULES - 1) - idx) * sizeof (module_list[0])); module_list[TOTAL_MODULES - 1] = -1; return 0; } /* Find the next module given the current module. * * The next available module in the array is returned. */ int get_next_module (GModule module) { int next = get_module_index (module) + 1; if (next == TOTAL_MODULES || module_list[next] == -1) return module_list[0]; return module_list[next]; } /* Find the previous module given the current module. * * The previous available module in the array is returned. */ int get_prev_module (GModule module) { int i; int next = get_module_index (module) - 1; if (next >= 0 && module_list[next] != -1) return module_list[next]; for (i = TOTAL_MODULES - 1; i >= 0; i--) { if (module_list[i] != -1) { return module_list[i]; } } return 0; } /* Perform some additional tasks to panels before they are being * parsed. * * Note: This overwrites --enable-panel since it assumes there's * truly nothing to do with the panel */ void verify_panels (void) { int ignore_panel_idx = conf.ignore_panel_idx; /* Remove virtual host panel if no '%v' within log format */ if (!conf.log_format) return; if (!strstr (conf.log_format, "%v") && ignore_panel_idx < TOTAL_MODULES && !conf.fname_as_vhost) { if (str_inarray ("VIRTUAL_HOSTS", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (VIRTUAL_HOSTS); } if (!strstr (conf.log_format, "%e") && ignore_panel_idx < TOTAL_MODULES) { if (str_inarray ("REMOTE_USER", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (REMOTE_USER); } if (!strstr (conf.log_format, "%C") && ignore_panel_idx < TOTAL_MODULES) { if (str_inarray ("CACHE_STATUS", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (CACHE_STATUS); } if (!strstr (conf.log_format, "%M") && ignore_panel_idx < TOTAL_MODULES) { if (str_inarray ("MIME_TYPE", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (MIME_TYPE); } if (!strstr (conf.log_format, "%K") && ignore_panel_idx < TOTAL_MODULES) { if (str_inarray ("TLS_TYPE", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (TLS_TYPE); } #ifdef HAVE_GEOLOCATION #ifdef HAVE_LIBMAXMINDDB if (!conf.geoip_db_idx && ignore_panel_idx < TOTAL_MODULES) { if (str_inarray ("GEO_LOCATION", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (GEO_LOCATION); } if (!conf.geoip_db_idx && ignore_panel_idx < TOTAL_MODULES) { if (str_inarray ("ASN", conf.ignore_panels, ignore_panel_idx) < 0) remove_module (ASN); } #endif #endif } /* Build an array of available modules (ignores listed panels). * * If there are no modules enabled, 0 is returned. * On success, the first enabled module is returned. */ int init_modules (void) { GModule module; int i; /* init - terminating with -1 */ for (module = 0; module < TOTAL_MODULES; ++module) module_list[module] = -1; for (i = 0, module = 0; module < TOTAL_MODULES; ++module) { if (!ignore_panel (module) || enable_panel (module)) { module_list[i++] = module; } } return module_list[0] > -1 ? module_list[0] : 0; } /* Get the logs size. * * If log was piped (from stdin), 0 is returned. * On success, it adds up all log sizes and its value is returned. * if --log-size was specified, it will be returned explicitly */ intmax_t get_log_sizes (void) { int i; off_t size = 0; /* --log-size */ if (conf.log_size > 0) return (intmax_t) conf.log_size; for (i = 0; i < conf.filenames_idx; ++i) { if (conf.filenames[i][0] == '-' && conf.filenames[i][1] == '\0') size += 0; else size += file_size (conf.filenames[i]); } return (intmax_t) size; } /* Get the log sources used. * * On success, a newly malloc'd string containing the log source either * from filename(s) and/or STDIN is returned. */ char * get_log_source_str (int max_len) { char *str = xstrdup (""); int i, len = 0; for (i = 0; i < conf.filenames_idx; ++i) { if (conf.filenames[i][0] == '-' && conf.filenames[i][1] == '\0') append_str (&str, "STDIN"); else append_str (&str, conf.filenames[i]); if (i != conf.filenames_idx - 1) append_str (&str, "; "); } len = strlen (str); if (max_len > 0 && len > 0 && len > max_len) { str[max_len - 3] = 0; append_str (&str, "..."); } return str; } ================================================ FILE: src/commons.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifndef COMMONS_H_INCLUDED #define COMMONS_H_INCLUDED #include <time.h> #include <stdint.h> #include "gslist.h" /* Remove the __attribute__ stuff when the compiler is not GCC. */ #if !__GNUC__ #define __attribute__(x) /**/ #endif #define GO_UNUSED __attribute__((unused)) #define GO_VERSION "1.10.1" #define GO_WEBSITE "https://goaccess.io/" extern struct tm now_tm; /* common char array buffer size */ #define INIT_BUF_SIZE 1024 /* total number of modules */ #ifdef HAVE_GEOLOCATION #define TOTAL_MODULES 19 #else #define TOTAL_MODULES 17 #endif /* maximum number of items within a panel */ #define MAX_CHOICES 366 /* real-time */ #define MAX_CHOICES_RT 50 /* real-time sub-items */ #define MAX_CHOICES_SUB_RT 10 /* max default items when date-spec = min */ #define MAX_CHOICES_MINUTE 1440 /* 24hrs */ /* date and time length - e.g., 2016/12/12 12:12:12 -0600 */ #define DATE_TIME 25 + 1 /* date length - e.g., 2016/12/12 */ #define DATE_LEN 10 + 1 /* date length - e.g., 12:12:12 */ #define TIME_LEN 8 + 1 /* hour + ':' + min length - e.g., 12:12 */ #define HRMI_LEN 4 + 1 + 1 #define YR_FMT "%Y" #define MO_FMT "%M" #define DT_FMT "%d" /* maximum protocol string length */ #define REQ_PROTO_LEN 9 #define IGNORE_LEVEL_PANEL 1 #define IGNORE_LEVEL_REQ 2 /* Type of IP */ typedef enum { TYPE_IPINV, TYPE_IPV4, TYPE_IPV6 } GTypeIP; /* Type of Modules */ typedef enum MODULES { VISITORS, REQUESTS, REQUESTS_STATIC, NOT_FOUND, HOSTS, OS, BROWSERS, VISIT_TIMES, VIRTUAL_HOSTS, REFERRERS, REFERRING_SITES, KEYPHRASES, STATUS_CODES, REMOTE_USER, CACHE_STATUS, #ifdef HAVE_GEOLOCATION GEO_LOCATION, ASN, #endif MIME_TYPE, TLS_TYPE, } GModule; /* Total number of storage metrics (GSMetric) */ #define GSMTRC_TOTAL 19 /* Enumerated Storage Metrics */ typedef enum GSMetric_ { MTRC_KEYMAP, MTRC_ROOTMAP, MTRC_DATAMAP, MTRC_UNIQMAP, MTRC_ROOT, MTRC_HITS, MTRC_VISITORS, MTRC_BW, MTRC_CUMTS, MTRC_MAXTS, MTRC_METHODS, MTRC_PROTOCOLS, MTRC_AGENTS, MTRC_METADATA, MTRC_UNIQUE_KEYS, MTRC_AGENT_KEYS, MTRC_AGENT_VALS, MTRC_CNT_VALID, MTRC_CNT_BW, } GSMetric; /* Metric totals. These are metrics that have a percent value and are * calculated values. */ typedef struct GPercTotals_ { uint32_t hits; /* total valid hits */ uint32_t visitors; /* total visitors */ uint64_t bw; /* total bandwidth */ } GPercTotals; /* Metrics within GHolder or GDashData */ typedef struct GMetrics { /* metric id can be used to identify * a specific data field */ uint8_t id; char *data; char *method; char *protocol; float hits_perc; float visitors_perc; float bw_perc; uint64_t hits; uint64_t visitors; uint64_t nbw; /* holder has a numeric value, while * dashboard has a displayable string value */ union { char *sts; uint64_t nts; } avgts; /* holder has a numeric value, while * dashboard has a displayable string value */ union { char *sts; uint64_t nts; } cumts; /* holder has a numeric value, while * dashboard has a displayable string value */ union { char *sts; uint64_t nts; } maxts; } GMetrics; /* Forward declaration for recursive sub-items */ typedef struct GSubList_ GSubList; /* Holder sub item */ typedef struct GSubItem_ { GModule module; GMetrics *metrics; GSubList *sub_list; struct GSubItem_ *prev; struct GSubItem_ *next; } GSubItem; /* Double linked-list of sub items */ struct GSubList_ { uint32_t size; struct GSubItem_ *head; struct GSubItem_ *tail; }; /* Holder item */ typedef struct GHolderItem_ { GSubList *sub_list; GMetrics *metrics; } GHolderItem; /* Holder of GRawData */ typedef struct GHolder_ { GHolderItem *items; /* holder items */ GModule module; /* current module */ uint32_t idx; /* holder index */ uint32_t holder_size; /* number of allocated items */ uint32_t ht_size; /* size of the hash table/store */ uint32_t sub_items_size; /* number of sub items */ uint32_t max_choices; /* max items at root level */ uint32_t max_choices_sub; /* max items at sub-item levels */ } GHolder; /* Enum-to-string */ typedef struct GEnum_ { const char *str; int idx; } GEnum; /* A metric can contain a root/data/uniq node id */ typedef struct GDataMap_ { int data; int root; } GDataMap; typedef struct GAgentItem_ { char *agent; } GAgentItem; typedef struct GAgents_ { int size; int idx; struct GAgentItem_ *items; } GAgents; #define FOREACH_MODULE(item, array) \ for (; (item < ARRAY_SIZE(array)) && array[item] != -1; ++item) /* Processing time */ extern time_t end_proc; extern time_t timestamp; extern time_t start_proc; /* list of available modules/panels */ extern int module_list[TOTAL_MODULES]; /* *INDENT-OFF* */ GAgents *new_gagents (uint32_t size); void free_agents_array (GAgents *agents); const char *enum2str (const GEnum map[], int len, int idx); const char *get_module_str (GModule module); float get_percentage (unsigned long long total, unsigned long long hit); uint32_t get_max_choices (void); uint32_t get_max_choices_sub (void); int get_module_enum (const char *str); int has_timestamp (const char *fmt); int str2enum (const GEnum map[], int len, const char *str); int enable_panel (GModule mod); int get_module_index (int module); int get_next_module (GModule module); int get_prev_module (GModule module); int ignore_panel (GModule mod); int init_modules (void); int remove_module(GModule module); uint32_t get_num_modules (void); void verify_panels (void); char *get_log_source_str (int max_len); intmax_t get_log_sizes (void); void display_default_config_file (void); void display_storage (void); void display_version (void); /* *INDENT-ON* */ #endif ================================================ FILE: src/csv.c ================================================ /** * output.c -- output csv to the standard output stream * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <inttypes.h> #include "csv.h" #include "error.h" #include "gkhash.h" #include "ui.h" #include "util.h" struct tm now_tm; /* Panel output */ typedef struct GPanel_ { GModule module; void (*render) (FILE * fp, GHolder * h, GPercTotals totals); } GPanel; static void print_csv_data (FILE * fp, GHolder * h, GPercTotals totals); /* *INDENT-OFF* */ /* A function pointer for each panel */ static const GPanel paneling[] = { {VISITORS , print_csv_data} , {REQUESTS , print_csv_data} , {REQUESTS_STATIC , print_csv_data} , {NOT_FOUND , print_csv_data} , {HOSTS , print_csv_data} , {OS , print_csv_data} , {BROWSERS , print_csv_data} , {VISIT_TIMES , print_csv_data} , {VIRTUAL_HOSTS , print_csv_data} , {REFERRERS , print_csv_data} , {REFERRING_SITES , print_csv_data} , {KEYPHRASES , print_csv_data} , {STATUS_CODES , print_csv_data} , {REMOTE_USER , print_csv_data} , {CACHE_STATUS , print_csv_data} , #ifdef HAVE_GEOLOCATION {GEO_LOCATION , print_csv_data} , {ASN , print_csv_data} , #endif {MIME_TYPE , print_csv_data} , {TLS_TYPE , print_csv_data} , }; /* *INDENT-ON* */ /* Get a panel from the GPanel structure given a module. * * On error, or if not found, NULL is returned. * On success, the panel value is returned. */ static const GPanel * panel_lookup (GModule module) { int i, num_panels = ARRAY_SIZE (paneling); for (i = 0; i < num_panels; i++) { if (paneling[i].module == module) return &paneling[i]; } return NULL; } /* Iterate over the string and escape CSV output. */ static void escape_cvs_output (FILE *fp, char *s) { while (*s) { switch (*s) { case '"': fprintf (fp, "\"\""); break; default: fputc (*s, fp); break; } s++; } } /* Output metrics. * * On success, outputs item value. */ static void print_csv_metric_block (FILE *fp, GMetrics *nmetrics) { /* basic metrics */ fprintf (fp, "\"%" PRIu64 "\",", nmetrics->hits); fprintf (fp, "\"%4.2f%%\",", nmetrics->hits_perc); fprintf (fp, "\"%" PRIu64 "\",", nmetrics->visitors); fprintf (fp, "\"%4.2f%%\",", nmetrics->visitors_perc); /* bandwidth */ if (conf.bandwidth) { fprintf (fp, "\"%" PRIu64 "\",", nmetrics->nbw); fprintf (fp, "\"%4.2f%%\",", nmetrics->bw_perc); } /* time served metrics */ if (conf.serve_usecs) { fprintf (fp, "\"%" PRIu64 "\",", nmetrics->avgts.nts); fprintf (fp, "\"%" PRIu64 "\",", nmetrics->cumts.nts); fprintf (fp, "\"%" PRIu64 "\",", nmetrics->maxts.nts); } /* request method */ if (conf.append_method && nmetrics->method) fprintf (fp, "\"%s\"", nmetrics->method); fprintf (fp, ","); /* request protocol */ if (conf.append_protocol && nmetrics->protocol) fprintf (fp, "\"%s\"", nmetrics->protocol); fprintf (fp, ","); /* data field */ fprintf (fp, "\""); escape_cvs_output (fp, nmetrics->data); fprintf (fp, "\"\r\n"); } /* Output a sublist (double linked-list) items for a particular parent node. * * On error, it exits early. * On success, outputs item value. */ static void print_csv_sub_items (FILE *fp, GSubList *sub_list, GModule module, int parent_idx, GPercTotals totals, int depth) { GMetrics *nmetrics; GSubItem *iter; uint32_t i = 0; if (sub_list == NULL) return; for (iter = sub_list->head; iter; iter = iter->next, i++) { set_data_metrics (iter->metrics, &nmetrics, totals); fprintf (fp, "\"%u\",", i); /* idx */ fprintf (fp, "\"%d\",", parent_idx); /* parent idx */ fprintf (fp, "\"%s\",", module_to_id (module)); fprintf (fp, "\"%d\",", depth); /* depth */ /* output metrics */ print_csv_metric_block (fp, nmetrics); /* recurse into nested sub-items */ if (iter->sub_list != NULL) print_csv_sub_items (fp, iter->sub_list, module, i, totals, depth + 1); free (nmetrics); } } /* Output first-level items. * * On success, outputs item value. */ static void print_csv_data (FILE *fp, GHolder *h, GPercTotals totals) { GMetrics *nmetrics; uint32_t i; for (i = 0; i < h->idx; i++) { set_data_metrics (h->items[i].metrics, &nmetrics, totals); fprintf (fp, "\"%u\",", i); /* idx */ fprintf (fp, ","); /* no parent */ fprintf (fp, "\"%s\",", module_to_id (h->module)); /* output metrics */ print_csv_metric_block (fp, nmetrics); if (h->sub_items_size) print_csv_sub_items (fp, h->items[i].sub_list, h->module, i, totals, 1); free (nmetrics); } } #pragma GCC diagnostic ignored "-Wformat-nonliteral" /* Output general statistics information. */ static void print_csv_summary (FILE *fp) { char now[DATE_TIME]; char *source = NULL; const char *fmt; int i = 0; uint64_t total = 0; uint32_t t = 0; generate_time (); strftime (now, DATE_TIME, "%Y-%m-%d %H:%M:%S %z", &now_tm); /* generated date time */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%s\",\"%s\"\r\n"; fprintf (fp, fmt, i++, GENER_ID, now, OVERALL_DATETIME); /* total requests */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%" PRIu64 "\",\"%s\"\r\n"; total = ht_get_processed (); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_REQ); /* valid requests */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%" PRIu64 "\",\"%s\"\r\n"; total = ht_sum_valid (); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_VALID); /* invalid requests */ total = ht_get_invalid (); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_FAILED); /* generated time */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%u\",\"%s\"\r\n"; t = ht_get_processing_time (); fprintf (fp, fmt, i++, GENER_ID, t, OVERALL_GENTIME); /* visitors */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%" PRIu64 "\",\"%s\"\r\n"; total = ht_get_size_uniqmap (VISITORS); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_VISITORS); /* files */ total = ht_get_size_datamap (REQUESTS); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_FILES); /* excluded hits */ total = ht_get_excluded_ips (); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_EXCL_HITS); /* referrers */ total = ht_get_size_datamap (REFERRERS); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_REF); /* not found */ total = ht_get_size_datamap (NOT_FOUND); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_NOTFOUND); /* static files */ total = ht_get_size_datamap (REQUESTS_STATIC); fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_STATIC); /* log size */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%jd\",\"%s\"\r\n"; fprintf (fp, fmt, i++, GENER_ID, (intmax_t) get_log_sizes (), OVERALL_LOGSIZE); /* bandwidth */ fmt = "\"%d\",,\"%s\",,,,,,,,\"%" PRIu64 "\",\"%s\"\r\n"; fprintf (fp, fmt, i++, GENER_ID, ht_sum_bw (), OVERALL_BANDWIDTH); /* log path */ source = get_log_source_str (0); fmt = "\"%d\",,\"%s\",,,,,,,,\"%s\",\"%s\"\r\n"; fprintf (fp, fmt, i++, GENER_ID, source, OVERALL_LOG); free (source); } #pragma GCC diagnostic warning "-Wformat-nonliteral" /* Entry point to generate a csv report writing it to the fp */ void output_csv (GHolder *holder, const char *filename) { GModule module; GPercTotals totals; const GPanel *panel = NULL; size_t idx = 0; FILE *fp; fp = (filename != NULL) ? fopen (filename, "w") : stdout; if (!fp) FATAL ("Unable to open CSV file: %s.", strerror (errno)); if (!conf.no_csv_summary) print_csv_summary (fp); set_module_totals (&totals); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; if (!(panel = panel_lookup (module))) { continue; } panel->render (fp, holder + module, totals); } fclose (fp); } ================================================ FILE: src/csv.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifndef CSV_H_INCLUDED #define CSV_H_INCLUDED #include <stdio.h> #include "parser.h" #include "settings.h" void output_csv (GHolder * holder, const char *filename); #endif ================================================ FILE: src/dialogs.c ================================================ /** * dialogs.c -- UI dialog windows * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #if HAVE_CONFIG_H #include <config.h> #endif #include <stdlib.h> #include <string.h> #include "dialogs.h" #include "ui.h" #include "color.h" #include "error.h" #include "gkhash.h" #include "gmenu.h" #include "util.h" #include "xmalloc.h" /* Add the given user agent value into our array of GAgents. * * On error, 1 is returned. * On success, the user agent is added to the array and 0 is returned. */ static int set_agents (void *val, void *user_data) { GAgents *agents = user_data; GAgentItem *tmp = NULL; char *agent = NULL; int newlen = 0, i; if (!(agent = ht_get_host_agent_val (*(uint32_t *) val))) return 1; if (agents->size - 1 == agents->idx) { newlen = agents->size + 4; if (!(tmp = realloc (agents->items, newlen * sizeof (GAgentItem)))) FATAL ("Unable to realloc agents"); agents->items = tmp; agents->size = newlen; } for (i = 0; i < agents->idx; ++i) { if (strcmp (agent, agents->items[i].agent) == 0) { free (agent); return 0; } } agents->items[agents->idx++].agent = agent; return 0; } /* Iterate over the list of agents */ GAgents * load_host_agents (const char *addr) { GAgents *agents = NULL; GSLList *keys = NULL, *list = NULL; void *data = NULL; uint32_t items = 4, key = djb2 ((const unsigned char *) addr); keys = ht_get_keymap_list_from_key (HOSTS, key); if (!keys) return NULL; agents = new_gagents (items); /* *INDENT-OFF* */ GSLIST_FOREACH (keys, data, { if ((list = ht_get_host_agent_list (HOSTS, (*(uint32_t *) data)))) { list_foreach (list, set_agents, agents); list_remove_nodes (list); } }); /* *INDENT-ON* */ list_remove_nodes (keys); return agents; } /* Fill the given terminal dashboard menu with user agent data. * * On error, the 1 is returned. * On success, 0 is returned. */ static int fill_host_agents_gmenu (GMenu *menu, GAgents *agents) { int i; if (agents == NULL) return 1; menu->items = xcalloc (agents->idx, sizeof (GItem)); for (i = 0; i < agents->idx; ++i) { menu->items[i].name = xstrdup (agents->items[i].agent); menu->items[i].checked = 0; menu->size++; } return 0; } /* Render a list of agents if available for the selected host/IP. */ void load_agent_list (WINDOW *main_win, char *addr) { GMenu *menu; GAgents *agents = NULL; WINDOW *win; char buf[256]; int c, quit = 1, i; int y, x, list_h, list_w, menu_w, menu_h; if (!conf.list_agents) return; getmaxyx (stdscr, y, x); list_h = y / 2; list_w = x - 4; menu_h = list_h - AGENTS_MENU_Y - 1; menu_w = list_w - AGENTS_MENU_X - AGENTS_MENU_X; win = newwin (list_h, list_w, (y - list_h) / 2, (x - list_w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, menu_h, menu_w, AGENTS_MENU_Y, AGENTS_MENU_X); if (!(agents = load_host_agents (addr))) goto out; if (fill_host_agents_gmenu (menu, agents) != 0) goto out; post_gmenu (menu); snprintf (buf, sizeof buf, AGENTSDLG_HEAD, addr); draw_header (win, buf, " %s", 1, 1, list_w - 2, color_panel_header); mvwprintw (win, 2, 2, AGENTSDLG_DESC); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); break; case KEY_UP: gmenu_driver (menu, REQ_UP); break; case KEY_RESIZE: case 'q': quit = 0; break; } wrefresh (win); } touchwin (main_win); close_win (win); win = NULL; wrefresh (main_win); out: for (i = 0; i < menu->size; ++i) free (menu->items[i].name); if (menu->items) free (menu->items); free (menu); free_agents_array (agents); close_win (win); } /* Help menu data */ static const char *help_main[] = { "", "Copyright (C) 2009-2026 by Gerardo Orellana", "https://goaccess.io - <hello@goaccess.io>", "Released under the MIT License", "", "GoAccess is an open source real-time web log analyzer and", "interactive viewer that runs in a terminal in *nix systems or", "through your browser.", "", "KEYS:", "", "1-9,0 Jump to panel by position (1st, 2nd, ... 10th)", "TAB Forward module", "SHIFT+TAB Backward module", "g Move to the top/beginning of screen", "G Move to the bottom/end of screen", "j Scroll down within expanded module", "k Scroll up within expanded module", "^f Page down inside expanded module", "^b Page up inside expanded module", "ENTER Expand module", "o/O Expand selected module", "+ Expand selected item children", "- Collapse selected item children", "s Sort options for current module", "p Reorder panels", "/ Search across all modules (regex allowed)", "n Find next occurrence", "m/M Cycle through chart metrics (forward/backward)", "l/L Toggle logarithmic scale for current panel", "r/R Toggle reverse chronological order in charts", "c Set/change color scheme", "q Quit (or collapse if inside module)", "? This help", "", "Examples can be found by running 'man goaccess'.", "", "[Press any key to continue]" }; /* Render the help dialog. */ void load_help_popup (WINDOW *main_win) { int c, quit = 1; size_t i, n; int y, x, h = HELP_WIN_HEIGHT, w = HELP_WIN_WIDTH; int w2 = w - 2; WINDOW *win; GMenu *menu; n = ARRAY_SIZE (help_main); getmaxyx (stdscr, y, x); win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, HELP_MENU_HEIGHT, HELP_MENU_WIDTH, HELP_MENU_Y, HELP_MENU_X); menu->size = n; menu->items = (GItem *) xcalloc (n, sizeof (GItem)); for (i = 0; i < n; ++i) { menu->items[i].name = alloc_string (help_main[i]); menu->items[i].checked = 0; } post_gmenu (menu); draw_header (win, HELPDLG_HEAD, " %s", 1, 1, w2, color_panel_header); mvwprintw (win, 2, 2, HELPDLG_DESC); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); break; case KEY_UP: gmenu_driver (menu, REQ_UP); break; case KEY_RESIZE: case 'q': quit = 0; break; } wrefresh (win); } for (i = 0; i < n; ++i) free (menu->items[i].name); free (menu->items); free (menu); touchwin (main_win); close_win (win); wrefresh (main_win); } /* Render the sort dialog. */ void load_sort_win (WINDOW *main_win, GModule module, GSort *sort) { GMenu *menu; WINDOW *win; GSortField opts[SORT_MAX_OPTS]; int c, quit = 1; int i = 0, k, n = 0; int y, x, h = SORT_WIN_H, w = SORT_WIN_W; int w2 = w - 2; getmaxyx (stdscr, y, x); for (i = 0, k = 0; -1 != sort_choices[module][i]; i++) { GSortField field = sort_choices[module][i]; if (SORT_BY_CUMTS == field && !conf.serve_usecs) continue; else if (SORT_BY_MAXTS == field && !conf.serve_usecs) continue; else if (SORT_BY_AVGTS == field && !conf.serve_usecs) continue; else if (SORT_BY_BW == field && !conf.bandwidth) continue; else if (SORT_BY_PROT == field && !conf.append_protocol) continue; else if (SORT_BY_MTHD == field && !conf.append_method) continue; opts[k++] = field; n++; } win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, SORT_MENU_H, SORT_MENU_W, SORT_MENU_Y, SORT_MENU_X); menu->size = n; menu->selectable = 1; menu->items = (GItem *) xcalloc (n, sizeof (GItem)); for (i = 0; i < n; ++i) { GSortField field = sort_choices[module][opts[i]]; if (SORT_BY_HITS == field) { menu->items[i].name = alloc_string (MTRC_HITS_LBL); if (sort->field == SORT_BY_HITS) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_VISITORS == field) { menu->items[i].name = alloc_string (MTRC_VISITORS_LBL); if (sort->field == SORT_BY_VISITORS) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_DATA == field) { menu->items[i].name = alloc_string (MTRC_DATA_LBL); if (sort->field == SORT_BY_DATA) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_BW == field) { menu->items[i].name = alloc_string (MTRC_BW_LBL); if (sort->field == SORT_BY_BW) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_AVGTS == field) { menu->items[i].name = alloc_string (MTRC_AVGTS_LBL); if (sort->field == SORT_BY_AVGTS) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_CUMTS == field) { menu->items[i].name = alloc_string (MTRC_CUMTS_LBL); if (sort->field == SORT_BY_CUMTS) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_MAXTS == field) { menu->items[i].name = alloc_string (MTRC_MAXTS_LBL); if (sort->field == SORT_BY_MAXTS) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_PROT == field) { menu->items[i].name = alloc_string (MTRC_PROTOCOLS_LBL); if (sort->field == SORT_BY_PROT) { menu->items[i].checked = 1; menu->idx = i; } } else if (SORT_BY_MTHD == field) { menu->items[i].name = alloc_string (MTRC_METHODS_LBL); if (sort->field == SORT_BY_MTHD) { menu->items[i].checked = 1; menu->idx = i; } } } post_gmenu (menu); draw_header (win, SORTDLG_HEAD, " %s", 1, 1, w2, color_panel_header); mvwprintw (win, 2, 2, SORTDLG_DESC); if (sort->sort == SORT_ASC) mvwprintw (win, SORT_WIN_H - 2, 1, " %s", SORT_ASC_SEL); else mvwprintw (win, SORT_WIN_H - 2, 1, " %s", SORT_DESC_SEL); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); break; case KEY_UP: gmenu_driver (menu, REQ_UP); break; case 9: if (sort->sort == SORT_ASC) { sort->sort = SORT_DESC; mvwprintw (win, SORT_WIN_H - 2, 1, " %s", SORT_DESC_SEL); } else { sort->sort = SORT_ASC; mvwprintw (win, SORT_WIN_H - 2, 1, " %s", SORT_ASC_SEL); } break; case 32: case 0x0a: case 0x0d: case KEY_ENTER: gmenu_driver (menu, REQ_SEL); for (i = 0; i < n; ++i) { if (menu->items[i].checked != 1) continue; if (strcmp ("Hits", menu->items[i].name) == 0) sort->field = SORT_BY_HITS; else if (strcmp ("Visitors", menu->items[i].name) == 0) sort->field = SORT_BY_VISITORS; else if (strcmp ("Data", menu->items[i].name) == 0) sort->field = SORT_BY_DATA; else if (strcmp ("Tx. Amount", menu->items[i].name) == 0) sort->field = SORT_BY_BW; else if (strcmp ("Avg. T.S.", menu->items[i].name) == 0) sort->field = SORT_BY_AVGTS; else if (strcmp ("Cum. T.S.", menu->items[i].name) == 0) sort->field = SORT_BY_CUMTS; else if (strcmp ("Max. T.S.", menu->items[i].name) == 0) sort->field = SORT_BY_MAXTS; else if (strcmp ("Protocol", menu->items[i].name) == 0) sort->field = SORT_BY_PROT; else if (strcmp ("Method", menu->items[i].name) == 0) sort->field = SORT_BY_MTHD; quit = 0; break; } break; case KEY_RESIZE: case 'q': quit = 0; break; } wrefresh (win); } for (i = 0; i < n; ++i) free (menu->items[i].name); free (menu->items); free (menu); touchwin (main_win); close_win (win); wrefresh (main_win); } static void clear_confdlg_status_bar (WINDOW *win, int y, int x, int w) { draw_header (win, "", "%s", y, x, w + 1, color_default); } static char * get_input_date_format (void) { char *date_format = NULL; if (conf.date_format) date_format = escape_str (conf.date_format); return date_format; } static char * get_input_time_format (void) { char *time_format = NULL; if (conf.time_format) time_format = escape_str (conf.time_format); return time_format; } static char * get_input_log_format (void) { char *log_format = NULL; if (conf.log_format) log_format = escape_str (conf.log_format); return log_format; } static void draw_formats (WINDOW *win, int w2) { char *date_format = NULL, *log_format = NULL, *time_format = NULL; draw_header (win, CONFDLG_HEAD, " %s", 1, 1, w2, color_panel_header); mvwprintw (win, 2, 2, CONFDLG_KEY_HINTS); draw_header (win, CONFDLG_LOG_FORMAT, " %s", 11, 1, w2, color_panel_header); if ((log_format = get_input_log_format ())) { mvwprintw (win, 12, 2, "%.*s", CONF_MENU_W, log_format); free (log_format); } draw_header (win, CONFDLG_DATE_FORMAT, " %s", 14, 1, w2, color_panel_header); if ((date_format = get_input_date_format ())) { mvwprintw (win, 15, 2, "%.*s", CONF_MENU_W, date_format); free (date_format); } draw_header (win, CONFDLG_TIME_FORMAT, " %s", 17, 1, w2, color_panel_header); if ((time_format = get_input_time_format ())) { mvwprintw (win, 18, 2, "%.*s", CONF_MENU_W, time_format); free (time_format); } } static const char * set_formats (char *date_format, char *log_format, char *time_format) { if (!time_format && !conf.time_format) return ERR_FORMAT_NO_TIME_FMT_DLG; if (!date_format && !conf.date_format) return ERR_FORMAT_NO_DATE_FMT_DLG; if (!log_format && !conf.log_format) return ERR_FORMAT_NO_LOG_FMT_DLG; if (time_format) { free (conf.time_format); conf.time_format = unescape_str (time_format); } if (date_format) { free (conf.date_format); conf.date_format = unescape_str (date_format); } if (log_format) { free (conf.log_format); conf.log_format = unescape_str (log_format); } if (is_json_log_format (conf.log_format)) conf.is_json_log_format = 1; set_spec_date_format (); return NULL; } static void load_confdlg_error (WINDOW *parent_win, char **errors, int nerrors) { int c, quit = 1, i = 0; int y, x, h = ERR_WIN_HEIGHT, w = ERR_WIN_WIDTH; WINDOW *win; GMenu *menu; getmaxyx (stdscr, y, x); win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, ERR_MENU_HEIGHT, ERR_MENU_WIDTH, ERR_MENU_Y, ERR_MENU_X); menu->size = nerrors; menu->items = (GItem *) xcalloc (nerrors, sizeof (GItem)); for (i = 0; i < nerrors; ++i) { menu->items[i].name = alloc_string (errors[i]); menu->items[i].checked = 0; free (errors[i]); } free (errors); post_gmenu (menu); draw_header (win, ERR_FORMAT_HEADER, " %s", 1, 1, w - 2, color_error); mvwprintw (win, 2, 2, CONFDLG_DESC); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); break; case KEY_UP: gmenu_driver (menu, REQ_UP); break; case KEY_RESIZE: case 'q': quit = 0; break; } wrefresh (win); } for (i = 0; i < nerrors; ++i) free (menu->items[i].name); free (menu->items); free (menu); touchwin (parent_win); close_win (win); wrefresh (parent_win); } int render_confdlg (Logs *logs, GSpinner *spinner) { GMenu *menu; WINDOW *win; const char *log_err = NULL; char *date_format = NULL, *log_format = NULL, *time_format = NULL; char *cstm_log, *cstm_date, *cstm_time; int c, quit = 1, invalid = 1, y, x, h = CONF_WIN_H, w = CONF_WIN_W; int w2 = w - 2; size_t i, n, sel; static const char *const choices[] = { "NCSA Combined Log Format", "NCSA Combined Log Format with Virtual Host", "Common Log Format (CLF)", "Common Log Format (CLF) with Virtual Host", "W3C", "CloudFront (Download Distribution)", "Google Cloud Storage", "AWS Elastic Load Balancing (HTTP/S)", "Squid Native Format", "AWS Simple Storage Service (S3)", "CADDY JSON Structured", "AWS Application Load Balancer", "Traefik CLF flavor" }; n = ARRAY_SIZE (choices); getmaxyx (stdscr, y, x); win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, CONF_MENU_H, CONF_MENU_W, CONF_MENU_Y, CONF_MENU_X); menu->size = n; menu->selectable = 1; menu->items = (GItem *) xcalloc (n, sizeof (GItem)); for (i = 0; i < n; ++i) { menu->items[i].name = alloc_string (choices[i]); sel = get_selected_format_idx (); menu->items[i].checked = sel == i ? 1 : 0; } post_gmenu (menu); draw_formats (win, w2); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); clear_confdlg_status_bar (win, 3, 2, CONF_MENU_W); break; case KEY_UP: gmenu_driver (menu, REQ_UP); clear_confdlg_status_bar (win, 3, 2, CONF_MENU_W); break; case 32: gmenu_driver (menu, REQ_SEL); clear_confdlg_status_bar (win, 12, 1, CONF_MENU_W); clear_confdlg_status_bar (win, 15, 1, CONF_MENU_W); clear_confdlg_status_bar (win, 18, 1, CONF_MENU_W); if (time_format) free (time_format); if (date_format) free (date_format); if (log_format) free (log_format); for (i = 0; i < n; ++i) { if (menu->items[i].checked != 1) continue; date_format = get_selected_date_str (i); log_format = get_selected_format_str (i); time_format = get_selected_time_str (i); free (set_default_string (win, 12, 2, CONF_MENU_W, log_format)); free (set_default_string (win, 15, 2, CONF_MENU_W, date_format)); free (set_default_string (win, 18, 2, CONF_MENU_W, time_format)); break; } break; case 99: clear_confdlg_status_bar (win, 3, 2, CONF_MENU_W); wmove (win, 12, 2); if (!log_format) log_format = get_input_log_format (); cstm_log = input_string (win, 12, 2, CONF_MAX_LEN_DLG, log_format, 0, 0); if (cstm_log != NULL && *cstm_log != '\0') { if (log_format) free (log_format); log_format = alloc_string (cstm_log); free (cstm_log); } else { if (cstm_log) free (cstm_log); if (log_format) { free (log_format); log_format = NULL; } } break; case 100: clear_confdlg_status_bar (win, 3, 2, CONF_MENU_W); wmove (win, 15, 0); if (!date_format) date_format = get_input_date_format (); cstm_date = input_string (win, 15, 2, 14, date_format, 0, 0); if (cstm_date != NULL && *cstm_date != '\0') { if (date_format) free (date_format); date_format = alloc_string (cstm_date); free (cstm_date); } else { if (cstm_date) free (cstm_date); if (date_format) { free (date_format); date_format = NULL; } } break; case 116: clear_confdlg_status_bar (win, 3, 2, CONF_MENU_W); wmove (win, 15, 0); if (!time_format) time_format = get_input_time_format (); cstm_time = input_string (win, 18, 2, 14, time_format, 0, 0); if (cstm_time != NULL && *cstm_time != '\0') { if (time_format) free (time_format); time_format = alloc_string (cstm_time); free (cstm_time); } else { if (cstm_time) free (cstm_time); if (time_format) { free (time_format); time_format = NULL; } } break; case 274: case 0x0a: case 0x0d: case KEY_ENTER: if ((log_err = set_formats (date_format, log_format, time_format))) draw_header (win, log_err, " %s", 3, 2, CONF_MENU_W, color_error); if (!log_err) { char **errors = NULL; int nerrors = 0; if ((errors = test_format (logs, &nerrors))) { invalid = 1; load_confdlg_error (win, errors, nerrors); } else { reset_struct (logs); spinner->win = win; spinner->y = 3; spinner->x = 2; spinner->spin_x = CONF_MENU_W; spinner->w = CONF_MENU_W; spinner->color = color_progress; ui_spinner_create (spinner); invalid = 0; quit = 0; } } break; case KEY_RESIZE: case 'q': quit = 0; break; } pthread_mutex_lock (&spinner->mutex); wrefresh (win); pthread_mutex_unlock (&spinner->mutex); } free (time_format); free (date_format); free (log_format); for (i = 0; i < n; ++i) free (menu->items[i].name); free (menu->items); free (menu); return invalid ? 1 : 0; } static void scheme_chosen (const char *name) { int force = 0; free_color_lists (); if (strcmp ("Green", name) == 0) { conf.color_scheme = STD_GREEN; force = 1; } else if (strcmp ("Monochrome", name) == 0) { conf.color_scheme = MONOCHROME; force = 1; } else if (strcmp ("Monokai", name) == 0) { conf.color_scheme = MONOKAI; force = 1; } else if (strcmp ("Custom Scheme", name) == 0) { force = 0; } init_colors (force); } static const char ** get_color_schemes (size_t *size) { const char *choices[] = { "Monokai", "Monochrome", "Green", "Custom Scheme" }; int i, j, n = ARRAY_SIZE (choices); const char **opts = xmalloc (sizeof (char *) * n); for (i = 0, j = 0; i < n; ++i) { if (!conf.color_idx && !strcmp ("Custom Scheme", choices[i])) continue; if (COLORS < 256 && !strcmp ("Monokai", choices[i])) continue; opts[j++] = choices[i]; } *size = j; return opts; } void load_schemes_win (WINDOW *main_win) { GMenu *menu; WINDOW *win; int c, quit = 1; size_t i, n = 0; int y, x, h = SCHEME_WIN_H, w = SCHEME_WIN_W; int w2 = w - 2; const char **choices = get_color_schemes (&n); getmaxyx (stdscr, y, x); win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, SCHEME_MENU_H, SCHEME_MENU_W, SCHEME_MENU_Y, SCHEME_MENU_X); menu->size = n; menu->items = (GItem *) xcalloc (n, sizeof (GItem)); for (i = 0; i < n; ++i) { menu->items[i].name = alloc_string (choices[i]); menu->items[i].checked = 0; } post_gmenu (menu); draw_header (win, SCHEMEDLG_HEAD, " %s", 1, 1, w2, color_panel_header); mvwprintw (win, 2, 2, SCHEMEDLG_DESC); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); break; case KEY_UP: gmenu_driver (menu, REQ_UP); break; case 32: case 0x0a: case 0x0d: case KEY_ENTER: gmenu_driver (menu, REQ_SEL); for (i = 0; i < n; ++i) { if (menu->items[i].checked != 1) continue; scheme_chosen (choices[i]); break; } quit = 0; break; case KEY_RESIZE: case 'q': quit = 0; break; } wrefresh (win); } for (i = 0; i < n; ++i) free (menu->items[i].name); free (menu->items); free (menu); free (choices); touchwin (main_win); close_win (win); wrefresh (main_win); } static void swap_modules (int idx1, int idx2) { int tmp = module_list[idx1]; module_list[idx1] = module_list[idx2]; module_list[idx2] = tmp; } void load_panels_win (WINDOW *main_win) { GMenu *menu; WINDOW *win; int c, quit = 1; int i, n = 0; int y, x, h = PANELS_WIN_H, w = PANELS_WIN_W; int w2 = w - 2; int menu_h; char *tmp_name = NULL; size_t idx = 0; getmaxyx (stdscr, y, x); FOREACH_MODULE (idx, module_list) { n++; } menu_h = n < 14 ? n : 14; win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); menu = new_gmenu (win, menu_h, w - 4, PANELS_MENU_Y, PANELS_MENU_X); menu->size = n; menu->selectable = 0; menu->items = (GItem *) xcalloc (n, sizeof (GItem)); idx = 0; i = 0; FOREACH_MODULE (idx, module_list) { GModule module = module_list[idx]; const char *label = module_to_label (module); int pos = i + 1; menu->items[i].name = xmalloc (snprintf (NULL, 0, "%d. %s", pos, label) + 1); sprintf (menu->items[i].name, "%d. %s", pos, label); i++; } post_gmenu (menu); draw_header (win, "Reorder Panels", " %s", 1, 1, w2, color_panel_header); mvwprintw (win, 2, 2, "Numbers shown are keyboard shortcuts"); mvwprintw (win, h - 2, 2, "[Up/Down] Navigate [Enter] Move Down [q] Close"); wrefresh (win); while (quit) { c = wgetch (stdscr); switch (c) { case KEY_DOWN: gmenu_driver (menu, REQ_DOWN); break; case KEY_UP: gmenu_driver (menu, REQ_UP); break; case 'w': case 'W': case 575: if (menu->idx > 0) { swap_modules (menu->idx, menu->idx - 1); tmp_name = menu->items[menu->idx].name; menu->items[menu->idx].name = menu->items[menu->idx - 1].name; menu->items[menu->idx - 1].name = tmp_name; menu->idx--; post_gmenu (menu); } break; case 's': case 'S': case 534: if (menu->idx < n - 1) { swap_modules (menu->idx, menu->idx + 1); tmp_name = menu->items[menu->idx].name; menu->items[menu->idx].name = menu->items[menu->idx + 1].name; menu->items[menu->idx + 1].name = tmp_name; menu->idx++; post_gmenu (menu); } break; case KEY_RESIZE: case 'q': quit = 0; break; } wrefresh (win); } for (i = 0; i < n; ++i) free (menu->items[i].name); free (menu->items); free (menu); touchwin (main_win); close_win (win); wrefresh (main_win); } ================================================ FILE: src/dialogs.h ================================================ /** * dialogs.h -- UI dialog windows * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef DIALOGS_H_INCLUDED #define DIALOGS_H_INCLUDED #include "ui.h" #include "sort.h" void load_help_popup (WINDOW * main_win); void load_sort_win (WINDOW * main_win, GModule module, GSort * sort); void load_schemes_win (WINDOW * main_win); int render_confdlg (Logs * logs, GSpinner * spinner); GAgents *load_host_agents (const char *addr); void load_agent_list (WINDOW * main_win, char *addr); void load_panels_win (WINDOW * main_win); #endif ================================================ FILE: src/error.c ================================================ /** * error.c -- error handling * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> #if defined(__GLIBC__) #include <execinfo.h> #endif #include <inttypes.h> #include <sys/types.h> #include <unistd.h> #include "error.h" #include "labels.h" #include "parser.h" static FILE *access_log; static FILE *log_file; static FILE *log_invalid; static FILE *log_unknowns; static Logs *log_data; static struct sigaction old_sigsegv_handler; /* Open a debug file whose name is specified in the given path. */ void dbg_log_open (const char *path) { if (path != NULL) { log_file = fopen (path, "w"); if (log_file == NULL) return; } } /* Close the debug file. */ void dbg_log_close (void) { if (log_file != NULL) fclose (log_file); } /* Open the invalid requests log file whose name is specified in the * given path. */ void invalid_log_open (const char *path) { if (path != NULL) { log_invalid = fopen (path, "w"); if (log_invalid == NULL) return; } } /* Close the invalid requests log file. */ void invalid_log_close (void) { if (log_invalid != NULL) fclose (log_invalid); } /* Open the unknowns log file whose name is specified in the * given path. */ void unknowns_log_open (const char *path) { if (path != NULL) { log_unknowns = fopen (path, "w"); if (log_unknowns == NULL) return; } } /* Close the unknowns log file. */ void unknowns_log_close (void) { if (log_unknowns != NULL) fclose (log_unknowns); } /* Set current overall parsed log data. */ void set_signal_data (void *p) { log_data = p; } /* Open the WebSocket access log file whose name is specified in the * given path. */ int access_log_open (const char *path) { if (path == NULL) return 0; access_log = fopen (path, "a"); if (access_log == NULL) return 1; return 0; } /* Close the WebSocket access log file. */ void access_log_close (void) { if (access_log != NULL) fclose (access_log); } /* Set up sigsegv handler. */ void setup_sigsegv_handler (void) { struct sigaction act; sigemptyset (&act.sa_mask); act.sa_flags = (int) SA_RESETHAND; act.sa_handler = sigsegv_handler; sigaction (SIGSEGV, &act, &old_sigsegv_handler); } static void dump_struct_data (FILE *fp, GLog *glog, int pid) { fprintf (fp, "==%d== FILE: %s\n", pid, glog->props.filename); fprintf (fp, "==%d== Line number: %" PRIu64 "\n", pid, glog->processed); fprintf (fp, "==%d== Invalid data: %" PRIu64 "\n", pid, glog->invalid); fprintf (fp, "==%d== Piping: %d\n", pid, glog->piping); fprintf (fp, "==%d==\n", pid); } /* Dump to the standard output the values of the overall parsed log * data. */ static void dump_struct (FILE *fp) { int pid = getpid (), i; if (!log_data) return; fprintf (fp, "==%d== VALUES AT CRASH POINT\n", pid); fprintf (fp, "==%d==\n", pid); for (i = 0; i < log_data->size; ++i) dump_struct_data (fp, &log_data->glog[i], pid); } /* Custom SIGSEGV handler. */ void sigsegv_handler (int sig) { FILE *fp = stderr; int pid = getpid (); #if defined(__GLIBC__) char **messages; size_t size, i; void *trace_stack[TRACE_SIZE]; #endif (void) endwin (); fprintf (fp, "\n"); fprintf (fp, "==%d== GoAccess %s crashed by Sig %d\n", pid, GO_VERSION, sig); fprintf (fp, "==%d==\n", pid); dump_struct (fp); #if defined(__GLIBC__) size = backtrace (trace_stack, TRACE_SIZE); messages = backtrace_symbols (trace_stack, size); fprintf (fp, "==%d== STACK TRACE:\n", pid); fprintf (fp, "==%d==\n", pid); for (i = 0; i < size; i++) fprintf (fp, "==%d== %zu %s\n", pid, i, messages[i]); #endif fprintf (fp, "==%d==\n", pid); fprintf (fp, "==%d== %s:\n", pid, ERR_PLEASE_REPORT); fprintf (fp, "==%d== https://github.com/allinurl/goaccess/issues\n\n", pid); fflush (fp); /* Call old sigsegv handler; may be default exit or third party one (e.g. ASAN) */ sigaction (SIGSEGV, &old_sigsegv_handler, NULL); } /* Write formatted debug log data to the logfile. */ void dbg_fprintf (const char *fmt, ...) { va_list args; if (!log_file) return; va_start (args, fmt); vfprintf (log_file, fmt, args); fflush (log_file); va_end (args); } /* Write formatted invalid requests log data to the logfile. */ void invalid_fprintf (const char *fmt, ...) { va_list args; if (!log_invalid) return; va_start (args, fmt); vfprintf (log_invalid, fmt, args); fflush (log_invalid); va_end (args); } /* Write formatted unknown browsers/OSs log data to the logfile. */ void unknowns_fprintf (const char *fmt, ...) { va_list args; if (!log_unknowns) return; va_start (args, fmt); vfprintf (log_unknowns, fmt, args); fflush (log_unknowns); va_end (args); } /* Debug output */ void dbg_printf (const char *fmt, ...) { va_list args; va_start (args, fmt); vfprintf (stderr, fmt, args); va_end (args); } /* Write formatted access log data to the logfile. */ void access_fprintf (const char *fmt, ...) { va_list args; if (!access_log) return; va_start (args, fmt); vfprintf (access_log, fmt, args); fflush (access_log); va_end (args); } ================================================ FILE: src/error.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef ERROR_H_INCLUDED #define ERROR_H_INCLUDED #ifndef COMMONS #include "commons.h" #endif #ifdef HAVE_NCURSESW_NCURSES_H #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_NCURSES_H #include <ncurses/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> #elif HAVE_CURSES_H #include <curses.h> #endif #include <stdio.h> #include "settings.h" #define TRACE_SIZE 128 #define FATAL(fmt, ...) do { \ (void) endwin (); \ fprintf (stderr, "\nGoAccess - version %s - %s %s\n", GO_VERSION, __DATE__, __TIME__); \ fprintf (stderr, "Config file: %s\n", conf.iconfigfile ?: NO_CONFIG_FILE); \ fprintf (stderr, "\nFatal error has occurred"); \ fprintf (stderr, "\nError occurred at: %s - %s - %d\n", __FILE__, __FUNCTION__, __LINE__); \ fprintf (stderr, fmt, ##__VA_ARGS__); \ fprintf (stderr, "\n\n"); \ LOG_DEBUG ((fmt, ##__VA_ARGS__)); \ exit(EXIT_FAILURE); \ } while (0) #ifdef DEBUG #define DEBUG_TEST 1 #else #define DEBUG_TEST 0 #endif /* access requests log */ #define ACCESS_LOG(x, ...) do { access_fprintf x; } while (0) /* debug log */ #define LOG_DEBUG(x, ...) do { dbg_fprintf x; } while (0) /* invalid requests log */ #define LOG_INVALID(x, ...) do { invalid_fprintf x; } while (0) /* unknown browser log */ #define LOG_UNKNOWNS(x, ...) do { unknowns_fprintf x; } while (0) /* log debug wrapper */ #define LOG(x) do { if (DEBUG_TEST) dbg_printf x; } while (0) int access_log_open (const char *path); void access_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2))); void access_log_close (void); void dbg_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2))); void dbg_log_close (void); void dbg_log_open (const char *file); void dbg_printf (const char *fmt, ...) __attribute__((format (printf, 1, 2))); void invalid_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2))); void unknowns_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2))); void invalid_log_close (void); void invalid_log_open (const char *path); void set_signal_data (void *p); void setup_sigsegv_handler (void); void sigsegv_handler (int sig); void unknowns_log_close (void); void unknowns_log_open (const char *path); #endif ================================================ FILE: src/fileio.c ================================================ /** * fileio.c -- gFile I/O abstraction layer for goaccess * This provides a unified interface for reading both regular and gzipped files * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "fileio.h" #ifdef HAVE_ZLIB /* Check if a file is gzipped by examining its magic bytes */ static int is_gzipped_file (const char *filename) { FILE *fp; unsigned char magic[2]; int result = 0; if ((fp = fopen (filename, "rb")) == NULL) return 0; if (fread (magic, 1, 2, fp) == 2) { /* gzip magic number is 0x1f 0x8b */ if (magic[0] == 0x1f && magic[1] == 0x8b) result = 1; } fclose (fp); return result; } #endif /* Open a file for reading, automatically detecting gzip compression */ GFileHandle * gfile_open (const char *filename, const char *mode) { GFileHandle *fh; if ((fh = calloc (1, sizeof (GFileHandle))) == NULL) return NULL; #ifdef HAVE_ZLIB /* Check if file is gzipped */ if (is_gzipped_file (filename)) { fh->is_gzipped = 1; fh->gzfp = gzopen (filename, mode); if (fh->gzfp == NULL) { free (fh); return NULL; } fh->fp = NULL; return fh; } #endif /* Open as regular file */ #ifdef HAVE_ZLIB fh->is_gzipped = 0; fh->gzfp = NULL; #endif fh->fp = fopen (filename, mode); if (fh->fp == NULL) { free (fh); return NULL; } return fh; } /* Close a file handle */ void gfile_close (GFileHandle *fh) { if (!fh) return; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { gzclose (fh->gzfp); } else #endif if (fh->fp) { fclose (fh->fp); } free (fh); } /* Read a line from the file */ char * gfile_gets (char *buf, int size, GFileHandle *fh) { if (!fh || !buf || size <= 0) return NULL; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { return gzgets (fh->gzfp, buf, size); } #endif if (fh->fp) return fgets (buf, size, fh->fp); return NULL; } /* Check if end of file is reached */ int gfile_eof (GFileHandle *fh) { if (!fh) return 1; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { return gzeof (fh->gzfp); } #endif if (fh->fp) return feof (fh->fp); return 1; } /* Read data from file */ int gfile_read (void *buf, size_t size, size_t count, GFileHandle *fh) { if (!fh || !buf) return 0; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { int bytes_to_read = size * count; int bytes_read = gzread (fh->gzfp, buf, bytes_to_read); if (bytes_read < 0) return 0; return bytes_read / size; } #endif if (fh->fp) return fread (buf, size, count, fh->fp); return 0; } /* Seek to a position in the file */ int gfile_seek (GFileHandle *fh, long offset, int whence) { if (!fh) return -1; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { /* gzseek returns the current offset, or -1 on error */ z_off_t result = gzseek (fh->gzfp, offset, whence); return (result == -1) ? -1 : 0; } #endif if (fh->fp) return fseek (fh->fp, offset, whence); return -1; } /* Get current position in file */ long gfile_tell (GFileHandle *fh) { if (!fh) return -1; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { return (long) gztell (fh->gzfp); } #endif if (fh->fp) return ftell (fh->fp); return -1; } /* Check for file errors */ int gfile_error (GFileHandle *fh) { if (!fh) return 1; #ifdef HAVE_ZLIB if (fh->is_gzipped && fh->gzfp) { int errnum; gzerror (fh->gzfp, &errnum); return errnum != Z_OK && errnum != Z_STREAM_END; } #endif if (fh->fp) return ferror (fh->fp); return 1; } ================================================ FILE: src/fileio.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef FILEIO_H_INCLUDED #define FILEIO_H_INCLUDED #include <stdio.h> #ifdef HAVE_CONFIG_H #include <config.h> #endif #ifdef HAVE_ZLIB #include <zlib.h> #endif /* File handle abstraction */ typedef struct GFileHandle_ { #ifdef HAVE_ZLIB gzFile gzfp; int is_gzipped; #endif FILE *fp; } GFileHandle; /* Function prototypes */ GFileHandle *gfile_open (const char *filename, const char *mode); void gfile_close (GFileHandle * fh); char *gfile_gets (char *buf, int size, GFileHandle * fh); int gfile_eof (GFileHandle * fh); int gfile_read (void *buf, size_t size, size_t count, GFileHandle * fh); int gfile_seek (GFileHandle * fh, long offset, int whence); long gfile_tell (GFileHandle * fh); int gfile_error (GFileHandle * fh); #endif /* FILEIO_H_INCLUDED */ ================================================ FILE: src/gchart.c ================================================ /** * gchart.c -- TUI chart implementation * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <inttypes.h> #include <ctype.h> #include "gchart.h" #include "ui.h" #include "color.h" #include "commons.h" #include "gholder.h" #include "settings.h" #include "xmalloc.h" #define round(x) ((x) < 0 ? (int)((x) - 0.5) : (int)((x) + 0.5)) /* Formatting helpers */ char * format_number_abbrev (uint64_t val, char *buf, size_t len) { if (val >= 1000000000ULL) { snprintf (buf, len, "%" PRIu64 "G", (uint64_t) ((val + 500000000ULL) / 1000000000ULL)); } else if (val >= 1000000ULL) { snprintf (buf, len, "%" PRIu64 "M", (uint64_t) ((val + 500000ULL) / 1000000ULL)); } else if (val >= 1000ULL) { snprintf (buf, len, "%" PRIu64 "K", (uint64_t) ((val + 500ULL) / 1000ULL)); } else { snprintf (buf, len, "%" PRIu64, val); } buf[4] = '\0'; return buf; } static char * format_bw_abbrev (uint64_t bytes, char *buf, size_t len) { uint64_t v = bytes; const char *s = "B"; if (bytes >= (1ULL << 40)) { v = (bytes + (1ULL << 39)) >> 40; s = "T"; } else if (bytes >= (1ULL << 30)) { v = (bytes + (1ULL << 29)) >> 30; s = "G"; } else if (bytes >= (1ULL << 20)) { v = (bytes + (1ULL << 19)) >> 20; s = "M"; } else if (bytes >= (1ULL << 10)) { v = (bytes + (1ULL << 9)) >> 10; s = "K"; } else { v = bytes; s = "B"; } if (v >= 1000) { snprintf (buf, len, "%" PRIu64, bytes); } else { snprintf (buf, len, "%" PRIu64 "%s", v, s); } buf[4] = '\0'; return buf; } static char * format_time_abbrev (uint64_t us, char *buf, size_t len) { uint64_t v = us; const char *s = "\u00b5s"; if (us < 1000ULL) { snprintf (buf, len, "%" PRIu64 "%s", us, s); } else if (us < 1000000ULL) { v = (us + 500ULL) / 1000ULL; s = "ms"; snprintf (buf, len, "%" PRIu64 "%s", v, s); } else if (us < 60000000ULL) { v = (us + 500000ULL) / 1000000ULL; s = "s"; snprintf (buf, len, "%" PRIu64 "%s", v, s); } else if (us < 3600000000ULL) { v = (us + 30000000ULL) / 60000000ULL; s = "m"; snprintf (buf, len, "%" PRIu64 "%s", v, s); } else if (us < 86400000000ULL) { v = (us + 1800000000ULL) / 3600000000ULL; s = "h"; snprintf (buf, len, "%" PRIu64 "%s", v, s); } else { v = (us + 43200000000ULL) / 86400000000ULL; s = "d"; snprintf (buf, len, "%" PRIu64 "%s", v, s); } buf[5] = '\0'; return buf; } static char * format_metric_value (uint64_t val, char *buf, size_t len, int metric_type) { switch (metric_type) { case CHART_METRIC_AVGTS: case CHART_METRIC_CUMTS: case CHART_METRIC_MAXTS: return format_time_abbrev (val, buf, len); case CHART_METRIC_BW: return format_bw_abbrev (val, buf, len); default: return format_number_abbrev (val, buf, len); } } static const char * get_metric_name (int metric_type) { switch (metric_type) { case CHART_METRIC_HITS: return MTRC_HITS_LBL; case CHART_METRIC_VISITORS: return MTRC_VISITORS_LBL; case CHART_METRIC_BW: return MTRC_BW_LBL; case CHART_METRIC_AVGTS: return MTRC_AVGTS_LBL; case CHART_METRIC_CUMTS: return MTRC_CUMTS_LBL; case CHART_METRIC_MAXTS: return MTRC_MAXTS_LBL; default: return MTRC_HITS_LBL; } } /* Data helpers */ /* Check if a metric has data in a sub-list, recursing into nested sub-lists */ static int sub_list_has_metric (GSubList *sl, int metric_type) { GSubItem *sub; GMetrics *m; if (sl == NULL) return 0; for (sub = sl->head; sub; sub = sub->next) { m = sub->metrics; if (m) { switch (metric_type) { case CHART_METRIC_HITS: if (m->hits > 0) return 1; break; case CHART_METRIC_VISITORS: if (m->visitors > 0) return 1; break; case CHART_METRIC_BW: if (m->nbw > 0) return 1; break; case CHART_METRIC_AVGTS: if (conf.serve_usecs && m->avgts.nts > 0) return 1; break; case CHART_METRIC_CUMTS: if (conf.serve_usecs && m->cumts.nts > 0) return 1; break; case CHART_METRIC_MAXTS: if (conf.serve_usecs && m->maxts.nts > 0) return 1; break; default: if (m->hits > 0) return 1; break; } } if (sub->sub_list != NULL && sub_list_has_metric (sub->sub_list, metric_type)) return 1; } return 0; } int metric_has_data (GHolder *h, int metric_type) { uint32_t i; int has = 0; GMetrics *m; if (!h || h->idx == 0) return 0; for (i = 0; i < h->idx; i++) { m = h->items[i].metrics; if (m) { switch (metric_type) { case CHART_METRIC_HITS: if (m->hits > 0) has = 1; break; case CHART_METRIC_VISITORS: if (m->visitors > 0) has = 1; break; case CHART_METRIC_BW: if (m->nbw > 0) has = 1; break; case CHART_METRIC_AVGTS: if (conf.serve_usecs && m->avgts.nts > 0) has = 1; break; case CHART_METRIC_CUMTS: if (conf.serve_usecs && m->cumts.nts > 0) has = 1; break; case CHART_METRIC_MAXTS: if (conf.serve_usecs && m->maxts.nts > 0) has = 1; break; default: if (m->hits > 0) has = 1; break; } if (has) return 1; } if (h->module != HOSTS && h->items[i].sub_list) { if (sub_list_has_metric (h->items[i].sub_list, metric_type)) return 1; } } return 0; } int get_available_metrics (GModule module, int metrics[CHART_METRIC_COUNT]) { int count = 0; const GOutput *out = output_lookup (module); if (!out) return 0; if (out->hits) metrics[count++] = CHART_METRIC_HITS; if (out->visitors) metrics[count++] = CHART_METRIC_VISITORS; if (out->bw && conf.bandwidth) metrics[count++] = CHART_METRIC_BW; if (out->avgts && conf.serve_usecs) metrics[count++] = CHART_METRIC_AVGTS; if (out->cumts && conf.serve_usecs) metrics[count++] = CHART_METRIC_CUMTS; if (out->maxts && conf.serve_usecs) metrics[count++] = CHART_METRIC_MAXTS; return count; } static uint64_t get_metric_value (GMetrics *metrics, int metric_type) { if (!metrics) return 0; switch (metric_type) { case CHART_METRIC_HITS: return metrics->hits; case CHART_METRIC_VISITORS: return metrics->visitors; case CHART_METRIC_BW: return metrics->nbw; case CHART_METRIC_AVGTS: return conf.serve_usecs ? metrics->avgts.nts : 0; case CHART_METRIC_CUMTS: return conf.serve_usecs ? metrics->cumts.nts : 0; case CHART_METRIC_MAXTS: return conf.serve_usecs ? metrics->maxts.nts : 0; default: return metrics->hits; } } /* Chart item flattening */ typedef struct { GMetrics *metrics; int is_subitem; int flat_idx; } ChartItem; /* Recursively count all sub-items in a sub-list tree (chart-local). */ static int count_sub_items_recursive_chart (GSubList *sl) { GSubItem *iter; int count = 0; if (sl == NULL) return 0; for (iter = sl->head; iter; iter = iter->next) { count++; if (iter->sub_list) count += count_sub_items_recursive_chart (iter->sub_list); } return count; } /* Count visible sub-items recursively given per-node expand state (chart-local). */ static int count_visible_sub_chart (GSubList *sl, const uint8_t *node_exp, int node_exp_size, int *full_idx) { GSubItem *iter; int count = 0; if (sl == NULL) return 0; for (iter = sl->head; iter; iter = iter->next) { int my_full = *full_idx; count++; (*full_idx)++; if (iter->sub_list && iter->sub_list->size > 0) { int expanded = 1; if (node_exp != NULL && my_full < node_exp_size) expanded = node_exp[my_full]; if (expanded) count += count_visible_sub_chart (iter->sub_list, node_exp, node_exp_size, full_idx); else *full_idx += count_sub_items_recursive_chart (iter->sub_list); } } return count; } /* Recursively flatten visible sub-items into the chart items array */ static void flatten_sub_items (GSubList *sl, ChartItem *items, int *idx, int depth, int *full_idx, const uint8_t *node_exp, int node_exp_size) { GSubItem *sub; if (sl == NULL) return; for (sub = sl->head; sub; sub = sub->next) { int my_full = *full_idx; items[*idx] = (ChartItem) { .metrics = sub->metrics,.is_subitem = depth,.flat_idx = *idx}; (*idx)++; (*full_idx)++; if (sub->sub_list != NULL && sub->sub_list->size > 0) { int expanded = 1; if (node_exp != NULL && my_full < node_exp_size) expanded = node_exp[my_full]; if (expanded) flatten_sub_items (sub->sub_list, items, idx, depth + 1, full_idx, node_exp, node_exp_size); else *full_idx += count_sub_items_recursive_chart (sub->sub_list); } } } static int build_chart_items (GHolder *h, ChartItem **out, const uint8_t *item_expanded, int item_expanded_size) { uint32_t i; int count = h->idx, idx = 0, full_idx = 0; ChartItem *items; /* Only include sub-items if we have expand state (i.e., panel is expanded) */ if (h->module != HOSTS && item_expanded != NULL && item_expanded_size > 0) { /* Count visible items using per-node expand state */ int fi = 0; for (i = 0; i < h->idx; i++) { int my_full = fi; fi++; if (h->items[i].sub_list && h->items[i].sub_list->size > 0) { int expanded = 1; if (my_full < item_expanded_size) expanded = item_expanded[my_full]; if (expanded) count += count_visible_sub_chart (h->items[i].sub_list, item_expanded, item_expanded_size, &fi); else fi += count_sub_items_recursive_chart (h->items[i].sub_list); } } } /* If item_expanded is NULL, we only render root items (count = h->idx already) */ items = xcalloc (count, sizeof (ChartItem)); for (i = 0; i < h->idx; i++) { int my_full = full_idx; items[idx] = (ChartItem) { .metrics = h->items[i].metrics,.is_subitem = 0,.flat_idx = idx}; idx++; full_idx++; /* Only flatten sub-items if panel is expanded (item_expanded != NULL) */ if (h->module != HOSTS && item_expanded != NULL && h->items[i].sub_list && h->items[i].sub_list->size > 0) { int should_expand = 1; if (my_full < item_expanded_size) should_expand = item_expanded[my_full]; if (should_expand) flatten_sub_items (h->items[i].sub_list, items, &idx, 1, &full_idx, item_expanded, item_expanded_size); else full_idx += count_sub_items_recursive_chart (h->items[i].sub_list); } } *out = items; return idx; } static uint64_t apply_log_scale (uint64_t value, uint64_t max_value) { double log_val, log_max; if (value == 0 || max_value == 0) return 0; log_val = log10 ((double) value + 1.0); log_max = log10 ((double) max_value + 1.0); if (log_max == 0) return value; return (uint64_t) ((log_val / log_max) * max_value); } /* Drawing primitives */ static void draw_vbar (ChartDrawCtx *ctx, int x, int filled, GColors *color, int is_selected, uint64_t actual_val) { WINDOW *w = ctx->win; int y_top = ctx->y_chart_start; int width = ctx->bar_width; int i, y, ly, lx; char buf[16]; GColors *val_col; for (i = 0; i < ctx->bar_height; i++) mvwhline (w, y_top + i, x, ' ', width); if (is_selected) { /* Use COLOR_SELECTED colors + underline + bold for selected bar */ GColors *sel = get_color (COLOR_SELECTED); wattron (w, COLOR_PAIR (sel->pair->idx) | A_BOLD | A_UNDERLINE); } else { /* Normal bar: original color + reverse */ wattron (w, COLOR_PAIR (color->pair->idx) | color->attr | A_REVERSE); } /* Draw filled part */ for (i = 0; i < filled; i++) { y = y_top + ctx->bar_height - 1 - i; mvwhline (w, y, x, ' ', width); } /* Turn off what we turned on */ wattroff (w, COLOR_PAIR (color->pair->idx) | color->attr | A_REVERSE | A_BOLD | A_UNDERLINE); /* Value label (unchanged) */ if (actual_val > 0 && ctx->show_bar_values) { format_metric_value (actual_val, buf, sizeof (buf), ctx->metric_type); y = y_top + ctx->bar_height - filled; ly = y - 1; if (ly < y_top - 1) ly = y_top - 1; val_col = get_color (COLOR_CHART_VALUES); wattron (w, COLOR_PAIR (val_col->pair->idx) | val_col->attr); if (is_selected) wattron (w, A_BOLD); lx = x + (width - (int) strlen (buf)) / 2; if (lx < x) lx = x; mvwprintw (w, ly, lx, "%s", buf); wattroff (w, COLOR_PAIR (val_col->pair->idx) | val_col->attr); if (is_selected) wattroff (w, A_BOLD); } } static void draw_axes (ChartDrawCtx *ctx) { WINDOW *w; int ys, xs, h, i, yt, lx; GColors *axis; uint64_t maxv; char buf[16]; const int ticks = 4; if (!ctx->show_axes) return; w = ctx->win; ys = ctx->y_chart_start; xs = ctx->x_start; h = ctx->bar_height; axis = get_color (COLOR_CHART_AXIS); maxv = ctx->display_max; wattron (w, axis->attr | COLOR_PAIR (axis->pair->idx)); for (i = 0; i <= h; i++) mvwaddch (w, ys + i, xs - 2, '|'); for (i = 0; i < getmaxx (w) - xs - 2; i++) mvwaddch (w, ys + h, xs + i, '-'); for (i = 0; i <= ticks; i++) { uint64_t v = (maxv * (uint64_t) i + ticks / 2) / ticks; yt = ys + h - ((v * (int64_t) h + maxv / 2) / maxv); format_metric_value (v, buf, sizeof (buf), ctx->metric_type); lx = xs - 3 - (int) strlen (buf); if (lx < 0) lx = 0; mvwprintw (w, yt, lx, "%s", buf); mvwaddch (w, yt, xs - 2, '+'); } wattroff (w, axis->attr | COLOR_PAIR (axis->pair->idx)); } static void draw_chart_indicator (ChartDrawCtx *ctx) { char ind[96], mname[64]; GColors *col = get_color (COLOR_CHART_AXIS); strncpy (mname, get_metric_name (ctx->metric_type), sizeof (mname) - 1); mname[sizeof (mname) - 1] = '\0'; for (char *p = mname; *p; p++) *p = toupper ((unsigned char) *p); snprintf (ind, sizeof (ind), "[%s:%s%s]", mname, ctx->use_log_scale ? "LOG" : "LINEAR", ctx->reverse_bars ? ":REV" : ""); wattron (ctx->win, col->attr | COLOR_PAIR (col->pair->idx)); mvwprintw (ctx->win, ctx->y_start, 1, "%s", ind); wattroff (ctx->win, col->attr | COLOR_PAIR (col->pair->idx)); } /* Window & selection helpers */ static int get_chart_selected_root (const ChartDrawCtx *ctx) { int cum = 0, subsz = 0; uint32_t j; if (ctx->selected_idx < 0) return -1; if (ctx->holder->module != HOSTS) return ctx->selected_idx; for (j = 0; j < ctx->holder->idx; j++) { subsz = ctx->holder->items[j].sub_list ? ctx->holder->items[j].sub_list->size : 0; if (ctx->selected_idx == cum) return j; cum += 1 + subsz; } return -1; } static void compute_bar_window (ChartDrawCtx *ctx, int num_items) { int start = ctx->scroll_offset; int vis = ctx->visible_bars; int sel = get_chart_selected_root (ctx); if (sel >= 0 && num_items > vis) { if (sel < start) start = sel; else if (sel >= start + vis) start = sel - vis + 1; } if (start < 0) start = 0; if (num_items > vis && start > num_items - vis) start = num_items - vis; if (num_items <= vis) start = 0; ctx->start_bar = start; ctx->end_bar = start + vis; if (ctx->end_bar > num_items) ctx->end_bar = num_items; } static uint64_t compute_local_max (ChartItem *items, const ChartDrawCtx *ctx) { uint64_t mx = 0; for (int i = ctx->start_bar; i < ctx->end_bar; i++) { uint64_t v = get_metric_value (items[i].metrics, ctx->metric_type); if (v > mx) mx = v; } return mx; } static void compute_chart_window (ChartDrawCtx *ctx, ChartItem *items) { compute_bar_window (ctx, ctx->num_items); ctx->display_max = compute_local_max (items, ctx); } static void draw_chart_bars (ChartDrawCtx *ctx, ChartItem *items) { GColors *bar_c = get_color (COLOR_BARS), *c = NULL; GColors *sub_c = get_color (COLOR_SUBBARS); int sel_root = get_chart_selected_root (ctx); int i, x, data_idx, vis_pos, is_sel; uint64_t val, dval; int filled; for (i = ctx->start_bar; i < ctx->end_bar; i++) { data_idx = ctx->reverse_bars ? (ctx->end_bar - 1 - (i - ctx->start_bar)) : i; if (data_idx >= ctx->num_items) continue; val = get_metric_value (items[data_idx].metrics, ctx->metric_type); dval = ctx->use_log_scale ? apply_log_scale (val, ctx->display_max) : val; filled = (int) ((dval * (int64_t) ctx->bar_height + ctx->display_max / 2) / ctx->display_max); if (filled > ctx->bar_height) filled = ctx->bar_height; vis_pos = i - ctx->start_bar; x = ctx->x_start + vis_pos * (ctx->bar_width + ctx->bar_gap); is_sel = (items[data_idx].flat_idx == sel_root); c = items[data_idx].is_subitem ? sub_c : bar_c; draw_vbar (ctx, x, filled, c, is_sel, ctx->show_bar_values ? val : 0); } } static void draw_chart_caret (ChartDrawCtx *ctx, ChartItem *items) { int sel_root = get_chart_selected_root (ctx); if (sel_root < 0) return; for (int i = ctx->start_bar; i < ctx->end_bar; i++) { int didx = ctx->reverse_bars ? (ctx->end_bar - 1 - (i - ctx->start_bar)) : i; if (didx >= ctx->num_items) continue; if (items[didx].flat_idx == sel_root) { int pos = i - ctx->start_bar; int x = ctx->x_start + pos * (ctx->bar_width + ctx->bar_gap) + ctx->bar_width / 2; mvwaddch (ctx->win, ctx->y_start + ctx->chart_height, x, '^'); break; } } } static void check_top_padding (ChartDrawCtx *ctx, ChartItem *items) { ctx->needs_top_padding = 0; for (int i = ctx->start_bar; i < ctx->end_bar; i++) { uint64_t v = get_metric_value (items[i].metrics, ctx->metric_type); uint64_t dv = ctx->use_log_scale ? apply_log_scale (v, ctx->display_max) : v; int f = (int) ((dv * (int64_t) ctx->bar_height + ctx->display_max / 2) / ctx->display_max); if (f >= ctx->bar_height) { ctx->needs_top_padding = 1; break; } } } /* Main function */ void draw_panel_chart (WINDOW *win, GHolder *h, const ChartDrawCtx *user_opts) { uint64_t global_max = 0, v = 0; int i = 0, y = 0, height = 0, screen_w = 0; ChartDrawCtx ctx = *user_opts; ChartItem *items = NULL; ctx.win = win; ctx.holder = h; ctx.x_start = ctx.show_axes ? 8 : 2; ctx.num_items = build_chart_items (h, &items, ctx.item_expanded, ctx.item_expanded_size); if (ctx.num_items == 0) { free (items); return; } /* Early exit if no data for this metric */ for (i = 0; i < ctx.num_items; i++) { v = get_metric_value (items[i].metrics, ctx.metric_type); if (v > global_max) global_max = v; } if (global_max == 0) { free (items); return; } draw_chart_indicator (&ctx); y = ctx.y_start + 1; height = ctx.chart_height - 1; ctx.bar_height = height - 1; screen_w = getmaxx (win) - ctx.x_start - 2; if (ctx.auto_width) { ctx.bar_gap = 1; ctx.bar_width = (screen_w - (ctx.num_items - 1) * ctx.bar_gap) / ctx.num_items; if (ctx.bar_width < 1) ctx.bar_width = 1; } else { ctx.bar_width = BAR_W; ctx.bar_gap = BAR_GAP; } ctx.visible_bars = screen_w / (ctx.bar_width + ctx.bar_gap); if (ctx.visible_bars < 1) ctx.visible_bars = 1; compute_chart_window (&ctx, items); check_top_padding (&ctx, items); ctx.y_chart_start = y + (ctx.needs_top_padding ? 1 : 0); draw_chart_bars (&ctx, items); draw_axes (&ctx); draw_chart_caret (&ctx, items); free (items); } ================================================ FILE: src/gchart.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GCHART_H_INCLUDED #define GCHART_H_INCLUDED #include <ncurses.h> #include "commons.h" /* Forward declarations */ typedef struct GHolder_ GHolder; #define DASH_CHART_HEIGHT 7 #define BAR_W 5 #define BAR_GAP 1 typedef enum { CHART_METRIC_HITS = 0, CHART_METRIC_VISITORS, CHART_METRIC_BW, CHART_METRIC_AVGTS, CHART_METRIC_CUMTS, CHART_METRIC_MAXTS, CHART_METRIC_COUNT } GChartMetric; /* All drawing options + computed state in one place */ typedef struct { WINDOW *win; GHolder *holder; int y_start; int chart_height; int auto_width; int selected_idx; int scroll_offset; int show_axes; int show_bar_values; int metric_type; int use_log_scale; int reverse_bars; /* Computed values */ int x_start; int bar_width; int bar_gap; int visible_bars; int start_bar; int end_bar; uint64_t display_max; int bar_height; int y_chart_start; int needs_top_padding; int num_items; /* total number of chart items */ /* Per-item expand state for filtering visible chart bars */ const uint8_t *item_expanded; /* NULL = all expanded, else per-root-item state */ int item_expanded_size; /* number of entries in item_expanded */ } ChartDrawCtx; /* Main drawing function */ void draw_panel_chart (WINDOW * win, GHolder * h, const ChartDrawCtx * opts); int metric_has_data (GHolder * h, int metric_type); int get_available_metrics (GModule module, int metrics[CHART_METRIC_COUNT]); char *format_number_abbrev (uint64_t val, char *buf, size_t len); #endif ================================================ FILE: src/gdashboard.c ================================================ /** * gdashboard.c -- goaccess main dashboard * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _XOPEN_SOURCE 700 #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <regex.h> #include <inttypes.h> #include "gdashboard.h" #include "gkhash.h" #include "gchart.h" #include "gholder.h" #include "color.h" #include "error.h" #include "gstorage.h" #include "util.h" #include "xmalloc.h" static GFind find_t; /* Forward declarations */ static int count_sub_items_recursive (GSubList * sl); static int count_visible_sub (GSubList * sl, uint8_t * node_exp, int node_exp_size, int *full_idx); /* Reset find indices */ void reset_find (void) { if (find_t.pattern != NULL && *find_t.pattern != '\0') free (find_t.pattern); find_t.look_in_sub = 0; find_t.module = 0; find_t.next_idx = 0; /* next total index */ find_t.next_parent_idx = 0; /* next parent index */ find_t.next_sub_idx = 0; /* next sub item index */ find_t.pattern = NULL; } /* Allocate memory for a new GDash instance. * * On success, the newly allocated GDash is returned . */ GDash * new_gdash (void) { GDash *dash = xmalloc (sizeof (GDash)); memset (dash, 0, sizeof *dash); dash->total_alloc = 0; return dash; } /* Allocate memory for a new GDashData instance. * * On success, the newly allocated GDashData is returned . */ GDashData * new_gdata (uint32_t size) { GDashData *data = xcalloc (size, sizeof (GDashData)); return data; } /* Free memory allocated for a GDashData instance. Includes malloc'd * strings. */ static void free_dashboard_data (GDashData item) { if (item.metrics == NULL) return; if (item.metrics->data) free (item.metrics->data); if (conf.serve_usecs && item.metrics->avgts.sts) free (item.metrics->avgts.sts); if (conf.serve_usecs && item.metrics->cumts.sts) free (item.metrics->cumts.sts); if (conf.serve_usecs && item.metrics->maxts.sts) free (item.metrics->maxts.sts); free (item.metrics); } /* Free memory allocated for a GDash instance, and nested structure * data. */ void free_dashboard (GDash *dash) { GModule module; uint32_t j; size_t idx = 0; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; for (j = 0; j < dash->module[module].alloc_data; j++) { free_dashboard_data (dash->module[module].data[j]); } free (dash->module[module].data); } free (dash); } /* Get the current panel/module given the `Y` offset (position) in the * terminal dashboard. * * If not found, 0 is returned. * If found, the module number is returned . */ static GModule get_find_current_module (GDash *dash, int offset) { GModule module; size_t idx = 0; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; /* set current module */ if (dash->module[module].pos_y == offset) return module; /* we went over by one module, set current - 1 */ if (dash->module[module].pos_y > offset) return module - 1; } return 0; } /* Get the number of rows that a collapsed dashboard panel contains. * * On success, the number of rows is returned. */ uint32_t get_num_collapsed_data_rows (void) { /* Fixed structure with columns always present: * DASH_COLLAPSED - (header + blank + chart + blank + blank + cols + dashes + trailing) * = DASH_COLLAPSED - (1 + 1 + 7 + 1 + 1 + 1 + 1 + 1) = DASH_COLLAPSED - 14 */ uint32_t overhead = 1 + 1 + DASH_CHART_HEIGHT + 1 + 1 + 2 + 1; /* 14 */ return DASH_COLLAPSED - overhead; } /* Get the number of rows that an expanded dashboard panel contains. * * On success, the number of rows is returned. */ uint32_t get_num_expanded_data_rows (void) { /* Same calculation as collapsed, but with DASH_EXPANDED */ uint32_t overhead = 1 + 1 + DASH_CHART_HEIGHT + 1 + 1 + 2 + 1; /* 14 */ return DASH_EXPANDED - overhead; } /* Get the initial X position of the terminal dashboard where metrics * and data columns start. * * On success, the X position is returned. */ static int get_xpos (void) { return DASH_INIT_X; } /* Determine which module should be expanded given the current mouse * position. * * On error, 1 is returned. * On success, 0 is returned. */ int set_module_from_mouse_event (GScroll *gscroll, GDash *dash, int y) { int module = 0; int offset = y - MAX_HEIGHT_HEADER - MAX_HEIGHT_FOOTER + 1; if (gscroll->expanded) { module = get_find_current_module (dash, offset); } else { offset += gscroll->dash; module = offset / DASH_COLLAPSED; } if (module >= TOTAL_MODULES) module = TOTAL_MODULES - 1; else if (module < 0) module = 0; if ((int) gscroll->current == module) return 1; gscroll->current = module; return 0; } /* Allocate a new string for a sub item on the terminal dashboard. * * On error, NULL is returned. * On success, the newly allocated string is returned. */ static char * render_child_node (const char *data, int depth, uint32_t parent_state, int is_last) { char *buf; int len = 0; int i; char prefix[512] = ""; /* chars to use based on encoding used */ #ifdef HAVE_LIBNCURSESW const char *branch = "\xe2\x94\x9c\xe2\x94\x80"; /* ├─ */ const char *last = "\xe2\x94\x94\xe2\x94\x80"; /* └─ */ const char *vert = "\xe2\x94\x82 "; /* │ */ const char *space = " "; /* */ #else const char *branch = "|-"; const char *last = "`-"; const char *vert = "| "; const char *space = " "; #endif if (data == NULL || *data == '\0') return NULL; /* Build the prefix by examining parent_state bits * For each ancestor level, draw either │ or space */ for (i = 1; i < depth; i++) { /* Check if ancestor at level i has more siblings */ if (parent_state & (1 << i)) { strcat (prefix, vert); /* │ - ancestor has siblings below it */ } else { strcat (prefix, space); /* - ancestor was last child */ } } /* Add the final connector for this node */ strcat (prefix, is_last ? last : branch); strcat (prefix, " "); len = snprintf (NULL, 0, "%s%s", prefix, data); buf = xmalloc (len + 1); sprintf (buf, "%s%s", prefix, data); return buf; } /* Get largest hits metric. * * On error, 0 is returned. * On success, largest hits metric is returned. */ static void set_max_metrics (GDashMeta *meta, GDashData *idata) { if (meta->max_hits < idata->metrics->hits) meta->max_hits = idata->metrics->hits; if (meta->max_visitors < idata->metrics->visitors) meta->max_visitors = idata->metrics->visitors; if (meta->max_bw < idata->metrics->nbw) meta->max_bw = idata->metrics->nbw; } /* Set largest hits metric (length of the integer). */ static void set_max_hit_len (GDashMeta *meta, GDashData *idata) { int vlen = intlen (idata->metrics->hits); int llen = strlen (MTRC_HITS_LBL); if (vlen > meta->hits_len) meta->hits_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->hits_len) meta->hits_len = llen; } /* Get the percent integer length. */ static void set_max_hit_perc_len (GDashMeta *meta, GDashData *idata) { int vlen = intlen (idata->metrics->hits_perc); int llen = strlen (MTRC_HITS_PERC_LBL); if (vlen > meta->hits_perc_len) meta->hits_perc_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->hits_perc_len) meta->hits_perc_len = llen; } /* Set largest hits metric (length of the integer). */ static void set_max_visitors_len (GDashMeta *meta, GDashData *idata) { int vlen = intlen (idata->metrics->visitors); int llen = strlen (MTRC_VISITORS_SHORT_LBL); if (vlen > meta->visitors_len) meta->visitors_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->visitors_len) meta->visitors_len = llen; } /* Get the percent integer length. */ static void set_max_visitors_perc_len (GDashMeta *meta, GDashData *idata) { int vlen = intlen (idata->metrics->visitors_perc); int llen = strlen (MTRC_VISITORS_PERC_LBL); if (vlen > meta->visitors_perc_len) meta->visitors_perc_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->visitors_perc_len) meta->visitors_perc_len = llen; } /* Get the percent integer length for bandwidth percentage. */ static void set_max_bw_perc_len (GDashMeta *meta, GDashData *idata) { int vlen = intlen (idata->metrics->bw_perc); int llen = strlen (MTRC_BW_PERC_LBL); // You need to define this label if (vlen > meta->bw_perc_len) meta->bw_perc_len = vlen; if (llen > meta->bw_perc_len) meta->bw_perc_len = llen; } /* Get the percent integer length. */ static void set_max_bw_len (GDashMeta *meta, GDashData *idata) { char *bw_str = filesize_str (idata->metrics->nbw); int vlen = strlen (bw_str); int llen = strlen (MTRC_BW_LBL); if (vlen > meta->bw_len) meta->bw_len = vlen; if (llen > meta->bw_len) meta->bw_len = llen; free (bw_str); } /* Get the percent integer length. */ static void set_max_avgts_len (GDashMeta *meta, GDashData *idata) { int vlen = 0, llen = 0; if (!conf.serve_usecs || !idata->metrics->avgts.sts) return; vlen = strlen (idata->metrics->avgts.sts); llen = strlen (MTRC_AVGTS_LBL); if (vlen > meta->avgts_len) meta->avgts_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->avgts_len) meta->avgts_len = llen; } /* Get the percent integer length. */ static void set_max_cumts_len (GDashMeta *meta, GDashData *idata) { int vlen = 0, llen = 0; if (!conf.serve_usecs || !idata->metrics->cumts.sts) return; vlen = strlen (idata->metrics->cumts.sts); llen = strlen (MTRC_AVGTS_LBL); if (vlen > meta->cumts_len) meta->cumts_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->cumts_len) meta->cumts_len = llen; } /* Get the percent integer length. */ static void set_max_maxts_len (GDashMeta *meta, GDashData *idata) { int vlen = 0, llen = 0; if (!conf.serve_usecs || !idata->metrics->maxts.sts) return; vlen = strlen (idata->metrics->maxts.sts); llen = strlen (MTRC_AVGTS_LBL); if (vlen > meta->maxts_len) meta->maxts_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->maxts_len) meta->maxts_len = llen; } /* Get the percent integer length. */ static void set_max_method_len (GDashMeta *meta, GDashData *idata) { int vlen = 0, llen = 0; if (!conf.append_method || !idata->metrics->method) return; vlen = strlen (idata->metrics->method); llen = strlen (MTRC_METHODS_SHORT_LBL); if (vlen > meta->method_len) meta->method_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->method_len) meta->method_len = llen; } /* Get the percent integer length. */ static void set_max_protocol_len (GDashMeta *meta, GDashData *idata) { int vlen = 0, llen = 0; if (!conf.append_protocol || !idata->metrics->protocol) return; vlen = strlen (idata->metrics->protocol); llen = strlen (MTRC_PROTOCOLS_SHORT_LBL); if (vlen > meta->protocol_len) meta->protocol_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->protocol_len) meta->protocol_len = llen; } /* Get the percent integer length. */ static void set_max_data_len (GDashMeta *meta, GDashData *idata) { int vlen = 0, llen = 0; vlen = strlen (idata->metrics->data); llen = strlen (MTRC_DATA_LBL); if (vlen > meta->data_len) meta->data_len = vlen; /* if outputting with column names, then determine if the value is * longer than the length of the column name */ if (llen > meta->data_len) meta->data_len = llen; } static void set_metrics_len (GDashMeta *meta, GDashData *idata) { /* integer-based length */ set_max_hit_len (meta, idata); set_max_hit_perc_len (meta, idata); set_max_visitors_len (meta, idata); set_max_visitors_perc_len (meta, idata); set_max_bw_len (meta, idata); set_max_bw_perc_len (meta, idata); // ← NEW /* string-based length */ set_max_avgts_len (meta, idata); set_max_cumts_len (meta, idata); set_max_maxts_len (meta, idata); set_max_method_len (meta, idata); set_max_protocol_len (meta, idata); set_max_data_len (meta, idata); } /* Render host's panel selected row */ static void render_data_hosts (WINDOW *win, GDashRender render, char *value, int x) { char *padded_data; padded_data = left_pad_str (value, x); draw_header (win, padded_data, "%s", render.y, 0, render.w, color_selected); free (padded_data); } /* Set panel's date on the given buffer * * On error, '---' placeholder is returned. * On success, the formatted date is returned. */ static char * set_visitors_date (const char *value) { return get_visitors_date (value, conf.spec_date_time_num_format, conf.spec_date_time_format); } static char * get_fixed_fmt_width (int w, char type) { char *fmt = xmalloc (snprintf (NULL, 0, "%%%d%c", w, type) + 1); sprintf (fmt, "%%%d%c", w, type); return fmt; } /* Render the 'total' label on each panel */ static void render_total_label (WINDOW *win, GDashModule *data, int y, GColors *(*func) (void)) { char *s; int win_h, win_w; uint32_t total, ht_size; total = data->holder_size; ht_size = data->ht_size; s = xmalloc (snprintf (NULL, 0, "%s: %" PRIu32 "/%" PRIu32, GEN_TOTAL, total, ht_size) + 1); getmaxyx (win, win_h, win_w); (void) win_h; sprintf (s, "%s: %" PRIu32 "/%" PRIu32, GEN_TOTAL, total, ht_size); draw_header (win, s, "%s", y, win_w - strlen (s) - 2, win_w, func); free (s); } /* Render the data metric for each panel */ static void render_data (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_DATA, data->module); WINDOW *win = render.win; char *date = NULL, *value = NULL, *buf = NULL; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; int date_len = 0; value = substring (data->data[idx].metrics->data, 0, w - *x); if (data->module == VISITORS) { date = set_visitors_date (value); date_len = strlen (date); } if (sel && data->module == HOSTS && data->data[idx].is_subitem) { render_data_hosts (win, render, value, *x); } else if (sel) { buf = data->module == VISITORS ? date : value; draw_header (win, buf, "%s", y, *x, w, color_selected); } else { wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%s", data->module == VISITORS ? date : value); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } *x += data->module == VISITORS ? date_len : data->meta.data_len; *x += DASH_SPACE; free (value); free (date); } /* Render the method metric for each panel * * On error, no method is rendered and it returns. * On success, method is rendered. */ static void render_method (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_MTHD, data->module); WINDOW *win = render.win; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; char *method = data->data[idx].metrics->method; if (method == NULL || *method == '\0') return; if (sel) { /* selected state */ draw_header (win, method, "%s", y, *x, w, color_selected); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%s", method); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } *x += data->meta.method_len + DASH_SPACE; } /* Render the protocol metric for each panel * * On error, no protocol is rendered and it returns. * On success, protocol is rendered. */ static void render_proto (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_PROT, data->module); WINDOW *win = render.win; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; char *protocol = data->data[idx].metrics->protocol; if (protocol == NULL || *protocol == '\0') return; if (sel) { /* selected state */ draw_header (win, protocol, "%s", y, *x, w, color_selected); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%s", protocol); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } *x += REQ_PROTO_LEN - 1 + DASH_SPACE; } /* Render the average time served metric for each panel */ static void render_avgts (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_AVGTS, data->module); WINDOW *win = render.win; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; char *avgts = data->data[idx].metrics->avgts.sts; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (sel) { /* selected state */ draw_header (win, avgts, "%9s", y, *x, w, color_selected); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%9s", avgts); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } out: *x += DASH_SRV_TM_LEN + DASH_SPACE; } /* Render the cumulative time served metric for each panel */ static void render_cumts (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_CUMTS, data->module); WINDOW *win = render.win; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; char *cumts = data->data[idx].metrics->cumts.sts; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (sel) { /* selected state */ draw_header (win, cumts, "%9s", y, *x, w, color_selected); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%9s", cumts); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } out: *x += DASH_SRV_TM_LEN + DASH_SPACE; } /* Render the maximum time served metric for each panel */ static void render_maxts (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_MAXTS, data->module); WINDOW *win = render.win; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; char *maxts = data->data[idx].metrics->maxts.sts; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (sel) { /* selected state */ draw_header (win, maxts, "%9s", y, *x, w, color_selected); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%9s", maxts); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } out: *x += DASH_SRV_TM_LEN + DASH_SPACE; } /* Render the bandwidth metric for each panel */ static void render_bw (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_BW, data->module); WINDOW *win = render.win; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; char *bw = filesize_str (data->data[idx].metrics->nbw); /* compute here */ if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (sel) { char *fw = get_fixed_fmt_width (data->meta.bw_len, 's'); draw_header (win, bw, fw, y, *x, w, color_selected); free (fw); } else { wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%*s", data->meta.bw_len, bw); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } out: free (bw); /* free immediately */ *x += data->meta.bw_len + DASH_SPACE; } /* Render a percent metric */ static void render_percent (GDashRender render, GColors *color, float perc, int len, int x) { WINDOW *win = render.win; char *percent; int y = render.y, w = render.w, sel = render.sel; if (sel) { /* selected state */ percent = float2str (perc, len); draw_header (win, percent, "%s%%", y, x, w, color_selected); free (percent); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, x, "%*.2f%%", len, perc); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } } /* Render the hits percent metric for each panel */ static void render_hits_percent (GDashModule *data, GDashRender render, int *x) { GColorItem item = COLOR_MTRC_HITS_PERC; GColors *color; int l = data->meta.hits_perc_len + 3, idx = render.idx; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (data->meta.max_hits == data->data[idx].metrics->hits) item = COLOR_MTRC_HITS_PERC_MAX; color = get_color_by_item_module (item, data->module); render_percent (render, color, data->data[idx].metrics->hits_perc, l, *x); out: *x += l + 1 + DASH_SPACE; } /* Render the visitors percent metric for each panel */ static void render_visitors_percent (GDashModule *data, GDashRender render, int *x) { GColorItem item = COLOR_MTRC_VISITORS_PERC; GColors *color; int l = data->meta.visitors_perc_len + 3, idx = render.idx; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (data->meta.max_visitors == data->data[idx].metrics->visitors) item = COLOR_MTRC_VISITORS_PERC_MAX; color = get_color_by_item_module (item, data->module); render_percent (render, color, data->data[idx].metrics->visitors_perc, l, *x); out: *x += l + 1 + DASH_SPACE; } /* Render the bandwidth percent metric for each panel */ static void render_bw_percent (GDashModule *data, GDashRender render, int *x) { GColorItem item = COLOR_MTRC_BW_PERC; GColors *color; int l = data->meta.bw_perc_len + 3, idx = render.idx; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (data->meta.max_bw == data->data[idx].metrics->nbw) /* clean! */ item = COLOR_MTRC_BW_PERC_MAX; color = get_color_by_item_module (item, data->module); render_percent (render, color, data->data[idx].metrics->bw_perc, l, *x); out: *x += l + 1 + DASH_SPACE; } /* Render the hits metric for each panel */ static void render_hits (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_HITS, data->module); WINDOW *win = render.win; char *hits; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; int len = data->meta.hits_len; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (sel) { /* selected state */ hits = u642str (data->data[idx].metrics->hits, len); draw_header (win, hits, " %s", y, 0, w, color_selected); free (hits); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%*" PRIu64 "", len, data->data[idx].metrics->hits); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } out: *x += len + DASH_SPACE; } /* Render the visitors metric for each panel */ static void render_visitors (GDashModule *data, GDashRender render, int *x) { GColors *color = get_color_by_item_module (COLOR_MTRC_VISITORS, data->module); WINDOW *win = render.win; char *visitors; int y = render.y, w = render.w, idx = render.idx, sel = render.sel; int len = data->meta.visitors_len; if (data->module == HOSTS && data->data[idx].is_subitem) goto out; if (sel) { /* selected state */ visitors = u642str (data->data[idx].metrics->visitors, len); draw_header (win, visitors, "%s", y, *x, w, color_selected); free (visitors); } else { /* regular state */ wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%*" PRIu64 "", len, data->data[idx].metrics->visitors); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } out: *x += len + DASH_SPACE; } /* Render the header row for each panel */ static void render_header (WINDOW *win, GDashModule *data, GModule cur_module, int *y) { GColors *(*func) (void); char ind; char *hd; int w, h; int panel_idx = get_module_index (data->module) + 1; /* 1-based position */ getmaxyx (win, h, w); (void) h; ind = cur_module == data->module ? '>' : ' '; func = cur_module == data->module && conf.hl_header ? color_panel_active : color_panel_header; hd = xmalloc (snprintf (NULL, 0, "%c %d - %s", ind, panel_idx, data->head) + 1); sprintf (hd, "%c %d - %s", ind, panel_idx, data->head); draw_header (win, hd, " %s", (*y), 0, w, func); free (hd); render_total_label (win, data, (*y), func); data->pos_y = (*y); (*y)++; } /* Render available metrics per panel. * ###TODO: Have the abilitity to display metrics in specific order */ static void render_metrics (GDashModule *data, GDashRender render) { int x = get_xpos (); GModule module = data->module; const GOutput *output = output_lookup (module); /* basic metrics */ if (output->hits) render_hits (data, render, &x); if (output->percent) render_hits_percent (data, render, &x); if (output->visitors) render_visitors (data, render, &x); if (output->percent) render_visitors_percent (data, render, &x); /* bandwidth + new bw % */ if (conf.bandwidth && output->bw) { render_bw (data, render, &x); if (output->percent) // ← NEW render_bw_percent (data, render, &x); } /* render avgts, cumts and maxts if available */ if (output->avgts && conf.serve_usecs) render_avgts (data, render, &x); if (output->cumts && conf.serve_usecs) render_cumts (data, render, &x); if (output->maxts && conf.serve_usecs) render_maxts (data, render, &x); /* render request method if available */ if (output->method && conf.append_method) render_method (data, render, &x); /* render request protocol if available */ if (output->protocol && conf.append_protocol) render_proto (data, render, &x); if (output->data) render_data (data, render, &x); } /* Render a dashboard row. */ static void render_data_line (WINDOW *win, GDashModule *data, int *y, int j, GScroll *gscroll) { GDashRender render; GModule module = data->module; int expanded = 0, sel = 0; int w, h; getmaxyx (win, h, w); (void) h; if (gscroll->expanded && module == gscroll->current) expanded = 1; if (j >= data->idx_data) goto out; sel = expanded && j == gscroll->module[module].scroll ? 1 : 0; /* Render +/- expand indicator for items with children */ if (expanded && data->data[j].has_children) { int nfi = data->data[j].node_full_idx; uint8_t *node_exp = gscroll->module[module].item_expanded; int node_exp_size = gscroll->module[module].item_expanded_size; char indicator = '+'; if (node_exp == NULL || nfi < 0 || nfi >= node_exp_size || node_exp[nfi]) indicator = '-'; if (sel) { GColors *selc = get_color (COLOR_SELECTED); wattron (win, selc->attr | COLOR_PAIR (selc->pair->idx)); mvwaddch (win, *y, 0, indicator); wattroff (win, selc->attr | COLOR_PAIR (selc->pair->idx)); } else { GColors *ind_color = get_color (COLOR_PANEL_COLS); wattron (win, ind_color->attr | COLOR_PAIR (ind_color->pair->idx)); mvwaddch (win, *y, 0, indicator); wattroff (win, ind_color->attr | COLOR_PAIR (ind_color->pair->idx)); } } render.win = win; render.y = *y; render.w = w; render.idx = j; render.sel = sel; render_metrics (data, render); out: (*y)++; } /* Render a dashed line underneath the metric label. */ static void print_horizontal_dash (WINDOW *win, int y, int x, int len) { mvwprintw (win, y, x, "%.*s", len, "----------------"); } /* Render left-aligned column label. */ static void lprint_col (WINDOW *win, int y, int *x, int len, const char *str) { GColors *color = get_color (COLOR_PANEL_COLS); wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%s", str); print_horizontal_dash (win, y + 1, *x, len); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); *x += len + DASH_SPACE; } /* Render right-aligned column label. */ static void rprint_col (WINDOW *win, int y, int *x, int len, const char *str) { GColors *color = get_color (COLOR_PANEL_COLS); wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, *x, "%*s", len, str); print_horizontal_dash (win, y + 1, *x, len); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); *x += len + DASH_SPACE; } /* Render column names for available metrics. * ###TODO: Have the abilitity to display metrics in specific order */ static void render_cols (WINDOW *win, GDashModule *data, int *y) { GModule module = data->module; const GOutput *output = output_lookup (module); int x = get_xpos (); if (data->idx_data == 0) return; if (output->hits) lprint_col (win, *y, &x, data->meta.hits_len, MTRC_HITS_LBL); if (output->percent) rprint_col (win, *y, &x, data->meta.hits_perc_len + 4, MTRC_HITS_PERC_LBL); if (output->visitors) rprint_col (win, *y, &x, data->meta.visitors_len, MTRC_VISITORS_SHORT_LBL); if (output->percent) rprint_col (win, *y, &x, data->meta.visitors_perc_len + 4, MTRC_VISITORS_PERC_LBL); if (conf.bandwidth && output->bw) { rprint_col (win, *y, &x, data->meta.bw_len, MTRC_BW_LBL); if (output->percent) rprint_col (win, *y, &x, data->meta.bw_perc_len + 4, MTRC_BW_PERC_LBL); } if (output->avgts && conf.serve_usecs) rprint_col (win, *y, &x, DASH_SRV_TM_LEN, MTRC_AVGTS_LBL); if (output->cumts && conf.serve_usecs) rprint_col (win, *y, &x, DASH_SRV_TM_LEN, MTRC_CUMTS_LBL); if (output->maxts && conf.serve_usecs) rprint_col (win, *y, &x, DASH_SRV_TM_LEN, MTRC_MAXTS_LBL); if (output->method && conf.append_method) lprint_col (win, *y, &x, data->meta.method_len, MTRC_METHODS_SHORT_LBL); if (output->protocol && conf.append_protocol) lprint_col (win, *y, &x, 8, MTRC_PROTOCOLS_SHORT_LBL); if (output->data) lprint_col (win, *y, &x, 4, MTRC_DATA_LBL); } static void compute_layout (PanelLayout *l, int size) { int current_pos = 0; l->header_pos = current_pos++; l->blank_after_header = current_pos++; l->chart_start = current_pos; l->chart_end = current_pos + DASH_CHART_HEIGHT - 1; current_pos += DASH_CHART_HEIGHT; l->blank_for_caret = current_pos++; l->blank_before_cols = current_pos++; l->cols_header_pos = current_pos++; l->cols_dashes_pos = current_pos++; l->data_start = current_pos; l->data_end = size - 2; } static void render_chart_row (WINDOW *win, GDashModule *data, GScroll *gscroll, GHolder *h, int *y, int win_h, int pos, PanelLayout *l) { GModule module = data->module; int selected = -1; int scroll_offset = 0; int metric_type, use_log_scale, reverse_bars; int visible_chart_start = pos - l->chart_start; if (*y < win_h) { metric_type = gscroll->module[module].current_metric; use_log_scale = gscroll->module[module].use_log_scale; reverse_bars = gscroll->module[module].reverse_bars; if (gscroll->expanded && module == gscroll->current) { selected = gscroll->module[module].scroll; scroll_offset = gscroll->module[module].offset; } { /* Computed fields are initialized to 0 / defaults by the struct copy They will be filled in by draw_panel_chart() */ ChartDrawCtx opts = { .win = win, .holder = h, .y_start = *y - visible_chart_start, .chart_height = DASH_CHART_HEIGHT, .auto_width = 0, .selected_idx = selected, .scroll_offset = scroll_offset, .show_axes = 1, .show_bar_values = 1, .metric_type = metric_type, .use_log_scale = use_log_scale, .reverse_bars = reverse_bars, .item_expanded = gscroll->module[module].item_expanded, .item_expanded_size = gscroll->module[module].item_expanded_size, }; draw_panel_chart (win, h, &opts); } } (*y)++; } static void render_data_row (WINDOW *win, GDashModule *data, GScroll *gscroll, int *y, int pos, PanelLayout *l) { GModule module = data->module; int j = pos - l->data_start; if (gscroll->expanded && module == gscroll->current) j += gscroll->module[module].offset; if (j >= 0 && j < data->idx_data) render_data_line (win, data, y, j, gscroll); else (*y)++; } static void render_row (WINDOW *win, GDashModule *data, GScroll *gscroll, GHolder *h, int *y, int pos, int win_h, PanelLayout *l, int size, int *total) { if (pos == l->header_pos) { render_header (win, data, gscroll->current, y); } else if (pos == l->blank_after_header || pos == l->blank_for_caret || pos == l->blank_before_cols || pos == l->cols_dashes_pos || pos == size - 1) { (*y)++; } else if (pos >= l->chart_start && pos <= l->chart_end) { render_chart_row (win, data, gscroll, h, y, win_h, pos, l); } else if (pos == l->cols_header_pos) { render_cols (win, data, y); (*y)++; } else if (pos >= l->data_start && pos <= l->data_end) { render_data_row (win, data, gscroll, y, pos, l); } else { (*y)++; } (*total)++; } static void render_content (WINDOW *win, GDashModule *data, int *y, int *offset, int *total, GScroll *gscroll, GHolder *h) { int i, size; int win_h, win_w; PanelLayout layout; getmaxyx (win, win_h, win_w); (void) win_w; size = data->dash_size; compute_layout (&layout, size); for (i = *offset; i < size; i++) { int pos = i % size; render_row (win, data, gscroll, h, y, pos, win_h, &layout, size, total); if (*y >= win_h) break; } } void display_content (WINDOW *win, GDash *dash, GScroll *gscroll, GHolder *holder) { GModule module; int j = 0; size_t idx = 0; int y = 0, offset = 0, total = 0; int dash_scroll = gscroll->dash; werase (win); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; offset = 0; for (j = 0; j < dash->module[module].dash_size; j++) { if (dash_scroll > total) { offset++; total++; } } /* used module */ dash->module[module].module = module; render_content (win, &dash->module[module], &y, &offset, &total, gscroll, &holder[module]); } wrefresh (win); } /* Reset the scroll and offset fields for each panel/module. */ void reset_scroll_offsets (GScroll *gscroll) { GModule module; size_t idx = 0; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; gscroll->module[module].scroll = 0; gscroll->module[module].offset = 0; reset_item_expanded (&gscroll->module[module]); } } /* Compile the regular expression and see if it's valid. * * If unable to compile, an error as described in <regex.h>. * Upon successful completion, function returns 0. */ static int regexp_init (regex_t *regex, const char *pattern) { int y, x, rc; char buf[REGEX_ERROR]; getmaxyx (stdscr, y, x); rc = regcomp (regex, pattern, REG_EXTENDED | (find_t.icase ? REG_ICASE : 0)); /* something went wrong */ if (rc != 0) { regerror (rc, regex, buf, sizeof (buf)); draw_header (stdscr, buf, "%s", y - 1, 0, x, color_error); refresh (); return 1; } return 0; } /* Expand all ancestor nodes for a found item and compute its visible flat index. * * Walks the holder hierarchy. For the found item's root parent (parent_idx), * expands that root. Then walks into the sub-list to find the sub-item at * sub_idx position, expanding each intermediate parent along the way. * Returns the flat index of the found item in the resulting visible layout. */ static int expand_ancestors_and_calc_idx (GHolder *h, GModule module, GScroll *gscroll, int parent_idx, int sub_idx, int is_sub) { uint8_t *node_exp = gscroll->module[module].item_expanded; int node_exp_size = gscroll->module[module].item_expanded_size; int flat_idx = 0, full_idx = 0; int j; /* Count visible rows for all root items before parent_idx */ for (j = 0; j < parent_idx && j < (int) h[module].idx; j++) { int my_full = full_idx; flat_idx++; full_idx++; if (h[module].items[j].sub_list && h[module].items[j].sub_list->size > 0) { int expanded = 1; if (node_exp != NULL && my_full < node_exp_size) expanded = node_exp[my_full]; if (expanded) flat_idx += count_visible_sub (h[module].items[j].sub_list, node_exp, node_exp_size, &full_idx); else full_idx += count_sub_items_recursive (h[module].items[j].sub_list); } } /* Now at parent_idx */ { int root_full = full_idx; flat_idx++; /* the root item itself */ full_idx++; /* If not searching in sub-items, return the root position */ if (!is_sub) return flat_idx - 1; /* Expand this root so its children are visible */ if (node_exp != NULL && root_full < node_exp_size) node_exp[root_full] = 1; /* Walk into sub-items to find the target at sub_idx. * sub_count mirrors the flat 'i' counter in find_next_sub_item: * i=0 is the first level-1 sub, i increments for each level-1 sub * and for each nested level-2 sub in between. */ { GSubList *sl = h[module].items[parent_idx].sub_list; GSubItem *iter; int sub_count = 0; if (sl == NULL) return flat_idx - 1; for (iter = sl->head; iter; iter = iter->next) { int my_sub_full = full_idx; /* Check if this level-1 sub-item is the target */ if (sub_count == sub_idx) { flat_idx++; return flat_idx - 1; } flat_idx++; full_idx++; sub_count++; /* If this sub-item has children, walk through them */ if (iter->sub_list && iter->sub_list->size > 0) { /* Expand this intermediate parent so the found item's * siblings at the next level are visible */ if (node_exp != NULL && my_sub_full < node_exp_size) node_exp[my_sub_full] = 1; { GSubItem *nested; for (nested = iter->sub_list->head; nested; nested = nested->next) { if (sub_count == sub_idx) { flat_idx++; return flat_idx - 1; } flat_idx++; full_idx++; sub_count++; } } } } } } return flat_idx > 0 ? flat_idx - 1 : 0; } /* Set the dashboard scroll and offset based on the search index. */ static void perform_find_dash_scroll (GScroll *gscroll, GModule module, GHolder *h) { int *scrll, *offset; int exp_size = get_num_expanded_data_rows (); int total_nodes; /* reset gscroll offsets if we are changing module */ if (gscroll->current != module) reset_scroll_offsets (gscroll); /* Initialize per-node state if not yet set. * Size = total nodes in the tree (roots + all sub-items). */ if (gscroll->module[module].item_expanded == NULL && h != NULL) { total_nodes = h[module].idx + h[module].sub_items_size; init_item_expanded (&gscroll->module[module], total_nodes); } /* Expand ancestors of the found item and compute flat index. * * find_t.next_sub_idx is set to (1 + i) by find_next_sub_item as a resume * position. A value > 0 means the match is a sub-item at position (next_sub_idx - 1). * A value of 0 means the match is at the root level. */ if (h != NULL) { int is_sub_match = (find_t.next_sub_idx > 0) ? 1 : 0; int match_sub_pos = is_sub_match ? find_t.next_sub_idx - 1 : 0; find_t.next_idx = expand_ancestors_and_calc_idx (h, module, gscroll, find_t.next_parent_idx, match_sub_pos, is_sub_match); } scrll = &gscroll->module[module].scroll; offset = &gscroll->module[module].offset; (*scrll) = find_t.next_idx; if (*scrll >= exp_size && *scrll >= *offset + exp_size) (*offset) = (*scrll) < exp_size - 1 ? 0 : (*scrll) - exp_size + 1; gscroll->current = module; gscroll->dash = get_module_index (module) * DASH_COLLAPSED; gscroll->expanded = 1; find_t.module = module; } /* Find the searched item within the given sub list. * * If not found, the GFind structure is reset and 1 is returned. * If found, a GFind structure is set and 0 is returned. */ static int find_next_sub_item (GSubList *sub_list, regex_t *regex) { GSubItem *iter; int i = 0, rc; if (sub_list == NULL) goto out; for (iter = sub_list->head; iter; iter = iter->next) { if (i >= find_t.next_sub_idx) { rc = regexec (regex, iter->metrics->data, 0, NULL, 0); if (rc == 0) { find_t.next_idx++; find_t.next_sub_idx = (1 + i); return 0; } find_t.next_idx++; } i++; /* recurse into nested sub-items */ if (iter->sub_list != NULL) { GSubItem *nested; for (nested = iter->sub_list->head; nested; nested = nested->next) { if (i >= find_t.next_sub_idx) { rc = regexec (regex, nested->metrics->data, 0, NULL, 0); if (rc == 0) { find_t.next_idx++; find_t.next_sub_idx = (1 + i); return 0; } find_t.next_idx++; } i++; } } } out: find_t.next_parent_idx++; find_t.next_sub_idx = 0; find_t.look_in_sub = 0; return 1; } /* Perform a forward search across all modules. * * On error or if not found, 1 is returned. * On success or if found, a GFind structure is set and 0 is returned. */ int perform_next_find (GHolder *h, GScroll *gscroll) { GModule module; GSubList *sub_list; regex_t regex; char buf[REGEX_ERROR], *data; int y, x, j, n, rc; size_t idx = 0; getmaxyx (stdscr, y, x); if (find_t.pattern == NULL || *find_t.pattern == '\0') return 1; /* compile and initialize regexp */ if (regexp_init (®ex, find_t.pattern)) return 1; /* use last find_t.module and start search */ idx = find_t.module; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; n = h[module].idx; for (j = find_t.next_parent_idx; j < n; j++, find_t.next_idx++) { data = h[module].items[j].metrics->data; rc = regexec (®ex, data, 0, NULL, 0); /* error matching against the precompiled pattern buffer */ if (rc != 0 && rc != REG_NOMATCH) { regerror (rc, ®ex, buf, sizeof (buf)); draw_header (stdscr, buf, "%s", y - 1, 0, x, color_error); refresh (); regfree (®ex); return 1; } /* a match was found (data level) */ else if (rc == 0 && !find_t.look_in_sub) { find_t.look_in_sub = 1; perform_find_dash_scroll (gscroll, module, h); goto out; } /* look at sub list nodes */ else { sub_list = h[module].items[j].sub_list; if (find_next_sub_item (sub_list, ®ex) == 0) { perform_find_dash_scroll (gscroll, module, h); goto out; } } } /* reset find */ find_t.next_idx = 0; find_t.next_parent_idx = 0; find_t.next_sub_idx = 0; if (find_t.module != module) { reset_scroll_offsets (gscroll); gscroll->expanded = 0; } if (module == TOTAL_MODULES - 1) { find_t.module = 0; goto out; } } out: regfree (®ex); return 0; } /* Render a find dialog. * * On error or if no query is set, 1 is returned. * On success, the dialog is rendered and 0 is returned. */ int render_find_dialog (WINDOW *main_win, GScroll *gscroll) { int y, x, valid = 1; int w = FIND_DLG_WIDTH; int h = FIND_DLG_HEIGHT; char *query = NULL; WINDOW *win; getmaxyx (stdscr, y, x); win = newwin (h, w, (y - h) / 2, (x - w) / 2); keypad (win, TRUE); wborder (win, '|', '|', '-', '-', '+', '+', '+', '+'); draw_header (win, FIND_HEAD, " %s", 1, 1, w - 2, color_panel_header); mvwprintw (win, 2, 1, " %s", FIND_DESC); find_t.icase = 0; query = input_string (win, 4, 2, w - 3, "", 1, &find_t.icase); if (query != NULL && *query != '\0') { reset_scroll_offsets (gscroll); reset_find (); find_t.pattern = xstrdup (query); valid = 0; } if (query != NULL) free (query); touchwin (main_win); close_win (win); wrefresh (main_win); return valid; } static void set_dash_metrics (GDash **dash, GMetrics *metrics, GModule module, GPercTotals totals, int depth, uint32_t parent_state, int is_last) { GDashData *idata = NULL; GDashMeta *meta = NULL; char *data = NULL; int *idx; /* Call render_child_node with parent_state and is_last parameters */ data = depth ? render_child_node (metrics->data, depth, parent_state, is_last) : metrics->data; if (!data) return; idx = &(*dash)->module[module].idx_data; idata = &(*dash)->module[module].data[(*idx)]; meta = &(*dash)->module[module].meta; idata->metrics = new_gmetrics (); idata->is_subitem = depth; idata->has_children = 0; idata->node_full_idx = -1; idata->metrics->hits = metrics->hits; idata->metrics->hits_perc = get_percentage (totals.hits, metrics->hits); idata->metrics->visitors = metrics->visitors; idata->metrics->visitors_perc = get_percentage (totals.visitors, metrics->visitors); idata->metrics->nbw = metrics->nbw; idata->metrics->bw_perc = get_percentage (totals.bw, metrics->nbw); idata->metrics->data = xstrdup (data); if (conf.append_method && metrics->method) idata->metrics->method = metrics->method; if (conf.append_protocol && metrics->protocol) idata->metrics->protocol = metrics->protocol; if (!conf.serve_usecs) goto out; idata->metrics->avgts.sts = usecs_to_str (metrics->avgts.nts); idata->metrics->cumts.sts = usecs_to_str (metrics->cumts.nts); idata->metrics->maxts.sts = usecs_to_str (metrics->maxts.nts); out: if (depth) free (data); set_metrics_len (meta, idata); set_max_metrics (meta, idata); (*idx)++; } /* Recursively count all sub-items in a sub-list tree. */ static int count_sub_items_recursive (GSubList *sl) { GSubItem *iter; int count = 0; if (sl == NULL) return 0; for (iter = sl->head; iter; iter = iter->next) { count++; if (iter->sub_list) count += count_sub_items_recursive (iter->sub_list); } return count; } /* Recursively add sub-items to dashboard, respecting per-node expand state. * * full_idx: tracks position in full DFS traversal (for node_expanded[] indexing) * node_exp/node_exp_size: per-node expand state array * i: tracks the dash alloc_size counter * parent_state: bit array tracking which ancestor levels have more siblings */ static void add_sub_item_to_dash_recursive (GDash **dash, GSubList *sub_list, GModule module, GPercTotals totals, uint32_t *i, int depth, int *full_idx, uint8_t *node_exp, int node_exp_size, uint32_t parent_state) { GSubItem *iter; int *didx; int count = 0; int total_items = 0; GSubItem *temp; if (sub_list == NULL) return; /* First pass: count total items at this level */ for (temp = sub_list->head; temp; temp = temp->next) total_items++; /* Second pass: process each item */ for (iter = sub_list->head; iter; iter = iter->next, (*i)++) { int my_full_idx = *full_idx; int has_kids = (iter->sub_list != NULL && iter->sub_list->size > 0) ? 1 : 0; int is_last_child = (count == total_items - 1); uint32_t new_parent_state = parent_state; /* Update parent_state for children: * If this node is NOT the last child, set the bit at this depth level. * This tells children to draw │ at this column. * If this node IS the last child, clear the bit at this depth level. * This tells children to draw space at this column. */ if (!is_last_child) { new_parent_state |= (1 << depth); } else { new_parent_state &= ~(1 << depth); } /* Add this item to dashboard with proper parent_state and is_last flag */ set_dash_metrics (dash, iter->metrics, module, totals, depth, parent_state, is_last_child); /* Set node metadata on the just-added item */ didx = &(*dash)->module[module].idx_data; (*dash)->module[module].data[(*didx) - 1].node_full_idx = my_full_idx; (*dash)->module[module].data[(*didx) - 1].has_children = has_kids; (*full_idx)++; /* Recurse into nested sub-items only if this node is expanded */ if (has_kids) { int should_expand = 1; if (node_exp != NULL && my_full_idx < node_exp_size) should_expand = node_exp[my_full_idx]; if (should_expand) { /* Pass new_parent_state to children so they know about our sibling status */ add_sub_item_to_dash_recursive (dash, iter->sub_list, module, totals, i, depth + 1, full_idx, node_exp, node_exp_size, new_parent_state); } else { /* Skip all descendants in full_idx counting */ *full_idx += count_sub_items_recursive (iter->sub_list); } } count++; } } /* Add a first level item to dashboard. * * On success, data is set into the dashboard structure. */ static void add_item_to_dash (GDash **dash, GHolderItem item, GModule module, GPercTotals totals, int full_idx) { int *idx; /* Root level items: depth=0, no parent_state, not last (doesn't matter for roots) */ set_dash_metrics (dash, item.metrics, module, totals, 0, 0, 0); /* set node metadata (idx was already incremented by set_dash_metrics) */ idx = &(*dash)->module[module].idx_data; (*dash)->module[module].data[(*idx) - 1].node_full_idx = full_idx; (*dash)->module[module].data[(*idx) - 1].has_children = (item.sub_list != NULL && item.sub_list->size > 0) ? 1 : 0; } /* Count visible sub-items recursively given per-node expand state. */ static int count_visible_sub (GSubList *sl, uint8_t *node_exp, int node_exp_size, int *full_idx) { GSubItem *iter; int count = 0; if (sl == NULL) return 0; for (iter = sl->head; iter; iter = iter->next) { int my_full_idx = *full_idx; count++; (*full_idx)++; if (iter->sub_list && iter->sub_list->size > 0) { int is_expanded = 1; if (node_exp != NULL && my_full_idx < node_exp_size) is_expanded = node_exp[my_full_idx]; if (is_expanded) count += count_visible_sub (iter->sub_list, node_exp, node_exp_size, full_idx); else *full_idx += count_sub_items_recursive (iter->sub_list); } } return count; } /* Count total visible items (roots + expanded sub-items) for a holder. */ static int count_visible_items (GHolder *h, uint8_t *node_exp, int node_exp_size) { int count = 0, full_idx = 0; uint32_t i; for (i = 0; i < h->idx; i++) { int my_full_idx = full_idx; count++; full_idx++; if (h->items[i].sub_list && h->items[i].sub_list->size > 0) { int is_expanded = 1; if (node_exp != NULL && my_full_idx < node_exp_size) is_expanded = node_exp[my_full_idx]; if (is_expanded) count += count_visible_sub (h->items[i].sub_list, node_exp, node_exp_size, &full_idx); else full_idx += count_sub_items_recursive (h->items[i].sub_list); } } return count; } /* Load holder's data into the dashboard structure. */ void load_data_to_dash (GHolder *h, GDash *dash, GModule module, GScroll *gscroll) { uint32_t alloc_size = 0; uint32_t i, j; int full_idx = 0; GPercTotals totals; uint8_t *node_exp = NULL; int node_exp_size = 0; alloc_size = dash->module[module].alloc_data; if (gscroll->expanded && module == gscroll->current) { node_exp = gscroll->module[module].item_expanded; node_exp_size = gscroll->module[module].item_expanded_size; /* Calculate visible items based on per-node expand state */ alloc_size = count_visible_items (h, node_exp, node_exp_size); /* Clamp to the original alloc (number of root items or max_choices) */ if (alloc_size < dash->module[module].alloc_data) alloc_size = dash->module[module].alloc_data; } dash->module[module].alloc_data = alloc_size; dash->module[module].data = new_gdata (alloc_size); dash->module[module].holder_size = h->holder_size; memset (&dash->module[module].meta, 0, sizeof (GDashMeta)); set_module_totals (&totals); for (i = 0, j = 0; i < alloc_size; i++) { if (h->items[j].metrics->data == NULL) continue; { int my_full_idx = full_idx; full_idx++; add_item_to_dash (&dash, h->items[j], module, totals, my_full_idx); if (gscroll->expanded && module == gscroll->current && h->items[j].sub_list && h->items[j].sub_list->size > 0) { int should_expand = 1; if (node_exp != NULL && my_full_idx < node_exp_size) should_expand = node_exp[my_full_idx]; if (should_expand) { uint32_t parent_state = 0; /* Root level has no parent state */ add_sub_item_to_dash_recursive (&dash, h->items[j].sub_list, module, totals, &i, 1, &full_idx, node_exp, node_exp_size, parent_state); } else { full_idx += count_sub_items_recursive (h->items[j].sub_list); } } } j++; } } ================================================ FILE: src/gdashboard.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifndef GDASHBOARD_H_INCLUDED #define GDASHBOARD_H_INCLUDED #include <stdint.h> #include "ui.h" /* IMPORTANT: These defines are BASE VALUES used for calculation. * Actual positions are calculated dynamically in render_content() */ #define DASH_HEAD_POS 0 /* position of header line */ #define DASH_EMPTY_POS 1 /* empty line position */ /* Chart positioning - these are fixed */ #define DASH_CHART_START 2 /* first chart row */ #define DASH_CHART_END (DASH_CHART_START + DASH_CHART_HEIGHT - 1) /* last chart row */ /* These are reference values - actual positions calculated dynamically */ #define DASH_BLANK1_POS (DASH_CHART_END + 1) /* blank after chart (for caret) */ #define DASH_BLANK2_POS (DASH_CHART_END + 2) /* blank before cols (if cols enabled) */ #define DASH_COLS_POS (DASH_CHART_END + 3) /* position of column names (if enabled) */ #define DASH_DASHES_POS (DASH_CHART_END + 4) /* position of dashes (if enabled) */ #define DASH_DATA_POS (DASH_CHART_END + 5) /* data line position (with cols) */ /* Helper macros for calculations */ #define DASH_NON_DATA (DASH_DATA_POS) /* number of rows without data stats */ #define DASH_COL_ROWS 2 /* number of rows for column values + dashed lines */ /* Panel sizes - these determine how many rows each panel occupies * Structure: * With columns: header + blank + chart(7) + blank + blank + cols + dashes + data(N) + blank = 13 + N * Without columns: header + blank + chart(7) + blank + data(N) + blank = 11 + N */ #define DASH_COLLAPSED (DASH_DATA_POS + 8 + 1) /* +1 for trailing blank */ #define DASH_EXPANDED (DASH_DATA_POS + 28 + 1) /* +1 for trailing blank */ /* Other constants */ #define DASH_INIT_X 1 /* start position (x-axis) */ #define DASH_BW_LEN 11 /* max bandwidth string length */ #define DASH_SRV_TM_LEN 9 /* max time served length */ #define DASH_SPACE 1 /* space between columns (metrics) */ typedef struct { int header_pos; int blank_after_header; int chart_start; int chart_end; int blank_for_caret; int blank_before_cols; int cols_header_pos; int cols_dashes_pos; int data_start; int data_end; } PanelLayout; /* Common render data line fields */ typedef struct GDashRender_ { WINDOW *win; int y; int w; int idx; int sel; } GDashRender; /* Dashboard panel item */ typedef struct GDashData_ { GMetrics *metrics; short is_subitem; short has_children; /* 1 if this node has sub-items */ int node_full_idx; /* index into node_expanded[] (full DFS position) */ } GDashData; /* Dashboard panel meta data */ typedef struct GDashMeta_ { uint64_t max_hits; /* maximum value on the hits column */ uint64_t max_visitors; /* maximum value on the visitors column */ uint64_t max_bw; /* determine the maximum metric's length of these metrics */ /* for instance, 1022 is the max value for the hits column and its length = 4 */ int hits_len; int hits_perc_len; int visitors_len; int visitors_perc_len; int bw_len; int bw_perc_len; int avgts_len; int cumts_len; int maxts_len; int method_len; int protocol_len; int data_len; } GDashMeta; /* Dashboard panel */ typedef struct GDashModule_ { GDashData *data; /* data metrics */ GModule module; /* module */ GDashMeta meta; /* meta data */ const char *head; /* panel header */ const char *desc; /* panel description */ uint32_t alloc_data; /* number of data items allocated. */ /* e.g., MAX_CHOICES or holder size */ int dash_size; /* dashboard size */ uint32_t holder_size; /* hash table size */ uint32_t ht_size; /* hash table size */ int idx_data; /* idx data */ unsigned short pos_y; /* dashboard current Y position */ } GDashModule; /* Dashboard */ typedef struct GDash_ { int total_alloc; /* number of allocated dashboard lines */ GDashModule module[TOTAL_MODULES]; } GDash; /* Function Prototypes */ GDashData *new_gdata (uint32_t size); GDash *new_gdash (void); uint32_t get_num_collapsed_data_rows (void); uint32_t get_num_expanded_data_rows (void); int perform_next_find (GHolder * h, GScroll * scroll); int render_find_dialog (WINDOW * main_win, GScroll * scroll); int set_module_from_mouse_event (GScroll * scroll, GDash * dash, int y); uint32_t get_ht_size_by_module (GModule module); void display_content (WINDOW * win, GDash * dash, GScroll * gscroll, GHolder * holder); void free_dashboard (GDash * dash); void load_data_to_dash (GHolder * h, GDash * dash, GModule module, GScroll * scroll); void reset_find (void); void reset_scroll_offsets (GScroll * scroll); #endif ================================================ FILE: src/gdns.c ================================================ /** * gdns.c -- hosts resolver * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _MULTI_THREADED #ifdef __FreeBSD__ #include <sys/socket.h> #endif #if HAVE_CONFIG_H #include <config.h> #endif #include <pthread.h> #include <netinet/in.h> #include <arpa/inet.h> #include <ctype.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <time.h> #include "gdns.h" #include "error.h" #include "gkhash.h" #include "goaccess.h" #include "util.h" #include "xmalloc.h" GDnsThread gdns_thread; static GDnsQueue *gdns_queue; /* Initialize the queue. */ void gqueue_init (GDnsQueue *q, int capacity) { q->head = 0; q->tail = -1; q->size = 0; q->capacity = capacity; } /* Get the current size of queue. * * Returns the size of the queue. */ int gqueue_size (GDnsQueue *q) { return q->size; } /* Determine if the queue is empty. * * Returns true if empty, otherwise false. */ int gqueue_empty (GDnsQueue *q) { return q->size == 0; } /* Determine if the queue is full. * * Returns true if full, otherwise false. */ int gqueue_full (GDnsQueue *q) { return q->size == q->capacity; } /* Free the queue. */ void gqueue_destroy (GDnsQueue *q) { free (q); } /* Add at the end of the queue a string item. * * If the queue is full, -1 is returned. * If added to the queue, 0 is returned. */ int gqueue_enqueue (GDnsQueue *q, const char *item) { if (gqueue_full (q)) return -1; q->tail = (q->tail + 1) % q->capacity; strncpy (q->buffer[q->tail], item, sizeof (q->buffer[q->tail])); q->buffer[q->tail][sizeof (q->buffer[q->tail]) - 1] = '\0'; q->size++; return 0; } /* Find a string item in the queue. * * If the queue is empty, or the item is not in the queue, 0 is returned. * If found, 1 is returned. */ int gqueue_find (GDnsQueue *q, const char *item) { int i; if (gqueue_empty (q)) return 0; for (i = 0; i < q->size; i++) { if (strcmp (item, q->buffer[i]) == 0) return 1; } return 0; } /* Remove a string item from the head of the queue. * * If the queue is empty, NULL is returned. * If removed, the string item is returned. */ char * gqueue_dequeue (GDnsQueue *q) { char *item; if (gqueue_empty (q)) return NULL; item = q->buffer[q->head]; q->head = (q->head + 1) % q->capacity; q->size--; return item; } /* Get the corresponding hostname given an IP address. * * On error, a string error message is returned. * On success, a malloc'd hostname is returned. */ static char * reverse_host (const struct sockaddr *a, socklen_t length) { char h[H_SIZE] = { 0 }; int flags, st; flags = NI_NAMEREQD; st = getnameinfo (a, length, h, H_SIZE, NULL, 0, flags); if (!st) { /* BSD returns \0 while Linux . on solve lookups */ if (*h == '\0') return alloc_string ("."); return alloc_string (h); } return alloc_string (gai_strerror (st)); } /* Determine if IPv4 or IPv6 and resolve. * * On error, NULL is returned. * On success, a malloc'd hostname is returned. */ char * reverse_ip (char *str) { union { struct sockaddr addr; struct sockaddr_in6 addr6; struct sockaddr_in addr4; } a; if (str == NULL || *str == '\0') return NULL; memset (&a, 0, sizeof (a)); if (1 == inet_pton (AF_INET, str, &a.addr4.sin_addr)) { a.addr4.sin_family = AF_INET; return reverse_host (&a.addr, sizeof (a.addr4)); } else if (1 == inet_pton (AF_INET6, str, &a.addr6.sin6_addr)) { a.addr6.sin6_family = AF_INET6; return reverse_host (&a.addr, sizeof (a.addr6)); } return NULL; } /* Producer - Resolve an IP address and add it to the queue. */ void dns_resolver (char *addr) { pthread_mutex_lock (&gdns_thread.mutex); /* queue is not full and the IP address is not in the queue */ if (!gqueue_full (gdns_queue) && !gqueue_find (gdns_queue, addr)) { /* add the IP to the queue */ gqueue_enqueue (gdns_queue, addr); pthread_cond_broadcast (&gdns_thread.not_empty); } pthread_mutex_unlock (&gdns_thread.mutex); } /* Consumer - Once an IP has been resolved, add it to dwithe hostnames * hash structure. */ static void dns_worker (void GO_UNUSED (*ptr_data)) { char *ip = NULL, *host = NULL; while (1) { pthread_mutex_lock (&gdns_thread.mutex); /* wait until an item has been added to the queue */ while (gqueue_empty (gdns_queue)) pthread_cond_wait (&gdns_thread.not_empty, &gdns_thread.mutex); ip = gqueue_dequeue (gdns_queue); pthread_mutex_unlock (&gdns_thread.mutex); host = reverse_ip (ip); pthread_mutex_lock (&gdns_thread.mutex); if (!active_gdns) { pthread_mutex_unlock (&gdns_thread.mutex); free (host); return; } /* insert the corresponding IP -> hostname map */ if (host != NULL && active_gdns) { ht_insert_hostname (ip, host); free (host); } pthread_cond_signal (&gdns_thread.not_full); pthread_mutex_unlock (&gdns_thread.mutex); } } /* Initialize queue and dns thread */ void gdns_init (void) { gdns_queue = xmalloc (sizeof (GDnsQueue)); gqueue_init (gdns_queue, QUEUE_SIZE); if (pthread_cond_init (&(gdns_thread.not_empty), NULL)) FATAL ("Failed init thread condition"); if (pthread_cond_init (&(gdns_thread.not_full), NULL)) FATAL ("Failed init thread condition"); if (pthread_mutex_init (&(gdns_thread.mutex), NULL)) FATAL ("Failed init thread mutex"); } /* Destroy (free) queue */ void gdns_free_queue (void) { gqueue_destroy (gdns_queue); } /* Create a DNS thread and make it active */ void gdns_thread_create (void) { int th; active_gdns = 1; th = pthread_create (&(gdns_thread.thread), NULL, (void *) &dns_worker, NULL); if (th) FATAL ("Return code from pthread_create(): %d", th); pthread_detach (gdns_thread.thread); } ================================================ FILE: src/gdns.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GDNS_H_INCLUDED #define GDNS_H_INCLUDED #define H_SIZE 1025 #define QUEUE_SIZE 400 typedef struct GDnsThread_ { pthread_cond_t not_empty; /* not empty queue condition */ pthread_cond_t not_full; /* not full queue condition */ pthread_mutex_t mutex; pthread_t thread; } GDnsThread; typedef struct GDnsQueue_ { int head; /* index to head of queue */ int tail; /* index to tail of queue */ int size; /* queue size */ int capacity; /* length at most */ char buffer[QUEUE_SIZE][H_SIZE]; /* data item */ } GDnsQueue; extern GDnsThread gdns_thread; char *gqueue_dequeue (GDnsQueue * q); char *reverse_ip (char *str); int gqueue_empty (GDnsQueue * q); int gqueue_enqueue (GDnsQueue * q, const char *item); int gqueue_find (GDnsQueue * q, const char *item); int gqueue_full (GDnsQueue * q); int gqueue_size (GDnsQueue * q); void dns_resolver (char *addr); void gdns_free_queue (void); void gdns_init (void); void gdns_queue_free (void); void gdns_thread_create (void); void gqueue_destroy (GDnsQueue * q); void gqueue_init (GDnsQueue * q, int capacity); #endif ================================================ FILE: src/geoip1.c ================================================ /** * geoip.c -- implementation of GeoIP (legacy) * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifdef HAVE_LIBGEOIP #include <GeoIP.h> #include <GeoIPCity.h> #endif #include "geoip1.h" #include "error.h" #include "util.h" static GeoIP **geoips = NULL; static GeoIP *geo_location_data = NULL; static int db_cnt = 0; static int legacy_db = 0; /* Determine if we have a valid geoip resource. * * If the geoip resource is NULL, 0 is returned. * If the geoip resource is valid and malloc'd, 1 is returned. */ int is_geoip_resource (void) { return ((geoips && db_cnt) || (legacy_db && geo_location_data)); } /* Free up GeoIP resources */ void geoip_free (void) { int idx = 0; if (!is_geoip_resource ()) return; for (idx = 0; idx < db_cnt; idx++) GeoIP_delete (geoips[idx]); if (legacy_db) GeoIP_delete (geo_location_data); GeoIP_cleanup (); free (geoips); geoips = NULL; } /* Open the given GeoLocation database and set its charset. * * On error, it aborts. * On success, a new geolocation structure is returned. */ static GeoIP * geoip_open_db (const char *db) { GeoIP *geoip = GeoIP_open (db, GEOIP_MEMORY_CACHE); if (geoip == NULL) return NULL; GeoIP_set_charset (geoip, GEOIP_CHARSET_UTF8); LOG_DEBUG (("Opened legacy GeoIP database: %s\n", db)); return geoip; } static int set_geoip_db_by_type (GeoIP *geoip, GO_GEOIP_DB type) { unsigned char rec = GeoIP_database_edition (geoip); switch (rec) { case GEOIP_ASNUM_EDITION: if (type != TYPE_ASN) break; geo_location_data = geoip; return 0; case GEOIP_COUNTRY_EDITION: case GEOIP_COUNTRY_EDITION_V6: if (type != TYPE_COUNTRY && type != TYPE_CITY) break; geo_location_data = geoip; return 0; case GEOIP_CITY_EDITION_REV0: case GEOIP_CITY_EDITION_REV1: case GEOIP_CITY_EDITION_REV0_V6: case GEOIP_CITY_EDITION_REV1_V6: if (type != TYPE_CITY) break; geo_location_data = geoip; return 0; } return 1; } static int set_conf_by_type (GeoIP *geoip) { unsigned char rec = GeoIP_database_edition (geoip); switch (rec) { case GEOIP_ASNUM_EDITION: conf.has_geoasn = 1; return 0; case GEOIP_COUNTRY_EDITION: case GEOIP_COUNTRY_EDITION_V6: conf.has_geocountry = 1; return 0; case GEOIP_CITY_EDITION_REV0: case GEOIP_CITY_EDITION_REV1: case GEOIP_CITY_EDITION_REV0_V6: case GEOIP_CITY_EDITION_REV1_V6: conf.has_geocountry = conf.has_geocity = 1; return 0; } return 1; } /* Look up for a database on our array and set it as our current handlers. * Note: this is not ideal, for now. However, legacy will go out of support at some point. * * On error or if no entry is found, 1 is returned. * On success, GeoIP struct is set as our handler and 0 is returned. */ static int set_geoip_db (GO_GEOIP_DB type) { int idx = 0; if (!is_geoip_resource ()) return 1; /* in memory legacy DB */ if (legacy_db && geo_location_data) return 0; for (idx = 0; idx < db_cnt; idx++) { if (set_geoip_db_by_type (geoips[idx], type) == 0) return 0; } return 1; } static void set_geoip (const char *db) { GeoIP **new_geoips = NULL, *geoip = NULL; if (db == NULL || *db == '\0') return; if (!(geoip = geoip_open_db (db))) FATAL ("Unable to open GeoIP database %s\n", db); db_cnt++; new_geoips = realloc (geoips, sizeof (*geoips) * db_cnt); if (new_geoips == NULL) FATAL ("Unable to realloc GeoIP database %s\n", db); geoips = new_geoips; geoips[db_cnt - 1] = geoip; set_conf_by_type (geoip); } /* Set up and open GeoIP database */ void init_geoip (void) { int i; for (i = 0; i < conf.geoip_db_idx; ++i) set_geoip (conf.geoip_databases[i]); /* fall back to legacy GeoIP database */ if (!conf.geoip_db_idx) { geo_location_data = GeoIP_new (conf.geo_db); legacy_db = 1; } } static char ip4to6_out_buffer[17]; static char * ip4to6 (const char *ipv4) { unsigned int b[4]; int n = sscanf (ipv4, "%u.%u.%u.%u", b, b + 1, b + 2, b + 3); if (n == 4) { snprintf (ip4to6_out_buffer, sizeof (ip4to6_out_buffer), "::ffff:%02x%02x:%02x%02x", b[0], b[1], b[2], b[3]); return ip4to6_out_buffer; } return NULL; } /* Get continent name concatenated with code. * * If continent not found, "Unknown" is returned. * On success, the continent code & name is returned . */ static const char * get_continent_name_and_code (const char *continentid) { if (memcmp (continentid, "NA", 2) == 0) return "NA North America"; else if (memcmp (continentid, "OC", 2) == 0) return "OC Oceania"; else if (memcmp (continentid, "EU", 2) == 0) return "EU Europe"; else if (memcmp (continentid, "SA", 2) == 0) return "SA South America"; else if (memcmp (continentid, "AF", 2) == 0) return "AF Africa"; else if (memcmp (continentid, "AN", 2) == 0) return "AN Antarctica"; else if (memcmp (continentid, "AS", 2) == 0) return "AS Asia"; else return "-- Unknown"; } /* Compose a string with the country name and code and store it in the * given buffer. */ static void geoip_set_country (const char *country, const char *code, char *loc) { if (country && code) snprintf (loc, COUNTRY_LEN, "%s %s", code, country); else snprintf (loc, COUNTRY_LEN, "%s", "Unknown"); } /* Compose a string with the city name and state/region and store it * in the given buffer. */ static void geoip_set_city (const char *city, const char *region, char *loc) { snprintf (loc, CITY_LEN, "%s, %s", city ? city : "N/A City", region ? region : "N/A Region"); } /* Compose a string with the continent name and store it in the given * buffer. */ static void geoip_set_continent (const char *continent, char *loc) { if (continent) snprintf (loc, CONTINENT_LEN, "%s", get_continent_name_and_code (continent)); else snprintf (loc, CONTINENT_LEN, "%s", "Unknown"); } /* Compose a string with the continent name and store it in the given * buffer. */ static void geoip_set_asn (const char *name, char *asn) { if (name) snprintf (asn, ASN_LEN, "%s", name); else snprintf (asn, ASN_LEN, "%s", "Unknown"); } /* Get detailed information found in the GeoIP Database about the * given IPv4 or IPv6. * * On error, NULL is returned * On success, GeoIPRecord structure is returned */ static GeoIPRecord * get_geoip_record (const char *addr, GTypeIP type_ip) { GeoIPRecord *rec = NULL; if (TYPE_IPV4 == type_ip) rec = GeoIP_record_by_name (geo_location_data, addr); else if (TYPE_IPV6 == type_ip) rec = GeoIP_record_by_name_v6 (geo_location_data, addr); return rec; } /* Set country data by record into the given `location` buffer based * on the IP version. */ static void geoip_set_country_by_record (const char *ip, char *location, GTypeIP type_ip) { GeoIPRecord *rec = NULL; const char *country = NULL, *code = NULL, *addr = ip; if (geo_location_data == NULL) return; /* Custom GeoIP database */ if ((rec = get_geoip_record (addr, type_ip))) { country = rec->country_name; code = rec->country_code; } geoip_set_country (country, code, location); if (rec != NULL) { GeoIPRecord_delete (rec); } } /* Get the GeoIP location id by name. * * On error, 0 is returned * On success, the GeoIP location id is returned */ static int geoip_get_geoid (const char *addr, GTypeIP type_ip) { int geoid = 0; if (TYPE_IPV4 == type_ip) geoid = GeoIP_id_by_name (geo_location_data, addr); else if (TYPE_IPV6 == type_ip) geoid = GeoIP_id_by_name_v6 (geo_location_data, addr); return geoid; } /* Get the country name by GeoIP location id. * * On error, NULL is returned * On success, the country name is returned */ static const char * geoip_get_country_by_geoid (const char *addr, GTypeIP type_ip) { const char *country = NULL; if (TYPE_IPV4 == type_ip) country = GeoIP_country_name_by_name (geo_location_data, addr); else if (TYPE_IPV6 == type_ip) country = GeoIP_country_name_by_name_v6 (geo_location_data, addr); return country; } /* Set country data by geoid into the given `location` buffer based on * the IP version. */ static void geoip_set_country_by_geoid (const char *ip, char *location, GTypeIP type_ip) { const char *country = NULL, *code = NULL, *addr = ip; int geoid = 0; if (!is_geoip_resource ()) return; if (!(country = geoip_get_country_by_geoid (addr, type_ip))) goto out; /* return two letter country code */ if (!(geoid = geoip_get_geoid (addr, type_ip))) goto out; code = GeoIP_code_by_id (geoid); out: geoip_set_country (country, code, location); } /* Set continent data by record into the given `location` buffer based * on the IP version. */ static void geoip_set_continent_by_record (const char *ip, char *location, GTypeIP type_ip) { GeoIPRecord *rec = NULL; const char *continent = NULL, *addr = ip; if (geo_location_data == NULL) return; /* Custom GeoIP database */ if ((rec = get_geoip_record (addr, type_ip))) continent = rec->continent_code; geoip_set_continent (continent, location); if (rec != NULL) { GeoIPRecord_delete (rec); } } /* Set continent data by geoid into the given `location` buffer based * on the IP version. */ static void geoip_set_continent_by_geoid (const char *ip, char *location, GTypeIP type_ip) { const char *continent = NULL, *addr = ip; int geoid = 0; if (!is_geoip_resource ()) return; if (!(geoid = geoip_get_geoid (addr, type_ip))) goto out; continent = GeoIP_continent_by_id (geoid); out: geoip_set_continent (continent, location); } /* Set city data by record into the given `location` buffer based on * the IP version. */ static void geoip_set_city_by_record (const char *ip, char *location, GTypeIP type_ip) { GeoIPRecord *rec = NULL; const char *city = NULL, *region = NULL, *addr = ip; /* Custom GeoIP database */ if ((rec = get_geoip_record (addr, type_ip))) { city = rec->city; region = rec->region; } geoip_set_city (city, region, location); if (rec != NULL) { GeoIPRecord_delete (rec); } } /* Set city data by geoid or record into the given `location` buffer * based on the IP version and currently used database edition. * It uses the custom GeoIP database - i.e., GeoLiteCity.dat */ static void geoip_get_city (const char *ip, char *location, GTypeIP type_ip) { unsigned char rec = 0; if (geo_location_data == NULL) return; rec = GeoIP_database_edition (geo_location_data); switch (rec) { case GEOIP_CITY_EDITION_REV0: case GEOIP_CITY_EDITION_REV1: if (TYPE_IPV4 == type_ip) geoip_set_city_by_record (ip, location, TYPE_IPV4); else geoip_set_city (NULL, NULL, location); break; case GEOIP_CITY_EDITION_REV0_V6: case GEOIP_CITY_EDITION_REV1_V6: if (TYPE_IPV6 == type_ip) geoip_set_city_by_record (ip, location, TYPE_IPV6); else { char *ipv6 = ip4to6 (ip); if (ipv6) geoip_set_city_by_record (ipv6, location, TYPE_IPV6); else geoip_set_city (NULL, NULL, location); } break; } } /* Set country data by geoid or record into the given `location` buffer * based on the IP version and currently used database edition. */ void geoip_get_country (const char *ip, char *location, GTypeIP type_ip) { unsigned char rec = 0; if (set_geoip_db (TYPE_COUNTRY) && set_geoip_db (TYPE_CITY)) { geoip_set_country (NULL, NULL, location); return; } rec = GeoIP_database_edition (geo_location_data); switch (rec) { case GEOIP_COUNTRY_EDITION: if (TYPE_IPV4 == type_ip) geoip_set_country_by_geoid (ip, location, TYPE_IPV4); else geoip_set_country (NULL, NULL, location); break; case GEOIP_COUNTRY_EDITION_V6: if (TYPE_IPV6 == type_ip) geoip_set_country_by_geoid (ip, location, TYPE_IPV6); else { char *ipv6 = ip4to6 (ip); if (ipv6) geoip_set_country_by_geoid (ipv6, location, TYPE_IPV6); else geoip_set_country (NULL, NULL, location); } break; case GEOIP_CITY_EDITION_REV0: case GEOIP_CITY_EDITION_REV1: if (TYPE_IPV4 == type_ip) geoip_set_country_by_record (ip, location, TYPE_IPV4); else geoip_set_country (NULL, NULL, location); break; case GEOIP_CITY_EDITION_REV0_V6: case GEOIP_CITY_EDITION_REV1_V6: if (TYPE_IPV6 == type_ip) geoip_set_country_by_record (ip, location, TYPE_IPV6); else { char *ipv6 = ip4to6 (ip); if (ipv6) geoip_set_country_by_record (ipv6, location, TYPE_IPV6); else geoip_set_country (NULL, NULL, location); } break; } } /* Set continent data by geoid or record into the given `location` buffer * based on the IP version and currently used database edition. */ void geoip_get_continent (const char *ip, char *location, GTypeIP type_ip) { unsigned char rec = 0; if (set_geoip_db (TYPE_COUNTRY) && set_geoip_db (TYPE_CITY)) { geoip_set_continent (NULL, location); return; } rec = GeoIP_database_edition (geo_location_data); switch (rec) { case GEOIP_COUNTRY_EDITION: if (TYPE_IPV4 == type_ip) geoip_set_continent_by_geoid (ip, location, TYPE_IPV4); else geoip_set_continent (NULL, location); break; case GEOIP_COUNTRY_EDITION_V6: if (TYPE_IPV6 == type_ip) geoip_set_continent_by_geoid (ip, location, TYPE_IPV6); else { char *ipv6 = ip4to6 (ip); if (ipv6) geoip_set_continent_by_geoid (ipv6, location, TYPE_IPV6); else geoip_set_continent (NULL, location); } break; case GEOIP_CITY_EDITION_REV0: case GEOIP_CITY_EDITION_REV1: if (TYPE_IPV4 == type_ip) geoip_set_continent_by_record (ip, location, TYPE_IPV4); else geoip_set_continent (NULL, location); break; case GEOIP_CITY_EDITION_REV0_V6: case GEOIP_CITY_EDITION_REV1_V6: if (TYPE_IPV6 == type_ip) geoip_set_continent_by_record (ip, location, TYPE_IPV6); else { char *ipv6 = ip4to6 (ip); if (ipv6) geoip_set_continent_by_record (ipv6, location, TYPE_IPV6); else geoip_set_continent (NULL, location); } break; } } void geoip_asn (char *host, char *asn) { char *name = NULL; if (legacy_db || set_geoip_db (TYPE_ASN)) { geoip_set_asn (NULL, asn); return; } /* Custom GeoIP database */ name = GeoIP_org_by_name (geo_location_data, (const char *) host); geoip_set_asn (name, asn); free (name); } /* Entry point to set GeoIP location into the corresponding buffers, * (continent, country, city). * * On error, 1 is returned * On success, buffers are set and 0 is returned */ int set_geolocation (char *host, char *continent, char *country, char *city, GO_UNUSED char *asn) { int type_ip = 0; if (!is_geoip_resource ()) return 1; if (invalid_ipaddr (host, &type_ip)) return 1; /* set ASN data */ geoip_asn (host, asn); /* set Country/City data */ if (set_geoip_db (TYPE_COUNTRY) == 0 || set_geoip_db (TYPE_CITY) == 0) { geoip_get_country (host, country, type_ip); geoip_get_continent (host, continent, type_ip); } if (set_geoip_db (TYPE_CITY) == 0) geoip_get_city (host, city, type_ip); return 0; } ================================================ FILE: src/geoip1.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifndef GEOIP_H_INCLUDED #define GEOIP_H_INCLUDED #include "commons.h" #define CITY_LEN 47 + 1 /* max string length for a city */ #define CONTINENT_LEN 47 + 1 /* max string length for a country */ #define COUNTRY_LEN 48 + 3 /* Country + two-letter Code */ #define ASN_LEN 64 + 6 /* ASN + 5 digit/16-bit number/code */ /* Type of IP */ typedef enum { TYPE_COUNTRY, TYPE_CITY, TYPE_ASN } GO_GEOIP_DB; typedef struct GLocation_ { char city[CITY_LEN]; char continent[CONTINENT_LEN]; int hits; } GLocation; int is_geoip_resource (void); int set_geolocation (char *host, char *continent, char *country, char *city, char *asn); void geoip_asn (char *host, char *asn); void geoip_free (void); void geoip_get_continent (const char *ip, char *location, GTypeIP type_ip); void geoip_get_country (const char *ip, char *location, GTypeIP type_ip); void init_geoip (void); #endif // for #ifndef GEOIP_H ================================================ FILE: src/geoip2.c ================================================ /** * geoip2.c -- implementation of GeoIP2 * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2020 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <stdlib.h> #include <string.h> #include <errno.h> #ifdef HAVE_LIBMAXMINDDB #include <maxminddb.h> #endif #include "geoip1.h" #include "error.h" #include "labels.h" #include "util.h" #include "xmalloc.h" /* should be reused across lookups */ static int geoip_asn_type = 0; static int geoip_city_type = 0; static int geoip_country_type = 0; static int mmdb_cnt = 0; static MMDB_s *mmdbs = NULL; /* Determine if we have a valid geoip resource. * * If the geoip resource is NULL, 0 is returned. * If the geoip resource is valid and malloc'd, 1 is returned. */ int is_geoip_resource (void) { return mmdbs && mmdb_cnt; } /* Free up GeoIP resources */ void geoip_free (void) { int idx = 0; if (!is_geoip_resource ()) return; for (idx = 0; idx < mmdb_cnt; idx++) MMDB_close (&mmdbs[idx]); free (mmdbs); mmdbs = NULL; } static void set_geoip (const char *db) { int status = 0; MMDB_s *new_mmdbs = NULL, mmdb; if (db == NULL || *db == '\0') return; if ((status = MMDB_open (db, MMDB_MODE_MMAP, &mmdb)) != MMDB_SUCCESS) FATAL ("Unable to open GeoIP2 database %s: %s\n", db, MMDB_strerror (status)); mmdb_cnt++; new_mmdbs = realloc (mmdbs, sizeof (*mmdbs) * mmdb_cnt); if (new_mmdbs == NULL) FATAL ("Unable to realloc GeoIP2 database %s\n", db); mmdbs = new_mmdbs; mmdbs[mmdb_cnt - 1] = mmdb; if (strstr (mmdb.metadata.database_type, "-City") != NULL) conf.has_geocountry = conf.has_geocity = geoip_country_type = geoip_city_type = 1; if (strstr (mmdb.metadata.database_type, "-ASN") != NULL) conf.has_geoasn = geoip_asn_type = 1; if (strstr (mmdb.metadata.database_type, "-Country") != NULL) conf.has_geocountry = geoip_country_type = 1; } /* Open the given GeoIP2 database. * * On error, it aborts. * On success, a new geolocation structure is set. */ void init_geoip (void) { int i; for (i = 0; i < conf.geoip_db_idx; ++i) set_geoip (conf.geoip_databases[i]); } /* Look up an IP address that is passed in as a null-terminated string. * * On error, it aborts. * If no entry is found, 1 is returned. * On success, MMDB_lookup_result_s struct is set and 0 is returned. */ static int geoip_lookup (MMDB_lookup_result_s *res, const char *ip, int is_asn) { int gai_err, mmdb_err, idx = 0; MMDB_s *mmdb = NULL; for (idx = 0; idx < mmdb_cnt; idx++) { if (is_asn && (!strstr (mmdbs[idx].metadata.database_type, "ASN"))) continue; if (!is_asn && (strstr (mmdbs[idx].metadata.database_type, "ASN"))) continue; mmdb = &mmdbs[idx]; *res = MMDB_lookup_string (mmdb, ip, &gai_err, &mmdb_err); if (0 != gai_err) return 1; if (MMDB_SUCCESS != mmdb_err) FATAL ("Error from libmaxminddb: %s\n", MMDB_strerror (mmdb_err)); if (!(*res).found_entry) return 1; break; } return 0; } /* Get continent name concatenated with code. * * If continent not found, "Unknown" is returned. * On success, the continent code & name is returned . */ static const char * get_continent_name_and_code (const char *continentid) { if (memcmp (continentid, "NA", 2) == 0) return "NA North America"; else if (memcmp (continentid, "OC", 2) == 0) return "OC Oceania"; else if (memcmp (continentid, "EU", 2) == 0) return "EU Europe"; else if (memcmp (continentid, "SA", 2) == 0) return "SA South America"; else if (memcmp (continentid, "AF", 2) == 0) return "AF Africa"; else if (memcmp (continentid, "AN", 2) == 0) return "AN Antarctica"; else if (memcmp (continentid, "AS", 2) == 0) return "AS Asia"; else return "-- Unknown"; } /* Compose a string with the country name and code and store it in the * given buffer. */ static void geoip_set_country (const char *country, const char *code, char *loc) { if (country && code) snprintf (loc, COUNTRY_LEN, "%s %s", code, country); else snprintf (loc, COUNTRY_LEN, "%s", "Unknown"); } /* Compose a string with the ASN name and code and store it in the * given buffer. */ static void geoip_set_asn (MMDB_entry_data_s name, MMDB_entry_data_s code, char *asn, int status) { if (status == 0) snprintf (asn, ASN_LEN, "%05u: %.*s", code.uint32, name.data_size, name.utf8_string); else snprintf (asn, ASN_LEN, "%s", "00000: Unknown"); } /* Compose a string with the city name and state/region and store it * in the given buffer. */ static void geoip_set_city (const char *city, char *loc) { snprintf (loc, CITY_LEN, "%s", city ? city : "N/A City"); } /* Compose a string with the continent name and store it in the given * buffer. */ static void geoip_set_continent (const char *continent, char *loc) { if (continent) snprintf (loc, CONTINENT_LEN, "%s", get_continent_name_and_code (continent)); else snprintf (loc, CONTINENT_LEN, "%s", "Unknown"); } /* A wrapper to fetch the looked up result set. * * On error, it aborts. * If no data is found, NULL is returned. * On success, the fetched value is returned. */ static char * get_value (MMDB_lookup_result_s res, ...) { MMDB_entry_data_s entry_data; char *value = NULL; int status = 0; va_list keys; va_start (keys, res); status = MMDB_vget_value (&res.entry, &entry_data, keys); va_end (keys); if (status != MMDB_SUCCESS) return NULL; if (!entry_data.has_data) return NULL; if (entry_data.type != MMDB_DATA_TYPE_UTF8_STRING) FATAL ("Invalid data UTF8 GeoIP2 data %d:\n", entry_data.type); if ((value = strndup (entry_data.utf8_string, entry_data.data_size)) == NULL) FATAL ("Unable to allocate buffer %s: ", strerror (errno)); return value; } /* A wrapper to fetch the looked up result and set the city and region. * * If no data is found, NULL is set. * On success, the fetched value is set. */ static void geoip_query_city (MMDB_lookup_result_s res, char *location) { char *city = NULL, *region = NULL; if (res.found_entry) { city = get_value (res, "city", "names", DOC_LANG, NULL); region = get_value (res, "subdivisions", "0", "names", DOC_LANG, NULL); if (!city) { city = get_value (res, "city", "names", "en", NULL); } if (!region) { region = get_value (res, "subdivisions", "0", "names", "en", NULL); } } geoip_set_city (city, location); free (city); free (region); } /* A wrapper to fetch the looked up result and set the country and code. * * If no data is found, NULL is set. * On success, the fetched value is set. */ static void geoip_query_country (MMDB_lookup_result_s res, char *location) { char *country = NULL, *code = NULL; if (res.found_entry) { country = get_value (res, "country", "names", DOC_LANG, NULL); code = get_value (res, "country", "iso_code", NULL); if (!country) { country = get_value (res, "country", "names", "en", NULL); } } geoip_set_country (country, code, location); free (code); free (country); } /* Sets the value for the given array of strings as the lookup path. * * On error or not found, 1 is returned. * On success, 0 is returned and the entry data is set. */ static int geoip_query_asn_code (MMDB_lookup_result_s res, MMDB_entry_data_s *code) { int status; const char *key[] = { "autonomous_system_number", NULL }; if (res.found_entry) { status = MMDB_aget_value (&res.entry, code, key); if (status != MMDB_SUCCESS || !code->has_data) return 1; } return 0; } /* Sets the value for the given array of strings as the lookup path. * * On error or not found, 1 is returned. * On success, 0 is returned and the entry data is set. */ static int geoip_query_asn_name (MMDB_lookup_result_s res, MMDB_entry_data_s *name) { int status; const char *key[] = { "autonomous_system_organization", NULL }; if (res.found_entry) { status = MMDB_aget_value (&res.entry, name, key); if (status != MMDB_SUCCESS || !name->has_data) return 1; } return 0; } /* A wrapper to fetch the looked up result and set the ASN organization & code. * * If no data is found, "Unknown" is set. * On success, the fetched value is set. */ void geoip_asn (char *host, char *asn) { MMDB_lookup_result_s res = { 0 }; MMDB_entry_data_s name = { 0 }; MMDB_entry_data_s code = { 0 }; int status = 1; geoip_lookup (&res, host, 1); if (!res.found_entry) goto out; if ((status &= geoip_query_asn_name (res, &name))) goto out; if ((status |= geoip_query_asn_code (res, &code))) goto out; out: geoip_set_asn (name, code, asn, status); } /* A wrapper to fetch the looked up result and set the continent code. * * If no data is found, NULL is set. * On success, the fetched value is set. */ static void geoip_query_continent (MMDB_lookup_result_s res, char *location) { char *code = NULL; if (res.found_entry) code = get_value (res, "continent", "code", NULL); geoip_set_continent (code, location); free (code); } /* Set country data by record into the given `location` buffer */ void geoip_get_country (const char *ip, char *location, GO_UNUSED GTypeIP type_ip) { MMDB_lookup_result_s res = { 0 }; geoip_lookup (&res, ip, 0); geoip_query_country (res, location); } /* A wrapper to fetch the looked up result and set the continent. */ void geoip_get_continent (const char *ip, char *location, GO_UNUSED GTypeIP type_ip) { MMDB_lookup_result_s res = { 0 }; geoip_lookup (&res, ip, 0); geoip_query_continent (res, location); } /* Entry point to set GeoIP location into the corresponding buffers, * (continent, country, city). * * On error, 1 is returned * On success, buffers are set and 0 is returned */ int set_geolocation (char *host, char *continent, char *country, char *city, char *asn) { MMDB_lookup_result_s res = { 0 }; if (!is_geoip_resource ()) return 1; /* set ASN data */ if (geoip_asn_type) geoip_asn (host, asn); if (!geoip_city_type && !geoip_country_type) return 0; /* set Country/City data */ geoip_lookup (&res, host, 0); geoip_query_country (res, country); geoip_query_continent (res, continent); if (geoip_city_type) geoip_query_city (res, city); return 0; } ================================================ FILE: src/gholder.c ================================================ /** * gholder.c -- data structure to hold raw data * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <pthread.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "gholder.h" #include "error.h" #include "gdns.h" #include "gkhash.h" #include "gstorage.h" #include "util.h" #include "xmalloc.h" #ifdef HAVE_GEOLOCATION #include "geoip1.h" #endif typedef struct GPanel_ { GModule module; void (*insert) (GRawDataItem item, GHolder * h, datatype type, const struct GPanel_ *); void (*holder_callback) (GHolder * h); } GPanel; /* *INDENT-OFF* */ static void add_data_to_holder (GRawDataItem item, GHolder * h, datatype type, const GPanel * panel); static void add_host_to_holder (GRawDataItem item, GHolder * h, datatype type, const GPanel * panel); static void add_root_to_holder (GRawDataItem item, GHolder * h, datatype type, const GPanel * panel); static void add_host_child_to_holder (GHolder * h); #ifdef HAVE_GEOLOCATION static void add_geo_to_holder (GRawDataItem item, GHolder * h, datatype type, const GPanel * panel); #endif static const GPanel paneling[] = { {VISITORS , add_data_to_holder , NULL}, {REQUESTS , add_data_to_holder , NULL}, {REQUESTS_STATIC , add_data_to_holder , NULL}, {NOT_FOUND , add_data_to_holder , NULL}, {HOSTS , add_host_to_holder , add_host_child_to_holder} , {OS , add_root_to_holder , NULL}, {BROWSERS , add_root_to_holder , NULL}, {VISIT_TIMES , add_data_to_holder , NULL}, {VIRTUAL_HOSTS , add_data_to_holder , NULL}, {REFERRERS , add_data_to_holder , NULL}, {REFERRING_SITES , add_data_to_holder , NULL}, {KEYPHRASES , add_data_to_holder , NULL}, {STATUS_CODES , add_root_to_holder , NULL}, {REMOTE_USER , add_data_to_holder , NULL}, {CACHE_STATUS , add_data_to_holder , NULL}, #ifdef HAVE_GEOLOCATION {GEO_LOCATION , add_geo_to_holder , NULL}, {ASN , add_data_to_holder , NULL} , #endif {MIME_TYPE , add_root_to_holder , NULL} , {TLS_TYPE , add_root_to_holder , NULL} , }; /* *INDENT-ON* */ /* Get a panel from the GPanel structure given a module. * * On error, or if not found, NULL is returned. * On success, the panel value is returned. */ static const GPanel * panel_lookup (GModule module) { int i, num_panels = ARRAY_SIZE (paneling); for (i = 0; i < num_panels; i++) { if (paneling[i].module == module) return &paneling[i]; } return NULL; } /* Allocate memory for a new GHolder instance. * * On success, the newly allocated GHolder is returned . */ GHolder * new_gholder (uint32_t size) { GHolder *holder = xmalloc (size * sizeof (GHolder)); memset (holder, 0, size * sizeof *holder); return holder; } /* Allocate memory for a new GHolderItem instance. * * On success, the newly allocated GHolderItem is returned . */ static GHolderItem * new_gholder_item (uint32_t size) { GHolderItem *item = xcalloc (size, sizeof (GHolderItem)); return item; } /* Allocate memory for a new double linked-list GSubList instance. * * On success, the newly allocated GSubList is returned . */ static GSubList * new_gsublist (void) { GSubList *sub_list = xmalloc (sizeof (GSubList)); sub_list->head = NULL; sub_list->tail = NULL; sub_list->size = 0; return sub_list; } /* Allocate memory for a new double linked-list GSubItem node. * * On success, the newly allocated GSubItem is returned . */ static GSubItem * new_gsubitem (GModule module, GMetrics *nmetrics) { GSubItem *sub_item = xmalloc (sizeof (GSubItem)); sub_item->metrics = nmetrics; sub_item->module = module; sub_item->sub_list = NULL; sub_item->prev = NULL; sub_item->next = NULL; return sub_item; } /* Add an item to the end of a given sub list. */ static void add_sub_item_back (GSubList *sub_list, GModule module, GMetrics *nmetrics) { GSubItem *sub_item = new_gsubitem (module, nmetrics); if (sub_list->tail) { sub_list->tail->next = sub_item; sub_item->prev = sub_list->tail; sub_list->tail = sub_item; } else { sub_list->head = sub_item; sub_list->tail = sub_item; } sub_list->size++; } /* Delete the entire given sub list. */ static void delete_sub_list (GSubList *sub_list) { GSubItem *item = NULL; GSubItem *next = NULL; if (sub_list->size == 0) goto clear; for (item = sub_list->head; item; item = next) { next = item->next; if (item->sub_list != NULL) delete_sub_list (item->sub_list); free (item->metrics->data); free (item->metrics); free (item); } clear: sub_list->head = NULL; sub_list->size = 0; free (sub_list); } /* Free malloc'd holder fields. */ static void free_holder_data (GHolderItem item) { if (item.sub_list != NULL) delete_sub_list (item.sub_list); free_gmetrics (item.metrics); } /* Free all memory allocated in holder for a given module. */ void free_holder_by_module (GHolder **holder, GModule module) { uint32_t j; if ((*holder) == NULL) return; for (j = 0; j < (*holder)[module].idx; j++) { free_holder_data ((*holder)[module].items[j]); } free ((*holder)[module].items); (*holder)[module].holder_size = 0; (*holder)[module].idx = 0; (*holder)[module].sub_items_size = 0; } /* Free all memory allocated in holder for all modules. */ void free_holder (GHolder **holder) { GModule module; uint32_t j; size_t idx = 0; if ((*holder) == NULL) return; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; for (j = 0; j < (*holder)[module].idx; j++) { free_holder_data ((*holder)[module].items[j]); } free ((*holder)[module].items); } free (*holder); (*holder) = NULL; } /* Iterate over holder and get the key index. * * If the key does not exist, -1 is returned. * On success, the key in holder is returned . */ static int get_item_idx_in_holder (GHolder *holder, const char *k) { uint32_t i; if (holder == NULL) return KEY_NOT_FOUND; if (holder->idx == 0) return KEY_NOT_FOUND; if (k == NULL || *k == '\0') return KEY_NOT_FOUND; for (i = 0; i < holder->idx; i++) { if (strcmp (k, holder->items[i].metrics->data) == 0) return i; } return KEY_NOT_FOUND; } /* Sort a single GSubList in place: copy to array, sort, rebuild list. * Preserves each sub-item's own sub_list for recursive nesting. */ static void sort_single_sub_list (GSubList **sl_ptr, GModule module, GSort sort, int max_choices_sub) { GHolderItem *arr; GSubItem *iter; GSubList *sub_list = *sl_ptr; int j, k, limit; if (sub_list == NULL || sub_list->size == 0) return; arr = new_gholder_item (sub_list->size); /* copy items from the linked-list into an array, preserving sub_list */ for (j = 0, iter = sub_list->head; iter; iter = iter->next, j++) { arr[j].metrics = new_gmetrics (); arr[j].metrics->nbw = iter->metrics->nbw; arr[j].metrics->data = xstrdup (iter->metrics->data); arr[j].metrics->hits = iter->metrics->hits; arr[j].metrics->id = iter->metrics->id; arr[j].metrics->visitors = iter->metrics->visitors; arr[j].sub_list = iter->sub_list; iter->sub_list = NULL; /* prevent double-free */ if (conf.serve_usecs) { arr[j].metrics->avgts.nts = iter->metrics->avgts.nts; arr[j].metrics->cumts.nts = iter->metrics->cumts.nts; arr[j].metrics->maxts.nts = iter->metrics->maxts.nts; } } sort_holder_items (arr, j, sort); delete_sub_list (sub_list); /* Only rebuild up to max_choices_sub items */ limit = (j < max_choices_sub) ? j : max_choices_sub; sub_list = new_gsublist (); for (k = 0; k < limit; k++) { if (k > 0) sub_list = *sl_ptr; add_sub_item_back (sub_list, module, arr[k].metrics); sub_list->tail->sub_list = arr[k].sub_list; *sl_ptr = sub_list; sub_list = NULL; } /* Free items beyond max_choices_sub */ for (k = limit; k < j; k++) { if (arr[k].sub_list != NULL) delete_sub_list (arr[k].sub_list); free (arr[k].metrics->data); free (arr[k].metrics); } free (arr); if (sub_list) { delete_sub_list (sub_list); sub_list = NULL; } /* recursively sort nested sub-lists */ sub_list = *sl_ptr; if (sub_list != NULL) { for (iter = sub_list->head; iter; iter = iter->next) { if (iter->sub_list != NULL) sort_single_sub_list (&iter->sub_list, module, sort, max_choices_sub); } } } /* Copy linked-list items to an array, sort, and move them back to the * list. Should be faster than sorting the list */ static void sort_sub_list (GHolder *h, GSort sort) { uint32_t i; /* iterate over root-level nodes */ for (i = 0; i < h->idx; i++) { sort_single_sub_list (&h->items[i].sub_list, h->module, sort, h->max_choices_sub); } } /* Set the data metric field for the host panel. * * On success, the data field/metric is set. */ static int set_host_child_metrics (char *data, uint8_t id, GMetrics **nmetrics) { GMetrics *metrics; metrics = new_gmetrics (); metrics->data = xstrdup (data); metrics->id = id; *nmetrics = metrics; return 0; } /* Set host panel data, including sub items. * * On success, the host panel data is set. */ static void set_host_sub_list (GHolder *h, GSubList *sub_list) { GMetrics *nmetrics; #ifdef HAVE_GEOLOCATION char city[CITY_LEN] = ""; char continent[CONTINENT_LEN] = ""; char country[ASN_LEN] = ""; char asn[ASN_LEN] = ""; #endif char *host = h->items[h->idx].metrics->data, *hostname = NULL; #ifdef HAVE_GEOLOCATION /* add geolocation child nodes */ set_geolocation (host, continent, country, city, asn); /* country */ if (country[0] != '\0' && sub_list->size < h->max_choices_sub) { set_host_child_metrics (country, MTRC_ID_COUNTRY, &nmetrics); add_sub_item_back (sub_list, h->module, nmetrics); h->items[h->idx].sub_list = sub_list; h->sub_items_size++; /* flag only */ conf.has_geocountry = 1; } /* city */ if (city[0] != '\0' && sub_list->size < h->max_choices_sub) { set_host_child_metrics (city, MTRC_ID_CITY, &nmetrics); add_sub_item_back (sub_list, h->module, nmetrics); h->items[h->idx].sub_list = sub_list; h->sub_items_size++; /* flag only */ conf.has_geocity = 1; } /* ASN */ if (asn[0] != '\0' && sub_list->size < h->max_choices_sub) { set_host_child_metrics (asn, MTRC_ID_ASN, &nmetrics); add_sub_item_back (sub_list, h->module, nmetrics); h->items[h->idx].sub_list = sub_list; h->sub_items_size++; /* flag only */ conf.has_geoasn = 1; } #endif /* hostname */ if (conf.enable_html_resolver && conf.output_stdout && !conf.no_ip_validation && !conf.real_time_html && sub_list->size < h->max_choices_sub) { hostname = reverse_ip (host); set_host_child_metrics (hostname, MTRC_ID_HOSTNAME, &nmetrics); add_sub_item_back (sub_list, h->module, nmetrics); h->items[h->idx].sub_list = sub_list; h->sub_items_size++; free (hostname); } } /* Set host panel data, including sub items. * * On success, the host panel data is set. */ static void add_host_child_to_holder (GHolder *h) { GMetrics *nmetrics; GSubList *sub_list = new_gsublist (); char *ip = h->items[h->idx].metrics->data; char *hostname = NULL; uint32_t n = h->sub_items_size; /* add child nodes */ set_host_sub_list (h, sub_list); pthread_mutex_lock (&gdns_thread.mutex); hostname = ht_get_hostname (ip); pthread_mutex_unlock (&gdns_thread.mutex); /* determine if we have the IP's hostname */ if (!hostname) { dns_resolver (ip); } else if (hostname && sub_list->size < h->max_choices_sub) { set_host_child_metrics (hostname, MTRC_ID_HOSTNAME, &nmetrics); add_sub_item_back (sub_list, h->module, nmetrics); h->items[h->idx].sub_list = sub_list; h->sub_items_size++; free (hostname); } else if (hostname) { free (hostname); } /* did not add any items */ if (n == h->sub_items_size) free (sub_list); } /* Given a GRawDataType, set the data and hits value. * * On error, no values are set and 1 is returned. * On success, the data and hits values are set and 0 is returned. */ static int map_data (GModule module, GRawDataItem item, datatype type, char **data, uint32_t *hits) { switch (type) { case U32: if (!(*data = ht_get_datamap (module, item.nkey))) return 1; if (!item.hits) return 1; *hits = item.hits; break; case STR: if (!(*hits = ht_get_hits (module, item.nkey))) return 1; *data = xstrdup (item.data); break; } return 0; } /* Given a data item, store it into a holder structure. */ static void set_single_metrics (GRawDataItem item, GHolder *h, char *data, uint32_t hits) { uint32_t visitors = 0; uint64_t bw = 0, cumts = 0, maxts = 0; bw = ht_get_bw (h->module, item.nkey); cumts = ht_get_cumts (h->module, item.nkey); maxts = ht_get_maxts (h->module, item.nkey); visitors = ht_get_visitors (h->module, item.nkey); h->items[h->idx].metrics = new_gmetrics (); h->items[h->idx].metrics->hits = hits; h->items[h->idx].metrics->data = data; h->items[h->idx].metrics->visitors = visitors; h->items[h->idx].metrics->nbw = bw; h->items[h->idx].metrics->avgts.nts = cumts / hits; h->items[h->idx].metrics->cumts.nts = cumts; h->items[h->idx].metrics->maxts.nts = maxts; if (bw && !conf.bandwidth) conf.bandwidth = 1; if (cumts && !conf.serve_usecs) conf.serve_usecs = 1; if (conf.append_method) { h->items[h->idx].metrics->method = ht_get_method (h->module, item.nkey); } if (conf.append_protocol) { h->items[h->idx].metrics->protocol = ht_get_protocol (h->module, item.nkey); } } /* Set all panel data. This will set data for panels that do not * contain sub items. A function pointer is used for post data set. */ static void add_data_to_holder (GRawDataItem item, GHolder *h, datatype type, const GPanel *panel) { char *data = NULL; uint32_t hits = 0; if (map_data (h->module, item, type, &data, &hits) == 1) return; set_single_metrics (item, h, data, hits); if (panel->holder_callback) panel->holder_callback (h); h->idx++; } /* A wrapper to set a host item */ static void set_host (GRawDataItem item, GHolder *h, const GPanel *panel, char *data, uint32_t hits) { set_single_metrics (item, h, xstrdup (data), hits); if (panel->holder_callback) panel->holder_callback (h); h->idx++; } /* Set all panel data. This will set data for panels that do not * contain sub items. A function pointer is used for post data set. */ static void add_host_to_holder (GRawDataItem item, GHolder *h, datatype type, const GPanel *panel) { char buf4[INET_ADDRSTRLEN]; char buf6[INET6_ADDRSTRLEN]; char *data = NULL; uint32_t hits = 0; unsigned i; struct in6_addr addr6, mask6, nwork6; struct in_addr addr4, mask4, nwork4; const char *arr4[] = { "255.255.255.0", "255.255.0.0", "255.0.0.0" }; const char *arr6[] = { "ffff:ffff:ffff:ffff:0000:0000:0000:0000", "ffff:ffff:ffff:0000:0000:0000:0000:0000", "ffff:ffff:0000:0000:0000:0000:0000:0000" }; const char *m4 = arr4[0]; const char *m6 = arr6[0]; if (map_data (h->module, item, type, &data, &hits) == 1) return; if (!conf.anonymize_ip) { add_data_to_holder (item, h, type, panel); free (data); return; } if (conf.anonymize_level == ANONYMIZE_STRONG || conf.anonymize_level == ANONYMIZE_PEDANTIC) { m4 = arr4[conf.anonymize_level - 1]; m6 = arr6[conf.anonymize_level - 1]; } if (1 == inet_pton (AF_INET, data, &addr4)) { if (1 == inet_pton (AF_INET, m4, &mask4)) { memset (buf4, 0, sizeof *buf4); nwork4.s_addr = addr4.s_addr & mask4.s_addr; if (inet_ntop (AF_INET, &nwork4, buf4, INET_ADDRSTRLEN) != NULL) { set_host (item, h, panel, buf4, hits); free (data); } } } else if (1 == inet_pton (AF_INET6, data, &addr6)) { if (1 == inet_pton (AF_INET6, m6, &mask6)) { memset (buf6, 0, sizeof *buf6); for (i = 0; i < 16; i++) { nwork6.s6_addr[i] = addr6.s6_addr[i] & mask6.s6_addr[i]; } if (inet_ntop (AF_INET6, &nwork6, buf6, INET6_ADDRSTRLEN) != NULL) { set_host (item, h, panel, buf6, hits); free (data); } } } } /* Set all root panel data. This will set the root nodes. */ static int set_root_metrics (GRawDataItem item, GModule module, datatype type, GMetrics **nmetrics) { GMetrics *metrics; char *data = NULL; uint64_t bw = 0, cumts = 0, maxts = 0; uint32_t hits = 0, visitors = 0; if (map_data (module, item, type, &data, &hits) == 1) return 1; bw = ht_get_bw (module, item.nkey); cumts = ht_get_cumts (module, item.nkey); maxts = ht_get_maxts (module, item.nkey); visitors = ht_get_visitors (module, item.nkey); metrics = new_gmetrics (); metrics->avgts.nts = cumts / hits; metrics->cumts.nts = cumts; metrics->maxts.nts = maxts; metrics->nbw = bw; metrics->data = data; metrics->hits = hits; metrics->visitors = visitors; *nmetrics = metrics; return 0; } /* Set all root panel data, including sub list items. */ static void add_root_to_holder (GRawDataItem item, GHolder *h, datatype type, GO_UNUSED const GPanel *panel) { GSubList *sub_list; GMetrics *metrics, *nmetrics; char *root = NULL; int root_idx = KEY_NOT_FOUND, idx = 0; if (set_root_metrics (item, h->module, type, &nmetrics) == 1) return; if (!(root = ht_get_root (h->module, item.nkey))) { free_gmetrics (nmetrics); return; } /* add data as a child node into holder */ if (KEY_NOT_FOUND == (root_idx = get_item_idx_in_holder (h, root))) { /* Check if we've reached max_choices for root items */ if (h->idx >= h->max_choices) { free (root); free_gmetrics (nmetrics); return; } idx = h->idx; sub_list = new_gsublist (); metrics = new_gmetrics (); h->items[idx].metrics = metrics; h->items[idx].metrics->data = root; h->idx++; } else { sub_list = h->items[root_idx].sub_list; metrics = h->items[root_idx].metrics; idx = root_idx; free (root); } /* Accumulate metrics into parent regardless of whether we add the sub-item */ h->items[idx].metrics = metrics; h->items[idx].metrics->cumts.nts += nmetrics->cumts.nts; h->items[idx].metrics->nbw += nmetrics->nbw; h->items[idx].metrics->hits += nmetrics->hits; h->items[idx].metrics->visitors += nmetrics->visitors; h->items[idx].metrics->avgts.nts = h->items[idx].metrics->cumts.nts / h->items[idx].metrics->hits; if (nmetrics->maxts.nts > h->items[idx].metrics->maxts.nts) h->items[idx].metrics->maxts.nts = nmetrics->maxts.nts; /* Only add sub-item if we haven't reached max_choices_sub for this sub-list */ if (sub_list->size < h->max_choices_sub) { add_sub_item_back (sub_list, h->module, nmetrics); h->items[idx].sub_list = sub_list; h->sub_items_size++; } else { free_gmetrics (nmetrics); } } #ifdef HAVE_GEOLOCATION /* Find a sub-item in a GSubList by its data string. * Returns the matching GSubItem, or NULL if not found. */ static GSubItem * find_sub_item_by_data (GSubList *sl, const char *data) { GSubItem *iter; if (sl == NULL || data == NULL) return NULL; for (iter = sl->head; iter; iter = iter->next) { if (strcmp (iter->metrics->data, data) == 0) return iter; } return NULL; } /* Build 3-level GEO_LOCATION hierarchy: Continent > Country > City. * Falls back to add_root_to_holder (2-level) when has_geocity is false. */ static void add_geo_to_holder (GRawDataItem item, GHolder *h, datatype type, GO_UNUSED const GPanel *panel) { GMetrics *nmetrics; GSubList *sub_list; GSubItem *country_sub; GMetrics *cont_metrics, *country_metrics; char *root = NULL; const char *continent = NULL; int root_idx = KEY_NOT_FOUND, idx = 0; if (!conf.has_geocity) { add_root_to_holder (item, h, type, panel); return; } /* city metrics from storage (city is the "data" key) */ if (set_root_metrics (item, h->module, type, &nmetrics) == 1) return; /* country is the "root" of the city in storage */ if (!(root = ht_get_root (h->module, item.nkey))) { free_gmetrics (nmetrics); return; } /* look up the continent for this country */ continent = get_continent_for_country (root); if (continent == NULL) { /* fallback: use country as root directly (2-level) */ free (root); add_root_to_holder (item, h, type, panel); free_gmetrics (nmetrics); return; } /* Find or create continent as root GHolderItem */ if (KEY_NOT_FOUND == (root_idx = get_item_idx_in_holder (h, continent))) { /* Check if we've reached max_choices for root items (continents) */ if (h->idx >= h->max_choices) { free (root); free_gmetrics (nmetrics); return; } idx = h->idx; cont_metrics = new_gmetrics (); cont_metrics->data = xstrdup (continent); h->items[idx].metrics = cont_metrics; h->items[idx].sub_list = new_gsublist (); h->idx++; } else { idx = root_idx; cont_metrics = h->items[idx].metrics; } /* Find or create country as sub-item under continent */ sub_list = h->items[idx].sub_list; country_sub = find_sub_item_by_data (sub_list, root); if (country_sub == NULL) { /* Only add country if continent's sub-list hasn't reached max_choices_sub */ if (sub_list->size < h->max_choices_sub) { country_metrics = new_gmetrics (); country_metrics->data = xstrdup (root); add_sub_item_back (sub_list, h->module, country_metrics); country_sub = sub_list->tail; country_sub->sub_list = new_gsublist (); h->sub_items_size++; } else { /* Continent sub-list is full, accumulate to continent and skip country/city */ cont_metrics->hits += nmetrics->hits; cont_metrics->visitors += nmetrics->visitors; cont_metrics->nbw += nmetrics->nbw; cont_metrics->cumts.nts += nmetrics->cumts.nts; if (nmetrics->maxts.nts > cont_metrics->maxts.nts) cont_metrics->maxts.nts = nmetrics->maxts.nts; if (cont_metrics->hits > 0) cont_metrics->avgts.nts = cont_metrics->cumts.nts / cont_metrics->hits; free_gmetrics (nmetrics); free (root); return; } } else { country_metrics = country_sub->metrics; /* Handle mixed 2-level (persisted) and 3-level (live) data: * older entries won't have a city sub-list. */ if (country_sub->sub_list == NULL) country_sub->sub_list = new_gsublist (); } /* Accumulate metrics upward: city -> country -> continent */ country_metrics->hits += nmetrics->hits; country_metrics->visitors += nmetrics->visitors; country_metrics->nbw += nmetrics->nbw; country_metrics->cumts.nts += nmetrics->cumts.nts; if (nmetrics->maxts.nts > country_metrics->maxts.nts) country_metrics->maxts.nts = nmetrics->maxts.nts; if (country_metrics->hits > 0) country_metrics->avgts.nts = country_metrics->cumts.nts / country_metrics->hits; cont_metrics->hits += nmetrics->hits; cont_metrics->visitors += nmetrics->visitors; cont_metrics->nbw += nmetrics->nbw; cont_metrics->cumts.nts += nmetrics->cumts.nts; if (nmetrics->maxts.nts > cont_metrics->maxts.nts) cont_metrics->maxts.nts = nmetrics->maxts.nts; if (cont_metrics->hits > 0) cont_metrics->avgts.nts = cont_metrics->cumts.nts / cont_metrics->hits; /* Add city as sub-item under country (only if country's sub-list hasn't reached max_choices_sub) */ if (country_sub->sub_list->size < h->max_choices_sub) { add_sub_item_back (country_sub->sub_list, h->module, nmetrics); h->sub_items_size++; } else { free_gmetrics (nmetrics); } free (root); } #endif /* Load raw data into our holder structure */ void load_holder_data (GRawData *raw_data, GHolder *h, GModule module, GSort sort, uint32_t max_choices, uint32_t max_choices_sub) { uint32_t i; uint32_t size = 0; uint32_t alloc_size = 0; const GPanel *panel = panel_lookup (module); /* Hierarchical panels group multiple raw items under fewer root items */ int is_hierarchical = (panel->insert == add_root_to_holder || #ifdef HAVE_GEOLOCATION panel->insert == add_geo_to_holder || #endif 0); #ifdef _DEBUG clock_t begin = clock (); double taken; const char *modstr = NULL; LOG_DEBUG (("== load_holder_data ==\n")); #endif size = raw_data->size; /* For hierarchical data, we don't know how many root items we'll create, * but it can't be more than size or max_choices */ alloc_size = size > max_choices ? max_choices : size; h->holder_size = is_hierarchical ? size : (size > max_choices ? max_choices : size); h->ht_size = size; h->idx = 0; h->module = module; h->sub_items_size = 0; h->max_choices = max_choices; h->max_choices_sub = max_choices_sub; h->items = new_gholder_item (alloc_size); for (i = 0; i < h->holder_size; i++) { panel->insert (raw_data->items[i], h, raw_data->type, panel); } sort_holder_items (h->items, h->idx, sort); if (h->sub_items_size) sort_sub_list (h, sort); free_raw_data (raw_data); #ifdef _DEBUG modstr = get_module_str (module); taken = (double) (clock () - begin) / CLOCKS_PER_SEC; LOG_DEBUG (("== %-30s%f\n\n", modstr, taken)); #endif } ================================================ FILE: src/gholder.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GHOLDER_H_INCLUDED #define GHOLDER_H_INCLUDED #define MTRC_ID_COUNTRY 0 #define MTRC_ID_CITY 1 #define MTRC_ID_ASN 2 #define MTRC_ID_HOSTNAME 3 #include "commons.h" #include "sort.h" /* Default Anonymization Levels */ typedef enum GAnonymizeLevels_ { ANONYMIZE_DEFAULT = 1, ANONYMIZE_STRONG, ANONYMIZE_PEDANTIC, } GAnonymizeLevels; /* Function Prototypes */ GHolder *new_gholder (uint32_t size); void *add_hostname_node (void *ptr_holder); void free_holder_by_module (GHolder ** holder, GModule module); void free_holder (GHolder ** holder); void load_holder_data (GRawData * raw_data, GHolder * h, GModule module, GSort sort, uint32_t max_choices, uint32_t max_choices_sub); void load_host_to_holder (GHolder * h, char *ip); int dup_key_list (void *val, GSLList ** user_data); #endif // for #ifndef GHOLDER_H ================================================ FILE: src/gkhash.c ================================================ /** * gkhash.c -- default hash table functions * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include "gkhash.h" #include "error.h" #include "persistence.h" #include "sort.h" #include "util.h" #include "xmalloc.h" /* *INDENT-OFF* */ /* Hash table that holds DB instances */ static khash_t (igdb) * ht_db = NULL; /* *INDENT-ON* */ /* Allocate memory for a new global GKHashDB instance. * * On success, the newly allocated GKHashDB is returned . */ static GKHashDB * new_gkhdb (void) { GKHashDB *storage = xcalloc (1, sizeof (GKHashDB)); return storage; } /* Allocate memory for a new GKDB instance. * * On success, the newly allocated GKHashDB is returned . */ static GKDB * new_gkdb (void) { GKDB *db = xcalloc (1, sizeof (GKDB)); return db; } /* Get the module string value given a metric enum value. * * On error, NULL is returned. * On success, the string module value is returned. */ const char * get_mtr_type_str (GSMetricType type) { static const GEnum enum_metric_types[] = { {"II32", MTRC_TYPE_II32}, {"IS32", MTRC_TYPE_IS32}, {"IU64", MTRC_TYPE_IU64}, {"SI32", MTRC_TYPE_SI32}, {"SI08", MTRC_TYPE_SI08}, {"II08", MTRC_TYPE_II08}, {"SS32", MTRC_TYPE_SS32}, {"IGSL", MTRC_TYPE_IGSL}, {"SU64", MTRC_TYPE_SU64}, {"IGKH", MTRC_TYPE_IGKH}, {"U648", MTRC_TYPE_U648}, {"IGLP", MTRC_TYPE_IGLP}, }; return enum2str (enum_metric_types, ARRAY_SIZE (enum_metric_types), type); } /* Initialize a new uint32_t key - GSLList value hash table */ void * new_igsl_ht (void) { khash_t (igsl) * h = kh_init (igsl); return h; } /* Initialize a new string key - uint32_t value hash table */ void * new_ii08_ht (void) { khash_t (ii08) * h = kh_init (ii08); return h; } /* Initialize a new uint32_t key - uint32_t value hash table */ void * new_ii32_ht (void) { khash_t (ii32) * h = kh_init (ii32); return h; } /* Initialize a new uint32_t key - string value hash table */ void * new_is32_ht (void) { khash_t (is32) * h = kh_init (is32); return h; } /* Initialize a new uint32_t key - uint64_t value hash table */ void * new_iu64_ht (void) { khash_t (iu64) * h = kh_init (iu64); return h; } /* Initialize a new string key - uint32_t value hash table */ void * new_si32_ht (void) { khash_t (si32) * h = kh_init (si32); return h; } /* Initialize a new string key - uint64_t value hash table */ void * new_su64_ht (void) { khash_t (su64) * h = kh_init (su64); return h; } /* Initialize a new uint64_t key - uint8_t value hash table */ void * new_u648_ht (void) { khash_t (u648) * h = kh_init (u648); return h; } /* Initialize a new uint64_t key - GLastParse value hash table */ static void * new_iglp_ht (void) { khash_t (iglp) * h = kh_init (iglp); return h; } /* Initialize a new uint32_t key - GKHashStorage value hash table */ static void * new_igdb_ht (void) { khash_t (igdb) * h = kh_init (igdb); return h; } /* Initialize a new uint32_t key - GKHashStorage value hash table */ static void * new_igkh_ht (void) { khash_t (igkh) * h = kh_init (igkh); return h; } /* Initialize a new string key - uint32_t value hash table */ static void * new_si08_ht (void) { khash_t (si08) * h = kh_init (si08); return h; } /* Initialize a new string key - string value hash table */ static void * new_ss32_ht (void) { khash_t (ss32) * h = kh_init (ss32); return h; } /* Deletes all entries from the hash table and optionally frees its GSLList */ void del_igsl_free (void *h, uint8_t free_data) { khint_t k; khash_t (igsl) * hash = h; void *list = NULL; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (!kh_exist (hash, k)) continue; if (free_data) { list = kh_value (hash, k); list_remove_nodes (list); } kh_del (igsl, hash, k); } } /* Deletes all entries from the hash table */ void del_ii08 (void *h, GO_UNUSED uint8_t free_data) { khint_t k; khash_t (ii08) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { kh_del (ii08, hash, k); } } } /* Deletes all entries from the hash table */ void del_ii32 (void *h, GO_UNUSED uint8_t free_data) { khint_t k; khash_t (ii32) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { kh_del (ii32, hash, k); } } } /* Deletes both the hash entry and its string values */ void del_is32_free (void *h, uint8_t free_data) { khint_t k; khash_t (is32) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { if (free_data) free ((char *) kh_value (hash, k)); kh_del (is32, hash, k); } } } /* Deletes all entries from the hash table */ void del_iu64 (void *h, GO_UNUSED uint8_t free_data) { khint_t k; khash_t (iu64) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { kh_del (iu64, hash, k); } } } /* Deletes an entry from the hash table and optionally the keys for a string * key - uint32_t value hash */ void del_si32_free (void *h, uint8_t free_data) { khint_t k; khash_t (si32) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { if (free_data) free ((char *) kh_key (hash, k)); kh_del (si32, hash, k); } } } /* Deletes all entries from the hash table and optionally frees its string key */ void del_su64_free (void *h, uint8_t free_data) { khint_t k; khash_t (su64) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { if (free_data) free ((char *) kh_key (hash, k)); kh_del (su64, hash, k); } } } /* Deletes all entries from the hash table */ void del_u648 (void *h, GO_UNUSED uint8_t free_data) { khint_t k; khash_t (u648) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { kh_del (u648, hash, k); } } } /* Destroys both the hash structure and its GSLList * values */ void des_igsl_free (void *h, uint8_t free_data) { khash_t (igsl) * hash = h; khint_t k; void *list = NULL; if (!hash) return; if (!free_data) goto des; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k) && (list = kh_value (hash, k))) { list_remove_nodes (list); } } des: kh_destroy (igsl, hash); } /* Destroys the hash structure */ void des_ii08 (void *h, GO_UNUSED uint8_t free_data) { khash_t (ii08) * hash = h; if (!hash) return; kh_destroy (ii08, hash); } /* Destroys the hash structure */ void des_ii32 (void *h, GO_UNUSED uint8_t free_data) { khash_t (ii32) * hash = h; if (!hash) return; kh_destroy (ii32, hash); } /* Destroys both the hash structure and its string values */ void des_is32_free (void *h, uint8_t free_data) { khint_t k; khash_t (is32) * hash = h; if (!hash) return; if (!free_data) goto des; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { free ((char *) kh_value (hash, k)); } } des: kh_destroy (is32, hash); } /* Destroys the hash structure */ void des_iu64 (void *h, GO_UNUSED uint8_t free_data) { khash_t (iu64) * hash = h; if (!hash) return; kh_destroy (iu64, hash); } /* Destroys both the hash structure and the keys for a * string key - uint32_t value hash */ void des_si32_free (void *h, uint8_t free_data) { khint_t k; khash_t (si32) * hash = h; if (!hash) return; if (!free_data) goto des; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { free ((char *) kh_key (hash, k)); } } des: kh_destroy (si32, hash); } /* Destroys both the hash structure and the keys for a * string key - uint64_t value hash */ void des_su64_free (void *h, uint8_t free_data) { khash_t (su64) * hash = h; khint_t k; if (!hash) return; if (!free_data) goto des; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { free ((char *) kh_key (hash, k)); } } des: kh_destroy (su64, hash); } /* Destroys the hash structure */ void des_u648 (void *h, GO_UNUSED uint8_t free_data) { khash_t (u648) * hash = h; if (!hash) return; kh_destroy (u648, hash); } /* Destroys both the hash structure and the keys for a * string key - uint32_t value hash */ static void des_si08_free (void *h, uint8_t free_data) { khint_t k; khash_t (si08) * hash = h; if (!hash) return; if (!free_data) goto des; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { free ((char *) kh_key (hash, k)); } } des: kh_destroy (si08, hash); } /* Deletes an entry from the hash table and optionally the keys for a string * key - uint32_t value hash */ static void del_si08_free (void *h, uint8_t free_data) { khint_t k; khash_t (si08) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { if (free_data) free ((char *) kh_key (hash, k)); kh_del (si08, hash, k); } } } /* Deletes an entry from the hash table and optionally the keys for a string * keys and string values */ static void del_ss32_free (void *h, uint8_t free_data) { khint_t k; khash_t (ss32) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { if (free_data) { free ((char *) kh_key (hash, k)); free ((char *) kh_value (hash, k)); } kh_del (ss32, hash, k); } } } /* Destroys both the hash structure and its string * keys and string values */ static void des_ss32_free (void *h, uint8_t free_data) { khint_t k; khash_t (ss32) * hash = h; if (!hash) return; if (!free_data) goto des; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) { free ((char *) kh_key (hash, k)); free ((char *) kh_value (hash, k)); } } des: kh_destroy (ss32, hash); } /* Destroys the hash structure */ static void des_iglp (void *h, GO_UNUSED uint8_t free_data) { khash_t (iglp) * hash = h; if (!hash) return; kh_destroy (iglp, hash); } /* *INDENT-OFF* */ /* Whole application */ const GKHashMetric app_metrics[] = { { .metric.dbm=MTRC_DATES , MTRC_TYPE_IGKH , new_igkh_ht , NULL , NULL , 1 , NULL , NULL } , { .metric.dbm=MTRC_SEQS , MTRC_TYPE_SI32 , new_si32_ht , des_si32_free , del_si32_free , 1 , NULL , "SI32_SEQS.db" } , { .metric.dbm=MTRC_CNT_OVERALL , MTRC_TYPE_SI32 , new_si32_ht , des_si32_free , del_si32_free , 1 , NULL , "SI32_CNT_OVERALL.db" } , { .metric.dbm=MTRC_HOSTNAMES , MTRC_TYPE_SS32 , new_ss32_ht , des_ss32_free , del_ss32_free , 1 , NULL , NULL } , { .metric.dbm=MTRC_LAST_PARSE , MTRC_TYPE_IGLP , new_iglp_ht , des_iglp , NULL , 1 , NULL , "IGLP_LAST_PARSE.db" } , { .metric.dbm=MTRC_JSON_LOGFMT , MTRC_TYPE_SS32 , new_ss32_ht , des_ss32_free , del_ss32_free , 1 , NULL , NULL } , { .metric.dbm=MTRC_METH_PROTO , MTRC_TYPE_SI08 , new_si08_ht , des_si08_free , del_si08_free , 1 , NULL , "SI08_METH_PROTO.db" } , { .metric.dbm=MTRC_DB_PROPS , MTRC_TYPE_SI32 , new_si32_ht , des_si32_free , del_si32_free , 1 , NULL , "SI32_DB_PROPS.db" } , }; const size_t app_metrics_len = ARRAY_SIZE (app_metrics); /* *INDENT-ON* */ /* Destroys malloc'd module metrics */ static void free_app_metrics (GKHashDB *storage) { int i, n = 0; GKHashMetric mtrc; if (!storage) return; n = app_metrics_len; for (i = 0; i < n; i++) { mtrc = storage->metrics[i]; if (mtrc.des) { mtrc.des (mtrc.hash, mtrc.free_data); } } free (storage); } /* Given a key (date), get the relevant store * * On error or not found, NULL is returned. * On success, a pointer to that store is returned. */ void * get_db_instance (uint32_t key) { GKDB *db = NULL; khint_t k; khash_t (igdb) * hash = ht_db; k = kh_get (igdb, hash, key); /* key not found, return NULL */ if (k == kh_end (hash)) return NULL; db = kh_val (hash, k); return db; } /* Get an app hash table given a DB instance and a GAMetric * * On success, a pointer to that store is returned. */ void * get_hdb (GKDB *db, GAMetric mtrc) { return db->hdb->metrics[mtrc].hash; } Logs * get_db_logs (uint32_t instance) { GKDB *db = get_db_instance (instance); return db->logs; } /* Initialize a global hash structure. * * On success, a pointer to that hash structure is returned. */ static GKHashDB * init_gkhashdb (void) { GKHashDB *storage = NULL; int n = 0, i; storage = new_gkhdb (); n = app_metrics_len; for (i = 0; i < n; i++) { storage->metrics[i] = app_metrics[i]; storage->metrics[i].hash = app_metrics[i].alloc (); } return storage; } /* Insert an uint32_t key and an GLastParse value * Note: If the key exists, its value is replaced by the given value. * * On error, -1 is returned. * On success 0 is returned */ int ins_iglp (khash_t (iglp) *hash, uint64_t key, const GLastParse *lp) { khint_t k; int ret; if (!hash) return -1; k = kh_put (iglp, hash, key, &ret); if (ret == -1) return -1; kh_val (hash, k) = *lp; return 0; } /* Create a new GKDB instance given a uint32_t key * * On error, -1 is returned. * On key found, 1 is returned. * On success 0 is returned */ static GKDB * new_db (khash_t (igdb) *hash, uint32_t key) { GKDB *db = NULL; khint_t k; int ret; if (!hash) return NULL; k = kh_put (igdb, hash, key, &ret); /* operation failed */ if (ret == -1) return NULL; /* the key is present in the hash table */ if (ret == 0) return kh_val (hash, k); db = new_gkdb (); db->hdb = init_gkhashdb (); db->cache = NULL; db->store = NULL; db->logs = NULL; kh_val (hash, k) = db; return db; } uint32_t * get_sorted_dates (uint32_t *len) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); khiter_t key; uint32_t *dates = NULL; int i = 0; uint32_t size = 0; if (!hash) return NULL; size = kh_size (hash); dates = xcalloc (size, sizeof (uint32_t)); for (key = kh_begin (hash); key != kh_end (hash); ++key) if (kh_exist (hash, key)) dates[i++] = kh_key (hash, key); qsort (dates, i, sizeof (uint32_t), cmp_ui32_asc); *len = i; return dates; } /* Insert a string key and the corresponding uint8_t value. * Note: If the key exists, the value is not replaced. * * On error, or if key exists, -1 is returned. * On success 0 is returned */ int ins_si08 (khash_t (si08) *hash, const char *key, uint8_t value) { khint_t k; int ret; char *dupkey = NULL; if (!hash) return -1; dupkey = xstrdup (key); k = kh_put (si08, hash, dupkey, &ret); /* operation failed, or key exists */ if (ret == -1 || ret == 0) { free (dupkey); return -1; } kh_val (hash, k) = value; return 0; } /* Increment a string key and with the corresponding incremental uint32_t value. * Note: If the key exists, the value is not replaced. * * On error, 0 is returned. * On success or if the key exists, the value is returned */ static uint8_t ins_si08_ai (khash_t (si08) *hash, const char *key) { uint8_t size = 0, value = 0; if (!hash) return 0; size = kh_size (hash); /* the auto increment value starts at SIZE (hash table) + 1 */ value = size > 0 ? size + 1 : 1; return ins_si08 (hash, key, value) == 0 ? value : 0; } /* Insert a string key and the corresponding uint32_t value. * Note: If the key exists, the value is not replaced. * * On error, or if key exists, -1 is returned. * On success 0 is returned */ int ins_si32 (khash_t (si32) *hash, const char *key, uint32_t value) { khint_t k; int ret; char *dupkey = NULL; if (!hash) return -1; dupkey = xstrdup (key); k = kh_put (si32, hash, dupkey, &ret); /* operation failed, or key exists */ if (ret == -1 || ret == 0) { free (dupkey); return -1; } kh_val (hash, k) = value; return 0; } /* Increment a string key and with the corresponding incremental uint32_t value. * Note: If the key exists, the value is not replaced. * * On error, 0 is returned. * On success or if the key exists, the value is returned */ uint32_t ins_si32_inc (khash_t (si32) *hash, const char *key, uint32_t (*cb) (khash_t (si32) *, const char *), khash_t (si32) *seqs, const char *seqk) { khint_t k; int ret; uint32_t value = 0; if (!hash) return 0; k = kh_put (si32, hash, key, &ret); /* operation failed, or key exists */ if (ret == -1 || ret == 0) return 0; if ((value = cb (seqs, seqk)) == 0) return 0; kh_val (hash, k) = value; return value; } /* Increment a uint32_t key and with the corresponding incremental uint32_t value. * Note: If the key exists, the value is not replaced. * * On error, 0 is returned. * On success or if the key exists, the value is returned */ uint32_t ins_ii32_inc (khash_t (ii32) *hash, uint32_t key, uint32_t (*cb) (khash_t (si32) *, const char *), khash_t (si32) *seqs, const char *seqk) { khint_t k; int ret; uint32_t value = 0; if (!hash) return 0; k = kh_put (ii32, hash, key, &ret); /* operation failed, or key exists */ if (ret == -1 || ret == 0) return 0; if ((value = cb (seqs, seqk)) == 0) return 0; kh_val (hash, k) = value; return value; } /* Insert an uint32_t key and the corresponding string value. * Note: If the key exists, the value is not replaced. * * On error, or if key exists, -1 is returned. * On success 0 is returned */ int ins_is32 (khash_t (is32) *hash, uint32_t key, char *value) { khint_t k; int ret; if (!hash) return -1; k = kh_put (is32, hash, key, &ret); if (ret == -1 || ret == 0) return -1; kh_val (hash, k) = value; return 0; } /* Insert a string key and the corresponding string value. * Note: If the key exists, the value is not replaced. * * On error, -1 is returned. * If key exists, 1 is returned. * On success 0 is returned */ static int ins_ss32 (khash_t (ss32) *hash, const char *key, const char *value) { khint_t k; int ret; char *dupkey = NULL; if (!hash) return -1; dupkey = xstrdup (key); k = kh_put (ss32, hash, dupkey, &ret); /* operation failed */ if (ret == -1) { free (dupkey); return -1; } /* key exists */ if (ret == 0) { free (dupkey); return 1; } kh_val (hash, k) = xstrdup (value); return 0; } /* Insert an uint32_t key and an uint32_t value * Note: If the key exists, its value is replaced by the given value. * * On error, -1 is returned. * On success 0 is returned */ int ins_ii32 (khash_t (ii32) *hash, uint32_t key, uint32_t value) { khint_t k; int ret; if (!hash) return -1; k = kh_put (ii32, hash, key, &ret); if (ret == -1) return -1; kh_val (hash, k) = value; return 0; } /* Insert an uint32_t key and an uint8_t value * Note: If the key exists, its value is replaced by the given value. * * On error, -1 is returned. * On success 0 is returned */ int ins_ii08 (khash_t (ii08) *hash, uint32_t key, uint8_t value) { khint_t k; int ret; if (!hash) return -1; k = kh_put (ii08, hash, key, &ret); if (ret == -1) return -1; kh_val (hash, k) = value; return 0; } /* Insert a uint32_t key and a uint64_t value * Note: If the key exists, its value is replaced by the given value. * * On error, -1 is returned. * On success 0 is returned */ int ins_iu64 (khash_t (iu64) *hash, uint32_t key, uint64_t value) { khint_t k; int ret; if (!hash) return -1; k = kh_put (iu64, hash, key, &ret); if (ret == -1) return -1; kh_val (hash, k) = value; return 0; } /* Insert a string key and a uint64_t value * Note: If the key exists, the value is not replaced. * * On error or key exists, -1 is returned. * On success 0 is returned */ int ins_su64 (khash_t (su64) *hash, const char *key, uint64_t value) { khint_t k; int ret; char *dupkey = NULL; if (!hash) return -1; dupkey = xstrdup (key); k = kh_put (su64, hash, dupkey, &ret); /* operation failed, or key exists */ if (ret == -1 || ret == 0) { free (dupkey); return -1; } kh_val (hash, k) = value; return 0; } /* Insert a uint64_t key and a uint8_t value * * On error or key exists, -1 is returned. * On key exists, 1 is returned. * On success 0 is returned */ int ins_u648 (khash_t (u648) *hash, uint64_t key, uint8_t value) { khint_t k; int ret; if (!hash) return -1; k = kh_put (u648, hash, key, &ret); if (ret == -1) return -1; if (ret == 0) return 1; kh_val (hash, k) = value; return 0; } /* Increase an uint32_t value given an uint32_t key. * * On error, 0 is returned. * On success the increased value is returned */ uint32_t inc_ii32 (khash_t (ii32) *hash, uint32_t key, uint32_t inc) { khint_t k; int ret; if (!hash) return 0; k = kh_get (ii32, hash, key); /* key not found, put a new hash with val=0 */ if (k == kh_end (hash)) { k = kh_put (ii32, hash, key, &ret); /* operation failed */ if (ret == -1) return 0; kh_val (hash, k) = 0; } return __atomic_add_fetch (&kh_val (hash, k), inc, __ATOMIC_SEQ_CST); } /* Increase a uint64_t value given a string key. * * On error, -1 is returned. * On success 0 is returned */ int inc_su64 (khash_t (su64) *hash, const char *key, uint64_t inc) { khint_t k; int ret; uint64_t value = inc; char *dupkey = NULL; if (!hash) return -1; k = kh_get (su64, hash, key); /* key not found, set new value to the given `inc` */ if (k == kh_end (hash)) { dupkey = xstrdup (key); k = kh_put (su64, hash, dupkey, &ret); /* operation failed */ if (ret == -1) { free (dupkey); return -1; } } else { value = kh_val (hash, k) + inc; } kh_val (hash, k) = value; return 0; } /* Increase a uint64_t value given a uint32_t key. * Note: If the key exists, its value is increased by the given inc. * * On error, -1 is returned. * On success 0 is returned */ int inc_iu64 (khash_t (iu64) *hash, uint32_t key, uint64_t inc) { khint_t k; int ret; uint64_t value = inc; if (!hash) return -1; k = kh_get (iu64, hash, key); /* key found, increment current value by the given `inc` */ if (k != kh_end (hash)) value = (uint64_t) kh_val (hash, k) + inc; k = kh_put (iu64, hash, key, &ret); if (ret == -1) return -1; kh_val (hash, k) = value; return 0; } /* Increase an uint32_t value given a string key. * * On error, 0 is returned. * On success the increased value is returned */ static uint32_t inc_si32 (khash_t (si32) *hash, const char *key, uint32_t inc) { khint_t k; int ret; char *dupkey = NULL; if (!hash) return 0; k = kh_get (si32, hash, key); /* key not found, put a new hash with val=0 */ if (k == kh_end (hash)) { dupkey = xstrdup (key); k = kh_put (si32, hash, dupkey, &ret); /* operation failed */ if (ret == -1) { free (dupkey); return 0; } /* concurrently added */ if (ret == 0) free (dupkey); kh_val (hash, k) = 0; } return __atomic_add_fetch (&kh_val (hash, k), inc, __ATOMIC_SEQ_CST); } /* Insert a string key and auto increment int value. * * On error, 0 is returned. * On key found, the stored value is returned * On success the value of the key inserted is returned */ uint32_t ins_ii32_ai (khash_t (ii32) *hash, uint32_t key) { int size = 0, value = 0; int ret; khint_t k; if (!hash) return 0; size = kh_size (hash); /* the auto increment value starts at SIZE (hash table) + 1 */ value = size > 0 ? size + 1 : 1; k = kh_put (ii32, hash, key, &ret); /* operation failed */ if (ret == -1) return 0; /* key exists */ if (ret == 0) return kh_val (hash, k); kh_val (hash, k) = value; return value; } /* Compare if the given needle is in the haystack * * if equal, 1 is returned, else 0 */ static int find_int_key_in_list (void *data, void *needle) { return (*(uint32_t *) data) == (*(uint32_t *) needle) ? 1 : 0; } /* Insert an int key and the corresponding GSLList (Single linked-list) value. * Note: If the key exists within the list, the value is not appended. * * On error, -1 is returned. * On success or if key is found, 0 is returned */ int ins_igsl (khash_t (igsl) *hash, uint32_t key, uint32_t value) { khint_t k; GSLList *list; int ret; if (!hash) return -1; k = kh_get (igsl, hash, key); /* key found, check if key exists within the list */ if (k != kh_end (hash) && (list = kh_val (hash, k))) { if (list_find (list, find_int_key_in_list, &value)) return 0; list = list_insert_prepend (list, i322ptr (value)); } else { list = list_create (i322ptr (value)); } k = kh_put (igsl, hash, key, &ret); if (ret == -1) { list_remove_nodes (list); return -1; } kh_val (hash, k) = list; return 0; } /* Get the uint32_t value of a given string key. * * On error, 0 is returned. * On success the uint32_t value for the given key is returned */ uint32_t get_si32 (khash_t (si32) *hash, const char *key) { khint_t k; if (!hash) return 0; k = kh_get (si32, hash, key); /* key found, return current value */ if (k != kh_end (hash)) return __atomic_load_n (&kh_val (hash, k), __ATOMIC_SEQ_CST); return 0; } /* Get the uint8_t value of a given string key. * * On error, 0 is returned. * On success the uint8_t value for the given key is returned */ uint8_t get_si08 (khash_t (si08) *hash, const char *key) { khint_t k; if (!hash) return 0; k = kh_get (si08, hash, key); /* key found, return current value */ if (k != kh_end (hash)) return kh_val (hash, k); return 0; } /* Get the uint8_t value of a given string key. * * On error, 0 is returned. * On success the uint8_t value for the given key is returned */ uint8_t get_ii08 (khash_t (ii08) *hash, uint32_t key) { khint_t k; if (!hash) return 0; k = kh_get (ii08, hash, key); /* key found, return current value */ if (k != kh_end (hash)) return kh_val (hash, k); return 0; } /* Get the string value of a given uint32_t key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * get_is32 (khash_t (is32) *hash, uint32_t key) { khint_t k; char *value = NULL; if (!hash) return NULL; k = kh_get (is32, hash, key); /* key found, return current value */ if (k != kh_end (hash) && (value = kh_val (hash, k))) return xstrdup (value); return NULL; } /* Get the string value of a given string key. * * On error, NULL is returned. * On success the string value for the given key is returned */ static char * get_ss32 (khash_t (ss32) *hash, const char *key) { khint_t k; char *value = NULL; if (!hash) return NULL; k = kh_get (ss32, hash, key); /* key found, return current value */ if (k != kh_end (hash) && (value = kh_val (hash, k))) return xstrdup (value); return NULL; } /* Get the uint32_t value of a given uint32_t key. * * If key is not found, 0 is returned. * On error, -1 is returned. * On success the uint32_t value for the given key is returned */ uint32_t get_ii32 (khash_t (ii32) *hash, uint32_t key) { khint_t k; if (!hash) return 0; k = kh_get (ii32, hash, key); /* key found, return current value */ if (k != kh_end (hash)) return __atomic_load_n (&kh_val (hash, k), __ATOMIC_SEQ_CST); return 0; } /* Get the uint64_t value of a given uint32_t key. * * On error, or if key is not found, 0 is returned. * On success the uint64_t value for the given key is returned */ uint64_t get_iu64 (khash_t (iu64) *hash, uint32_t key) { khint_t k; uint64_t value = 0; if (!hash) return 0; k = kh_get (iu64, hash, key); /* key found, return current value */ if (k != kh_end (hash) && (value = kh_val (hash, k))) return value; return 0; } /* Get the uint64_t value of a given string key. * * On error, or if key is not found, 0 is returned. * On success the uint64_t value for the given key is returned */ uint64_t get_su64 (khash_t (su64) *hash, const char *key) { khint_t k; uint64_t val = 0; if (!hash) return 0; k = kh_get (su64, hash, key); /* key found, return current value */ if (k != kh_end (hash) && (val = kh_val (hash, k))) return val; return 0; } /* Get the GLastParse value of a given uint32_t key. * * If key is not found, {0} is returned. * On error, -1 is returned. * On success the GLastParse value for the given key is returned */ static GLastParse get_iglp (khash_t (iglp) *hash, uint64_t key) { khint_t k; GLastParse lp = { 0 }; if (!hash) return lp; k = kh_get (iglp, hash, key); /* key found, return current value */ if (k != kh_end (hash)) { lp = kh_val (hash, k); return lp; } return lp; } /* Iterate over all the key/value pairs for the given hash structure * and set the maximum and minimum values found on an integer key and * integer value. * * Note: These are expensive calls since it has to iterate over all * key-value pairs * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void get_ii32_min_max (khash_t (ii32) *hash, uint32_t *min, uint32_t *max) { khint_t k; uint32_t curvalue = 0; int i; for (i = 0, k = kh_begin (hash); k != kh_end (hash); ++k) { if (!kh_exist (hash, k)) continue; curvalue = kh_value (hash, k); if (i++ == 0) *min = curvalue; if (curvalue > *max) *max = curvalue; if (curvalue < *min) *min = curvalue; } } /* Iterate over all the key/value pairs for the given hash structure * and set the maximum and minimum values found on an integer key and * a uint64_t value. * * Note: These are expensive calls since it has to iterate over all * key-value pairs * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void get_iu64_min_max (khash_t (iu64) *hash, uint64_t *min, uint64_t *max) { khint_t k; uint64_t curvalue = 0; int i; for (i = 0, k = kh_begin (hash); k != kh_end (hash); ++k) { if (!kh_exist (hash, k)) continue; curvalue = kh_value (hash, k); if (i++ == 0) *min = curvalue; if (curvalue > *max) *max = curvalue; if (curvalue < *min) *min = curvalue; } } uint32_t ht_get_excluded_ips (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * hash = get_hdb (db, MTRC_CNT_OVERALL); if (!hash) return 0; return get_si32 (hash, "excluded_ip"); } uint32_t ht_get_invalid (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * hash = get_hdb (db, MTRC_CNT_OVERALL); if (!hash) return 0; return get_si32 (hash, "failed_requests"); } uint32_t ht_get_processed (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * hash = get_hdb (db, MTRC_CNT_OVERALL); if (!hash) return 0; return get_si32 (hash, "total_requests"); } uint32_t ht_get_processing_time (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * hash = get_hdb (db, MTRC_CNT_OVERALL); if (!hash) return 0; return get_si32 (hash, "processing_time"); } uint8_t ht_insert_meth_proto (const char *key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si08) * hash = get_hdb (db, MTRC_METH_PROTO); uint8_t val = 0; if (!hash) return 0; if ((val = get_si08 (hash, key)) != 0) return val; return ins_si08_ai (hash, key); } uint32_t ht_inc_cnt_overall (const char *key, uint32_t val) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * hash = get_hdb (db, MTRC_CNT_OVERALL); if (!hash) return 0; return inc_si32 (hash, key, val); } int ht_insert_last_parse (uint64_t key, const GLastParse *lp) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (iglp) * hash = get_hdb (db, MTRC_LAST_PARSE); if (!hash) return 0; return ins_iglp (hash, key, lp); } /* Increases the unique key counter from a uint32_t key. * * On error, 0 is returned. * On success the inserted key is returned */ uint32_t ht_ins_seq (khash_t (si32) *hash, const char *key) { if (!hash) return 0; return inc_si32 (hash, key, 1); } /* Insert an IP hostname mapped to the corresponding hostname. * * On error, or if key exists, -1 is returned. * On success 0 is returned */ int ht_insert_hostname (const char *ip, const char *host) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ss32) * hash = get_hdb (db, MTRC_HOSTNAMES); if (!hash) return -1; return ins_ss32 (hash, ip, host); } /* Insert a JSON log format specification such as request.method => %m. * * On error -1 is returned. * On success or if key exists, 0 is returned */ int ht_insert_json_logfmt (GO_UNUSED void *userdata, char *key, char *spec) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ss32) * hash = get_hdb (db, MTRC_JSON_LOGFMT); khint_t k; int ret; char *dupkey = NULL; if (!hash) return -1; k = kh_get (ss32, hash, key); /* key found, free it then to insert */ if (k != kh_end (hash)) free (kh_val (hash, k)); else { dupkey = xstrdup (key); k = kh_put (ss32, hash, dupkey, &ret); /* operation failed */ if (ret == -1) { free (dupkey); return -1; } } kh_val (hash, k) = xstrdup (spec); return 0; } GLastParse ht_get_last_parse (uint64_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (iglp) * hash = get_hdb (db, MTRC_LAST_PARSE); return get_iglp (hash, key); } /* Get the string value from ht_hostnames given a string key (IP). * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_hostname (const char *host) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ss32) * hash = get_hdb (db, MTRC_HOSTNAMES); if (!hash) return NULL; return get_ss32 (hash, host); } /* Get the string value from ht_json_logfmt given a JSON specifier key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_json_logfmt (const char *key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ss32) * hash = get_hdb (db, MTRC_JSON_LOGFMT); if (!hash) return NULL; return get_ss32 (hash, key); } void init_pre_storage (Logs *logs) { GKDB *db = NULL; ht_db = (khash_t (igdb) *) new_igdb_ht (); db = new_db (ht_db, DB_INSTANCE); db->logs = logs; } static void free_igdb (khash_t (igdb) *hash, khint_t k) { GKDB *db = NULL; db = kh_val (hash, k); des_igkh (get_hdb (db, MTRC_DATES)); free_logs (db->logs); free_cache (db->cache); free_app_metrics (db->hdb); kh_del (igdb, hash, k); free (kh_val (hash, k)); } /* Destroys the hash structure */ static void des_igdb (void *h) { khint_t k; khash_t (igdb) * hash = h; if (!hash) return; for (k = 0; k < kh_end (hash); ++k) { if (kh_exist (hash, k)) free_igdb (hash, k); } kh_destroy (igdb, hash); } /* Destroys the hash structure and its content */ void free_storage (void) { if (conf.persist) persist_data (); des_igdb (ht_db); free_persisted_data (); } ================================================ FILE: src/gkhash.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GKHASH_H_INCLUDED #define GKHASH_H_INCLUDED #include <stdint.h> #include "gslist.h" #include "gstorage.h" #include "khash.h" #include "parser.h" #include "gkmhash.h" #define DB_VERSION 2 #define DB_INSTANCE 1 typedef struct GKDB_ GKDB; typedef struct GKHashStorage_ GKHashStorage; /* *INDENT-OFF* */ /* uint32_t keys , GKDB payload */ KHASH_MAP_INIT_INT (igdb , GKDB *); /* uint32_t keys , GKHashStorage payload */ KHASH_MAP_INIT_INT (igkh , GKHashStorage *); /* uint32_t keys , uint32_t payload */ KHASH_MAP_INIT_INT (ii32 , uint32_t); /* uint32_t keys , string payload */ KHASH_MAP_INIT_INT (is32 , char *); /* uint32_t keys , uint64_t payload */ KHASH_MAP_INIT_INT (iu64 , uint64_t); /* string keys , uint32_t payload */ KHASH_MAP_INIT_STR (si32 , uint32_t); /* string keys , uint8_t payload */ KHASH_MAP_INIT_STR (si08 , uint8_t); /* uint8_t keys , uint8_t payload */ KHASH_MAP_INIT_INT (ii08 , uint8_t); /* string keys , string payload */ KHASH_MAP_INIT_STR (ss32 , char *); /* uint64_t key , GLastParse payload */ KHASH_MAP_INIT_INT64 (iglp , GLastParse); /* uint32_t keys , GSLList payload */ KHASH_MAP_INIT_INT (igsl , GSLList *); /* string keys , uint64_t payload */ KHASH_MAP_INIT_STR (su64 , uint64_t); /* uint64_t key , uint8_t payload */ KHASH_MAP_INIT_INT64 (u648 , uint8_t); /* *INDENT-ON* */ /* Whole App Data store */ typedef struct GKHashDB_ { GKHashMetric metrics[GAMTRC_TOTAL]; } GKHashDB; /* DB */ struct GKDB_ { GKHashDB *hdb; /* app-level hash tables */ Logs *logs; /* logs parsing per db instance */ GKHashModule *cache; /* cache modules */ GKHashStorage *store; /* per date OR module */ }; #define HT_FIRST_VAL(h, kvar, code) { khint_t __k; \ for (__k = kh_begin(h); __k != kh_end(h); ++__k) { \ if (!kh_exist(h,__k)) continue; \ (kvar) = kh_key(h,__k); \ code; \ } } #define HT_SUM_VAL(h, kvar, code) { khint_t __k; \ for (__k = kh_begin(h); __k != kh_end(h); ++__k) { \ if (!kh_exist(h,__k)) continue; \ (kvar) = kh_key(h,__k); \ code; \ } } #define HT_FOREACH_KEY(h, kvar, code) { khint_t __k; \ for (__k = kh_begin(h); __k != kh_end(h); ++__k) { \ if (!kh_exist(h,__k)) continue; \ (kvar) = kh_key(h,__k); \ code; \ } } extern const GKHashMetric app_metrics[]; extern const size_t app_metrics_len; /* *INDENT-OFF* */ void *new_igsl_ht (void); void *new_ii08_ht (void); void *new_ii32_ht (void); void *new_is32_ht (void); void *new_iu64_ht (void); void *new_si32_ht (void); void *new_su64_ht (void); void *new_u648_ht (void); void del_igsl_free (void *h, uint8_t free_data); void del_ii08 (void *h, GO_UNUSED uint8_t free_data); void del_ii32 (void *h, GO_UNUSED uint8_t free_data); void del_is32_free (void *h, uint8_t free_data); void del_iu64 (void *h, GO_UNUSED uint8_t free_data); void del_si32_free (void *h, uint8_t free_data); void del_su64_free (void *h, uint8_t free_data); void del_u648 (void *h, GO_UNUSED uint8_t free_data); void des_igsl_free (void *h, uint8_t free_data); void des_ii08 (void *h, GO_UNUSED uint8_t free_data); void des_ii32 (void *h, GO_UNUSED uint8_t free_data); void des_is32_free (void *h, uint8_t free_data); void des_iu64 (void *h, GO_UNUSED uint8_t free_data); void des_si32_free (void *h, uint8_t free_data); void des_su64_free (void *h, uint8_t free_data); void des_u648 (void *h, GO_UNUSED uint8_t free_data); int inc_iu64 (khash_t (iu64) * hash, uint32_t key, uint64_t inc); int inc_su64 (khash_t (su64) * hash, const char *key, uint64_t inc); int ins_iglp (khash_t (iglp) * hash, uint64_t key, const GLastParse *lp); int ins_igsl (khash_t (igsl) * hash, uint32_t key, uint32_t value); int ins_ii08 (khash_t (ii08) * hash, uint32_t key, uint8_t value); int ins_ii32 (khash_t (ii32) * hash, uint32_t key, uint32_t value); int ins_is32 (khash_t (is32) * hash, uint32_t key, char *value); int ins_iu64 (khash_t (iu64) * hash, uint32_t key, uint64_t value); int ins_si08 (khash_t (si08) * hash, const char *key, uint8_t value); int ins_si32 (khash_t (si32) * hash, const char *key, uint32_t value); int ins_su64 (khash_t (su64) * hash, const char *key, uint64_t value); int ins_u648 (khash_t (u648) * hash, uint64_t key, uint8_t value); uint32_t inc_ii32 (khash_t (ii32) * hash, uint32_t key, uint32_t inc); uint32_t ins_ii32_ai (khash_t (ii32) * hash, uint32_t key); uint32_t ins_ii32_inc (khash_t (ii32) * hash, uint32_t key, uint32_t (*cb) (khash_t (si32) *, const char *), khash_t (si32) * seqs, const char *seqk); uint32_t ins_si32_inc (khash_t (si32) * hash, const char *key, uint32_t (*cb) (khash_t (si32) *, const char *), khash_t (si32) * seqs, const char *seqk); char *get_is32 (khash_t (is32) * hash, uint32_t key); uint32_t get_ii32 (khash_t (ii32) * hash, uint32_t key); uint32_t get_si32 (khash_t (si32) * hash, const char *key); uint64_t get_iu64 (khash_t (iu64) * hash, uint32_t key); uint64_t get_su64 (khash_t (su64) * hash, const char *key); uint8_t get_ii08 (khash_t (ii08) * hash, uint32_t key); uint8_t get_si08 (khash_t (si08) * hash, const char *key); void get_ii32_min_max (khash_t (ii32) * hash, uint32_t * min, uint32_t * max); void get_iu64_min_max (khash_t (iu64) * hash, uint64_t * min, uint64_t * max); int ht_insert_hostname (const char *ip, const char *host); int ht_insert_json_logfmt (GO_UNUSED void *userdata, char *key, char *spec); int ht_insert_last_parse (uint64_t key, const GLastParse *lp); uint32_t ht_inc_cnt_overall (const char *key, uint32_t val); uint32_t ht_ins_seq (khash_t (si32) * hash, const char *key); uint8_t ht_insert_meth_proto (const char *key); char *ht_get_hostname (const char *host); char *ht_get_json_logfmt (const char *key); uint32_t ht_get_excluded_ips (void); uint32_t ht_get_invalid (void); uint32_t ht_get_processed (void); uint32_t ht_get_processing_time (void); uint8_t get_method_proto (const char *value); uint32_t *get_sorted_dates (uint32_t * len); void free_storage (void); void init_pre_storage (Logs *logs); const char *get_mtr_type_str (GSMetricType type); void *get_db_instance (uint32_t key); void *get_hdb (GKDB * db, GAMetric mtrc); GLastParse ht_get_last_parse (uint64_t key); Logs *get_db_logs(uint32_t instance); /* *INDENT-ON* */ #endif // for #ifndef GKHASH_H ================================================ FILE: src/gkmhash.c ================================================ /** * gkhash.c -- default hash table functions * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdlib.h> #include <string.h> #include <stdint.h> #include "gkmhash.h" #include "error.h" #include "gkhash.h" #include "persistence.h" #include "sort.h" #include "util.h" #include "xmalloc.h" /* *INDENT-OFF* */ /* Per module - These metrics are not dated */ const GKHashMetric global_metrics[] = { { .metric.storem=MTRC_UNIQUE_KEYS , MTRC_TYPE_SI32 , new_si32_ht , des_si32_free , del_si32_free , 1 , NULL , "SI32_UNIQUE_KEYS.db" } , { .metric.storem=MTRC_AGENT_KEYS , MTRC_TYPE_II32 , new_ii32_ht , des_ii32 , del_ii32 , 0 , NULL , "II32_AGENT_KEYS.db" } , { .metric.storem=MTRC_AGENT_VALS , MTRC_TYPE_IS32 , new_is32_ht , des_is32_free , del_is32_free , 1 , NULL , "IS32_AGENT_VALS.db" } , { .metric.storem=MTRC_CNT_VALID , MTRC_TYPE_II32 , new_ii32_ht , des_ii32 , del_ii32 , 1 , NULL , "II32_CNT_VALID.db" } , { .metric.storem=MTRC_CNT_BW , MTRC_TYPE_IU64 , new_iu64_ht , des_iu64 , del_iu64 , 1 , NULL , "IU64_CNT_BW.db" } , }; /* Per module & per date */ const GKHashMetric module_metrics[] = { { .metric.storem=MTRC_KEYMAP , MTRC_TYPE_II32 , new_ii32_ht , des_ii32 , del_ii32 , 1 , NULL , NULL } , { .metric.storem=MTRC_ROOTMAP , MTRC_TYPE_IS32 , new_is32_ht , des_is32_free , del_is32_free , 1 , NULL , NULL } , { .metric.storem=MTRC_DATAMAP , MTRC_TYPE_IS32 , new_is32_ht , des_is32_free , del_is32_free , 1 , NULL , NULL } , { .metric.storem=MTRC_UNIQMAP , MTRC_TYPE_U648 , new_u648_ht , des_u648 , del_u648 , 1 , NULL , NULL } , { .metric.storem=MTRC_ROOT , MTRC_TYPE_II32 , new_ii32_ht , des_ii32 , del_ii32 , 1 , NULL , NULL } , { .metric.storem=MTRC_HITS , MTRC_TYPE_II32 , new_ii32_ht , des_ii32 , del_ii32 , 1 , NULL , NULL } , { .metric.storem=MTRC_VISITORS , MTRC_TYPE_II32 , new_ii32_ht , des_ii32 , del_ii32 , 1 , NULL , NULL } , { .metric.storem=MTRC_BW , MTRC_TYPE_IU64 , new_iu64_ht , des_iu64 , del_iu64 , 1 , NULL , NULL } , { .metric.storem=MTRC_CUMTS , MTRC_TYPE_IU64 , new_iu64_ht , des_iu64 , del_iu64 , 1 , NULL , NULL } , { .metric.storem=MTRC_MAXTS , MTRC_TYPE_IU64 , new_iu64_ht , des_iu64 , del_iu64 , 1 , NULL , NULL } , { .metric.storem=MTRC_METHODS , MTRC_TYPE_II08 , new_ii08_ht , des_ii08 , del_ii08 , 0 , NULL , NULL } , { .metric.storem=MTRC_PROTOCOLS , MTRC_TYPE_II08 , new_ii08_ht , des_ii08 , del_ii08 , 0 , NULL , NULL } , { .metric.storem=MTRC_AGENTS , MTRC_TYPE_IGSL , new_igsl_ht , des_igsl_free , del_igsl_free , 1 , NULL , NULL } , { .metric.storem=MTRC_METADATA , MTRC_TYPE_SU64 , new_su64_ht , des_su64_free , del_su64_free , 1 , NULL , NULL } , }; const size_t module_metrics_len = ARRAY_SIZE (module_metrics); const size_t global_metrics_len = ARRAY_SIZE (global_metrics); /* *INDENT-ON* */ /* Allocate memory for a new store container GKHashStorage instance. * * On success, the newly allocated GKHashStorage is returned . */ static GKHashStorage * new_gkhstorage (void) { GKHashStorage *storage = xcalloc (1, sizeof (GKHashStorage)); return storage; } /* Allocate memory for a new module GKHashModule instance. * * On success, the newly allocated GKHashStorage is returned . */ static GKHashModule * new_gkhmodule (uint32_t size) { GKHashModule *storage = xcalloc (size, sizeof (GKHashModule)); return storage; } /* Allocate memory for a new global GKHashGlobal instance. * * On success, the newly allocated GKHashGlobal is returned . */ static GKHashGlobal * new_gkhglobal (void) { GKHashGlobal *storage = xcalloc (1, sizeof (GKHashGlobal)); return storage; } /* Initialize a global hash structure. * * On success, a pointer to that hash structure is returned. */ static GKHashGlobal * init_gkhashglobal (void) { GKHashGlobal *storage = NULL; int n = 0, i; storage = new_gkhglobal (); n = global_metrics_len; for (i = 0; i < n; i++) { storage->metrics[i] = global_metrics[i]; storage->metrics[i].hash = global_metrics[i].alloc (); } return storage; } /* Initialize module metrics and mallocs its hash structure */ static void init_tables (GModule module, GKHashModule *storage) { int n = 0, i; n = module_metrics_len; for (i = 0; i < n; i++) { storage[module].metrics[i] = module_metrics[i]; storage[module].metrics[i].hash = module_metrics[i].alloc (); } } /* Initialize a module hash structure. * * On success, a pointer to that hash structure is returned. */ static GKHashModule * init_gkhashmodule (void) { GKHashModule *storage = NULL; GModule module; size_t idx = 0; storage = new_gkhmodule (TOTAL_MODULES); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; storage[module].module = module; init_tables (module, storage); } return storage; } /* Destroys malloc'd global metrics */ static void free_global_metrics (GKHashGlobal *ghash) { int i, n = 0; GKHashMetric mtrc; if (!ghash) return; n = global_metrics_len; for (i = 0; i < n; i++) { mtrc = ghash->metrics[i]; mtrc.des (mtrc.hash, mtrc.free_data); } } /* Destroys malloc'd module metrics */ static void free_module_metrics (GKHashModule *mhash, GModule module, uint8_t free_data) { int i, n = 0; GKHashMetric mtrc; if (!mhash) return; n = module_metrics_len; for (i = 0; i < n; i++) { mtrc = mhash[module].metrics[i]; mtrc.des (mtrc.hash, free_data ? mtrc.free_data : 0); } } /* For each module metric, deletes all entries from the hash table */ static void del_module_metrics (GKHashModule *mhash, GModule module, uint8_t free_data) { int i, n = 0; GKHashMetric mtrc; n = module_metrics_len; for (i = 0; i < n; i++) { mtrc = mhash[module].metrics[i]; mtrc.del (mtrc.hash, free_data); } } /* Destroys all hash tables and possibly all the malloc'd data within */ static void free_stores (GKHashStorage *store) { GModule module; size_t idx = 0; free_global_metrics (store->ghash); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; free_module_metrics (store->mhash, module, 1); } free (store->ghash); free (store->mhash); free (store); } /* Insert an uint32_t key (date) and a GKHashStorage payload * * On error, -1 is returned. * On key found, 1 is returned. * On success 0 is returned */ static int ins_igkh (khash_t (igkh) *hash, uint32_t key) { GKHashStorage *store = NULL; khint_t k; int ret; if (!hash) return -1; k = kh_put (igkh, hash, key, &ret); /* operation failed */ if (ret == -1) return -1; /* the key is present in the hash table */ if (ret == 0) return 1; store = new_gkhstorage (); store->mhash = init_gkhashmodule (); store->ghash = init_gkhashglobal (); kh_val (hash, k) = store; return 0; } /* Given a hash and a key (date), get the relevant store * * On error or not found, NULL is returned. * On success, a pointer to that store is returned. */ static void * get_store (khash_t (igkh) *hash, uint32_t key) { GKHashStorage *store = NULL; khint_t k; k = kh_get (igkh, hash, key); /* key not found, return NULL */ if (k == kh_end (hash)) return NULL; store = kh_val (hash, k); return store; } /* Given a store, a module and the metric, get the hash table * * On error or not found, NULL is returned. * On success, a pointer to that hash table is returned. */ static void * get_hash_from_store (GKHashStorage *store, int module, GSMetric metric) { int mtrc = 0, cnt = 0; if (!store) return NULL; if (module == -1) { mtrc = metric - MTRC_METADATA - 1; cnt = MTRC_CNT_BW - MTRC_UNIQUE_KEYS + 1; if (mtrc >= cnt) { LOG_DEBUG (("Out of bounds when attempting to get hash %d\n", metric)); return NULL; } } /* ###NOTE: BE CAREFUL here, to avoid the almost unnecessary loop, we simply * use the index from the enum to make it O(1). The metrics array has to be * created in the same order as the GSMetric enum */ if (module < 0) return store->ghash->metrics[mtrc].hash; return store->mhash[module].metrics[metric].hash; } /* Given a module a key (date) and the metric, get the hash table * * On error or not found, NULL is returned. * On success, a pointer to that hash table is returned. */ void * get_hash (int module, uint64_t key, GSMetric metric) { GKHashStorage *store = NULL; GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); if ((store = get_store (hash, key)) == NULL) return NULL; return get_hash_from_store (store, module, metric); } /* Given a module and a metric, get the cache hash table * * On success, a pointer to that hash table is returned. */ static void * get_hash_from_cache (GModule module, GSMetric metric) { GKDB *db = get_db_instance (DB_INSTANCE); return db->cache[module].metrics[metric].hash; } GSLList * ht_get_keymap_list_from_key (GModule module, uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); GSLList *list = NULL; khiter_t kv; khint_t k; khash_t (ii32) * hash = NULL; khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); if (!dates) return NULL; for (k = kh_begin (dates); k != kh_end (dates); ++k) { if (!kh_exist (dates, k)) continue; if (!(hash = get_hash (module, kh_key (dates, k), MTRC_KEYMAP))) continue; if ((kv = kh_get (ii32, hash, key)) == kh_end (hash)) continue; list = list_insert_prepend (list, i322ptr (kh_val (hash, kv))); } return list; } /* Insert a unique visitor key string (IP/DATE/UA), mapped to an auto * incremented value. * * If the given key exists, its value is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ uint32_t ht_insert_unique_key (uint32_t date, const char *key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * seqs = get_hdb (db, MTRC_SEQS); khash_t (si32) * hash = get_hash (-1, date, MTRC_UNIQUE_KEYS); uint32_t val = 0; char *dupkey = NULL; if (!hash) return 0; if ((val = get_si32 (hash, key)) != 0) return val; dupkey = xstrdup (key); if ((val = ins_si32_inc (hash, dupkey, ht_ins_seq, seqs, "ht_unique_keys")) == 0) free (dupkey); return val; } /* Insert a user agent key string, mapped to an auto incremented value. * * If the given key exists, its value is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ uint32_t ht_insert_agent_key (uint32_t date, uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * seqs = get_hdb (db, MTRC_SEQS); khash_t (ii32) * hash = get_hash (-1, date, MTRC_AGENT_KEYS); uint32_t val = 0; if (!hash) return 0; if ((val = get_ii32 (hash, key)) != 0) return val; return ins_ii32_inc (hash, key, ht_ins_seq, seqs, "ht_agent_keys"); } /* Insert a user agent uint32_t key, mapped to a user agent string value. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_agent_value (uint32_t date, uint32_t key, char *value) { khash_t (is32) * hash = get_hash (-1, date, MTRC_AGENT_VALS); char *dupval = NULL; if (!hash) return -1; if ((kh_get (is32, hash, key)) != kh_end (hash)) return 0; dupval = xstrdup (value); if (ins_is32 (hash, key, dupval) != 0) free (dupval); return 0; } /* Insert a keymap string key. * * If the given key exists, its value is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ uint32_t ht_insert_keymap (GModule module, uint32_t date, uint32_t key, uint32_t *ckey) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * seqs = get_hdb (db, MTRC_SEQS); khash_t (ii32) * hash = get_hash (module, date, MTRC_KEYMAP); khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_KEYMAP); uint32_t val = 0; const char *modstr; if (!hash) return 0; if ((val = get_ii32 (hash, key)) != 0) { *ckey = get_ii32 (cache, key); return val; } modstr = get_module_str (module); if ((val = ins_ii32_inc (hash, key, ht_ins_seq, seqs, modstr)) == 0) { return val; } *ckey = ins_ii32_ai (cache, key); return val; } /* Insert a rootmap uint32_t key from the keymap store mapped to its string * value. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_rootmap (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey) { khash_t (is32) * hash = get_hash (module, date, MTRC_ROOTMAP); khash_t (is32) * cache = get_hash_from_cache (module, MTRC_ROOTMAP); char *dupval = NULL; int ret = 0; if (!hash) return -1; dupval = xstrdup (value); if ((ret = ins_is32 (hash, key, dupval)) == 0) ins_is32 (cache, ckey, dupval); else free (dupval); return ret; } /* Insert a datamap uint32_t key and string value. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_datamap (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey) { khash_t (is32) * hash = get_hash (module, date, MTRC_DATAMAP); khash_t (is32) * cache = get_hash_from_cache (module, MTRC_DATAMAP); char *dupval = NULL; int ret = 0; if (!hash) return -1; dupval = xstrdup (value); if ((ret = ins_is32 (hash, key, dupval)) == 0) ins_is32 (cache, ckey, dupval); else free (dupval); return ret; } /* Insert a uniqmap string key. * * If the given key exists, 0 is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ int ht_insert_uniqmap (GModule module, uint32_t date, uint32_t key, uint32_t value) { khash_t (u648) * hash = get_hash (module, date, MTRC_UNIQMAP); uint64_t k = 0; if (!hash) return 0; k = u64encode (key, value); return ins_u648 (hash, k, 1) == 0 ? 1 : 0; } /* Insert a data uint32_t key mapped to the corresponding uint32_t root key. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_root (GModule module, uint32_t date, uint32_t key, uint32_t value, uint32_t dkey, uint32_t rkey) { khash_t (ii32) * hash = get_hash (module, date, MTRC_ROOT); khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_ROOT); if (!hash) return -1; ins_ii32 (cache, dkey, rkey); return ins_ii32 (hash, key, value); } /* Increases hits counter from a uint32_t key. * * On error, 0 is returned. * On success the inserted value is returned */ uint32_t ht_insert_hits (GModule module, uint32_t date, uint32_t key, uint32_t inc, uint32_t ckey) { khash_t (ii32) * hash = get_hash (module, date, MTRC_HITS); khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_HITS); if (!hash) return 0; inc_ii32 (cache, ckey, inc); return inc_ii32 (hash, key, inc); } /* Increases visitors counter from a uint32_t key. * * On error, 0 is returned. * On success the inserted value is returned */ uint32_t ht_insert_visitor (GModule module, uint32_t date, uint32_t key, uint32_t inc, uint32_t ckey) { khash_t (ii32) * hash = get_hash (module, date, MTRC_VISITORS); khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_VISITORS); if (!hash) return 0; inc_ii32 (cache, ckey, inc); return inc_ii32 (hash, key, inc); } /* Increases bandwidth counter from a uint32_t key. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_bw (GModule module, uint32_t date, uint32_t key, uint64_t inc, uint32_t ckey) { khash_t (iu64) * hash = get_hash (module, date, MTRC_BW); khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_BW); if (!hash) return -1; inc_iu64 (cache, ckey, inc); return inc_iu64 (hash, key, inc); } /* Increases cumulative time served counter from a uint32_t key. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_cumts (GModule module, uint32_t date, uint32_t key, uint64_t inc, uint32_t ckey) { khash_t (iu64) * hash = get_hash (module, date, MTRC_CUMTS); khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_CUMTS); if (!hash) return -1; inc_iu64 (cache, ckey, inc); return inc_iu64 (hash, key, inc); } /* Insert the maximum time served counter from a uint32_t key. * Note: it compares the current value with the given value. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_maxts (GModule module, uint32_t date, uint32_t key, uint64_t value, uint32_t ckey) { khash_t (iu64) * hash = get_hash (module, date, MTRC_MAXTS); khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_MAXTS); if (!hash) return -1; if (get_iu64 (cache, ckey) < value) ins_iu64 (cache, ckey, value); if (get_iu64 (hash, key) < value) ins_iu64 (hash, key, value); return 0; } /* Insert a method given an uint32_t key and string value. * * On error, or if key exists, -1 is returned. * On success 0 is returned */ int ht_insert_method (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ii08) * hash = get_hash (module, date, MTRC_METHODS); khash_t (ii08) * cache = get_hash_from_cache (module, MTRC_METHODS); khash_t (si08) * mtpr = get_hdb (db, MTRC_METH_PROTO); int ret = 0; uint8_t val = 0; if (!hash) return -1; if (!(val = get_si08 (mtpr, value))) return -1; if ((ret = ins_ii08 (hash, key, val)) == 0) ins_ii08 (cache, ckey, val); return ret; } /* Insert a protocol given an uint32_t key and string value. * * On error, or if key exists, -1 is returned. * On success 0 is returned */ int ht_insert_protocol (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ii08) * hash = get_hash (module, date, MTRC_PROTOCOLS); khash_t (ii08) * cache = get_hash_from_cache (module, MTRC_PROTOCOLS); khash_t (si08) * mtpr = get_hdb (db, MTRC_METH_PROTO); int ret = 0; uint8_t val = 0; if (!hash) return -1; if (!(val = get_si08 (mtpr, value))) return -1; if ((ret = ins_ii08 (hash, key, val)) == 0) ins_ii08 (cache, ckey, val); return ret; } /* Insert an agent for a hostname given an uint32_t key and uint32_t value. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_agent (GModule module, uint32_t date, uint32_t key, uint32_t value) { khash_t (igsl) * hash = get_hash (module, date, MTRC_AGENTS); if (!hash) return -1; return ins_igsl (hash, key, value); } /* Insert meta data counters from a string key. * * On error, -1 is returned. * On success 0 is returned */ int ht_insert_meta_data (GModule module, uint32_t date, const char *key, uint64_t value) { khash_t (su64) * hash = get_hash (module, date, MTRC_METADATA); if (!hash) return -1; return inc_su64 (hash, key, value); } int ht_insert_date (uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); if (!hash) return -1; return ins_igkh (hash, key); } uint32_t ht_inc_cnt_valid (uint32_t date, uint32_t inc) { khash_t (ii32) * hash = get_hash (-1, date, MTRC_CNT_VALID); if (!hash) return 0; return inc_ii32 (hash, 1, inc); } int ht_inc_cnt_bw (uint32_t date, uint64_t inc) { khash_t (iu64) * hash = get_hash (-1, date, MTRC_CNT_BW); if (!hash) return 0; return inc_iu64 (hash, 1, inc); } uint32_t ht_sum_valid (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (ii32) * hash = NULL; uint32_t k = 0; uint32_t sum = 0; if (!dates) return 0; /* *INDENT-OFF* */ HT_SUM_VAL (dates, k, { if ((hash = get_hash (-1, k, MTRC_CNT_VALID))) sum += get_ii32 (hash, 1); }); /* *INDENT-ON* */ return sum; } uint64_t ht_sum_bw (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (iu64) * hash = NULL; uint32_t k = 0; uint64_t sum = 0; if (!dates) return 0; /* *INDENT-OFF* */ HT_SUM_VAL (dates, k, { if ((hash = get_hash (-1, k, MTRC_CNT_BW))) sum += get_iu64 (hash, 1); }); /* *INDENT-ON* */ return sum; } /* Get the number of elements in a dates hash. * * Return 0 if the operation fails, else number of elements. */ uint32_t ht_get_size_dates (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); if (!hash) return 0; return kh_size (hash); } /* Get the number of elements in a datamap. * * Return -1 if the operation fails, else number of elements. */ uint32_t ht_get_size_datamap (GModule module) { khash_t (is32) * cache = get_hash_from_cache (module, MTRC_DATAMAP); if (!cache) return 0; return kh_size (cache); } /* Get the number of elements in a uniqmap. * * On error, 0 is returned. * On success the number of elements in MTRC_UNIQMAP is returned */ uint32_t ht_get_size_uniqmap (GModule module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (u648) * hash = NULL; uint32_t k = 0; uint32_t sum = 0; if (!dates) return 0; /* *INDENT-OFF* */ HT_SUM_VAL (dates, k, { if ((hash = get_hash (module, k, MTRC_UNIQMAP))) sum += kh_size (hash); }); /* *INDENT-ON* */ return sum; } /* Get the string data value of a given uint32_t key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_datamap (GModule module, uint32_t key) { khash_t (is32) * cache = get_hash_from_cache (module, MTRC_DATAMAP); if (!cache) return NULL; return get_is32 (cache, key); } /* Get the string root from MTRC_ROOTMAP given an uint32_t data key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_root (GModule module, uint32_t key) { int root_key = 0; khash_t (ii32) * hashroot = get_hash_from_cache (module, MTRC_ROOT); khash_t (is32) * hashrootmap = get_hash_from_cache (module, MTRC_ROOTMAP); if (!hashroot || !hashrootmap) return NULL; /* not found */ if ((root_key = get_ii32 (hashroot, key)) == 0) return NULL; return get_is32 (hashrootmap, root_key); } /* Get the int visitors value from MTRC_VISITORS given an int key. * * If key is not found, 0 is returned. * On error, -1 is returned. * On success the int value for the given key is returned */ uint32_t ht_get_hits (GModule module, int key) { khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_HITS); if (!cache) return 0; return get_ii32 (cache, key); } /* Get the uint32_t visitors value from MTRC_VISITORS given an uint32_t key. * * If key is not found, 0 is returned. * On error, -1 is returned. * On success the uint32_t value for the given key is returned */ uint32_t ht_get_visitors (GModule module, uint32_t key) { khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_VISITORS); if (!cache) return 0; return get_ii32 (cache, key); } /* Get the uint64_t value from MTRC_BW given an uint32_t key. * * On error, or if key is not found, 0 is returned. * On success the uint64_t value for the given key is returned */ uint64_t ht_get_bw (GModule module, uint32_t key) { khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_BW); if (!cache) return 0; return get_iu64 (cache, key); } /* Get the uint64_t value from MTRC_CUMTS given an uint32_t key. * * On error, or if key is not found, 0 is returned. * On success the uint64_t value for the given key is returned */ uint64_t ht_get_cumts (GModule module, uint32_t key) { khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_CUMTS); if (!cache) return 0; return get_iu64 (cache, key); } /* Get the uint64_t value from MTRC_MAXTS given an uint32_t key. * * On error, or if key is not found, 0 is returned. * On success the uint64_t value for the given key is returned */ uint64_t ht_get_maxts (GModule module, uint32_t key) { khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_MAXTS); if (!cache) return 0; return get_iu64 (cache, key); } uint8_t get_method_proto (const char *value) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si08) * mtpr = get_hdb (db, MTRC_METH_PROTO); uint8_t val = 0; if (!mtpr) return 0; if ((val = get_si08 (mtpr, value)) != 0) return val; return 0; } /* Get the string value from MTRC_METHODS given an uint32_t key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_method (GModule module, uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ii08) * cache = get_hash_from_cache (module, MTRC_METHODS); khash_t (si08) * mtpr = get_hdb (db, MTRC_METH_PROTO); uint8_t val = 0; khint_t k; if (!(val = get_ii08 (cache, key))) return NULL; for (k = kh_begin (mtpr); k != kh_end (mtpr); ++k) { if (kh_exist (mtpr, k) && kh_val (mtpr, k) == val) return xstrdup (kh_key (mtpr, k)); } return NULL; } /* Get the string value from MTRC_PROTOCOLS given an uint32_t key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_protocol (GModule module, uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (ii08) * cache = get_hash_from_cache (module, MTRC_PROTOCOLS); khash_t (si08) * mtpr = get_hdb (db, MTRC_METH_PROTO); uint8_t val = 0; khint_t k; if (!(val = get_ii08 (cache, key))) return NULL; for (k = kh_begin (mtpr); k != kh_end (mtpr); ++k) { if (kh_exist (mtpr, k) && kh_val (mtpr, k) == val) return xstrdup (kh_key (mtpr, k)); } return NULL; } /* Get the string value from ht_agent_vals (user agent) given an uint32_t key. * * On error, NULL is returned. * On success the string value for the given key is returned */ char * ht_get_host_agent_val (uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (is32) * hash = NULL; char *data = NULL; uint32_t k = 0; if (!dates) return NULL; /* *INDENT-OFF* */ HT_FIRST_VAL (dates, k, { if ((hash = get_hash (-1, k, MTRC_AGENT_VALS))) if ((data = get_is32 (hash, key))) return data; }); /* *INDENT-ON* */ return NULL; } /* Get the list value from MTRC_AGENTS given an uint32_t key. * * On error, or if key is not found, NULL is returned. * On success the GSLList value for the given key is returned */ GSLList * ht_get_host_agent_list (GModule module, uint32_t key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); GSLList *res = NULL, *list = NULL; khiter_t kv; khint_t k; khash_t (igsl) * hash = NULL; void *data = NULL; if (!dates) return NULL; for (k = kh_begin (dates); k != kh_end (dates); ++k) { if (!kh_exist (dates, k)) continue; if (!(hash = get_hash (module, kh_key (dates, k), MTRC_AGENTS))) continue; if ((kv = kh_get (igsl, hash, key)) == kh_end (hash)) continue; list = kh_val (hash, kv); /* *INDENT-OFF* */ GSLIST_FOREACH (list, data, { res = list_insert_prepend (res, i322ptr ((*(uint32_t *) data))); }); /* *INDENT-ON* */ } return res; } uint32_t ht_get_keymap (GModule module, const char *key) { khash_t (si32) * cache = get_hash_from_cache (module, MTRC_KEYMAP); if (!cache) return 0; return get_si32 (cache, key); } /* Get the meta data uint64_t from MTRC_METADATA given a string key. * * On error, or if key is not found, 0 is returned. * On success the uint64_t value for the given key is returned */ uint64_t ht_get_meta_data (GModule module, const char *key) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (su64) * hash = NULL; uint32_t k = 0; uint64_t sum = 0; /* *INDENT-OFF* */ HT_SUM_VAL (dates, k, { if ((hash = get_hash (module, k, MTRC_METADATA))) sum += get_su64 (hash, key); }); /* *INDENT-ON* */ return sum; } /* Set the maximum and minimum values found on an integer key and * integer value found on the MTRC_VISITORS hash structure. * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void ht_get_hits_min_max (GModule module, uint32_t *min, uint32_t *max) { khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_HITS); if (!cache) return; get_ii32_min_max (cache, min, max); } /* Set the maximum and minimum values found on an integer key and * integer value found on the MTRC_VISITORS hash structure. * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void ht_get_visitors_min_max (GModule module, uint32_t *min, uint32_t *max) { khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_VISITORS); if (!cache) return; get_ii32_min_max (cache, min, max); } /* Set the maximum and minimum values found on an integer key and * a uint64_t value found on the MTRC_BW hash structure. * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void ht_get_bw_min_max (GModule module, uint64_t *min, uint64_t *max) { khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_BW); if (!cache) return; get_iu64_min_max (cache, min, max); } /* Set the maximum and minimum values found on an integer key and * a uint64_t value found on the MTRC_CUMTS hash structure. * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void ht_get_cumts_min_max (GModule module, uint64_t *min, uint64_t *max) { khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_CUMTS); if (!cache) return; get_iu64_min_max (cache, min, max); } /* Set the maximum and minimum values found on an integer key and * a uint64_t value found on the MTRC_MAXTS hash structure. * * If the hash structure is empty, no values are set. * On success the minimum and maximum values are set. */ void ht_get_maxts_min_max (GModule module, uint64_t *min, uint64_t *max) { khash_t (iu64) * cache = get_hash_from_cache (module, MTRC_MAXTS); if (!cache) return; get_iu64_min_max (cache, min, max); } static void destroy_date_stores (int date) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); khiter_t k; k = kh_get (igkh, hash, date); free_stores (kh_value (hash, k)); kh_del (igkh, hash, k); } int invalidate_date (int date) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); GModule module; size_t idx = 0; if (!hash) return -1; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; del_module_metrics (db->cache, module, 0); } destroy_date_stores (date); return 0; } static uint32_t ins_cache_map (GModule module, GSMetric metric, uint32_t key) { khash_t (ii32) * cache = get_hash_from_cache (module, metric); if (!cache) return 0; return ins_ii32_ai (cache, key); } static int ins_cache_ii08 (GKHashStorage *store, GModule module, GSMetric metric, uint32_t key, uint32_t ckey) { khash_t (ii08) * hash = get_hash_from_store (store, module, metric); khash_t (ii08) * cache = get_hash_from_cache (module, metric); khint_t k; if ((k = kh_get (ii08, hash, key)) == kh_end (hash)) return -1; return ins_ii08 (cache, ckey, kh_val (hash, k)); } static int ins_cache_is32 (GKHashStorage *store, GModule module, GSMetric metric, uint32_t key, uint32_t ckey) { khash_t (is32) * hash = get_hash_from_store (store, module, metric); khash_t (is32) * cache = get_hash_from_cache (module, metric); khint_t k; if ((k = kh_get (is32, hash, key)) == kh_end (hash)) return -1; return ins_is32 (cache, ckey, kh_val (hash, k)); } static int inc_cache_ii32 (GKHashStorage *store, GModule module, GSMetric metric, uint32_t key, uint32_t ckey) { khash_t (ii32) * hash = get_hash_from_store (store, module, metric); khash_t (ii32) * cache = get_hash_from_cache (module, metric); khint_t k; if ((k = kh_get (ii32, hash, key)) == kh_end (hash)) return -1; return inc_ii32 (cache, ckey, kh_val (hash, k)); } static int max_cache_iu64 (GKHashStorage *store, GModule module, GSMetric metric, uint32_t key, uint32_t ckey) { khash_t (iu64) * hash = get_hash_from_store (store, module, metric); khash_t (iu64) * cache = get_hash_from_cache (module, metric); khint_t k; if ((k = kh_get (iu64, hash, key)) == kh_end (hash)) return -1; if (get_iu64 (cache, ckey) < kh_val (hash, k)) return ins_iu64 (cache, ckey, kh_val (hash, k)); return -1; } static int inc_cache_iu64 (GKHashStorage *store, GModule module, GSMetric metric, uint32_t key, uint32_t ckey) { khash_t (iu64) * hash = get_hash_from_store (store, module, metric); khash_t (iu64) * cache = get_hash_from_cache (module, metric); khint_t k; if ((k = kh_get (iu64, hash, key)) == kh_end (hash)) return -1; return inc_iu64 (cache, ckey, kh_val (hash, k)); } static int ins_raw_num_data (GModule module, uint32_t date) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); GKHashStorage *store = get_store (hash, date); khiter_t k, kr; uint32_t ckey = 0, rkey = 0, nrkey = 0; char *val = NULL; khash_t (ii32) * kmap = get_hash_from_store (store, module, MTRC_KEYMAP); khash_t (ii32) * root = get_hash_from_store (store, module, MTRC_ROOT); khash_t (is32) * rmap = get_hash_from_store (store, module, MTRC_ROOTMAP); khash_t (ii32) * cache = get_hash_from_cache (module, MTRC_ROOT); if (!kmap) return -1; for (k = kh_begin (kmap); k != kh_end (kmap); ++k) { if (!kh_exist (kmap, k)) continue; if ((ckey = ins_cache_map (module, MTRC_KEYMAP, kh_key (kmap, k))) == 0) continue; if ((rkey = get_ii32 (root, kh_val (kmap, k)))) { kr = kh_get (is32, rmap, rkey); if (kr != kh_end (rmap) && (val = kh_val (rmap, kr))) { nrkey = ins_cache_map (module, MTRC_KEYMAP, djb2 ((unsigned char *) val)); ins_cache_is32 (store, module, MTRC_ROOTMAP, rkey, nrkey); ins_ii32 (cache, ckey, nrkey); } } ins_cache_is32 (store, module, MTRC_DATAMAP, kh_val (kmap, k), ckey); inc_cache_ii32 (store, module, MTRC_HITS, kh_val (kmap, k), ckey); inc_cache_ii32 (store, module, MTRC_VISITORS, kh_val (kmap, k), ckey); inc_cache_iu64 (store, module, MTRC_BW, kh_val (kmap, k), ckey); inc_cache_iu64 (store, module, MTRC_CUMTS, kh_val (kmap, k), ckey); max_cache_iu64 (store, module, MTRC_MAXTS, kh_val (kmap, k), ckey); ins_cache_ii08 (store, module, MTRC_METHODS, kh_val (kmap, k), ckey); ins_cache_ii08 (store, module, MTRC_PROTOCOLS, kh_val (kmap, k), ckey); } return 0; } static int set_raw_num_data_date (GModule module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * hash = get_hdb (db, MTRC_DATES); khiter_t k; if (!hash) return -1; /* iterate over the stored dates */ for (k = kh_begin (hash); k != kh_end (hash); ++k) { if (kh_exist (hash, k)) ins_raw_num_data (module, kh_key (hash, k)); } return 0; } int rebuild_rawdata_cache (void) { GModule module; size_t idx = 0; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; set_raw_num_data_date (module); } return 2; } /* Initialize hash tables */ void init_storage (void) { GKDB *db = get_db_instance (DB_INSTANCE); db->cache = init_gkhashmodule (); if (conf.restore) restore_data (); } /* Destroys the hash structure */ void des_igkh (void *h) { khint_t k; khash_t (igkh) * hash = h; if (!hash) return; for (k = kh_begin (hash); k != kh_end (hash); ++k) { if (!kh_exist (hash, k)) continue; free_stores (kh_value (hash, k)); } kh_destroy (igkh, hash); } void free_cache (GKHashModule *cache) { GModule module; size_t idx = 0; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; free_module_metrics (cache, module, 0); } free (cache); } /* A wrapper to initialize a raw data structure. * * On success a GRawData structure is returned. */ static GRawData * init_new_raw_data (GModule module, uint32_t ht_size) { GRawData *raw_data; raw_data = new_grawdata (); raw_data->idx = 0; raw_data->module = module; raw_data->size = ht_size; raw_data->items = new_grawdata_item (ht_size); return raw_data; } static GRawData * get_u32_raw_data (GModule module) { khash_t (ii32) * hash = get_hash_from_cache (module, MTRC_HITS); GRawData *raw_data; khiter_t key; uint32_t ht_size = 0; if (!hash) return NULL; ht_size = kh_size (hash); raw_data = init_new_raw_data (module, ht_size); raw_data->type = U32; for (key = kh_begin (hash); key != kh_end (hash); ++key) { if (!kh_exist (hash, key)) continue; raw_data->items[raw_data->idx].nkey = kh_key (hash, key); raw_data->items[raw_data->idx].hits = kh_val (hash, key); raw_data->idx++; } return raw_data; } /* Store the key/value pairs from a hash table into raw_data and sorts * the hits (numeric) value. * * On error, NULL is returned. * On success the GRawData sorted is returned */ static GRawData * get_str_raw_data (GModule module) { khash_t (is32) * hash = get_hash_from_cache (module, MTRC_DATAMAP); GRawData *raw_data; khiter_t key; uint32_t ht_size = 0; if (!hash) return NULL; ht_size = kh_size (hash); raw_data = init_new_raw_data (module, ht_size); raw_data->type = STR; for (key = kh_begin (hash); key != kh_end (hash); ++key) { if (!kh_exist (hash, key)) continue; raw_data->items[raw_data->idx].nkey = kh_key (hash, key); raw_data->items[raw_data->idx].data = kh_val (hash, key); raw_data->idx++; } return raw_data; } /* Entry point to load the raw data from the data store into our * GRawData structure. * * On error, NULL is returned. * On success the GRawData sorted is returned */ GRawData * parse_raw_data (GModule module) { GRawData *raw_data = NULL; #ifdef _DEBUG clock_t begin = clock (); double taken; const char *modstr = NULL; LOG_DEBUG (("== parse_raw_data ==\n")); #endif switch (module) { case VISITORS: raw_data = get_str_raw_data (module); if (raw_data) sort_raw_str_data (raw_data, raw_data->idx); break; default: raw_data = get_u32_raw_data (module); if (raw_data) sort_raw_num_data (raw_data, raw_data->idx); } #ifdef _DEBUG modstr = get_module_str (module); taken = (double) (clock () - begin) / CLOCKS_PER_SEC; LOG_DEBUG (("== %-30s%f\n\n", modstr, taken)); #endif return raw_data; } ================================================ FILE: src/gkmhash.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GKMHASH_H_INCLUDED #define GKMHASH_H_INCLUDED #include "gstorage.h" typedef struct GKHashMetric_ GKHashMetric; /* Data store per module */ typedef struct GKHashModule_ { GModule module; GKHashMetric metrics[GSMTRC_TOTAL]; } GKHashModule; /* Data store global */ typedef struct GKHashGlobal_ { GKHashMetric metrics[GSMTRC_TOTAL]; } GKHashGlobal; struct GKHashStorage_ { GKHashModule *mhash; /* modules */ GKHashGlobal *ghash; /* global */ }; /* Metrics Storage */ /* Most metrics are encapsulated within a GKHashStorage structure, which is * conformed of a dated key and a GKHashStorage struct value. This helps to * easily destroy the entire dated storage at any time. */ /* GLOBAL METRICS */ /* ============== */ /* Maps a string key containing an IP|DATE|UA(hash uint32_t => hex) to an * autoincremented value. * * 192.168.0.1|27/Apr/2020|7E8E0E -> 1 * 192.168.0.1|28/Apr/2020|7E8E0E -> 2 */ /*khash_t(si32) MTRC_UNIQUE_KEYS */ /* Maps string keys made out of the user agent to an autoincremented value. * * Debian APT-HTTP/1.3 (1.0.9.8.5) -> 1838302 -> 1 * Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1;) -> 8723842 -> 2 */ /*khash_t(ii32) MTRC_AGENT_KEYS */ /* Maps integer keys from the autoincremented MTRC_AGENT_KEYS value to the user * agent. * * 1 -> Debian APT-HTTP/1.3 (1.0.9.8.5) * 2 -> Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0) */ /*khash_t(is32) MTRC_AGENT_VALS */ /* Maps a single numeric key (usually 1) to an autoincremented hits value. * * 1 -> 5 */ /*khash_t(is32) MTRC_CNT_VALID */ /* Maps a single numeric key (usually 1) to an autoincremented bw value. * * 1 -> 592933 */ /*khash_t(iu64) MTRC_CNT_BW */ /* MODULE METRICS */ /* ============== */ /* Maps keys (string) to a hash to a numeric values (uint32_t). * this mitigates the issue of having multiple stores * with the same string key, and therefore, avoids unnecessary * memory usage (in most cases). * * HEAD|/index.php -> 9872347 -> 1 * POST|/index.php -> 3452345 -> 2 * Windows XP -> 2842343 -> 3 * Ubuntu 10.10 -> 1852342 -> 4 * GET|Ubuntu 10.10-> 4872343 -> 5 * GNU+Linux -> 5862347 -> 6 * 26/Dec/2014 -> 9874347 -> 7 * Windows -> 3875347 -> 8 */ /*khash_t(si32) MTRC_KEYMAP */ /* Maps integer keys of root elements from the keymap hash * to actual string values. * * 6 -> GNU+Linux * 8 -> Windows */ /*khash_t(is32) MTRC_ROOTMAP */ /* Maps integer keys of data elements from the keymap hash * to actual string values. * * 1 -> /index.php * 2 -> /index.php * 3 -> Windows xp * 4 -> Ubuntu 10.10 * 5 -> Ubuntu 10.10 * 7 -> 26/dec/2014 */ /*khash_t(is32) MTRC_DATAMAP */ /* Maps the unique uint32_t key of the IP/date/UA and the uint32_t key from the * data field encoded into a uint64_t key to numeric autoincremented values. * e.g., "1&4" => 12938238293 to ai. * * 201023232 -> 1 * 202939232 -> 2 */ /*khash_t(si32) MTRC_UNIQMAP */ /* Maps integer keys made from a data key to an integer root key in * MTRC_KEYMAP. * * 4 -> 6 * 3 -> 8 */ /*khash_t(ii32) MTRC_ROOT */ /* Maps integer key from the keymap hash to the number of * hits. * * 1 -> 10934 * 2 -> 3231 * 3 -> 500 * 4 -> 201 * 5 -> 206 */ /*khash_t(ii32) MTRC_HITS */ /* Maps numeric keys made from the uniqmap store to autoincremented values * (counter). * 10 -> 100 * 40 -> 56 */ /*khash_t(ii32) MTRC_VISITORS */ /* Maps numeric data keys to bandwidth (in bytes). * 1 -> 1024 * 2 -> 2048 */ /*khash_t(iu64) MTRC_BW */ /* Maps numeric data keys to cumulative time served (in usecs/msecs). * 1 -> 187 * 2 -> 208 */ /*khash_t(iu64) MTRC_CUMTS */ /* Maps numeric data keys to max time served (in usecs/msecs). * 1 -> 1287 * 2 -> 2308 */ /*khash_t(iu64) MTRC_MAXTS */ /* Maps numeric data keys to uint8_t values. * 1 -> 3 * 2 -> 4 */ /*khash_t(is32) MTRC_METHODS */ /* Maps numeric data keys to uint8_t values. * 1 -> 1 * 2 -> 1 */ /*khash_t(is32) MTRC_PROTOCOLS */ /* Maps numeric unique data keys (e.g., 192.168.0.1 => 1) to the unique user * agent key. Therefore, 1 IP can contain multiple user agents * 1 -> 3,5 * 2 -> 4,5,6,8 */ /*khash_t(igsl) MTRC_AGENTS */ /* Maps a string key counter such as sum of hits to an autoincremented value * "sum_hits" -> 9383 * "sum_bw" -> 3232932 */ /*khash_t(igsl) MTRC_METADATA */ /* *INDENT-OFF* */ extern const GKHashMetric module_metrics[]; extern const GKHashMetric global_metrics[]; extern const size_t global_metrics_len; extern const size_t module_metrics_len; char *ht_get_datamap (GModule module, uint32_t key); char *ht_get_host_agent_val (uint32_t key); char *ht_get_method (GModule module, uint32_t key); char *ht_get_protocol (GModule module, uint32_t key); char *ht_get_root (GModule module, uint32_t key); uint32_t ht_get_hits (GModule module, int key); uint32_t ht_get_keymap (GModule module, const char *key); uint32_t ht_get_size_datamap (GModule module); uint32_t ht_get_size_dates (void); uint32_t ht_get_size_uniqmap (GModule module); uint32_t ht_get_visitors (GModule module, uint32_t key); uint32_t ht_sum_valid (void); uint64_t ht_get_bw (GModule module, uint32_t key); uint64_t ht_get_cumts (GModule module, uint32_t key); uint64_t ht_get_maxts (GModule module, uint32_t key); uint64_t ht_get_meta_data (GModule module, const char *key); uint64_t ht_sum_bw (void); void *get_hash (int module, uint64_t key, GSMetric metric); void ht_get_bw_min_max (GModule module, uint64_t * min, uint64_t * max); void ht_get_cumts_min_max (GModule module, uint64_t * min, uint64_t * max); void ht_get_hits_min_max (GModule module, uint32_t * min, uint32_t * max); void ht_get_maxts_min_max (GModule module, uint64_t * min, uint64_t * max); void ht_get_visitors_min_max (GModule module, uint32_t * min, uint32_t * max); int ht_inc_cnt_bw (uint32_t date, uint64_t inc); int ht_insert_agent (GModule module, uint32_t date, uint32_t key, uint32_t value); int ht_insert_agent_value (uint32_t date, uint32_t key, char *value); int ht_insert_bw (GModule module, uint32_t date, uint32_t key, uint64_t inc, uint32_t ckey); int ht_insert_cumts (GModule module, uint32_t date, uint32_t key, uint64_t inc, uint32_t ckey); int ht_insert_datamap (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey); int ht_insert_date (uint32_t key); int ht_insert_maxts (GModule module, uint32_t date, uint32_t key, uint64_t value, uint32_t ckey); int ht_insert_method (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey); int ht_insert_protocol (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey); int ht_insert_root (GModule module, uint32_t date, uint32_t key, uint32_t value, uint32_t dkey, uint32_t rkey); int ht_insert_rootmap (GModule module, uint32_t date, uint32_t key, const char *value, uint32_t ckey); int ht_insert_uniqmap (GModule module, uint32_t date, uint32_t key, uint32_t value); uint32_t ht_inc_cnt_valid (uint32_t date, uint32_t inc); uint32_t ht_insert_agent_key (uint32_t date, uint32_t key); uint32_t ht_insert_hits (GModule module, uint32_t date, uint32_t key, uint32_t inc, uint32_t ckey); uint32_t ht_insert_keymap (GModule module, uint32_t date, uint32_t key, uint32_t * ckey); uint32_t ht_insert_unique_key (uint32_t date, const char *key); uint32_t ht_insert_visitor (GModule module, uint32_t date, uint32_t key, uint32_t inc, uint32_t ckey); int ht_insert_meta_data (GModule module, uint32_t date, const char *key, uint64_t value); int invalidate_date (int date); int rebuild_rawdata_cache (void); void des_igkh (void *h); void free_cache (GKHashModule * cache); void init_storage (void); GRawData *parse_raw_data (GModule module); GSLList *ht_get_host_agent_list (GModule module, uint32_t key); GSLList *ht_get_keymap_list_from_key (GModule module, uint32_t key); /* *INDENT-ON* */ #endif // for #ifndef GKMHASH_H ================================================ FILE: src/gmenu.c ================================================ /** * gmenu.c -- goaccess menus * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "gmenu.h" #include "xmalloc.h" #include "ui.h" /* Allocate memory for a new GMenu instance. * * On success, the newly allocated GMenu is returned . */ GMenu * new_gmenu (WINDOW *parent, int h, int w, int y, int x) { GMenu *menu = xmalloc (sizeof (GMenu)); memset (menu, 0, sizeof *menu); menu->count = 0; menu->idx = 0; menu->multiple = 0; menu->selectable = 0; menu->start = 0; menu->status = 0; menu->h = h; menu->w = w; menu->x = x; menu->y = y; menu->win = derwin (parent, menu->h, menu->w, menu->y, menu->x); return menu; } /* Render actual menu item */ static void draw_menu_item (GMenu *menu, char *s, int x, int y, int w, int checked, GColors *(*func) (void)) { char check, *lbl = NULL; if (menu->selectable) { check = checked ? 'x' : ' '; lbl = xmalloc (snprintf (NULL, 0, "[%c] %s", check, s) + 1); sprintf (lbl, "[%c] %s", check, s); draw_header (menu->win, lbl, "%s", y, x, w, (*func)); free (lbl); } else { draw_header (menu->win, s, "%s", y, x, w, (*func)); } } /* Displays a menu to its associated window. * * On error, 1 is returned. * On success, the newly created menu is added to the window and 0 is * returned. */ int post_gmenu (GMenu *menu) { GColors *(*func) (void); int i = 0, j = 0, start, end, height, total, checked = 0; if (menu == NULL) return 1; werase (menu->win); height = menu->h; start = menu->start; total = menu->size; end = height < total ? start + height : total; for (i = start; i < end; i++, j++) { func = i == menu->idx ? color_selected : color_default; checked = menu->items[i].checked ? 1 : 0; draw_menu_item (menu, menu->items[i].name, 0, j, menu->w, checked, func); } wrefresh (menu->win); return 0; } /* Main work horse of the menu system processing input events */ void gmenu_driver (GMenu *menu, int c) { int i; switch (c) { case REQ_DOWN: if (menu->idx >= menu->size - 1) break; ++menu->idx; if (menu->idx >= menu->h && menu->idx >= menu->start + menu->h) menu->start++; post_gmenu (menu); break; case REQ_UP: if (menu->idx <= 0) break; --menu->idx; if (menu->idx < menu->start) --menu->start; post_gmenu (menu); break; case REQ_SEL: if (!menu->multiple) { for (i = 0; i < menu->size; i++) menu->items[i].checked = 0; } if (menu->items[menu->idx].checked) menu->items[menu->idx].checked = 0; else menu->items[menu->idx].checked = 1; post_gmenu (menu); break; } } ================================================ FILE: src/gmenu.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifdef HAVE_NCURSESW_NCURSES_H #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_NCURSES_H #include <ncurses/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> #elif HAVE_CURSES_H #include <curses.h> #endif #ifndef GMENU_H_INCLUDED #define GMENU_H_INCLUDED enum ACTION { REQ_DOWN, REQ_UP, REQ_SEL }; typedef struct GMenu_ GMenu; typedef struct GItem_ GItem; /* Menu Item */ struct GItem_ { char *name; int checked; }; /* Menu Panel */ struct GMenu_ { WINDOW *win; int count; int size; int idx; int start; int h; int w; int x; int y; unsigned short multiple; unsigned short selectable; unsigned short status; GItem *items; }; GMenu *new_gmenu (WINDOW * parent, int h, int w, int y, int x); int post_gmenu (GMenu * menu); void gmenu_driver (GMenu * menu, int c); #endif ================================================ FILE: src/goaccess.c ================================================ /** * goaccess.c -- main log analyzer * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include <assert.h> #include <ctype.h> #include <errno.h> #include <locale.h> #if HAVE_CONFIG_H #include <config.h> #endif #include <fcntl.h> #include <grp.h> #include <pthread.h> #include <pwd.h> #include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <inttypes.h> #include "gkhash.h" #ifdef HAVE_GEOLOCATION #include "geoip1.h" #endif #include "browsers.h" #include "csv.h" #include "error.h" #include "gdashboard.h" #include "gdns.h" #include "gchart.h" #include "gholder.h" #include "goaccess.h" #include "gwsocket.h" #include "json.h" #include "options.h" #include "output.h" #include "util.h" #include "websocket.h" #include "xmalloc.h" GConf conf = { .append_method = 1, .append_protocol = 1, .chunk_size = 1024, .hl_header = 1, .jobs = 1, .num_tests = 10, }; /* Loading/Spinner */ GSpinner *parsing_spinner; /* active reverse dns flag */ int active_gdns = 0; /* WebSocket server - writer and reader threads */ static GWSWriter *gwswriter; static GWSReader *gwsreader; /* Dashboard data structure */ static GDash *dash; /* Data holder structure */ static GHolder *holder; /* Old signal mask */ static sigset_t oldset; /* Curses windows */ static WINDOW *header_win, *main_win; static int main_win_height = 0; /* *INDENT-OFF* */ static GScroll gscroll = { { {0, 0, 0, 0, 1, NULL, 0}, /* VISITORS - note the 1 at the end! */ {0, 0, 0, 0, 0, NULL, 0}, /* REQUESTS */ {0, 0, 0, 0, 0, NULL, 0}, /* REQUESTS_STATIC */ {0, 0, 0, 0, 0, NULL, 0}, /* NOT_FOUND */ {0, 0, 0, 0, 0, NULL, 0}, /* HOSTS */ {0, 0, 0, 0, 0, NULL, 0}, /* OS */ {0, 0, 0, 0, 0, NULL, 0}, /* BROWSERS */ {0, 0, 0, 0, 0, NULL, 0}, /* VISIT_TIMES */ {0, 0, 0, 0, 0, NULL, 0}, /* VIRTUAL_HOSTS */ {0, 0, 0, 0, 0, NULL, 0}, /* REFERRERS */ {0, 0, 0, 0, 0, NULL, 0}, /* REFERRING_SITES */ {0, 0, 0, 0, 0, NULL, 0}, /* KEYPHRASES */ {0, 0, 0, 0, 0, NULL, 0}, /* STATUS_CODES */ {0, 0, 0, 0, 0, NULL, 0}, /* REMOTE_USER */ {0, 0, 0, 0, 0, NULL, 0}, /* CACHE_STATUS */ #ifdef HAVE_GEOLOCATION {0, 0, 0, 0, 0, NULL, 0}, /* GEO_LOCATION */ {0, 0, 0, 0, 0, NULL, 0}, /* ASN */ #endif {0, 0, 0, 0, 0, NULL, 0}, /* MIME_TYPE */ {0, 0, 0, 0, 0, NULL, 0}, /* TLS_TYPE */ }, 0, /* current module */ 0, /* main dashboard scroll */ 0, /* expanded flag */ }; /* *INDENT-ON* */ /* Free malloc'd holder */ static void house_keeping_holder (void) { /* REVERSE DNS THREAD */ pthread_mutex_lock (&gdns_thread.mutex); /* kill dns pthread */ active_gdns = 0; /* clear holder structure */ free_holder (&holder); /* clear reverse dns queue */ gdns_free_queue (); /* clear the whole storage */ free_storage (); pthread_mutex_unlock (&gdns_thread.mutex); } /* Free per-item expand state for all modules */ static void free_scroll_state (void) { GModule module; size_t idx = 0; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; free_item_expanded (&gscroll.module[module]); } } /* Free malloc'd data across the whole program */ static void house_keeping (void) { house_keeping_holder (); /* SCROLL STATE */ free_scroll_state (); /* DASHBOARD */ if (dash && !conf.output_stdout) { free_dashboard (dash); reset_find (); } /* GEOLOCATION */ #ifdef HAVE_GEOLOCATION geoip_free (); free_country_continent_map (); #endif /* INVALID REQUESTS */ if (conf.invalid_requests_log) { LOG_DEBUG (("Closing invalid requests log.\n")); invalid_log_close (); } /* UNKNOWNS */ if (conf.unknowns_log) { LOG_DEBUG (("Closing unknowns log.\n")); unknowns_log_close (); } /* CONFIGURATION */ free_formats (); free_browsers_hash (); if (conf.debug_log) { LOG_DEBUG (("Bye.\n")); dbg_log_close (); } if (conf.fifo_in) free ((char *) conf.fifo_in); if (conf.fifo_out) free ((char *) conf.fifo_out); /* clear spinner */ free (parsing_spinner); /* free colors */ free_color_lists (); /* free cmd arguments */ free_cmd_args (); /* WebSocket writer */ free (gwswriter); /* WebSocket reader */ free (gwsreader); } static void cleanup (int ret) { /* done, restore tty modes and reset terminal into * non-visual mode */ if (!conf.output_stdout) endwin (); if (!conf.no_progress) fprintf (stdout, "Cleaning up resources...\n"); /* unable to process valid data */ if (ret) output_logerrors (); house_keeping (); } /* Drop permissions to the user specified. */ static void drop_permissions (void) { struct passwd *pw; errno = 0; if ((pw = getpwnam (conf.username)) == NULL) { if (errno == 0) FATAL ("No such user %s", conf.username); FATAL ("Unable to retrieve user %s: %s", conf.username, strerror (errno)); } if (setgroups (1, &pw->pw_gid) == -1) FATAL ("setgroups: %s", strerror (errno)); if (setgid (pw->pw_gid) == -1) FATAL ("setgid: %s", strerror (errno)); if (setuid (pw->pw_uid) == -1) FATAL ("setuid: %s", strerror (errno)); } /* Open the pidfile whose name is specified in the given path and write * the daemonized given pid. */ static void write_pid_file (const char *path, pid_t pid) { FILE *pidfile; if (!path) return; if ((pidfile = fopen (path, "w"))) { fprintf (pidfile, "%d", pid); fclose (pidfile); } else { FATAL ("Unable to open the specified pid file. %s", strerror (errno)); } } /* Set GoAccess to run as a daemon */ static void daemonize (void) { pid_t pid, sid; int fd; /* Clone ourselves to make a child */ pid = fork (); if (pid < 0) exit (EXIT_FAILURE); if (pid > 0) { write_pid_file (conf.pidfile, pid); printf ("Daemonized GoAccess: %d\n", pid); exit (EXIT_SUCCESS); } umask (0); /* attempt to create our own process group */ sid = setsid (); if (sid < 0) { LOG_DEBUG (("Unable to setsid: %s.\n", strerror (errno))); exit (EXIT_FAILURE); } /* set the working directory to the root directory. * requires the user to specify absolute paths */ if (chdir ("/") < 0) { LOG_DEBUG (("Unable to set chdir: %s.\n", strerror (errno))); exit (EXIT_FAILURE); } /* redirect fd's 0,1,2 to /dev/null */ /* Note that the user will need to use --debug-file for log output */ if ((fd = open ("/dev/null", O_RDWR, 0)) == -1) { LOG_DEBUG (("Unable to open /dev/null: %s.\n", strerror (errno))); exit (EXIT_FAILURE); } dup2 (fd, STDIN_FILENO); dup2 (fd, STDOUT_FILENO); dup2 (fd, STDERR_FILENO); if (fd > STDERR_FILENO) { close (fd); } } /* Extract data from the given module hash structure and allocate + * load data from the hash table into an instance of GHolder */ static void allocate_holder_by_module (GModule module) { GRawData *raw_data; uint32_t max_choices = get_max_choices (); uint32_t max_choices_sub = get_max_choices_sub (); /* extract data from the corresponding hash table */ raw_data = parse_raw_data (module); if (!raw_data) { LOG_DEBUG (("raw data is NULL for module: %d.\n", module)); return; } load_holder_data (raw_data, holder + module, module, module_sort[module], max_choices, max_choices_sub); } /* Iterate over all modules/panels and extract data from hash * structures and load it into an instance of GHolder */ static void allocate_holder (void) { size_t idx = 0; holder = new_gholder (TOTAL_MODULES); FOREACH_MODULE (idx, module_list) { allocate_holder_by_module (module_list[idx]); } } /* Extract data from the modules GHolder structure and load it into * the terminal dashboard */ static void allocate_data_by_module (GModule module, uint32_t col_data) { uint32_t size = 0; uint32_t max_choices = get_max_choices (); dash->module[module].head = module_to_head (module); dash->module[module].desc = module_to_desc (module); size = holder[module].idx; if (gscroll.expanded && module == gscroll.current) { size = size > max_choices ? max_choices : holder[module].idx; } else { size = holder[module].idx > col_data ? col_data : holder[module].idx; } dash->module[module].alloc_data = size; /* data allocated */ dash->module[module].ht_size = holder[module].ht_size; /* hash table size */ dash->module[module].idx_data = 0; dash->module[module].pos_y = 0; if (gscroll.expanded && module == gscroll.current) dash->module[module].dash_size = DASH_EXPANDED; else dash->module[module].dash_size = DASH_COLLAPSED; dash->total_alloc += dash->module[module].dash_size; pthread_mutex_lock (&gdns_thread.mutex); load_data_to_dash (&holder[module], dash, module, &gscroll); pthread_mutex_unlock (&gdns_thread.mutex); } /* Iterate over all modules/panels and extract data from GHolder * structure and load it into the terminal dashboard */ static void allocate_data (void) { GModule module; uint32_t col_data = get_num_collapsed_data_rows (); size_t idx = 0; dash = new_gdash (); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; allocate_data_by_module (module, col_data); } } static void clean_stdscrn (void) { int row, col; getmaxyx (stdscr, row, col); draw_header (stdscr, "", "%s", row - 1, 0, col, color_default); } /* A wrapper to render all windows within the dashboard. */ static void render_screens (uint32_t offset) { GColors *color = get_color (COLOR_DEFAULT); int row, col; char time_str_buf[32]; getmaxyx (stdscr, row, col); term_size (main_win, &main_win_height); generate_time (); strftime (time_str_buf, sizeof (time_str_buf), "%d/%b/%Y:%T", &now_tm); draw_header (stdscr, "", "%s", row - 1, 0, col, color_default); wattron (stdscr, color->attr | COLOR_PAIR (color->pair->idx)); mvaddstr (row - 1, 1, T_HELP_ENTER); mvprintw (row - 1, col / 2 - 10, "%" PRIu32 "/r - %s", offset, time_str_buf); mvaddstr (row - 1, col - 6 - strlen (T_QUIT), T_QUIT); mvprintw (row - 1, col - 5, "%s", GO_VERSION); wattroff (stdscr, color->attr | COLOR_PAIR (color->pair->idx)); refresh (); /* call general stats header */ display_general (header_win, holder); wrefresh (header_win); /* display active label based on current module */ update_active_module (header_win, gscroll.current); display_content (main_win, dash, &gscroll, holder); } /* Collapse the current expanded module */ static int collapse_current_module (void) { if (!gscroll.expanded) return 1; /* Reset per-item expand state before collapsing */ reset_item_expanded (&gscroll.module[gscroll.current]); gscroll.expanded = 0; reset_scroll_offsets (&gscroll); free_dashboard (dash); allocate_data (); return 0; } /* Display message at the bottom of the terminal dashboard that panel * is disabled */ static void disabled_panel_msg (GModule module) { const char *lbl = module_to_label (module); int row, col; getmaxyx (stdscr, row, col); draw_header (stdscr, lbl, ERR_PANEL_DISABLED, row - 1, 0, col, color_error); } /* Set the current module/panel */ static int set_module_to (GScroll *scrll, GModule module) { if (get_module_index (module) == -1) { disabled_panel_msg (module); return 1; } /* scroll to panel */ if (!conf.no_tab_scroll) gscroll.dash = get_module_index (module) * DASH_COLLAPSED; /* reset expanded module */ collapse_current_module (); scrll->current = module; return 0; } /* Scroll expanded module or terminal dashboard to the top */ static void scroll_to_first_line (void) { if (!gscroll.expanded) gscroll.dash = 0; else { gscroll.module[gscroll.current].scroll = 0; gscroll.module[gscroll.current].offset = 0; } } /* Scroll expanded module or terminal dashboard to the last row */ static void scroll_to_last_line (void) { int exp_size = get_num_expanded_data_rows (); int scrll = 0, offset = 0; if (!gscroll.expanded) gscroll.dash = dash->total_alloc - main_win_height; else { scrll = dash->module[gscroll.current].idx_data - 1; if (scrll >= exp_size && scrll >= offset + exp_size) offset = scrll < exp_size - 1 ? 0 : scrll - exp_size + 1; gscroll.module[gscroll.current].scroll = scrll; gscroll.module[gscroll.current].offset = offset; } } /* Load the user-agent window given the selected IP */ static void load_ip_agent_list (void) { int type_ip = 0; /* make sure we have a valid IP */ int sel = gscroll.module[gscroll.current].scroll; GDashData item = { 0 }; if (dash->module[HOSTS].holder_size == 0) return; item = dash->module[HOSTS].data[sel]; if (!invalid_ipaddr (item.metrics->data, &type_ip)) load_agent_list (main_win, item.metrics->data); } /* Toggle expand/collapse of the selected item's children within expanded panel. * direction: 1 = expand (show children), 0 = collapse (hide children) */ static void toggle_selected_item_expand (int direction) { GModule mod = gscroll.current; int scroll_pos = gscroll.module[mod].scroll; GDashModule *dmod = &dash->module[mod]; int nfi; uint8_t new_state; if (scroll_pos < 0 || scroll_pos >= dmod->idx_data) return; nfi = dmod->data[scroll_pos].node_full_idx; /* Only toggle if the item actually has children */ if (!dmod->data[scroll_pos].has_children) return; if (nfi < 0 || nfi >= gscroll.module[mod].item_expanded_size) return; new_state = direction ? 1 : 0; if (gscroll.module[mod].item_expanded[nfi] == new_state) return; gscroll.module[mod].item_expanded[nfi] = new_state; /* When collapsing, keep scroll on the same item (which stays visible). * After rebuild, the selected item will have moved to a new flat position * because collapsed children are removed. Find its new position. */ { int old_scroll = scroll_pos; int target_nfi = nfi; /* Rebuild dashboard to reflect changed visibility */ free_dashboard (dash); allocate_data (); /* Find the new flat position of the toggled item */ dmod = &dash->module[mod]; { int k; for (k = 0; k < dmod->idx_data; k++) { if (dmod->data[k].node_full_idx == target_nfi) { gscroll.module[mod].scroll = k; if (k < gscroll.module[mod].offset) gscroll.module[mod].offset = k; return; } } } /* Fallback: clamp to last item */ if (dmod->idx_data > 0) { gscroll.module[mod].scroll = dmod->idx_data - 1; (void) old_scroll; } } } /* Expand the selected module */ static void expand_current_module (void) { if (gscroll.expanded && gscroll.current == HOSTS) { load_ip_agent_list (); return; } /* Already expanded -- toggle expand on the selected item */ if (gscroll.expanded) { toggle_selected_item_expand (1); return; } reset_scroll_offsets (&gscroll); gscroll.expanded = 1; free_holder_by_module (&holder, gscroll.current); free_dashboard (dash); allocate_holder_by_module (gscroll.current); /* Initialize per-node expand state -- all expanded by default. * Size = total nodes in the tree (roots + all sub-items). */ { int total_nodes = holder[gscroll.current].idx + holder[gscroll.current].sub_items_size; init_item_expanded (&gscroll.module[gscroll.current], total_nodes); } allocate_data (); } /* Expand the clicked module/panel given the Y event coordinate. */ static int expand_module_from_ypos (int y) { /* ignore header/footer clicks */ if (y < MAX_HEIGHT_HEADER || y == LINES - 1) return 1; if (set_module_from_mouse_event (&gscroll, dash, y)) return 1; reset_scroll_offsets (&gscroll); gscroll.expanded = 1; free_holder_by_module (&holder, gscroll.current); free_dashboard (dash); allocate_holder_by_module (gscroll.current); /* Initialize per-node expand state -- all expanded by default */ { int total_nodes = holder[gscroll.current].idx + holder[gscroll.current].sub_items_size; init_item_expanded (&gscroll.module[gscroll.current], total_nodes); } allocate_data (); return 0; } /* Expand the clicked module/panel */ static int expand_on_mouse_click (void) { int ok_mouse; MEVENT event; ok_mouse = getmouse (&event); if (!conf.mouse_support || ok_mouse != OK) return 1; if (event.bstate & BUTTON1_CLICKED) return expand_module_from_ypos (event.y); return 1; } /* Scroll up terminal dashboard */ static void scroll_up_dashboard (void) { gscroll.dash--; } /* Scroll down expanded module to the last row */ static void scroll_down_expanded_module (void) { int exp_size = get_num_expanded_data_rows (); int *scroll_ptr, *offset_ptr; int max_scroll; scroll_ptr = &gscroll.module[gscroll.current].scroll; offset_ptr = &gscroll.module[gscroll.current].offset; if (!gscroll.expanded) return; max_scroll = dash->module[gscroll.current].idx_data - 1; /* Don't scroll past the last item */ if (*scroll_ptr >= max_scroll) return; /* Increment scroll position */ ++(*scroll_ptr); /* Adjust offset if we're scrolling beyond the visible area * Keep the selection visible by ensuring it's within the window */ if (*scroll_ptr >= *offset_ptr + exp_size) { ++(*offset_ptr); } } /* Scroll up expanded module */ static void scroll_up_expanded_module (void) { int *scroll_ptr, *offset_ptr; scroll_ptr = &gscroll.module[gscroll.current].scroll; offset_ptr = &gscroll.module[gscroll.current].offset; if (!gscroll.expanded) return; if (*scroll_ptr <= 0) return; --(*scroll_ptr); /* Adjust offset if selection goes above visible area */ if (*scroll_ptr < *offset_ptr) --(*offset_ptr); } /* Page down expanded module */ static void page_down_module (void) { int exp_size = get_num_expanded_data_rows (); int *scroll_ptr, *offset_ptr; int max_scroll; scroll_ptr = &gscroll.module[gscroll.current].scroll; offset_ptr = &gscroll.module[gscroll.current].offset; if (!gscroll.expanded) return; max_scroll = dash->module[gscroll.current].idx_data - 1; /* Move down by page */ *scroll_ptr += exp_size; /* Clamp to maximum */ if (*scroll_ptr > max_scroll) *scroll_ptr = max_scroll; /* Adjust offset to keep selection visible */ if (*scroll_ptr >= *offset_ptr + exp_size) { *offset_ptr = *scroll_ptr - exp_size + 1; } /* Make sure offset doesn't go beyond valid range */ if (*offset_ptr + exp_size > max_scroll + 1) { *offset_ptr = max_scroll - exp_size + 1; if (*offset_ptr < 0) *offset_ptr = 0; } } /* Page up expanded module */ static void page_up_module (void) { int exp_size = get_num_expanded_data_rows (); int *scroll_ptr, *offset_ptr; scroll_ptr = &gscroll.module[gscroll.current].scroll; offset_ptr = &gscroll.module[gscroll.current].offset; if (!gscroll.expanded) return; /* Move up by page */ *scroll_ptr -= exp_size; /* Clamp to minimum */ if (*scroll_ptr < 0) *scroll_ptr = 0; /* Adjust offset to keep selection visible */ if (*scroll_ptr < *offset_ptr) { *offset_ptr = *scroll_ptr; } } /* Create a new find dialog window and render it. Upon closing the * window, dashboard is refreshed. */ static int render_search_dialog (int search) { if (render_find_dialog (main_win, &gscroll)) return 1; pthread_mutex_lock (&gdns_thread.mutex); search = perform_next_find (holder, &gscroll); pthread_mutex_unlock (&gdns_thread.mutex); if (search != 0) return 1; free_dashboard (dash); allocate_data (); return 0; } /* Search for the next occurrence within the dashboard structure */ static int search_next_match (int search) { pthread_mutex_lock (&gdns_thread.mutex); search = perform_next_find (holder, &gscroll); pthread_mutex_unlock (&gdns_thread.mutex); if (search != 0) return 1; free_dashboard (dash); allocate_data (); return 0; } /* Update holder structure and dashboard screen */ static void tail_term (void) { pthread_mutex_lock (&gdns_thread.mutex); free_holder (&holder); pthread_cond_broadcast (&gdns_thread.not_empty); pthread_mutex_unlock (&gdns_thread.mutex); free_dashboard (dash); allocate_holder (); allocate_data (); term_size (main_win, &main_win_height); } static void tail_html (void) { char *json = NULL; pthread_mutex_lock (&gdns_thread.mutex); free_holder (&holder); pthread_cond_broadcast (&gdns_thread.not_empty); pthread_mutex_unlock (&gdns_thread.mutex); allocate_holder (); pthread_mutex_lock (&gdns_thread.mutex); json = get_json (holder, 1); pthread_mutex_unlock (&gdns_thread.mutex); if (json == NULL) return; pthread_mutex_lock (&gwswriter->mutex); broadcast_holder (gwswriter->fd, json, strlen (json)); pthread_mutex_unlock (&gwswriter->mutex); free (json); } /* Fast-forward latest JSON data when client connection is opened. */ static void fast_forward_client (int listener) { char *json = NULL; pthread_mutex_lock (&gdns_thread.mutex); json = get_json (holder, 1); pthread_mutex_unlock (&gdns_thread.mutex); if (json == NULL) return; pthread_mutex_lock (&gwswriter->mutex); send_holder_to_client (gwswriter->fd, listener, json, strlen (json)); pthread_mutex_unlock (&gwswriter->mutex); free (json); } /* Start reading data coming from the client side through the * WebSocket server. */ void read_client (void *ptr_data) { GWSReader *reader = (GWSReader *) ptr_data; /* check we have a fifo for reading */ if (reader->fd == -1) return; pthread_mutex_lock (&reader->mutex); set_self_pipe (reader->self_pipe); pthread_mutex_unlock (&reader->mutex); while (1) { /* poll(2) will block */ if (read_fifo (reader, fast_forward_client)) break; } close (reader->fd); } /* Parse tailed lines */ static void parse_tail_follow (GLog *glog, GFileHandle *fh) { GLogItem *logitem = NULL; #ifdef WITH_GETLINE char *buf = NULL; #else char buf[LINE_BUFFER] = { 0 }; #endif glog->bytes = 0; #ifdef WITH_GETLINE while ((buf = gfile_getline (fh)) != NULL) { #else while (gfile_gets (buf, LINE_BUFFER, fh) != NULL) { #endif pthread_mutex_lock (&gdns_thread.mutex); if ((parse_line (glog, buf, 0, &logitem)) == 0 && logitem != NULL) process_log (logitem); if (logitem != NULL) { free_glog (logitem); logitem = NULL; } pthread_mutex_unlock (&gdns_thread.mutex); glog->bytes += strlen (buf); #ifdef WITH_GETLINE free (buf); #endif /* If the ingress rate is greater than MAX_BATCH_LINES, * then we break and allow to re-render the UI */ if (++glog->read % MAX_BATCH_LINES == 0) break; } } static void verify_inode (GFileHandle *fh, GLog *glog) { struct stat fdstat; if (stat (glog->props.filename, &fdstat) == -1) FATAL ("Unable to stat the specified log file '%s'. %s", glog->props.filename, strerror (errno)); glog->props.size = fdstat.st_size; /* Either the log got smaller, probably was truncated so start reading from 0 * and reset snippet. * If the log changed its inode, more likely the log was rotated, so we set * the initial snippet for the new log for future iterations */ if (fdstat.st_ino != glog->props.inode || glog->snippet[0] == '\0' || 0 == glog->props.size) { glog->length = glog->bytes = 0; set_initial_persisted_data (glog, fh, glog->props.filename); } glog->props.inode = fdstat.st_ino; } /* Check if a file is gzipped by examining magic bytes or extension * Returns 1 if gzipped, 0 otherwise */ static int is_gzipped_file_check (const char *filename) { FILE *fp; unsigned char magic[2]; int result = 0; size_t len; /* Quick check: does it end in .gz? */ len = strlen (filename); if (len > 3 && strcmp (filename + len - 3, ".gz") == 0) return 1; /* Double-check by reading magic bytes */ if ((fp = fopen (filename, "rb")) == NULL) return 0; if (fread (magic, 1, 2, fp) == 2) { /* gzip magic number is 0x1f 0x8b */ if (magic[0] == 0x1f && magic[1] == 0x8b) result = 1; } fclose (fp); return result; } /* Process appended log data * * If nothing changed, 0 is returned. * If log file changed, 1 is returned. */ static int perform_tail_follow (GLog *glog) { GFileHandle *fh = NULL; char buf[READ_BYTES + 1] = { 0 }; uint16_t len = 0; uint64_t length = 0; if (glog->props.filename[0] == '-' && glog->props.filename[1] == '\0') { /* For stdin pipe, we need to wrap the FILE* into a GFileHandle */ fh = calloc (1, sizeof (GFileHandle)); if (!fh) return 0; fh->fp = glog->pipe; #ifdef HAVE_ZLIB fh->is_gzipped = 0; fh->gzfp = NULL; #endif parse_tail_follow (glog, fh); /* did we read something from the pipe? */ if (0 == glog->bytes) { free (fh); return 0; } glog->length += glog->bytes; free (fh); goto out; } /* Skip tailing gzipped files - they are static archives and should not be monitored * for changes in real-time mode. Only regular log files should be tailed. */ if (is_gzipped_file_check (glog->props.filename)) { return 0; } length = file_size (glog->props.filename); /* file hasn't changed */ /* ###NOTE: This assumes the log file being read can be of smaller size, e.g., * rotated/truncated file or larger when data is appended */ if (length == glog->length) return 0; if (!(fh = gfile_open (glog->props.filename, "r"))) FATAL ("Unable to read the specified log file '%s'. %s", glog->props.filename, strerror (errno)); verify_inode (fh, glog); len = MIN (glog->snippetlen, length); /* This is not ideal, but maybe the only reliable way to know if the * current log looks different than our first read/parse */ if ((gfile_read (buf, len, 1, fh)) != 1 && gfile_error (fh)) FATAL ("Unable to read the specified log file '%s'", glog->props.filename); /* For the case where the log got larger since the last iteration, we attempt * to compare the first READ_BYTES against the READ_BYTES we had since the last * parse. If it's different, then it means the file may got truncated but grew * faster than the last iteration (odd, but possible), so we read from 0* */ if (glog->snippet[0] != '\0' && buf[0] != '\0' && memcmp (glog->snippet, buf, len) != 0) glog->length = glog->bytes = 0; if (!gfile_seek (fh, glog->length, SEEK_SET)) parse_tail_follow (glog, fh); gfile_close (fh); glog->length += glog->bytes; /* insert the inode of the file parsed and the last line parsed */ if (glog->props.inode) { glog->lp.line = glog->read; glog->lp.size = glog->props.size; ht_insert_last_parse (glog->props.inode, &glog->lp); } out: return 1; } /* Loop over and perform a follow for the given logs */ static void tail_loop_html (Logs *logs) { struct timespec refresh = { .tv_sec = conf.html_refresh ? conf.html_refresh : HTML_REFRESH, .tv_nsec = 0, }; int i = 0, ret = 0; while (1) { if (conf.stop_processing) break; for (i = 0, ret = 0; i < logs->size; ++i) ret |= perform_tail_follow (&logs->glog[i]); /* 0.2 secs */ if (1 == ret) tail_html (); if (nanosleep (&refresh, NULL) == -1 && errno != EINTR) FATAL ("nanosleep: %s", strerror (errno)); } } /* Entry point to start processing the HTML output */ static void process_html (Logs *logs, const char *filename) { /* render report */ pthread_mutex_lock (&gdns_thread.mutex); output_html (holder, filename); pthread_mutex_unlock (&gdns_thread.mutex); /* not real time? */ if (!conf.real_time_html) return; /* ignore loading from disk */ if (logs->load_from_disk_only) return; pthread_mutex_lock (&gwswriter->mutex); gwswriter->fd = open_fifoin (); pthread_mutex_unlock (&gwswriter->mutex); /* open fifo for write */ if (gwswriter->fd == -1) return; set_ready_state (); tail_loop_html (logs); close (gwswriter->fd); } /* Iterate over available panels and advance the panel pointer. */ static int next_module (void) { int next = -1; if ((next = get_next_module (gscroll.current)) == -1) return 1; gscroll.current = next; if (!conf.no_tab_scroll) gscroll.dash = get_module_index (gscroll.current) * DASH_COLLAPSED; return 0; } /* Iterate over available panels and rewind the panel pointer. */ static int previous_module (void) { int prev = -1; if ((prev = get_prev_module (gscroll.current)) == -1) return 1; gscroll.current = prev; if (!conf.no_tab_scroll) gscroll.dash = get_module_index (gscroll.current) * DASH_COLLAPSED; return 0; } /* Perform several curses operations upon resizing the terminal. */ static void window_resize (void) { endwin (); refresh (); werase (header_win); werase (main_win); werase (stdscr); term_size (main_win, &main_win_height); refresh (); } /* Create a new sort dialog window and render it. Upon closing the * window, dashboard is refreshed. */ static void render_sort_dialog (void) { load_sort_win (main_win, gscroll.current, &module_sort[gscroll.current]); pthread_mutex_lock (&gdns_thread.mutex); free_holder (&holder); pthread_cond_broadcast (&gdns_thread.not_empty); pthread_mutex_unlock (&gdns_thread.mutex); free_dashboard (dash); allocate_holder (); allocate_data (); } static void term_tail_logs (Logs *logs) { struct timespec ts = {.tv_sec = 0,.tv_nsec = 200000000 }; /* 0.2 seconds */ uint32_t offset = 0; int i, ret; for (i = 0, ret = 0; i < logs->size; ++i) ret |= perform_tail_follow (&logs->glog[i]); if (1 == ret) { tail_term (); offset = *logs->processed - logs->offset; render_screens (offset); } if (nanosleep (&ts, NULL) == -1 && errno != EINTR) { FATAL ("nanosleep: %s", strerror (errno)); } } static int cycle_metric (GScroll *scroll, GHolder *holders, GModule mod, int direction) { int current_metric, found = 0, attempts = 0; int available_metrics[CHART_METRIC_COUNT]; int num_available = get_available_metrics (mod, available_metrics); if (num_available == 0) return 0; current_metric = scroll->module[mod].current_metric; while (attempts < CHART_METRIC_COUNT && !found) { if (direction > 0) current_metric = (current_metric + 1) % CHART_METRIC_COUNT; else current_metric = (current_metric - 1 + CHART_METRIC_COUNT) % CHART_METRIC_COUNT; for (int i = 0; i < num_available; i++) { if (available_metrics[i] == current_metric) { if (metric_has_data (&holders[mod], current_metric)) { found = 1; break; } } } attempts++; } if (found) { scroll->module[mod].current_metric = current_metric; return 1; } return 0; } /* Interfacing with the keyboard */ static void get_keys (Logs *logs) { int search = 0; int c, quit = 1; uint32_t offset = 0; struct sigaction act, oldact; /* Change the action for SIGINT to SIG_IGN and block Ctrl+c * before entering the subdialog */ act.sa_handler = SIG_IGN; sigemptyset (&act.sa_mask); act.sa_flags = 0; while (quit) { if (conf.stop_processing) break; offset = *logs->processed - logs->offset; c = wgetch (stdscr); switch (c) { case 'q': /* quit */ if (!gscroll.expanded) { quit = 0; break; } if (collapse_current_module () == 0) render_screens (offset); break; case KEY_F (1): case '?': case 'h': sigaction (SIGINT, &act, &oldact); load_help_popup (main_win); sigaction (SIGINT, &oldact, NULL); render_screens (offset); break; case 49: /* 1 - jump to first panel */ case 50: /* 2 - jump to second panel */ case 51: /* 3 */ case 52: /* 4 */ case 53: /* 5 */ case 54: /* 6 */ case 55: /* 7 */ case 56: /* 8 */ case 57: /* 9 */ case 48: /* 0 - jump to tenth panel */ { int panel_idx = (c == 48) ? 9 : (c - 49); /* 0 = 10th panel (index 9) */ int num_modules = get_num_modules (); if (panel_idx < num_modules) { GModule target = module_list[panel_idx]; if (set_module_to (&gscroll, target) == 0) render_screens (offset); } } break; case 9: /* TAB */ /* reset expanded module */ collapse_current_module (); if (next_module () == 0) render_screens (offset); break; case 353: /* Shift TAB */ /* reset expanded module */ collapse_current_module (); if (previous_module () == 0) render_screens (offset); break; case 'g': /* g = top */ scroll_to_first_line (); display_content (main_win, dash, &gscroll, holder); break; case 'G': /* G = down */ scroll_to_last_line (); display_content (main_win, dash, &gscroll, holder); break; /* expand dashboard module */ case KEY_RIGHT: case 0x0a: case 0x0d: case 32: /* ENTER */ case 79: /* o */ case 111: /* O */ case KEY_ENTER: expand_current_module (); display_content (main_win, dash, &gscroll, holder); break; case '+': /* expand selected item's children */ if (gscroll.expanded) { toggle_selected_item_expand (1); display_content (main_win, dash, &gscroll, holder); } break; case '-': /* collapse selected item's children */ if (gscroll.expanded) { toggle_selected_item_expand (0); display_content (main_win, dash, &gscroll, holder); } break; case KEY_DOWN: /* scroll main dashboard */ if ((gscroll.dash + main_win_height) < dash->total_alloc) { gscroll.dash++; display_content (main_win, dash, &gscroll, holder); } break; case KEY_MOUSE: /* handles mouse events */ if (expand_on_mouse_click () == 0) render_screens (offset); break; case 106: /* j - DOWN expanded module */ scroll_down_expanded_module (); display_content (main_win, dash, &gscroll, holder); break; /* scroll up main_win */ case KEY_UP: if (gscroll.dash > 0) { scroll_up_dashboard (); display_content (main_win, dash, &gscroll, holder); } break; case 2: /* ^ b - page up */ case 339: /* ^ PG UP */ page_up_module (); display_content (main_win, dash, &gscroll, holder); break; case 6: /* ^ f - page down */ case 338: /* ^ PG DOWN */ page_down_module (); display_content (main_win, dash, &gscroll, holder); break; case 107: /* k - UP expanded module */ scroll_up_expanded_module (); display_content (main_win, dash, &gscroll, holder); break; case 'n': if (search_next_match (search) == 0) render_screens (offset); break; case '/': sigaction (SIGINT, &act, &oldact); if (render_search_dialog (search) == 0) render_screens (offset); sigaction (SIGINT, &oldact, NULL); break; case 'p': /* reorder panels */ case 'P': sigaction (SIGINT, &act, &oldact); load_panels_win (main_win); sigaction (SIGINT, &oldact, NULL); /* Rebuild dashboard with new panel order */ pthread_mutex_lock (&gdns_thread.mutex); free_holder (&holder); pthread_cond_broadcast (&gdns_thread.not_empty); pthread_mutex_unlock (&gdns_thread.mutex); free_dashboard (dash); allocate_holder (); allocate_data (); render_screens (offset); break; case 'r': /* toggle reverse bars */ case 'R': { GModule mod = gscroll.current; gscroll.module[mod].reverse_bars = !gscroll.module[mod].reverse_bars; display_content (main_win, dash, &gscroll, holder); } break; case 'm': /* cycle metrics forward */ { GModule mod = gscroll.current; if (cycle_metric (&gscroll, holder, mod, +1)) display_content (main_win, dash, &gscroll, holder); } break; case 'M': /* cycle metrics backward */ { GModule mod = gscroll.current; if (cycle_metric (&gscroll, holder, mod, -1)) display_content (main_win, dash, &gscroll, holder); } break; break; case 'l': /* toggle log scale */ case 'L': { GModule mod = gscroll.current; gscroll.module[mod].use_log_scale = !gscroll.module[mod].use_log_scale; /* Refresh display whether expanded or collapsed */ display_content (main_win, dash, &gscroll, holder); } break; case 99: /* c */ if (conf.no_color) break; sigaction (SIGINT, &act, &oldact); load_schemes_win (main_win); sigaction (SIGINT, &oldact, NULL); free_dashboard (dash); allocate_data (); set_wbkgd (main_win, header_win); render_screens (offset); break; case 115: /* s */ sigaction (SIGINT, &act, &oldact); render_sort_dialog (); sigaction (SIGINT, &oldact, NULL); render_screens (offset); break; case 269: case KEY_RESIZE: window_resize (); render_screens (offset); break; default: if (logs->load_from_disk_only) break; term_tail_logs (logs); break; } } } /* Store accumulated processing time * Note: As we store with time_t second resolution, * if elapsed time == 0, we will bump it to 1. */ static void set_accumulated_time (void) { time_t elapsed = end_proc - start_proc; elapsed = (!elapsed) ? !elapsed : elapsed; ht_inc_cnt_overall ("processing_time", elapsed); } /* Execute the following calls right before we start the main * processing/parsing loop */ static void init_processing (void) { /* perform some additional checks before parsing panels */ verify_panels (); init_storage (); insert_methods_protocols (); set_spec_date_format (); if ((!conf.skip_term_resolver && !conf.output_stdout) || (conf.enable_html_resolver && conf.real_time_html)) gdns_thread_create (); } /* Determine the type of output, i.e., JSON, CSV, HTML */ static void standard_output (Logs *logs) { char *csv = NULL, *json = NULL, *html = NULL; /* CSV */ if (find_output_type (&csv, "csv", 1) == 0) output_csv (holder, csv); /* JSON */ if (find_output_type (&json, "json", 1) == 0) output_json (holder, json); /* HTML */ if (find_output_type (&html, "html", 1) == 0 || conf.output_format_idx == 0) { if (conf.real_time_html) setup_ws_server (gwswriter, gwsreader); process_html (logs, html); } free (csv); free (html); free (json); } /* Output to a terminal */ static void curses_output (Logs *logs) { allocate_data (); clean_stdscrn (); render_screens (0); /* will loop in here */ get_keys (logs); } /* Set locale */ static void set_locale (void) { char *loc_ctype; setlocale (LC_ALL, ""); #ifdef ENABLE_NLS bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); #endif loc_ctype = getenv ("LC_CTYPE"); if (loc_ctype != NULL) setlocale (LC_CTYPE, loc_ctype); else if ((loc_ctype = getenv ("LC_ALL"))) setlocale (LC_CTYPE, loc_ctype); else setlocale (LC_CTYPE, ""); } /* Attempt to get the current name of a terminal or fallback to /dev/tty * * On error, -1 is returned * On success, the new file descriptor is returned */ static int open_term (char **buf) { const char *term = "/dev/tty"; if (!isatty (STDERR_FILENO) || (term = ttyname (STDERR_FILENO)) == 0) { if (!isatty (STDOUT_FILENO) || (term = ttyname (STDOUT_FILENO)) == 0) { if (!isatty (STDIN_FILENO) || (term = ttyname (STDIN_FILENO)) == 0) { term = "/dev/tty"; } } } *buf = xstrdup (term); return open (term, O_RDONLY); } /* Determine if reading from a pipe, and duplicate file descriptors so * it doesn't get in the way of curses' normal reading stdin for * wgetch() */ static FILE * set_pipe_stdin (void) { char *term = NULL; FILE *pipe = stdin; int term_fd = -1; int pipe_fd = -1; /* If unable to open a terminal, yet data is being piped, then it's * probably from the cron, or when running as a user that can't open a * terminal. In that case it's still important to set the pipe as * non-blocking. * * Note: If used from the cron, it will require the * user to use a single dash to parse piped data such as: * cat access.log | goaccess - */ if ((term_fd = open_term (&term)) == -1) goto out1; if ((pipe_fd = dup (fileno (stdin))) == -1) FATAL ("Unable to dup stdin: %s", strerror (errno)); pipe = fdopen (pipe_fd, "r"); if (freopen (term, "r", stdin) == 0) FATAL ("Unable to open input from TTY"); if (fileno (stdin) != 0) (void) dup2 (fileno (stdin), 0); add_dash_filename (); out1: /* no need to set it as non-blocking since we are simply outputting a * static report */ if (conf.output_stdout && !conf.real_time_html) goto out2; /* Using select(), poll(), or epoll(), etc may be a better choice... */ if (pipe_fd == -1) pipe_fd = fileno (pipe); if (fcntl (pipe_fd, F_SETFL, fcntl (pipe_fd, F_GETFL, 0) | O_NONBLOCK) == -1) FATAL ("Unable to set fd as non-blocking: %s.", strerror (errno)); out2: free (term); return pipe; } /* Determine if we are getting data from the stdin, and where are we * outputting to. */ static void set_io (FILE **pipe) { /* For backwards compatibility, check if we are not outputting to a * terminal or if an output format was supplied */ if (!isatty (STDOUT_FILENO) || conf.output_format_idx > 0) conf.output_stdout = 1; /* dup fd if data piped */ if (!isatty (STDIN_FILENO)) *pipe = set_pipe_stdin (); } /* Process command line options and set some default options. */ static void parse_cmd_line (int argc, char **argv) { read_option_args (argc, argv); set_default_static_files (); } static void handle_signal_action (GO_UNUSED int sig_number) { if (sig_number == SIGINT) fprintf (stderr, "\nSIGINT caught!\n"); else if (sig_number == SIGTERM) fprintf (stderr, "\nSIGTERM caught!\n"); else if (sig_number == SIGQUIT) fprintf (stderr, "\nSIGQUIT caught!\n"); else fprintf (stderr, "\nSignal %d caught!\n", sig_number); fprintf (stderr, "Closing GoAccess...\n"); if (conf.output_stdout && conf.real_time_html) stop_ws_server (gwswriter, gwsreader); conf.stop_processing = 1; } static void setup_thread_signals (void) { struct sigaction act; act.sa_handler = handle_signal_action; sigemptyset (&act.sa_mask); act.sa_flags = 0; sigaction (SIGINT, &act, NULL); sigaction (SIGTERM, &act, NULL); sigaction (SIGQUIT, &act, NULL); signal (SIGPIPE, SIG_IGN); /* Restore old signal mask for the main thread */ pthread_sigmask (SIG_SETMASK, &oldset, NULL); } static void block_thread_signals (void) { /* Avoid threads catching SIGINT/SIGPIPE/SIGTERM/SIGQUIT and handle them in * main thread */ sigset_t sigset; sigemptyset (&sigset); sigaddset (&sigset, SIGINT); sigaddset (&sigset, SIGPIPE); sigaddset (&sigset, SIGTERM); sigaddset (&sigset, SIGQUIT); pthread_sigmask (SIG_BLOCK, &sigset, &oldset); } /* Initialize various types of data. */ static Logs * initializer (void) { int i; FILE *pipe = NULL; Logs *logs; /* drop permissions right away */ if (conf.username) drop_permissions (); /* then initialize modules and set */ gscroll.current = init_modules (); /* setup to use the current locale */ set_locale (); parse_browsers_file (); #ifdef HAVE_GEOLOCATION init_geoip (); #endif set_io (&pipe); /* init glog */ if (!(logs = init_logs (conf.filenames_idx))) FATAL (ERR_NO_DATA_PASSED); set_signal_data (logs); for (i = 0; i < logs->size; ++i) if (logs->glog[i].props.filename[0] == '-' && logs->glog[i].props.filename[1] == '\0') logs->glog[i].pipe = pipe; /* init parsing spinner */ parsing_spinner = new_gspinner (); parsing_spinner->processed = &(logs->processed); parsing_spinner->filename = &(logs->filename); /* init reverse lookup thread */ gdns_init (); /* init random number generator */ srand (getpid ()); init_pre_storage (logs); return logs; } static char * generate_fifo_name (void) { char fname[RAND_FN]; const char *tmp; char *path; size_t len; if ((tmp = getenv ("TMPDIR")) == NULL) tmp = "/tmp"; memset (fname, 0, sizeof (fname)); genstr (fname, RAND_FN - 1); len = snprintf (NULL, 0, "%s/goaccess_fifo_%s", tmp, fname) + 1; path = xmalloc (len); snprintf (path, len, "%s/goaccess_fifo_%s", tmp, fname); return path; } static int spawn_ws (void) { gwswriter = new_gwswriter (); gwsreader = new_gwsreader (); if (!conf.fifo_in) conf.fifo_in = generate_fifo_name (); if (!conf.fifo_out) conf.fifo_out = generate_fifo_name (); /* open fifo for read */ if ((gwsreader->fd = open_fifoout ()) == -1) { LOG (("Unable to open FIFO for read.\n")); return 1; } if (conf.daemonize) daemonize (); return 0; } static void set_standard_output (void) { int html = 0; /* HTML */ if (find_output_type (NULL, "html", 0) == 0 || conf.output_format_idx == 0) html = 1; /* Spawn WebSocket server threads */ if (html && conf.real_time_html) { if (spawn_ws ()) return; } setup_thread_signals (); /* Spawn progress spinner thread */ ui_spinner_create (parsing_spinner); } /* Set up curses. */ static void set_curses (Logs *logs, int *quit) { const char *err_log = NULL; setup_thread_signals (); set_input_opts (); if (conf.no_color || has_colors () == FALSE) { conf.color_scheme = NO_COLOR; conf.no_color = 1; } else { start_color (); } init_colors (0); init_windows (&header_win, &main_win); set_curses_spinner (parsing_spinner); /* Display configuration dialog if missing formats and not piping data in */ if (!conf.read_stdin && (verify_formats () || conf.load_conf_dlg)) { refresh (); *quit = render_confdlg (logs, parsing_spinner); clear (); } /* Piping data in without log/date/time format */ else if (conf.read_stdin && (err_log = verify_formats ())) { FATAL ("%s", err_log); } /* straight parsing */ else { ui_spinner_create (parsing_spinner); } } /* Where all begins... */ int main (int argc, char **argv) { Logs *logs = NULL; int quit = 0, ret = 0; block_thread_signals (); setup_sigsegv_handler (); /* command line/config options */ verify_global_config (argc, argv); parse_conf_file (&argc, &argv); parse_cmd_line (argc, argv); logs = initializer (); /* ignore outputting, process only */ if (conf.process_and_exit) { } /* set stdout */ else if (conf.output_stdout) { set_standard_output (); } /* set curses */ else { set_curses (logs, &quit); } /* no log/date/time format set */ if (quit) goto clean; init_processing (); /* main processing event */ time (&start_proc); if ((ret = parse_log (logs, 0))) { end_spinner (); goto clean; } if (conf.stop_processing) goto clean; logs->offset = *logs->processed; parse_initial_sort (); allocate_holder (); end_spinner (); time (&end_proc); set_accumulated_time (); if (conf.process_and_exit) { } /* stdout */ else if (conf.output_stdout) { standard_output (logs); } /* curses */ else { curses_output (logs); } /* clean */ clean: cleanup (ret); return ret ? EXIT_FAILURE : EXIT_SUCCESS; } ================================================ FILE: src/goaccess.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GOACCESS_H_INCLUDED #define GOACCESS_H_INCLUDED #include "ui.h" #include "dialogs.h" #define RAND_FN 7 + 1 extern GSpinner *parsing_spinner; extern int active_gdns; /* kill dns pthread flag */ void read_client (void *ptr_data); #endif ================================================ FILE: src/gslist.c ================================================ /** * gslist.c -- A Singly link list implementation * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdlib.h> #include <string.h> #include <ctype.h> #include "gslist.h" #include "gstorage.h" #include "xmalloc.h" /* Instantiate a new Singly linked-list node. * * On error, aborts if node can't be malloc'd. * On success, the GSLList node. */ GSLList * list_create (void *data) { GSLList *node = xmalloc (sizeof (GSLList)); node->data = data; node->next = NULL; return node; } /* Create and insert a node after a given node. * * On error, aborts if node can't be malloc'd. * On success, the newly created node. */ GSLList * list_insert_append (GSLList *node, void *data) { GSLList *newnode; newnode = list_create (data); newnode->next = node->next; node->next = newnode; return newnode; } /* Create and insert a node in front of the list. * * On error, aborts if node can't be malloc'd. * On success, the newly created node. */ GSLList * list_insert_prepend (GSLList *list, void *data) { GSLList *newnode; newnode = list_create (data); newnode->next = list; return newnode; } /* Find a node given a pointer to a function that compares them. * * If comparison fails, NULL is returned. * On success, the existing node is returned. */ GSLList * list_find (GSLList *node, int (*func) (void *, void *), void *data) { while (node) { if (func (node->data, data) > 0) return node; node = node->next; } return NULL; } GSLList * list_copy (GSLList *node) { GSLList *list = NULL; while (node) { if (!list) list = list_create (i322ptr ((*(uint32_t *) node->data))); else list = list_insert_prepend (list, i322ptr ((*(uint32_t *) node->data))); node = node->next; } return list; } /* Remove all nodes from the list. * * On success, 0 is returned. */ int list_remove_nodes (GSLList *list) { GSLList *tmp; while (list != NULL) { tmp = list->next; if (list->data) free (list->data); free (list); list = tmp; } return 0; } /* Remove the given node from the list. * * On error, 1 is returned. * On success, 0 is returned. */ int list_remove_node (GSLList **list, GSLList *node) { GSLList **current = list, *next = NULL; for (; *current; current = &(*current)->next) { if ((*current) != node) continue; next = (*current)->next; if ((*current)->data) free ((*current)->data); free (*current); *current = next; return 0; } return 1; } /* Iterate over the single linked-list and call function pointer. * * If function pointer does not return 0, -1 is returned. * On success, 0 is returned. */ int list_foreach (GSLList *node, int (*func) (void *, void *), void *user_data) { while (node) { if (func (node->data, user_data) != 0) return -1; node = node->next; } return 0; } /* Count the number of elements on the linked-list. * * On success, the number of elements is returned. */ int list_count (GSLList *node) { int count = 0; while (node != 0) { count++; node = node->next; } return count; } ================================================ FILE: src/gslist.h ================================================ /** * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GSLIST_H_INCLUDED #define GSLIST_H_INCLUDED /* Generic Single linked-list */ typedef struct GSLList_ { void *data; struct GSLList_ *next; } GSLList; #define GSLIST_FOREACH(node, data, code) { \ GSLList *__tmp = node; \ while (__tmp) { \ (data) = __tmp->data; \ code; \ __tmp = __tmp->next; \ }} /* single linked-list */ GSLList *list_create (void *data); GSLList *list_find (GSLList * node, int (*func) (void *, void *), void *data); GSLList *list_insert_append (GSLList * node, void *data); GSLList *list_insert_prepend (GSLList * list, void *data); GSLList *list_copy (GSLList * node); int list_count (GSLList * list); int list_foreach (GSLList * node, int (*func) (void *, void *), void *user_data); int list_remove_node (GSLList ** list, GSLList * node); int list_remove_nodes (GSLList * list); #endif // for #ifndef GSLIST_H ================================================ FILE: src/gstorage.c ================================================ /** * gstorage.c -- common storage handling * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if !defined __SUNPRO_C #include <stdint.h> #endif #include <stdlib.h> #include <string.h> #include <stdatomic.h> #include "gstorage.h" #ifdef HAVE_GEOLOCATION #include "geoip1.h" #endif #include "browsers.h" #include "commons.h" #include "error.h" #include "gkhash.h" #include "opesys.h" #include "ui.h" #include "util.h" #include "xmalloc.h" #ifdef HAVE_GEOLOCATION /* Static hash map: country string -> continent string. * Populated during parsing, queried during holder construction. */ static khash_t (ss32) * country_continent_map = NULL; static void set_country_continent (const char *country, const char *continent) { khint_t k; int ret; if (country == NULL || continent == NULL) return; if (country_continent_map == NULL) country_continent_map = kh_init (ss32); k = kh_get (ss32, country_continent_map, country); if (k != kh_end (country_continent_map)) return; /* already exists */ k = kh_put (ss32, country_continent_map, xstrdup (country), &ret); if (ret) kh_val (country_continent_map, k) = xstrdup (continent); } const char * get_continent_for_country (const char *country) { khint_t k; if (country_continent_map == NULL || country == NULL) return NULL; k = kh_get (ss32, country_continent_map, country); if (k == kh_end (country_continent_map)) return NULL; return kh_val (country_continent_map, k); } void free_country_continent_map (void) { khint_t k; if (country_continent_map == NULL) return; for (k = kh_begin (country_continent_map); k != kh_end (country_continent_map); ++k) { if (!kh_exist (country_continent_map, k)) continue; free ((char *) kh_key (country_continent_map, k)); free (kh_val (country_continent_map, k)); } kh_destroy (ss32, country_continent_map); country_continent_map = NULL; } #endif /* private prototypes */ /* key/data generators for each module */ static int gen_visitor_key (GKeyData * kdata, GLogItem * logitem); static int gen_404_key (GKeyData * kdata, GLogItem * logitem); static int gen_browser_key (GKeyData * kdata, GLogItem * logitem); static int gen_host_key (GKeyData * kdata, GLogItem * logitem); static int gen_keyphrase_key (GKeyData * kdata, GLogItem * logitem); static int gen_os_key (GKeyData * kdata, GLogItem * logitem); static int gen_vhost_key (GKeyData * kdata, GLogItem * logitem); static int gen_remote_user_key (GKeyData * kdata, GLogItem * logitem); static int gen_cache_status_key (GKeyData * kdata, GLogItem * logitem); static int gen_referer_key (GKeyData * kdata, GLogItem * logitem); static int gen_ref_site_key (GKeyData * kdata, GLogItem * logitem); static int gen_request_key (GKeyData * kdata, GLogItem * logitem); static int gen_static_request_key (GKeyData * kdata, GLogItem * logitem); static int gen_status_code_key (GKeyData * kdata, GLogItem * logitem); static int gen_visit_time_key (GKeyData * kdata, GLogItem * logitem); #ifdef HAVE_GEOLOCATION static int gen_geolocation_key (GKeyData * kdata, GLogItem * logitem); static int gen_asn_key (GKeyData * kdata, GLogItem * logitem); #endif /* UMS */ static int gen_mime_type_key (GKeyData * kdata, GLogItem * logitem); static int gen_tls_type_key (GKeyData * kdata, GLogItem * logitem); /* insertion metric routines */ static void insert_data (GModule module, GKeyData * kdata); static void insert_rootmap (GModule module, GKeyData * kdata); static void insert_root (GModule module, GKeyData * kdata); static void insert_hit (GModule module, GKeyData * kdata); static void insert_visitor (GModule module, GKeyData * kdata); static void insert_bw (GModule module, GKeyData * kdata, uint64_t size); static void insert_cumts (GModule module, GKeyData * kdata, uint64_t ts); static void insert_maxts (GModule module, GKeyData * kdata, uint64_t ts); static void insert_method (GModule module, GKeyData * kdata, const char *data); static void insert_protocol (GModule module, GKeyData * kdata, const char *data); static void insert_agent (GModule module, GKeyData * kdata, uint32_t agent_nkey); /* *INDENT-OFF* */ const httpmethods http_methods[] = { { "OPTIONS" , 7 } , { "GET" , 3 } , { "HEAD" , 4 } , { "POST" , 4 } , { "PUT" , 3 } , { "DELETE" , 6 } , { "TRACE" , 5 } , { "CONNECT" , 7 } , { "PATCH" , 5 } , { "SEARCH" , 6 } , /* WebDav */ { "PROPFIND" , 8 } , { "PROPPATCH" , 9 } , { "MKCOL" , 5 } , { "COPY" , 4 } , { "MOVE" , 4 } , { "LOCK" , 4 } , { "UNLOCK" , 6 } , { "VERSION-CONTROL" , 15 } , { "REPORT" , 6 } , { "CHECKOUT" , 8 } , { "CHECKIN" , 7 } , { "UNCHECKOUT" , 10 } , { "MKWORKSPACE" , 11 } , { "UPDATE" , 6 } , { "LABEL" , 5 } , { "MERGE" , 5 } , { "BASELINE-CONTROL" , 16 } , { "MKACTIVITY" , 10 } , { "ORDERPATCH" , 10 } , }; const size_t http_methods_len = ARRAY_SIZE (http_methods); const httpprotocols http_protocols[] = { { "HTTP/1.0" , 8 } , { "HTTP/1.1" , 8 } , { "HTTP/2" , 6 } , { "HTTP/3" , 6 } , }; const size_t http_protocols_len = ARRAY_SIZE (http_protocols); static const GParse paneling[] = { { VISITORS, gen_visitor_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { REQUESTS, gen_request_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, insert_method, insert_protocol, NULL, }, { REQUESTS_STATIC, gen_static_request_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, insert_method, insert_protocol, NULL, }, { NOT_FOUND, gen_404_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, insert_method, insert_protocol, NULL, }, { HOSTS, gen_host_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, insert_agent, }, { OS, gen_os_key, insert_data, insert_rootmap, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, insert_method, insert_protocol, NULL, }, { BROWSERS, gen_browser_key, insert_data, insert_rootmap, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { REFERRERS, gen_referer_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { REFERRING_SITES, gen_ref_site_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { KEYPHRASES, gen_keyphrase_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, #ifdef HAVE_GEOLOCATION { GEO_LOCATION, gen_geolocation_key, insert_data, insert_rootmap, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { ASN, gen_asn_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, #endif { STATUS_CODES, gen_status_code_key, insert_data, insert_rootmap, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { VISIT_TIMES, gen_visit_time_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { VIRTUAL_HOSTS, gen_vhost_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { REMOTE_USER, gen_remote_user_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { CACHE_STATUS, gen_cache_status_key, insert_data, NULL, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, { MIME_TYPE, gen_mime_type_key, insert_data, insert_rootmap, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, /*method*/ NULL, /*protocol*/ NULL, /*agent*/ }, { TLS_TYPE, gen_tls_type_key, insert_data, insert_rootmap, insert_hit, insert_visitor, insert_bw, insert_cumts, insert_maxts, NULL, NULL, NULL, }, }; /* *INDENT-ON* */ /* Initialize a new GKeyData instance */ static void new_modulekey (GKeyData *kdata) { GKeyData key = { .data = NULL, .data_nkey = 0, .root = NULL, .dhash = 0, .rhash = 0, .root_nkey = 0, .uniq_key = NULL, .uniq_nkey = 0, }; *kdata = key; } /* Get a panel from the GParse structure given a module. * * On error, or if not found, NULL is returned. * On success, the panel value is returned. */ static const GParse * panel_lookup (GModule module) { int i, num_panels = ARRAY_SIZE (paneling); for (i = 0; i < num_panels; i++) { if (paneling[i].module == module) return &paneling[i]; } return NULL; } /* Allocate memory for a new GMetrics instance. * * On success, the newly allocated GMetrics is returned . */ GMetrics * new_gmetrics (void) { GMetrics *metrics = xcalloc (1, sizeof (GMetrics)); return metrics; } /* Free memory of a GMetrics object */ void free_gmetrics (GMetrics *metric) { if (metric == NULL) return; free (metric->data); free (metric->method); free (metric->protocol); free (metric); } /* Get the module string value given a metric enum value. * * On error, NULL is returned. * On success, the string module value is returned. */ const char * get_mtr_str (GSMetric metric) { /* String modules to enumerated modules */ static const GEnum enum_metrics[] = { {"MTRC_KEYMAP", MTRC_KEYMAP}, {"MTRC_ROOTMAP", MTRC_ROOTMAP}, {"MTRC_DATAMAP", MTRC_DATAMAP}, {"MTRC_UNIQMAP", MTRC_UNIQMAP}, {"MTRC_ROOT", MTRC_ROOT}, {"MTRC_HITS", MTRC_HITS}, {"MTRC_VISITORS", MTRC_VISITORS}, {"MTRC_BW", MTRC_BW}, {"MTRC_CUMTS", MTRC_CUMTS}, {"MTRC_MAXTS", MTRC_MAXTS}, {"MTRC_METHODS", MTRC_METHODS}, {"MTRC_PROTOCOLS", MTRC_PROTOCOLS}, {"MTRC_AGENTS", MTRC_AGENTS}, {"MTRC_METADATA", MTRC_METADATA}, {"MTRC_UNIQUE_KEYS", MTRC_UNIQUE_KEYS}, {"MTRC_AGENT_KEYS", MTRC_AGENT_KEYS}, {"MTRC_AGENT_VALS", MTRC_AGENT_VALS}, {"MTRC_CNT_VALID", MTRC_CNT_VALID}, {"MTRC_CNT_BW", MTRC_CNT_BW}, }; return enum2str (enum_metrics, ARRAY_SIZE (enum_metrics), metric); } /* Allocate space off the heap to store a uint32_t. * * On success, the newly allocated pointer is returned . */ uint32_t * i322ptr (uint32_t val) { uint32_t *ptr = xmalloc (sizeof (uint32_t)); *ptr = val; return ptr; } /* Allocate space off the heap to store a uint64_t. * * On success, the newly allocated pointer is returned . */ uint64_t * uint642ptr (uint64_t val) { uint64_t *ptr = xmalloc (sizeof (uint64_t)); *ptr = val; return ptr; } /* Set the module totals to calculate percentages. */ void set_module_totals (GPercTotals *totals) { totals->bw = ht_sum_bw (); totals->hits = ht_sum_valid (); totals->visitors = ht_get_size_uniqmap (VISITORS); } /* Set numeric metrics for each request given raw data. * * On success, numeric metrics are set into the given structure. */ void set_data_metrics (GMetrics *ometrics, GMetrics **nmetrics, GPercTotals totals) { GMetrics *metrics; /* determine percentages for certain fields */ float hits_perc = get_percentage (totals.hits, ometrics->hits); float visitors_perc = get_percentage (totals.visitors, ometrics->visitors); float bw_perc = get_percentage (totals.bw, ometrics->nbw); metrics = new_gmetrics (); /* basic fields */ metrics->id = ometrics->id; metrics->hits = ometrics->hits; metrics->visitors = ometrics->visitors; /* percentage fields */ metrics->hits_perc = hits_perc < 0 ? 0 : hits_perc; metrics->bw_perc = bw_perc < 0 ? 0 : bw_perc; metrics->visitors_perc = visitors_perc < 0 ? 0 : visitors_perc; /* bandwidth field */ metrics->nbw = ometrics->nbw; /* time served fields */ if (conf.serve_usecs && ometrics->hits > 0) { metrics->avgts.nts = ometrics->avgts.nts; metrics->cumts.nts = ometrics->cumts.nts; metrics->maxts.nts = ometrics->maxts.nts; } /* method field */ if (conf.append_method && ometrics->method) metrics->method = ometrics->method; /* protocol field */ if (conf.append_protocol && ometrics->protocol) metrics->protocol = ometrics->protocol; /* data field */ metrics->data = ometrics->data; *nmetrics = metrics; } /* Increment the overall bandwidth. */ static void count_bw (int numdate, uint64_t resp_size) { ht_inc_cnt_bw (numdate, resp_size); } /* Keep track of all invalid log strings. */ static void count_invalid (GLog *glog, GLogItem *logitem, const char *line) { uint8_t idx = 0; atomic_fetch_add (&glog->invalid, 1); ht_inc_cnt_overall ("failed_requests", 1); if (conf.invalid_requests_log) { LOG_INVALID (("%s", line)); } if (logitem->errstr) { pthread_mutex_lock (&glog->error_mutex); idx = atomic_load (&glog->log_erridx); if (idx < MAX_LOG_ERRORS) { glog->errors[idx] = xstrdup (logitem->errstr); atomic_store (&glog->log_erridx, idx + 1); } pthread_mutex_unlock (&glog->error_mutex); } } /* Count down the number of invalids hits. * Note: Upon performing a log test, invalid hits are counted, since * no valid records were found, then we count down by the number of * tests ran. */ void uncount_invalid (GLog *glog) { uint64_t current = atomic_load (&glog->invalid); uint64_t new_val = (current > conf.num_tests) ? (current - conf.num_tests) : 0; atomic_store (&glog->invalid, new_val); } /* Count down the number of processed hits. * Note: Upon performing a log test, processed hits are counted, since * no valid records were found, then we count down by the number of * tests ran. */ void uncount_processed (GLog *glog) { lock_spinner (); if (glog->processed > conf.num_tests) glog->processed -= conf.num_tests; else glog->processed = 0; unlock_spinner (); } /* Keep track of all valid log strings. */ static void count_valid (int numdate) { lock_spinner (); ht_inc_cnt_valid (numdate, 1); unlock_spinner (); } /* Keep track of all valid and processed log strings. */ void count_process (GLog *glog) { lock_spinner (); glog->processed++; ht_inc_cnt_overall ("total_requests", 1); unlock_spinner (); } void count_process_and_invalid (GLog *glog, GLogItem *logitem, const char *line) { count_process (glog); count_invalid (glog, logitem, line); } /* Keep track of all excluded log strings (IPs). * * If IP not range, 1 is returned. * If IP is excluded, 0 is returned. */ int excluded_ip (GLogItem *logitem) { if (conf.ignore_ip_idx && ip_in_range (logitem->host)) { ht_inc_cnt_overall ("excluded_ip", 1); return 0; } return 1; } /* A wrapper function to insert a data keymap string key. * * If the given key exists, its value is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ static int insert_dkeymap (GModule module, GKeyData *kdata) { return ht_insert_keymap (module, kdata->numdate, kdata->dhash, &kdata->cdnkey); } /* A wrapper function to insert a root keymap string key. * * If the given key exists, its value is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ static int insert_rkeymap (GModule module, GKeyData *kdata) { return ht_insert_keymap (module, kdata->numdate, kdata->rhash, &kdata->crnkey); } /* A wrapper function to insert a datamap uint32_t key and string value. */ static void insert_data (GModule module, GKeyData *kdata) { ht_insert_datamap (module, kdata->numdate, kdata->data_nkey, kdata->data, kdata->cdnkey); } /* A wrapper function to insert a uniqmap string key. * * If the given key exists, 0 is returned. * On error, 0 is returned. * On success the value of the key inserted is returned */ static int insert_uniqmap (GModule module, GKeyData *kdata, uint32_t uniq_nkey) { return ht_insert_uniqmap (module, kdata->numdate, kdata->data_nkey, uniq_nkey); } /* A wrapper function to insert a rootmap uint32_t key from the keymap * store mapped to its string value. */ static void insert_rootmap (GModule module, GKeyData *kdata) { ht_insert_rootmap (module, kdata->numdate, kdata->root_nkey, kdata->root, kdata->crnkey); } /* A wrapper function to insert a data uint32_t key mapped to the * corresponding uint32_t root key. */ static void insert_root (GModule module, GKeyData *kdata) { ht_insert_root (module, kdata->numdate, kdata->data_nkey, kdata->root_nkey, kdata->cdnkey, kdata->crnkey); } /* A wrapper function to increase hits counter from an uint32_t key. */ static void insert_hit (GModule module, GKeyData *kdata) { ht_insert_hits (module, kdata->numdate, kdata->data_nkey, 1, kdata->cdnkey); ht_insert_meta_data (module, kdata->numdate, "hits", 1); } /* A wrapper function to increase visitors counter from an uint32_t * key. */ static void insert_visitor (GModule module, GKeyData *kdata) { ht_insert_visitor (module, kdata->numdate, kdata->data_nkey, 1, kdata->cdnkey); ht_insert_meta_data (module, kdata->numdate, "visitors", 1); } /* A wrapper function to increases bandwidth counter from an uint32_t * key. */ static void insert_bw (GModule module, GKeyData *kdata, uint64_t size) { ht_insert_bw (module, kdata->numdate, kdata->data_nkey, size, kdata->cdnkey); ht_insert_meta_data (module, kdata->numdate, "bytes", size); } /* A wrapper call to increases cumulative time served counter * from an uint32_t key. */ static void insert_cumts (GModule module, GKeyData *kdata, uint64_t ts) { ht_insert_cumts (module, kdata->numdate, kdata->data_nkey, ts, kdata->cdnkey); ht_insert_meta_data (module, kdata->numdate, "cumts", ts); } /* A wrapper call to insert the maximum time served counter from * an uint32_t key. */ static void insert_maxts (GModule module, GKeyData *kdata, uint64_t ts) { ht_insert_maxts (module, kdata->numdate, kdata->data_nkey, ts, kdata->cdnkey); ht_insert_meta_data (module, kdata->numdate, "maxts", ts); } static void insert_method (GModule module, GKeyData *kdata, const char *data) { ht_insert_method (module, kdata->numdate, kdata->data_nkey, data ? data : "---", kdata->cdnkey); } /* A wrapper call to insert a method given an uint32_t key and string * value. */ static void insert_protocol (GModule module, GKeyData *kdata, const char *data) { ht_insert_protocol (module, kdata->numdate, kdata->data_nkey, data ? data : "---", kdata->cdnkey); } /* A wrapper call to insert an agent for a hostname given an uint32_t * key and uint32_t value. */ static void insert_agent (GModule module, GKeyData *kdata, uint32_t agent_nkey) { ht_insert_agent (module, kdata->numdate, kdata->data_nkey, agent_nkey); } /* The following generates a unique key to identity unique requests. * The key is made out of the actual request, and if available, the * method and the protocol. Note that for readability, doing a simple * snprintf/sprintf should suffice, however, memcpy is the fastest * solution * * On success the new unique request key is returned */ static char * gen_unique_req_key (GLogItem *logitem) { char *key = NULL; size_t s1 = 0, s2 = 0, s3 = 0, nul = 1, sep = 0; /* nothing to do */ if (!conf.append_method && !conf.append_protocol) return xstrdup (logitem->req); /* still nothing to do */ if (!logitem->method && !logitem->protocol) return xstrdup (logitem->req); s1 = strlen (logitem->req); if (logitem->method && conf.append_method) { s2 = strlen (logitem->method); nul++; } if (logitem->protocol && conf.append_protocol) { s3 = strlen (logitem->protocol); nul++; } /* includes terminating null */ key = xcalloc (s1 + s2 + s3 + nul, sizeof (char)); /* append request */ memcpy (key, logitem->req, s1); if (logitem->method && conf.append_method) { key[s1] = '|'; sep++; memcpy (key + s1 + sep, logitem->method, s2 + 1); } if (logitem->protocol && conf.append_protocol) { key[s1 + s2 + sep] = '|'; sep++; memcpy (key + s1 + s2 + sep, logitem->protocol, s3 + 1); } return key; } /* Append the query string to the request, and therefore, it modifies * the original logitem->req */ static void append_query_string (char **req, const char *qstr) { char *r; size_t s1, s2, qm = 0; s1 = strlen (*req); s2 = strlen (qstr); /* add '?' between the URL and the query string */ if (*qstr != '?') qm = 1; r = xmalloc (s1 + s2 + qm + 1); memcpy (r, *req, s1); if (qm) r[s1] = '?'; memcpy (r + s1 + qm, qstr, s2 + 1); free (*req); *req = r; } /* A wrapper to assign the given data key and the data item to the key * data structure */ static void get_kdata (GKeyData *kdata, const char *data_key, const char *data) { /* inserted in datamap */ kdata->data = data; /* inserted in keymap */ kdata->dhash = djb2 ((const unsigned char *) data_key); } /* A wrapper to assign the given data key and the data item to the key * data structure */ static void get_kroot (GKeyData *kdata, const char *root_key, const char *root) { /* inserted in datamap */ kdata->root = root; /* inserted in keymap */ kdata->rhash = djb2 ((const unsigned char *) root_key); } /* Generate a visitor's key given the date specificity. For instance, * if the specificity is set to hours, then a generated key would * look like: 03/Jan/2016:09 */ static void set_spec_visitor_key (char **fdate, const char *ftime) { size_t dlen = 0, tlen = 0, idx = 0; char *key = NULL, *tkey = NULL, *pch = NULL; tkey = xstrdup (ftime); if (conf.date_spec_hr == 1 && (pch = strchr (tkey, ':')) && (pch - tkey) > 0) *pch = '\0'; else if (conf.date_spec_hr == 2 && (pch = strrchr (tkey, ':')) && (pch - tkey) > 0) { *pch = '\0'; if ((pch = strchr (tkey, ':')) && (idx = pch - tkey)) memmove (&tkey[idx], &tkey[idx + 1], strlen (tkey) - idx); } dlen = strlen (*fdate); tlen = strlen (tkey); key = xmalloc (dlen + tlen + 1); memcpy (key, *fdate, dlen); memcpy (key + dlen, tkey, tlen + 1); free (*fdate); free (tkey); *fdate = key; } /* Generate a unique key for the visitors panel from the given logitem * structure and assign it to the output key data structure. * * On error, or if no date is found, 1 is returned. * On success, the date key is assigned to our key data structure. */ static int gen_visitor_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->date || !logitem->time) return 1; /* Append time specificity to date */ if (conf.date_spec_hr) set_spec_visitor_key (&logitem->date, logitem->time); get_kdata (kdata, logitem->date, logitem->date); kdata->numdate = logitem->numdate; return 0; } /* Generate a unique key for the requests panel from the given logitem * structure and assign it to out key data structure. * * On success, the generated request key is assigned to our key data * structure. */ static int gen_req_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->req) return 1; if (logitem->qstr) append_query_string (&logitem->req, logitem->qstr); logitem->req_key = gen_unique_req_key (logitem); get_kdata (kdata, logitem->req_key, logitem->req); kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the request panel. * * On error, or if the request is static or a 404, 1 is returned. * On success, the generated request key is assigned to our key data * structure. */ static int gen_request_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->req || logitem->is_404 || logitem->is_static) return 1; return gen_req_key (kdata, logitem); } /* A wrapper to generate a unique key for the request panel. * * On error, or if the request is not a 404, 1 is returned. * On success, the generated request key is assigned to our key data * structure. */ static int gen_404_key (GKeyData *kdata, GLogItem *logitem) { if (logitem->req && logitem->is_404) return gen_req_key (kdata, logitem); return 1; } /* A wrapper to generate a unique key for the request panel. * * On error, or if the request is not a static request, 1 is returned. * On success, the generated request key is assigned to our key data * structure. */ static int gen_static_request_key (GKeyData *kdata, GLogItem *logitem) { if (logitem->req && logitem->is_static) return gen_req_key (kdata, logitem); return 1; } /* A wrapper to generate a unique key for the virtual host panel. * * On error, 1 is returned. * On success, the generated vhost key is assigned to our key data * structure. */ static int gen_vhost_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->vhost) return 1; get_kdata (kdata, logitem->vhost, logitem->vhost); kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the virtual host panel. * * On error, 1 is returned. * On success, the generated userid key is assigned to our key data * structure. */ static int gen_remote_user_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->userid) return 1; get_kdata (kdata, logitem->userid, logitem->userid); kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the cache status panel. * * On error, 1 is returned. * On success, the generated cache status key is assigned to our key data * structure. */ static int gen_cache_status_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->cache_status) return 1; get_kdata (kdata, logitem->cache_status, logitem->cache_status); kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the hosts panel. * * On error, 1 is returned. * On success, the generated host key is assigned to our key data * structure. */ static int gen_host_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->host) return 1; get_kdata (kdata, logitem->host, logitem->host); kdata->numdate = logitem->numdate; return 0; } /* Add browsers/OSs our logitem structure and reuse crawlers if applicable. */ void set_browser_os (GLogItem *logitem) { char *a1 = xstrdup (logitem->agent), *a2 = xstrdup (logitem->agent); char browser_type[BROWSER_TYPE_LEN] = ""; char os_type[OPESYS_TYPE_LEN] = ""; logitem->browser = verify_browser (a1, browser_type); logitem->browser_type = xstrdup (browser_type); if (!strncmp (logitem->browser_type, "Crawlers", 8) || !strncmp (logitem->browser_type, "Others", 6)) { logitem->os = xstrdup (logitem->browser); logitem->os_type = xstrdup (browser_type); } else { logitem->os = verify_os (a2, os_type); logitem->os_type = xstrdup (os_type); } free (a1); free (a2); } /* Generate a browser unique key for the browser's panel given a user * agent and assign the browser type/category as a root element. * * On error, 1 is returned. * On success, the generated browser key is assigned to our key data * structure. */ static int gen_browser_key (GKeyData *kdata, GLogItem *logitem) { if (logitem->agent == NULL || *logitem->agent == '\0') return 1; if (logitem->browser == NULL || *logitem->browser == '\0') return 1; /* e.g., Firefox 11.12 */ get_kdata (kdata, logitem->browser, logitem->browser); /* Firefox */ get_kroot (kdata, logitem->browser_type, logitem->browser_type); kdata->numdate = logitem->numdate; return 0; } /* Generate an operating system unique key for the OS' panel given a * user agent and assign the OS type/category as a root element. * * On error, 1 is returned. * On success, the generated OS key is assigned to our key data * structure. */ static int gen_os_key (GKeyData *kdata, GLogItem *logitem) { if (logitem->agent == NULL || *logitem->agent == '\0') return 1; if (logitem->os == NULL || *logitem->os == '\0') return 1; /* e.g., GNU+Linux,Ubuntu 10.12 */ get_kdata (kdata, logitem->os, logitem->os); /* GNU+Linux */ get_kroot (kdata, logitem->os_type, logitem->os_type); kdata->numdate = logitem->numdate; return 0; } /* Determine if the given token starts with a valid MIME major type. * * If not valid, NULL is returned. * If valid, the appropriate constant string is returned. */ static const char * extract_mimemajor (const char *token) { const char *lookfor; /* official IANA registries as per https://www.iana.org/assignments/media-types/ */ if ((lookfor = "application", !strncmp (token, lookfor, 11)) || (lookfor = "audio", !strncmp (token, lookfor, 5)) || (lookfor = "font", !strncmp (token, lookfor, 4)) || /* unlikely */ (lookfor = "example", !strncmp (token, lookfor, 7)) || (lookfor = "image", !strncmp (token, lookfor, 5)) || /* unlikely */ (lookfor = "message", !strncmp (token, lookfor, 7)) || (lookfor = "model", !strncmp (token, lookfor, 5)) || (lookfor = "multipart", !strncmp (token, lookfor, 9)) || (lookfor = "text", !strncmp (token, lookfor, 4)) || (lookfor = "video", !strncmp (token, lookfor, 5)) ) return lookfor; return NULL; } /* UMS: generate an Mime-Type unique key * * On error, 1 is returned. * On success, the generated key is assigned to our key data structure. */ static int gen_mime_type_key (GKeyData *kdata, GLogItem *logitem) { const char *major = NULL; if (!logitem->mime_type) return 1; /* redirects and the like only register as "-", ignore those */ major = extract_mimemajor (logitem->mime_type); if (!major) return 1; get_kdata (kdata, logitem->mime_type, logitem->mime_type); kdata->numdate = logitem->numdate; get_kroot (kdata, major, major); return 0; } /* Determine if the given token starts with the usual TLS/SSL result string. * * If not valid, NULL is returned. * If valid, the appropriate constant string is returned. */ static const char * extract_tlsmajor (const char *token) { const char *lookfor; if ((lookfor = "SSLv3", !strncmp (token, lookfor, 5)) || (lookfor = "TLSv1.1", !strncmp (token, lookfor, 7)) || (lookfor = "TLSv1.2", !strncmp (token, lookfor, 7)) || (lookfor = "TLSv1.3", !strncmp (token, lookfor, 7)) || (lookfor = "TLS1.1", !strncmp (token, lookfor, 6)) || (lookfor = "TLS1.2", !strncmp (token, lookfor, 6)) || (lookfor = "TLS1.3", !strncmp (token, lookfor, 6)) || /* Nope, it's not 1.0 */ (lookfor = "TLSv1", !strncmp (token, lookfor, 5)) || (lookfor = "TLS1", !strncmp (token, lookfor, 4))) return lookfor; return NULL; } /* UMS: generate a TLS settings unique key * * On error, 1 is returned. * On success, the generated key is assigned to our key data structure. */ static int gen_tls_type_key (GKeyData *kdata, GLogItem *logitem) { const char *tls; size_t tlen = 0, clen = 0; if (!logitem->tls_type) return 1; /* '-' means no TLS at all, just ignore for the panel? */ tls = extract_tlsmajor (logitem->tls_type); if (!tls) return 1; kdata->numdate = logitem->numdate; if (!logitem->tls_cypher) { get_kroot (kdata, tls, tls); get_kdata (kdata, tls, tls); return 0; } clen = strlen (logitem->tls_cypher); tlen = strlen (tls); logitem->tls_type_cypher = xmalloc (tlen + clen + 2); memcpy (logitem->tls_type_cypher, tls, tlen); logitem->tls_type_cypher[tlen] = '/'; /* includes terminating null */ memcpy (logitem->tls_type_cypher + tlen + 1, logitem->tls_cypher, clen + 1); get_kdata (kdata, logitem->tls_type_cypher, logitem->tls_type_cypher); get_kroot (kdata, tls, tls); return 0; } /* A wrapper to generate a unique key for the referrers panel. * * On error, 1 is returned. * On success, the generated referrer key is assigned to our key data * structure. */ static int gen_referer_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->ref) return 1; get_kdata (kdata, logitem->ref, logitem->ref); kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the referring sites panel. * * On error, 1 is returned. * On success, the generated referring site key is assigned to our key data * structure. */ static int gen_ref_site_key (GKeyData *kdata, GLogItem *logitem) { if (logitem->site[0] == '\0') return 1; get_kdata (kdata, logitem->site, logitem->site); kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the keyphrases panel. * * On error, 1 is returned. * On success, the generated keyphrase key is assigned to our key data * structure. */ static int gen_keyphrase_key (GKeyData *kdata, GLogItem *logitem) { if (!logitem->keyphrase) return 1; get_kdata (kdata, logitem->keyphrase, logitem->keyphrase); kdata->numdate = logitem->numdate; return 0; } #ifdef HAVE_GEOLOCATION /* Extract geolocation for the given host. * * On error, 1 is returned. * On success, the extracted continent, country, and city are set and 0 is * returned. */ static int extract_geolocation (GLogItem *logitem, char *continent, char *country, char *city) { char asn_unused[ASN_LEN] = ""; if (!is_geoip_resource ()) return 1; set_geolocation (logitem->host, continent, country, city, asn_unused); return 0; } #endif /* A wrapper to generate a unique key for the geolocation panel. * * On error, 1 is returned. * On success, the generated geolocation key is assigned to our key * data structure. */ #ifdef HAVE_GEOLOCATION static int gen_geolocation_key (GKeyData *kdata, GLogItem *logitem) { char continent[CONTINENT_LEN] = ""; char country[COUNTRY_LEN] = ""; char city[CITY_LEN] = ""; if (extract_geolocation (logitem, continent, country, city) == 1) return 1; if (country[0] == '\0' && city[0] == '\0') return 1; if (country[0] != '\0') logitem->country = xstrdup (country); if (continent[0] != '\0') logitem->continent = xstrdup (continent); if (city[0] != '\0') logitem->city = xstrdup (city); /* Record the country-to-continent mapping for holder construction */ if (logitem->country && logitem->continent) set_country_continent (logitem->country, logitem->continent); /* If city is available, use city as data and country as root (3-level). * Otherwise, use country as data and continent as root (2-level). */ if (conf.has_geocity && logitem->city && logitem->country) { get_kdata (kdata, logitem->city, logitem->city); get_kroot (kdata, logitem->country, logitem->country); } else if (logitem->country) { get_kdata (kdata, logitem->country, logitem->country); if (logitem->continent) get_kroot (kdata, logitem->continent, logitem->continent); } else { return 1; } kdata->numdate = logitem->numdate; return 0; } /* A wrapper to generate a unique key for the ASN panel. * * On error, 1 is returned. * On success, the generated keyphrase key is assigned to our key data * structure. */ static int gen_asn_key (GKeyData *kdata, GLogItem *logitem) { char asn[ASN_LEN] = ""; if (!is_geoip_resource ()) return 1; geoip_asn (logitem->host, asn); if (asn[0] != '\0') logitem->asn = xstrdup (asn); get_kdata (kdata, logitem->asn, logitem->asn); kdata->numdate = logitem->numdate; return 0; } #endif /* A wrapper to generate a unique key for the status code panel. * * On error, 1 is returned. * On success, the generated status code key is assigned to our key * data structure. */ static int gen_status_code_key (GKeyData *kdata, GLogItem *logitem) { const char *status = NULL, *type = NULL; if (logitem->status == -1) return 1; status = verify_status_code (logitem->status); type = verify_status_code_type (logitem->status); get_kdata (kdata, status, status); get_kroot (kdata, type, type); kdata->numdate = logitem->numdate; return 0; } /* Given a time string containing at least %H:%M, extract either the * tenth of a minute or an hour. * * On error, the given string is not modified. * On success, the conf specificity is extracted. */ static void parse_time_specificity_string (char *hmark, char *ftime) { /* tenth of a minute specificity - e.g., 18:2 */ if (conf.hour_spec_min && hmark[1] != '\0') { hmark[2] = '\0'; return; } /* hour specificity (default) */ if ((hmark - ftime) > 0) *hmark = '\0'; } /* A wrapper to generate a unique key for the time distribution panel. * * On error, 1 is returned. * On success, the generated time key is assigned to our key data * structure. */ static int gen_visit_time_key (GKeyData *kdata, GLogItem *logitem) { char *hmark = NULL; if (!logitem->time) return 1; /* it must be a string containing the hour. */ if ((hmark = strchr (logitem->time, ':'))) parse_time_specificity_string (hmark, logitem->time); kdata->numdate = logitem->numdate; get_kdata (kdata, logitem->time, logitem->time); return 0; } void insert_methods_protocols (void) { size_t i; for (i = 0; i < http_methods_len; ++i) ht_insert_meth_proto (http_methods[i].method); for (i = 0; i < http_protocols_len; ++i) ht_insert_meth_proto (http_protocols[i].protocol); ht_insert_meth_proto ("---"); } /* Determine if 404s need to be added to the unique visitors count. * * If it needs to be added, 0 is returned else 1 is returned. */ static int include_uniq (GLogItem *logitem) { int u = conf.client_err_to_unique_count; if (!logitem->status || (logitem->status / 100) != 4 || (u && (logitem->status / 100) == 4)) return 1; return 0; } /* Determine which data metrics need to be set and set them. */ static void set_datamap (GLogItem *logitem, GKeyData *kdata, const GParse *parse) { GModule module; module = parse->module; /* insert data */ parse->datamap (module, kdata); /* insert rootmap and root-data map */ if (parse->rootmap && kdata->root) { parse->rootmap (module, kdata); insert_root (module, kdata); } /* insert hits */ if (parse->hits) parse->hits (module, kdata); /* insert visitors */ if (parse->visitor && kdata->uniq_nkey == 1) parse->visitor (module, kdata); /* insert bandwidth */ if (parse->bw) parse->bw (module, kdata, logitem->resp_size); /* insert averages time served */ if (parse->cumts) parse->cumts (module, kdata, logitem->serve_time); /* insert averages time served */ if (parse->maxts) parse->maxts (module, kdata, logitem->serve_time); /* insert method */ if (parse->method && conf.append_method) parse->method (module, kdata, logitem->method); /* insert protocol */ if (parse->protocol && conf.append_protocol) parse->protocol (module, kdata, logitem->protocol); /* insert agent */ if (parse->agent && conf.list_agents) parse->agent (module, kdata, logitem->agent_nkey); } /* Set data mapping and metrics. */ static void map_log (GLogItem *logitem, const GParse *parse, GModule module) { GKeyData kdata; new_modulekey (&kdata); /* set key data into out structure */ if (parse->key_data (&kdata, logitem) == 1) return; /* each module requires a data key/value */ if (parse->datamap && kdata.data) kdata.data_nkey = insert_dkeymap (module, &kdata); /* each module contains a uniq visitor key/value */ if (parse->visitor && logitem->uniq_key && include_uniq (logitem)) kdata.uniq_nkey = insert_uniqmap (module, &kdata, logitem->uniq_nkey); /* root keys are optional */ if (parse->rootmap && kdata.root) kdata.root_nkey = insert_rkeymap (module, &kdata); /* each module requires a root key/value */ if (parse->datamap && kdata.data) set_datamap (logitem, &kdata, parse); } static void ins_agent_key_val (GLogItem *logitem, uint32_t numdate) { logitem->agent_nkey = ht_insert_agent_key (numdate, logitem->agent_hash); /* insert UA key and get a numeric value */ if (logitem->agent_nkey != 0) { /* insert a numeric key and map it to a UA string */ ht_insert_agent_value (numdate, logitem->agent_nkey, logitem->agent); } } static int clean_old_data_by_date (uint32_t numdate) { uint32_t *dates = NULL; uint32_t idx, len = 0; if (ht_get_size_dates () < conf.keep_last) return 1; dates = get_sorted_dates (&len); /* If currently parsed date is in the set of dates, keep inserting it. * We count down since more likely the currently parsed date is at the last pos */ for (idx = len; idx-- > 0;) { if (dates[idx] == numdate) { free (dates); return 1; } } /* ignore older dates */ if (dates[0] > numdate) { free (dates); return -1; } /* invalidate the first date we inserted then */ invalidate_date (dates[0]); /* rebuild all existing dates and let new data * be added upon existing cache */ rebuild_rawdata_cache (); free (dates); return 0; } /* Process a log line and set the data into the corresponding data * structure. */ void process_log (GLogItem *logitem) { GModule module; const GParse *parse = NULL; size_t idx = 0; uint32_t numdate = logitem->numdate; if (conf.keep_last > 0 && clean_old_data_by_date (numdate) == -1) return; /* insert date and start partitioning tables */ if (ht_insert_date (numdate) == -1) return; /* Insert one unique visitor key per request to avoid the * overhead of storing one key per module */ if ((logitem->uniq_nkey = ht_insert_unique_key (numdate, logitem->uniq_key)) == 0) return; /* If we need to store user agents per IP, then we store them and retrieve * its numeric key. * It maintains two maps, one for key -> value, and another * map for value -> key*/ if (conf.list_agents) ins_agent_key_val (logitem, numdate); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; if (!(parse = panel_lookup (module))) continue; map_log (logitem, parse, module); } count_bw (numdate, logitem->resp_size); /* don't ignore line but neither count as valid */ if (logitem->ignorelevel != IGNORE_LEVEL_REQ) count_valid (numdate); } ================================================ FILE: src/gstorage.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GSTORAGE_H_INCLUDED #define GSTORAGE_H_INCLUDED #include "commons.h" #include "parser.h" #define DB_PATH "/tmp" #define GAMTRC_TOTAL 8 /* Enumerated App Metrics */ typedef enum GAMetric_ { MTRC_DATES, MTRC_SEQS, MTRC_CNT_OVERALL, MTRC_HOSTNAMES, MTRC_LAST_PARSE, MTRC_JSON_LOGFMT, MTRC_METH_PROTO, MTRC_DB_PROPS, } GAMetric; /* Enumerated Storage Metrics */ typedef enum GSMetricType_ { /* uint32_t key - uint32_t val */ MTRC_TYPE_II32, /* uint32_t key - string val */ MTRC_TYPE_IS32, /* uint32_t key - uint64_t val */ MTRC_TYPE_IU64, /* string key - uint32_t val */ MTRC_TYPE_SI32, /* string key - uint8_t val */ MTRC_TYPE_SI08, /* uint32_t key - uint8_t val */ MTRC_TYPE_II08, /* string key - string val */ MTRC_TYPE_SS32, /* uint32_t key - GSLList val */ MTRC_TYPE_IGSL, /* string key - uint64_t val */ MTRC_TYPE_SU64, /* uint32_t key - GKHashStorage_ val */ MTRC_TYPE_IGKH, /* uint64_t key - uint32_t val */ MTRC_TYPE_U648, /* uint64_t key - GLastParse val */ MTRC_TYPE_IGLP, } GSMetricType; typedef struct GKHashMetric_ { union { GSMetric storem; GAMetric dbm; } metric; GSMetricType type; void *(*alloc) (void); void (*des) (void *, uint8_t free_data); void (*del) (void *, uint8_t free_data); uint8_t free_data:1; void *hash; const char *filename; } GKHashMetric; /* Each record contains a data value, i.e., Windows XP, and it may contain a * root value, i.e., Windows, and a unique key which is the combination of * date, IP and user agent */ typedef struct GKeyData_ { const void *data; uint32_t dhash; uint32_t data_nkey; uint32_t cdnkey; /* cache data nkey */ uint32_t rhash; const void *root; const void *root_key; uint32_t root_nkey; uint32_t crnkey; /* cache root nkey */ void *uniq_key; uint32_t uniq_nkey; uint32_t numdate; } GKeyData; typedef struct GParse_ { GModule module; int (*key_data) (GKeyData * kdata, GLogItem * logitem); /* data field */ void (*datamap) (GModule module, GKeyData * kdata); void (*rootmap) (GModule module, GKeyData * kdata); void (*hits) (GModule module, GKeyData * kdata); void (*visitor) (GModule module, GKeyData * kdata); void (*bw) (GModule module, GKeyData * kdata, uint64_t size); void (*cumts) (GModule module, GKeyData * kdata, uint64_t ts); void (*maxts) (GModule module, GKeyData * kdata, uint64_t ts); void (*method) (GModule module, GKeyData * kdata, const char *data); void (*protocol) (GModule module, GKeyData * kdata, const char *data); void (*agent) (GModule module, GKeyData * kdata, uint32_t agent_nkey); } GParse; typedef struct httpmethods_ { const char *method; int len; } httpmethods; typedef struct httpprotocols_ { const char *protocol; int len; } httpprotocols; extern const httpmethods http_methods[]; extern const httpprotocols http_protocols[]; extern const size_t http_methods_len; extern const size_t http_protocols_len; const char *get_mtr_str (GSMetric metric); int excluded_ip (GLogItem * logitem); uint32_t *i322ptr (uint32_t val); uint64_t *uint642ptr (uint64_t val); void count_process_and_invalid (GLog * glog, GLogItem * logitem, const char *line); void count_process (GLog * glog); void free_gmetrics (GMetrics * metric); void insert_methods_protocols (void); void process_log (GLogItem * logitem); void set_browser_os (GLogItem * logitem); void set_data_metrics (GMetrics * ometrics, GMetrics ** nmetrics, GPercTotals totals); void set_module_totals (GPercTotals * totals); void uncount_invalid (GLog * glog); void uncount_processed (GLog * glog); GMetrics *new_gmetrics (void); #ifdef HAVE_GEOLOCATION const char *get_continent_for_country (const char *country); void free_country_continent_map (void); #endif #endif // for #ifndef GSTORAGE_H ================================================ FILE: src/gwsocket.c ================================================ /** * gwsocket.c -- An interface to send/recv data from/to Web Socket Server * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> #include "gwsocket.h" #include "commons.h" #include "error.h" #include "goaccess.h" #include "pdjson.h" #include "json.h" #include "settings.h" #include "websocket.h" #include "wsauth.h" #include "xmalloc.h" /* Allocate memory for a new GWSReader instance. * * On success, the newly allocated GWSReader is returned. */ GWSReader * new_gwsreader (void) { GWSReader *reader = xmalloc (sizeof (GWSReader)); memset (reader, 0, sizeof *reader); return reader; } /* Allocate memory for a new GWSWriter instance. * * On success, the newly allocated GWSWriter is returned. */ GWSWriter * new_gwswriter (void) { GWSWriter *writer = xmalloc (sizeof (GWSWriter)); memset (writer, 0, sizeof *writer); return writer; } /* Write the JSON data to a pipe. * * If unable to write bytes, -1 is returned. * On success, the number of written bytes is returned . */ static int write_holder (int fd, const char *buf, int len) { int i, ret = 0; for (i = 0; i < len;) { ret = write (fd, buf + i, len - i); if (ret < 0) { if (errno == EINTR || errno == EAGAIN) continue; return -1; } else { i += ret; } } return i; } /* Clear an incoming FIFO packet and header data. */ static void clear_fifo_packet (GWSReader *gwserver) { memset (gwserver->hdr, 0, sizeof (gwserver->hdr)); gwserver->hlen = 0; if (gwserver->packet == NULL) return; if (gwserver->packet->data) free (gwserver->packet->data); free (gwserver->packet); gwserver->packet = NULL; } /* Pack the JSON data into a network byte order and writes it to a * pipe. * * On success, 0 is returned . */ int broadcast_holder (int fd, const char *buf, int len) { char *p = NULL, *ptr = NULL; p = calloc (sizeof (uint32_t) * 3, sizeof (char)); ptr = p; ptr += pack_uint32 (ptr, 0); ptr += pack_uint32 (ptr, 0x01); ptr += pack_uint32 (ptr, len); write_holder (fd, p, sizeof (uint32_t) * 3); write_holder (fd, buf, len); free (p); return 0; } /* Pack the JSON data into a network byte order and write it to a * pipe. * * On success, 0 is returned . */ int send_holder_to_client (int fd, int listener, const char *buf, int len) { char *p = NULL, *ptr = NULL; p = calloc (sizeof (uint32_t) * 3, sizeof (char)); ptr = p; ptr += pack_uint32 (ptr, listener); ptr += pack_uint32 (ptr, 0x01); ptr += pack_uint32 (ptr, len); write_holder (fd, p, sizeof (uint32_t) * 3); write_holder (fd, buf, len); free (p); return 0; } /* Attempt to read data from the named pipe on strict mode. * Note: For now it only reads on new connections, i.e., onopen. * * If there's less data than requested, 0 is returned * If the thread is done, 1 is returned */ int read_fifo (GWSReader *gwsreader, void (*f) (int)) { WSPacket **pa = &gwsreader->packet; char *ptr; int bytes = 0, readh = 0, need = 0, fd = gwsreader->fd; uint32_t listener = 0, type = 0, size = 0; struct pollfd fds[] = { {.fd = gwsreader->self_pipe[0],.events = POLLIN}, {.fd = gwsreader->fd,.events = POLLIN,}, }; if (poll (fds, sizeof (fds) / sizeof (fds[0]), -1) == -1) { switch (errno) { case EINTR: break; default: FATAL ("Unable to poll: %s.", strerror (errno)); } } /* handle self-pipe trick */ if (fds[0].revents & POLLIN) return 1; if (!(fds[1].revents & POLLIN)) { LOG (("No file descriptor set on read_message()\n")); return 0; } readh = gwsreader->hlen; /* read from header so far */ need = HDR_SIZE - readh; /* need to read */ if (need > 0) { if ((bytes = ws_read_fifo (fd, gwsreader->hdr, &gwsreader->hlen, readh, need)) < 0) return 0; if (bytes != need) return 0; } /* unpack size, and type */ ptr = gwsreader->hdr; ptr += unpack_uint32 (ptr, &listener); ptr += unpack_uint32 (ptr, &type); ptr += unpack_uint32 (ptr, &size); if ((*pa) == NULL) { (*pa) = xcalloc (1, sizeof (WSPacket)); (*pa)->type = type; (*pa)->size = size; (*pa)->data = xcalloc (size + 1, sizeof (char)); } readh = (*pa)->len; /* read from payload so far */ need = (*pa)->size - readh; /* need to read */ if (need > 0) { if ((bytes = ws_read_fifo (fd, (*pa)->data, &(*pa)->len, readh, need)) < 0) return 0; if (bytes != need) return 0; } clear_fifo_packet (gwsreader); /* fast forward JSON data to the given client */ (*f) (listener); return 0; } /* Callback once a new connection is established * * It writes to a named pipe a header containing the socket, the * message type, the payload's length and the actual payload */ static int onopen (WSPipeOut *pipeout, WSClient *client) { uint32_t hsize = sizeof (uint32_t) * 3; char *hdr = calloc (hsize, sizeof (char)); char *ptr = hdr; ptr += pack_uint32 (ptr, client->listener); ptr += pack_uint32 (ptr, WS_OPCODE_TEXT); ptr += pack_uint32 (ptr, INET6_ADDRSTRLEN); ws_write_fifo (pipeout, hdr, hsize); ws_write_fifo (pipeout, client->remote_ip, INET6_ADDRSTRLEN); free (hdr); return 0; } /* validate_token_message() * * Parses a JSON payload (assumed to be null-terminated) that should have * the form: {"action":"validate_token","token":"..."} * If the action is "validate_token", the token is verified using verify_jwt_token(). * If verification is successful, the client's stored JWT is updated. * * Returns: * 1 if the message was a token validation message and authentication succeeded. * 0 if the message is not a token validation message. * -1 if an error occurs (including validation failure). */ #ifdef HAVE_LIBSSL static int validate_token_message (const char *payload, WSClient *client) { json_stream json; enum json_type t = JSON_ERROR; size_t len = 0, level = 0; enum json_type ctx = JSON_ERROR; char *curr_key = NULL; char *action = NULL; char *token = NULL; json_open_string (&json, payload); json_set_streaming (&json, false); /* Expect a JSON object */ t = json_next (&json); if (t != JSON_OBJECT) { json_close (&json); return -1; } /* Iterate over the JSON tokens */ while ((t = json_next (&json)) != JSON_DONE && t != JSON_ERROR) { ctx = json_get_context (&json, &level); /* When (level % 2) != 0 and not in an array, the token is a key */ if ((level % 2) != 0 && ctx != JSON_ARRAY) { if (curr_key) free (curr_key); curr_key = xstrdup (json_get_string (&json, &len)); } else { /* Otherwise, token is a value for the last encountered key */ if (curr_key) { char *val = xstrdup (json_get_string (&json, &len)); if (strcmp (curr_key, "action") == 0) { action = val; } else if (strcmp (curr_key, "token") == 0) { token = val; } else { free (val); } free (curr_key); curr_key = NULL; } } } if (curr_key) free (curr_key); json_close (&json); /* If action is not "validate_token", then this message is not for token validation */ if (!action || strcmp (action, "validate_token") != 0) { if (action) free (action); if (token) free (token); return 0; } /* For token validation, the token must exist */ if (!token) { LOG (("Missing token in validate_token message from client %d [%s]\n", client->listener, client->remote_ip)); free (action); return -1; } /* Verify the token using the configured secret */ if (conf.ws_auth_secret && verify_jwt_token (token, conf.ws_auth_secret) != 1) { LOG (("Authentication failed for client %d [%s]\n", client->listener, client->remote_ip)); free (action); free (token); client->status = WS_ERR | WS_CLOSE; return -1; } /* Authentication succeeded: update client's stored token */ if (client->headers->jwt) free (client->headers->jwt); client->headers->jwt = strdup (token); LOG (("Token validated and updated for client %d [%s]\n", client->listener, client->remote_ip)); free (action); free (token); return 1; } #endif /* onmessage() * * Entry point for incoming messages. This function first checks if the message * is a text message and ensures that the payload is null-terminated (so JSON * parsing will work correctly). It then delegates token validation to * validate_token_message(). In the future, onmessage() may handle other message * types. */ #ifdef HAVE_LIBSSL static int onmessage (GO_UNUSED WSPipeOut *pipeout, WSClient *client) { int ret = 1; char *payload = client->message->payload; int allocated = 0; /* If this is a text message, ensure the payload is null-terminated. * Binary frames should not be modified. */ if (client->message->opcode == WS_OPCODE_TEXT) { if (memchr (payload, '\0', client->message->payloadsz) == NULL) { char *tmp = malloc (client->message->payloadsz + 1); if (!tmp) { LOG (("Memory allocation error for client %d [%s]\n", client->listener, client->remote_ip)); return -1; } memcpy (tmp, payload, client->message->payloadsz); tmp[client->message->payloadsz] = '\0'; payload = tmp; allocated = 1; } } /* Delegate processing to validate_token_message(). * In the future, you can add additional branches for other message types. */ ret = validate_token_message (payload, client); if (allocated) free (payload); return ret; } #endif /* Done parsing, clear out line and set status message. */ void set_ready_state (void) { fprintf (stderr, "\33[2K\r"); fprintf (stderr, "%s\n", INFO_WS_READY_FOR_CONN); } /* Open the named pipe where the websocket server writes to. * * If unable to open, -1 is returned. * On success, return the new file descriptor is returned . */ int open_fifoout (void) { const char *fifo = conf.fifo_out; int fdfifo; /* open fifo for reading before writing */ ws_setfifo (fifo); if ((fdfifo = open (fifo, O_RDWR | O_NONBLOCK)) == -1) return -1; return fdfifo; } /* Open the named pipe where the websocket server reads from. * * If unable to open, -1 is returned. * On success, return the new file descriptor is returned . */ int open_fifoin (void) { const char *fifo = conf.fifo_in; int fdfifo; if ((fdfifo = open (fifo, O_WRONLY | O_NONBLOCK)) == -1) return -1; return fdfifo; } /* Set the self-pipe trick to handle poll(2). */ void set_self_pipe (int *self_pipe) { /* Initialize self pipe. */ if (pipe (self_pipe) == -1) FATAL ("Unable to create pipe: %s.", strerror (errno)); /* make the read and write pipe non-blocking */ set_nonblocking (self_pipe[0]); set_nonblocking (self_pipe[1]); } /* Close the WebSocket server and clean up. */ void stop_ws_server (GWSWriter *gwswriter, GWSReader *gwsreader) { pthread_t writer, reader; WSServer *server = NULL; if (!gwsreader || !gwswriter) return; if (!(server = gwswriter->server)) return; pthread_mutex_lock (&gwsreader->mutex); if ((write (gwsreader->self_pipe[1], "x", 1)) == -1 && errno != EAGAIN) LOG (("Unable to write to self pipe on pipeout.\n")); pthread_mutex_unlock (&gwsreader->mutex); /* if it fails to write, force stop */ pthread_mutex_lock (&gwswriter->mutex); if ((write (server->self_pipe[1], "x", 1)) == -1 && errno != EAGAIN) ws_stop (server); pthread_mutex_unlock (&gwswriter->mutex); reader = gwsreader->thread; if (pthread_join (reader, NULL) != 0) LOG (("Unable to join thread gwsreader: %s\n", strerror (errno))); writer = gwswriter->thread; if (pthread_join (writer, NULL) != 0) LOG (("Unable to join thread gwswriter: %s\n", strerror (errno))); } /* Start the WebSocket server and initialize default options. */ static void start_server (void *ptr_data) { GWSWriter *writer = (GWSWriter *) ptr_data; writer->server->onopen = onopen; #ifdef HAVE_LIBSSL writer->server->onmessage = onmessage; #endif pthread_mutex_lock (&writer->mutex); set_self_pipe (writer->server->self_pipe); pthread_mutex_unlock (&writer->mutex); /* poll(2) will block in here */ ws_start (writer->server); fprintf (stderr, "Stopping WebSocket server...\n"); ws_stop (writer->server); } /* Read and set the WebSocket config options. */ static void set_ws_opts (void) { ws_set_config_strict (1); if (conf.addr) ws_set_config_host (conf.addr); if (conf.unix_socket) ws_set_config_unix_socket (conf.unix_socket); if (conf.fifo_in) ws_set_config_pipein (conf.fifo_in); if (conf.fifo_out) ws_set_config_pipeout (conf.fifo_out); if (conf.origin) ws_set_config_origin (conf.origin); if (conf.port) ws_set_config_port (conf.port); if (conf.sslcert) ws_set_config_sslcert (conf.sslcert); if (conf.sslkey) ws_set_config_sslkey (conf.sslkey); #ifdef HAVE_LIBSSL if (conf.ws_auth_secret) { ws_set_config_auth_secret (conf.ws_auth_secret); ws_set_config_auth_cb (verify_jwt_token); } #endif } /* Setup and start the WebSocket threads. */ int setup_ws_server (GWSWriter *gwswriter, GWSReader *gwsreader) { int id; pthread_t *thread; if (pthread_mutex_init (&gwswriter->mutex, NULL)) FATAL ("Failed init gwswriter mutex"); if (pthread_mutex_init (&gwsreader->mutex, NULL)) FATAL ("Failed init gwsreader mutex"); /* send WS data thread */ thread = &gwswriter->thread; /* pre-init the websocket server, to ensure the FIFOs are created */ if ((gwswriter->server = ws_init ("0.0.0.0", "7890", set_ws_opts)) == NULL) FATAL ("Failed init websocket"); id = pthread_create (&(*thread), NULL, (void *) &start_server, gwswriter); if (id) FATAL ("Return code from pthread_create(): %d", id); /* read WS data thread */ thread = &gwsreader->thread; id = pthread_create (&(*thread), NULL, (void *) &read_client, gwsreader); if (id) FATAL ("Return code from pthread_create(): %d", id); return 0; } ================================================ FILE: src/gwsocket.h ================================================ /** * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef GWSOCKET_H_INCLUDED #define GWSOCKET_H_INCLUDED #define GW_VERSION "0.1" #include <pthread.h> #include "websocket.h" typedef struct GWSReader_ { int fd; int self_pipe[2]; /* self-pipe */ pthread_mutex_t mutex; /* Mutex fifo out */ pthread_t thread; /* Thread fifo in */ WSPacket *packet; /* FIFO data's buffer */ char hdr[HDR_SIZE]; /* FIFO header's buffer */ int hlen; /* header length */ } GWSReader; typedef struct GWSWriter_ { int fd; pthread_mutex_t mutex; /* Mutex fifo in */ pthread_t thread; /* Thread fifo out */ WSServer *server; /* WebSocket server */ } GWSWriter; GWSReader *new_gwsreader (void); GWSWriter *new_gwswriter (void); int broadcast_holder (int fd, const char *buf, int len); int open_fifoin (void); int open_fifoout (void); int read_fifo (GWSReader * gwsreader, void (*f) (int)); int send_holder_to_client (int fd, int listener, const char *buf, int len); int setup_ws_server (GWSWriter * gwswriter, GWSReader * gwsreader); void set_ready_state (void); void set_self_pipe (int *self_pipe); void stop_ws_server (GWSWriter * gwswriter, GWSReader * gwsreader); #endif // for #ifndef GWSOCKET_H ================================================ FILE: src/json.c ================================================ /** * output.c -- output json to the standard output stream * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include <errno.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <inttypes.h> #include "json.h" #include "error.h" #include "gkhash.h" #include "settings.h" #include "ui.h" #include "dialogs.h" #include "util.h" #include "websocket.h" #include "xmalloc.h" typedef struct GPanel_ { GModule module; void (*render) (GJSON * json, GHolder * h, GPercTotals totals, const struct GPanel_ *); void (*subitems) (GJSON * json, GHolderItem * item, GPercTotals totals, int size, int iisp); } GPanel; /* number of new lines (applicable fields) */ static int nlines = 0; /* escape HTML in JSON data values */ static int escape_html_output = 0; static void print_json_data (GJSON * json, GHolder * h, GPercTotals totals, const struct GPanel_ *); static void print_json_host_items (GJSON * json, GHolderItem * item, GPercTotals totals, int size, int iisp); static void print_json_sub_items (GJSON * json, GHolderItem * item, GPercTotals totals, int size, int iisp); /* *INDENT-OFF* */ static const GPanel paneling[] = { {VISITORS , print_json_data , NULL } , {REQUESTS , print_json_data , NULL } , {REQUESTS_STATIC , print_json_data , NULL } , {NOT_FOUND , print_json_data , NULL } , {HOSTS , print_json_data , print_json_host_items } , {OS , print_json_data , print_json_sub_items } , {BROWSERS , print_json_data , print_json_sub_items } , {VISIT_TIMES , print_json_data , NULL } , {VIRTUAL_HOSTS , print_json_data , NULL } , {REFERRERS , print_json_data , NULL } , {REFERRING_SITES , print_json_data , NULL } , {KEYPHRASES , print_json_data , NULL } , {STATUS_CODES , print_json_data , print_json_sub_items } , {REMOTE_USER , print_json_data , NULL } , {CACHE_STATUS , print_json_data , NULL } , #ifdef HAVE_GEOLOCATION {GEO_LOCATION , print_json_data , print_json_sub_items } , {ASN , print_json_data , NULL} , #endif {MIME_TYPE , print_json_data , print_json_sub_items } , {TLS_TYPE , print_json_data , print_json_sub_items } , }; /* *INDENT-ON* */ /* Get panel output data for the given module. * * If not found, NULL is returned. * On success, panel data is returned . */ static const GPanel * panel_lookup (GModule module) { int i, num_panels = ARRAY_SIZE (paneling); for (i = 0; i < num_panels; i++) { if (paneling[i].module == module) return &paneling[i]; } return NULL; } /* Allocate memory for a new GJSON instance. * * On success, the newly allocated GJSON is returned . */ static GJSON * new_gjson (void) { GJSON *json = xcalloc (1, sizeof (GJSON)); return json; } /* Free malloc'd GJSON resources. */ static void free_json (GJSON *json) { if (!json) return; free (json->buf); free (json); } /* Set number of new lines when --json-pretty-print is used. */ void set_json_nlines (int newline) { nlines = newline; } /* Make sure that we have enough storage to write "len" bytes at the * current offset. */ static void set_json_buffer (GJSON *json, int len) { char *tmp = NULL; /* Maintain a null byte at the end of the buffer */ size_t need = json->offset + len + 1, newlen = 0; if (need <= json->size) return; if (json->size == 0) { newlen = INIT_BUF_SIZE; } else { newlen = json->size; newlen += newlen / 2; /* resize by 3/2 */ } if (newlen < need) newlen = need; tmp = realloc (json->buf, newlen); if (tmp == NULL) { free_json (json); FATAL (("Unable to realloc JSON buffer.\n")); } json->buf = tmp; json->size = newlen; } #pragma GCC diagnostic ignored "-Wformat-nonliteral" /* A wrapper function to write a formatted string and expand the * buffer if necessary. * * On success, data is outputted. */ __attribute__((format (printf, 2, 3))) static void pjson (GJSON *json, const char *fmt, ...) { int len = 0; va_list args; va_start (args, fmt); if ((len = vsnprintf (NULL, 0, fmt, args)) < 0) FATAL (("Unable to write JSON formatted data.\n")); va_end (args); /* malloc/realloc buffer as needed */ set_json_buffer (json, len); va_start (args, fmt); /* restart args */ vsprintf (json->buf + json->offset, fmt, args); va_end (args); json->offset += len; } /* A wrapper function to output a formatted string to a file pointer. * * On success, data is outputted. */ void fpjson (FILE *fp, const char *fmt, ...) { va_list args; va_start (args, fmt); vfprintf (fp, fmt, args); va_end (args); } #pragma GCC diagnostic warning "-Wformat-nonliteral" /* Escape all other characters accordingly. */ static void escape_json_other (GJSON *json, const char **s) { /* Since JSON data is bootstrapped into the HTML document of a report, * then we perform the following four translations in case weird stuff * is put into the document. * * Note: The following scenario assumes that the user manually makes * the HTML report a PHP file (GoAccess doesn't allow the creation of a * PHP file): * * /index.html<?php eval(base_decode('iZWNobyAiPGgxPkhFTExPPC9oMT4iOw=='));?> */ if (escape_html_output) { switch (**s) { case '\'': pjson (json, "'"); return; case '&': pjson (json, "&"); return; case '<': pjson (json, "<"); return; case '>': pjson (json, ">"); return; } } if ((uint8_t) ** s <= 0x1f) { /* Control characters (U+0000 through U+001F) */ char buf[8]; snprintf (buf, sizeof buf, "\\u%04x", **s); pjson (json, "%s", buf); } else if ((uint8_t) ** s == 0xe2 && (uint8_t) * (*s + 1) == 0x80 && (uint8_t) * (*s + 2) == 0xa8) { /* Line separator (U+2028) - 0xE2 0x80 0xA8 */ pjson (json, "\\u2028"); *s += 2; } else if ((uint8_t) ** s == 0xe2 && (uint8_t) * (*s + 1) == 0x80 && (uint8_t) * (*s + 2) == 0xa9) { /* Paragraph separator (U+2019) - 0xE2 0x80 0xA9 */ pjson (json, "\\u2029"); *s += 2; } else { char buf[2]; snprintf (buf, sizeof buf, "%c", **s); pjson (json, "%s", buf); } } /* Escape and write to a valid JSON buffer. * * On success, escaped JSON data is outputted. */ static void escape_json_output (GJSON *json, const char *s) { while (*s) { switch (*s) { /* These are required JSON special characters that need to be escaped. */ case '"': pjson (json, "\\\""); break; case '\\': pjson (json, "\\\\"); break; case '\b': pjson (json, "\\b"); break; case '\f': pjson (json, "\\f"); break; case '\n': pjson (json, "\\n"); break; case '\r': pjson (json, "\\r"); break; case '\t': pjson (json, "\\t"); break; case '/': pjson (json, "\\/"); break; default: escape_json_other (json, &s); break; } s++; } } /* Write to a buffer a JSON a key/value pair. */ static void pskeysval (GJSON *json, const char *key, const char *val, int sp, int last) { if (!last) pjson (json, "%.*s\"%s\": \"%s\",%.*s", sp, TAB, key, val, nlines, NL); else pjson (json, "%.*s\"%s\": \"%s\"", sp, TAB, key, val); } /* Output a JSON string key, array value pair. */ void fpskeyaval (FILE *fp, const char *key, const char *val, int sp, int last) { if (!last) fpjson (fp, "%.*s\"%s\": %s,%.*s", sp, TAB, key, val, nlines, NL); else fpjson (fp, "%.*s\"%s\": %s", sp, TAB, key, val); } /* Output a JSON a key/value pair. */ void fpskeysval (FILE *fp, const char *key, const char *val, int sp, int last) { if (!last) fpjson (fp, "%.*s\"%s\": \"%s\",%.*s", sp, TAB, key, val, nlines, NL); else fpjson (fp, "%.*s\"%s\": \"%s\"", sp, TAB, key, val); } /* Output a JSON string key, int value pair. */ void fpskeyival (FILE *fp, const char *key, int val, int sp, int last) { if (!last) fpjson (fp, "%.*s\"%s\": %d,%.*s", sp, TAB, key, val, nlines, NL); else fpjson (fp, "%.*s\"%s\": %d", sp, TAB, key, val); } /* Write to a buffer a JSON string key, uint64_t value pair. */ static void pskeyu64val (GJSON *json, const char *key, uint64_t val, int sp, int last) { if (!last) pjson (json, "%.*s\"%s\": %" PRIu64 ",%.*s", sp, TAB, key, val, nlines, NL); else pjson (json, "%.*s\"%s\": %" PRIu64 "", sp, TAB, key, val); } /* Write to a buffer a JSON string key, int value pair. */ static void pskeyfval (GJSON *json, const char *key, float val, int sp, int last) { if (!last) pjson (json, "%.*s\"%s\": \"%05.2f\",%.*s", sp, TAB, key, val, nlines, NL); else pjson (json, "%.*s\"%s\": \"%05.2f\"", sp, TAB, key, val); } /* Write to a buffer the open block item object. */ static void popen_obj (GJSON *json, int iisp) { /* open data metric block */ pjson (json, "%.*s{%.*s", iisp, TAB, nlines, NL); } /* Output the open block item object. */ void fpopen_obj (FILE *fp, int iisp) { /* open data metric block */ fpjson (fp, "%.*s{%.*s", iisp, TAB, nlines, NL); } /* Write to a buffer a JSON open object attribute. */ static void popen_obj_attr (GJSON *json, const char *attr, int sp) { /* open object attribute */ pjson (json, "%.*s\"%s\": {%.*s", sp, TAB, attr, nlines, NL); } /* Output a JSON open object attribute. */ void fpopen_obj_attr (FILE *fp, const char *attr, int sp) { /* open object attribute */ fpjson (fp, "%.*s\"%s\": {%.*s", sp, TAB, attr, nlines, NL); } /* Close JSON object. */ static void pclose_obj (GJSON *json, int iisp, int last) { if (!last) pjson (json, "%.*s%.*s},%.*s", nlines, NL, iisp, TAB, nlines, NL); else pjson (json, "%.*s%.*s}", nlines, NL, iisp, TAB); } /* Close JSON object. */ void fpclose_obj (FILE *fp, int iisp, int last) { if (!last) fpjson (fp, "%.*s%.*s},%.*s", nlines, NL, iisp, TAB, nlines, NL); else fpjson (fp, "%.*s%.*s}", nlines, NL, iisp, TAB); } /* Write to a buffer a JSON open array attribute. */ static void popen_arr_attr (GJSON *json, const char *attr, int sp) { /* open object attribute */ pjson (json, "%.*s\"%s\": [%.*s", sp, TAB, attr, nlines, NL); } /* Output a JSON open array attribute. */ void fpopen_arr_attr (FILE *fp, const char *attr, int sp) { /* open object attribute */ fpjson (fp, "%.*s\"%s\": [%.*s", sp, TAB, attr, nlines, NL); } /* Close the data array. */ static void pclose_arr (GJSON *json, int sp, int last) { if (!last) pjson (json, "%.*s%.*s],%.*s", nlines, NL, sp, TAB, nlines, NL); else pjson (json, "%.*s%.*s]", nlines, NL, sp, TAB); } /* Close the data array. */ void fpclose_arr (FILE *fp, int sp, int last) { if (!last) fpjson (fp, "%.*s%.*s],%.*s", nlines, NL, sp, TAB, nlines, NL); else fpjson (fp, "%.*s%.*s]", nlines, NL, sp, TAB); } /* Write to a buffer the date and time for the overall object. */ static void poverall_datetime (GJSON *json, int sp) { char now[DATE_TIME]; generate_time (); strftime (now, DATE_TIME, "%Y-%m-%d %H:%M:%S %z", &now_tm); pskeysval (json, OVERALL_DATETIME, now, sp, 0); } /* Write to a buffer the date and time for the overall object. */ static void poverall_start_end_date (GJSON *json, GHolder *h, int sp) { char *start = NULL, *end = NULL; if (h->idx == 0 || get_start_end_parsing_dates (&start, &end, "%d/%b/%Y")) return; pskeysval (json, OVERALL_STARTDATE, start, sp, 0); pskeysval (json, OVERALL_ENDDATE, end, sp, 0); free (end); free (start); } /* Write to a buffer date and time for the overall object. */ static void poverall_requests (GJSON *json, int sp) { pskeyu64val (json, OVERALL_REQ, ht_get_processed (), sp, 0); } /* Write to a buffer the number of valid requests under the overall * object. */ static void poverall_valid_reqs (GJSON *json, int sp) { pskeyu64val (json, OVERALL_VALID, ht_sum_valid (), sp, 0); } /* Write to a buffer the number of invalid requests under the overall * object. */ static void poverall_invalid_reqs (GJSON *json, int sp) { pskeyu64val (json, OVERALL_FAILED, ht_get_invalid (), sp, 0); } /* Write to a buffer the total processed time under the overall * object. */ static void poverall_processed_time (GJSON *json, int sp) { pskeyu64val (json, OVERALL_GENTIME, ht_get_processing_time (), sp, 0); } /* Write to a buffer the total number of unique visitors under the * overall object. */ static void poverall_visitors (GJSON *json, int sp) { pskeyu64val (json, OVERALL_VISITORS, ht_get_size_uniqmap (VISITORS), sp, 0); } /* Write to a buffer the total number of unique files under the * overall object. */ static void poverall_files (GJSON *json, int sp) { pskeyu64val (json, OVERALL_FILES, ht_get_size_datamap (REQUESTS), sp, 0); } /* Write to a buffer the total number of excluded requests under the * overall object. */ static void poverall_excluded (GJSON *json, int sp) { pskeyu64val (json, OVERALL_EXCL_HITS, ht_get_excluded_ips (), sp, 0); } /* Write to a buffer the number of referrers under the overall object. */ static void poverall_refs (GJSON *json, int sp) { pskeyu64val (json, OVERALL_REF, ht_get_size_datamap (REFERRERS), sp, 0); } /* Write to a buffer the number of not found (404s) under the overall * object. */ static void poverall_notfound (GJSON *json, int sp) { pskeyu64val (json, OVERALL_NOTFOUND, ht_get_size_datamap (NOT_FOUND), sp, 0); } /* Write to a buffer the number of static files (jpg, pdf, etc) under * the overall object. */ static void poverall_static_files (GJSON *json, int sp) { pskeyu64val (json, OVERALL_STATIC, ht_get_size_datamap (REQUESTS_STATIC), sp, 0); } /* Write to a buffer the size of the log being parsed under the * overall object. */ static void poverall_log_size (GJSON *json, int sp) { pjson (json, "%.*s\"%s\": %jd,%.*s", sp, TAB, OVERALL_LOGSIZE, (intmax_t) get_log_sizes (), nlines, NL); } /* Write to a buffer the total bandwidth consumed under the overall * object. */ static void poverall_bandwidth (GJSON *json, int sp) { pskeyu64val (json, OVERALL_BANDWIDTH, ht_sum_bw (), sp, 0); } static void poverall_log_path (GJSON *json, int idx, int isp) { pjson (json, "%.*s\"", isp, TAB); if (conf.filenames[idx][0] == '-' && conf.filenames[idx][1] == '\0') pjson (json, "STDIN"); else escape_json_output (json, conf.filenames[idx]); pjson (json, conf.filenames_idx - 1 != idx ? "\",\n" : "\""); } /* Write to a buffer the path of the log being parsed under the * overall object. */ static void poverall_log (GJSON *json, int sp) { int idx, isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_arr_attr (json, OVERALL_LOG, sp); for (idx = 0; idx < conf.filenames_idx; ++idx) poverall_log_path (json, idx, isp); pclose_arr (json, sp, 1); } /* Write to a buffer hits data. */ static void phits (GJSON *json, GMetrics *nmetrics, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "hits", sp); /* print hits */ pskeyu64val (json, "count", nmetrics->hits, isp, 0); /* print hits percent */ pskeyfval (json, "percent", nmetrics->hits_perc, isp, 1); pclose_obj (json, sp, 0); } /* Write to a buffer visitors data. */ static void pvisitors (GJSON *json, GMetrics *nmetrics, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "visitors", sp); /* print visitors */ pskeyu64val (json, "count", nmetrics->visitors, isp, 0); /* print visitors percent */ pskeyfval (json, "percent", nmetrics->visitors_perc, isp, 1); pclose_obj (json, sp, 0); } /* Write to a buffer bandwidth data. */ static void pbw (GJSON *json, GMetrics *nmetrics, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; if (!conf.bandwidth) return; popen_obj_attr (json, "bytes", sp); /* print bandwidth */ pskeyu64val (json, "count", nmetrics->nbw, isp, 0); /* print bandwidth percent */ pskeyfval (json, "percent", nmetrics->bw_perc, isp, 1); pclose_obj (json, sp, 0); } /* Write to a buffer average time served data. */ static void pavgts (GJSON *json, GMetrics *nmetrics, int sp) { if (!conf.serve_usecs) return; pskeyu64val (json, "avgts", nmetrics->avgts.nts, sp, 0); } /* Write to a buffer cumulative time served data. */ static void pcumts (GJSON *json, GMetrics *nmetrics, int sp) { if (!conf.serve_usecs) return; pskeyu64val (json, "cumts", nmetrics->cumts.nts, sp, 0); } /* Write to a buffer maximum time served data. */ static void pmaxts (GJSON *json, GMetrics *nmetrics, int sp) { if (!conf.serve_usecs) return; pskeyu64val (json, "maxts", nmetrics->maxts.nts, sp, 0); } /* Write to a buffer request method data. */ static void pmethod (GJSON *json, GMetrics *nmetrics, int sp) { /* request method */ if (conf.append_method && nmetrics->method) { pskeysval (json, "method", nmetrics->method, sp, 0); } } /* Write to a buffer protocol method data. */ static void pprotocol (GJSON *json, GMetrics *nmetrics, int sp) { /* request protocol */ if (conf.append_protocol && nmetrics->protocol) { pskeysval (json, "protocol", nmetrics->protocol, sp, 0); } } static void pmeta_i64_data (GJSON *json, GHolder *h, void (*cb) (GModule, uint64_t *, uint64_t *), const char *key, int show_perc, int sp) { int isp = 0; uint64_t max = 0, min = 0, total = ht_get_meta_data (h->module, key); float avg = (total == 0 ? 0 : (((float) total) / h->ht_size)); /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; cb (h->module, &min, &max); popen_obj_attr (json, "total", sp); pskeyu64val (json, "value", total, isp, 1); pclose_obj (json, sp, 0); popen_obj_attr (json, "avg", sp); pskeyu64val (json, "value", avg, isp, !show_perc); if (show_perc) { pskeyfval (json, "percent", get_percentage (total, avg), isp, 1); } pclose_obj (json, sp, 0); popen_obj_attr (json, "max", sp); pskeyu64val (json, "value", max, isp, !show_perc); if (show_perc) { pskeyfval (json, "percent", get_percentage (total, max), isp, 1); } pclose_obj (json, sp, 0); popen_obj_attr (json, "min", sp); pskeyu64val (json, "value", min, isp, !show_perc); if (show_perc) { pskeyfval (json, "percent", get_percentage (total, min), isp, 1); } pclose_obj (json, sp, 1); } static void pmeta_i32_data (GJSON *json, GHolder *h, void (*cb) (GModule, uint32_t *, uint32_t *), const char *key, int show_perc, int sp) { int isp = 0; uint32_t max = 0, min = 0, total = ht_get_meta_data (h->module, key); float avg = (total == 0 ? 0 : (((float) total) / h->ht_size)); /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; cb (h->module, &min, &max); popen_obj_attr (json, "total", sp); pskeyu64val (json, "value", total, isp, 1); pclose_obj (json, sp, 0); popen_obj_attr (json, "avg", sp); pskeyu64val (json, "value", avg, isp, !show_perc); if (show_perc) { pskeyfval (json, "percent", get_percentage (total, avg), isp, 1); } pclose_obj (json, sp, 0); popen_obj_attr (json, "max", sp); pskeyu64val (json, "value", max, isp, !show_perc); if (show_perc) { pskeyfval (json, "percent", get_percentage (total, max), isp, 1); } pclose_obj (json, sp, 0); popen_obj_attr (json, "min", sp); pskeyu64val (json, "value", min, isp, !show_perc); if (show_perc) { pskeyfval (json, "percent", get_percentage (total, min), isp, 1); } pclose_obj (json, sp, 1); } /* Write to a buffer the hits meta data object. */ static void pmeta_data_unique (GJSON *json, int ht_size, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "data", sp); popen_obj_attr (json, "total", isp); pskeyu64val (json, "value", ht_size, isp + 1, 1); pclose_obj (json, isp, 1); pclose_obj (json, sp, 1); } /* Write to a buffer the hits meta data object. */ static void pmeta_data_hits (GJSON *json, GHolder *h, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "hits", sp); pmeta_i32_data (json, h, ht_get_hits_min_max, "hits", 1, isp); pclose_obj (json, sp, 0); } /* Write to a buffer the visitors meta data object. */ static void pmeta_data_visitors (GJSON *json, GHolder *h, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "visitors", sp); pmeta_i32_data (json, h, ht_get_visitors_min_max, "visitors", 1, isp); pclose_obj (json, sp, 0); } /* Write to a buffer the bytes meta data object. */ static void pmeta_data_bw (GJSON *json, GHolder *h, int sp) { int isp = 0; if (!conf.bandwidth) return; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "bytes", sp); pmeta_i64_data (json, h, ht_get_bw_min_max, "bytes", 1, isp); pclose_obj (json, sp, 0); } /* Write to a buffer the average of the average time served meta data * object. */ static void pmeta_data_avgts (GJSON *json, GHolder *h, int sp) { int isp = 0; uint64_t avg = 0, hits = 0, cumts = 0; if (!conf.serve_usecs) return; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; cumts = ht_get_meta_data (h->module, "cumts"); hits = ht_get_meta_data (h->module, "hits"); if (hits > 0) avg = cumts / hits; popen_obj_attr (json, "avgts", sp); popen_obj_attr (json, "avg", isp); pskeyu64val (json, "value", avg, isp + 1, 1); pclose_obj (json, isp, 1); pclose_obj (json, sp, 0); } /* Write to a buffer the cumulative time served meta data object. */ static void pmeta_data_cumts (GJSON *json, GHolder *h, int sp) { int isp = 0; if (!conf.serve_usecs) return; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "cumts", sp); pmeta_i64_data (json, h, ht_get_cumts_min_max, "cumts", 0, isp); pclose_obj (json, sp, 0); } /* Write to a buffer the maximum time served meta data object. */ static void pmeta_data_maxts (GJSON *json, GHolder *h, int sp) { int isp = 0; if (!conf.serve_usecs) return; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; popen_obj_attr (json, "maxts", sp); pmeta_i64_data (json, h, ht_get_maxts_min_max, "maxts", 0, isp); pclose_obj (json, sp, 0); } /* Entry point to output panel's metadata. */ static void print_meta_data (GJSON *json, GHolder *h, int sp) { int isp = 0, iisp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1, iisp = sp + 2; popen_obj_attr (json, "metadata", isp); pmeta_data_avgts (json, h, iisp); pmeta_data_cumts (json, h, iisp); pmeta_data_maxts (json, h, iisp); pmeta_data_bw (json, h, iisp); pmeta_data_visitors (json, h, iisp); pmeta_data_hits (json, h, iisp); pmeta_data_unique (json, h->ht_size, iisp); pclose_obj (json, isp, 0); } /* A wrapper function to output data metrics per panel. */ static void print_json_block (GJSON *json, GMetrics *nmetrics, int sp) { /* print hits */ phits (json, nmetrics, sp); /* print visitors */ pvisitors (json, nmetrics, sp); /* print bandwidth */ pbw (json, nmetrics, sp); /* print time served metrics */ pavgts (json, nmetrics, sp); pcumts (json, nmetrics, sp); pmaxts (json, nmetrics, sp); /* print protocol/method */ pmethod (json, nmetrics, sp); pprotocol (json, nmetrics, sp); /* data metric */ pjson (json, "%.*s\"data\": \"", sp, TAB); escape_json_output (json, nmetrics->data); pjson (json, "\""); } /* A wrapper function to output an array of user agents for each host. */ static void process_host_agents (GJSON *json, GHolderItem *item, int iisp) { GAgents *agents = NULL; int i, n = 0, iiisp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) iiisp = iisp + 1; /* create a new instance of GMenu and make it selectable */ if (!(agents = load_host_agents (item->metrics->data))) return; pjson (json, ",%.*s%.*s\"items\": [%.*s", nlines, NL, iisp, TAB, nlines, NL); n = agents->idx > 10 ? 10 : agents->idx; for (i = 0; i < n; ++i) { pjson (json, "%.*s\"", iiisp, TAB); escape_json_output (json, agents->items[i].agent); if (i == n - 1) pjson (json, "\""); else pjson (json, "\",%.*s", nlines, NL); } pclose_arr (json, iisp, 1); /* clean stuff up */ free_agents_array (agents); } /* A wrapper function to output children nodes. */ static void print_json_sub_items (GJSON *json, GHolderItem *item, GPercTotals totals, int size, int iisp) { GMetrics *nmetrics; GSubItem *iter; GSubList *sl = item->sub_list; uint32_t i = 0; int iiisp = 0, iiiisp = 0; /* no sub items, nothing to output */ if (size == 0) return; /* use tabs to prettify output */ if (conf.json_pretty_print) iiisp = iisp + 1, iiiisp = iiisp + 1; if (sl == NULL) return; pjson (json, ",%.*s%.*s\"items\": [%.*s", nlines, NL, iisp, TAB, nlines, NL); for (iter = sl->head; iter; iter = iter->next, i++) { set_data_metrics (iter->metrics, &nmetrics, totals); popen_obj (json, iiisp); print_json_block (json, nmetrics, iiiisp); /* recurse into nested sub-items */ if (iter->sub_list != NULL && iter->sub_list->size > 0) { GHolderItem child; child.metrics = iter->metrics; child.sub_list = iter->sub_list; print_json_sub_items (json, &child, totals, iter->sub_list->size, iiiisp); } pclose_obj (json, iiisp, (i == sl->size - 1)); free (nmetrics); } pclose_arr (json, iisp, 1); } /* A wrapper function to output geolocation fields for the given host. */ static void print_json_host_geo (GJSON *json, GSubList *sl, int iisp) { GSubItem *iter; uint32_t i; static const char *key[] = { "country", "city", "asn", "hostname", }; pjson (json, ",%.*s", nlines, NL); /* Iterate over child properties (country, city, asn, etc) and print them out */ for (i = 0, iter = sl->head; iter; iter = iter->next, i++) { pjson (json, "%.*s\"%s\": \"", iisp, TAB, key[iter->metrics->id]); escape_json_output (json, iter->metrics->data); pjson (json, (i != sl->size - 1) ? "\",%.*s" : "\"", nlines, NL); } } /* Output Geolocation data and the IP's hostname. */ static void print_json_host_items (GJSON *json, GHolderItem *item, GPercTotals totals, int size, int iisp) { (void) totals; /* print geolocation fields */ if (size > 0 && item->sub_list != NULL) print_json_host_geo (json, item->sub_list, iisp); /* print list of user agents */ if (conf.list_agents) process_host_agents (json, item, iisp); } /* Output data and determine if there are children nodes. */ static void print_data_metrics (GJSON *json, GHolder *h, GPercTotals totals, int sp, const struct GPanel_ *panel) { GMetrics *nmetrics; uint32_t i; int isp = 0, iisp = 0, iiisp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1, iisp = sp + 2, iiisp = sp + 3; popen_arr_attr (json, "data", isp); /* output data metrics */ for (i = 0; i < h->idx; i++) { set_data_metrics (h->items[i].metrics, &nmetrics, totals); /* open data metric block */ popen_obj (json, iisp); /* output data metric block */ print_json_block (json, nmetrics, iiisp); /* if there are children nodes, spit them out */ if (panel->subitems) panel->subitems (json, h->items + i, totals, h->sub_items_size, iiisp); /* close data metric block */ pclose_obj (json, iisp, (i == h->idx - 1)); free (nmetrics); } pclose_arr (json, isp, 1); } /* Entry point to output data metrics per panel. */ static void print_json_data (GJSON *json, GHolder *h, GPercTotals totals, const struct GPanel_ *panel) { int sp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) sp = 1; /* output open panel attribute */ popen_obj_attr (json, module_to_id (h->module), sp); /* output panel metadata */ print_meta_data (json, h, sp); /* output panel data */ print_data_metrics (json, h, totals, sp, panel); /* output close panel attribute */ pclose_obj (json, sp, 1); } /* Get the number of available panels. * * On success, the total number of available panels is returned . */ static int num_panels (void) { size_t idx = 0, npanels = 0; FOREACH_MODULE (idx, module_list) npanels++; return npanels; } /* Write to a buffer overall data. */ static void print_json_summary (GJSON *json, GHolder *holder) { int sp = 0, isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) sp = 1, isp = 2; popen_obj_attr (json, GENER_ID, sp); /* generated start/end date */ poverall_start_end_date (json, holder, isp); /* generated date time */ poverall_datetime (json, isp); /* total requests */ poverall_requests (json, isp); /* valid requests */ poverall_valid_reqs (json, isp); /* invalid requests */ poverall_invalid_reqs (json, isp); /* generated time */ poverall_processed_time (json, isp); /* visitors */ poverall_visitors (json, isp); /* files */ poverall_files (json, isp); /* excluded hits */ poverall_excluded (json, isp); /* referrers */ poverall_refs (json, isp); /* not found */ poverall_notfound (json, isp); /* static files */ poverall_static_files (json, isp); /* log size */ poverall_log_size (json, isp); /* bandwidth */ poverall_bandwidth (json, isp); /* log path */ poverall_log (json, isp); pclose_obj (json, sp, num_panels () > 0 ? 0 : 1); } /* Iterate over all panels and generate json output. */ static GJSON * init_json_output (GHolder *holder) { GJSON *json = NULL; GModule module; GPercTotals totals; const GPanel *panel = NULL; size_t idx = 0, npanels = num_panels (), cnt = 0; json = new_gjson (); popen_obj (json, 0); print_json_summary (json, holder); set_module_totals (&totals); FOREACH_MODULE (idx, module_list) { module = module_list[idx]; if (!(panel = panel_lookup (module))) continue; panel->render (json, holder + module, totals, panel); pjson (json, (cnt++ != npanels - 1) ? ",%.*s" : "%.*s", nlines, NL); } pclose_obj (json, 0, 1); return json; } /* Open and write to a dynamically sized output buffer. * * On success, the newly allocated buffer is returned . */ char * get_json (GHolder *holder, int escape_html) { GJSON *json = NULL; char *buf = NULL; if (holder == NULL) return NULL; escape_html_output = escape_html; if ((json = init_json_output (holder)) && json->size > 0) { buf = xstrdup (json->buf); free_json (json); } return buf; } /* Entry point to generate a json report writing it to the fp */ void output_json (GHolder *holder, const char *filename) { GJSON *json = NULL; FILE *fp; if (filename != NULL) fp = fopen (filename, "w"); else fp = stdout; if (!fp) FATAL ("Unable to open JSON file: %s.", strerror (errno)); /* use new lines to prettify output */ if (conf.json_pretty_print) nlines = 1; /* spit it out */ if ((json = init_json_output (holder)) && json->size > 0) { fprintf (fp, "%s", json->buf); free_json (json); } fclose (fp); } ================================================ FILE: src/json.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #ifndef JSON_H_INCLUDED #define JSON_H_INCLUDED #define TAB "\t\t\t\t\t\t\t\t\t\t\t" #define NL "\n\n\n" #include "parser.h" typedef struct GJSON_ { char *buf; /* pointer to buffer */ size_t size; /* size of malloc'd buffer */ size_t offset; /* current write offset */ } GJSON; char *get_json (GHolder * holder, int escape_html); void output_json (GHolder * holder, const char *filename); void set_json_nlines (int nl); void fpskeyival (FILE * fp, const char *key, int val, int sp, int last); void fpskeysval (FILE * fp, const char *key, const char *val, int sp, int last); void fpskeyaval (FILE * fp, const char *key, const char *val, int sp, int last); void fpclose_arr (FILE * fp, int sp, int last); void fpclose_obj (FILE * fp, int iisp, int last); void fpjson (FILE * fp, const char *fmt, ...) __attribute__((format (printf, 2, 3))); void fpopen_arr_attr (FILE * fp, const char *attr, int sp); void fpopen_obj_attr (FILE * fp, const char *attr, int sp); void fpopen_obj (FILE * fp, int iisp); #endif ================================================ FILE: src/khash.h ================================================ /* The MIT License Copyright (c) 2008, 2009, 2011 by Attractive Chaos <attractor@live.co.uk> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* An example: #include "khash.h" KHASH_MAP_INIT_INT(32, char) int main() { int ret, is_missing; khiter_t k; khash_t(32) *h = kh_init(32); k = kh_put(32, h, 5, &ret); kh_value(h, k) = 10; k = kh_get(32, h, 10); is_missing = (k == kh_end(h)); k = kh_get(32, h, 5); kh_del(32, h, k); for (k = kh_begin(h); k != kh_end(h); ++k) if (kh_exist(h, k)) kh_value(h, k) = 1; kh_destroy(32, h); return 0; } */ /* 2013-05-02 (0.2.8): * Use quadratic probing. When the capacity is power of 2, stepping function i*(i+1)/2 guarantees to traverse each bucket. It is better than double hashing on cache performance and is more robust than linear probing. In theory, double hashing should be more robust than quadratic probing. However, my implementation is probably not for large hash tables, because the second hash function is closely tied to the first hash function, which reduce the effectiveness of double hashing. Reference: http://research.cs.vt.edu/AVresearch/hashing/quadratic.php 2011-12-29 (0.2.7): * Minor code clean up; no actual effect. 2011-09-16 (0.2.6): * The capacity is a power of 2. This seems to dramatically improve the speed for simple keys. Thank Zilong Tan for the suggestion. Reference: - http://code.google.com/p/ulib/ - http://nothings.org/computer/judy/ * Allow to optionally use linear probing which usually has better performance for random input. Double hashing is still the default as it is more robust to certain non-random input. * Added Wang's integer hash function (not used by default). This hash function is more robust to certain non-random input. 2011-02-14 (0.2.5): * Allow to declare global functions. 2009-09-26 (0.2.4): * Improve portability 2008-09-19 (0.2.3): * Corrected the example * Improved interfaces 2008-09-11 (0.2.2): * Improved speed a little in kh_put() 2008-09-10 (0.2.1): * Added kh_clear() * Fixed a compiling error 2008-09-02 (0.2.0): * Changed to token concatenation which increases flexibility. 2008-08-31 (0.1.2): * Fixed a bug in kh_get(), which has not been tested previously. 2008-08-31 (0.1.1): * Added destructor */ #ifndef __AC_KHASH_H #define __AC_KHASH_H /*! @header Generic hash table library. */ #define AC_VERSION_KHASH_H "0.2.8" #include <stdlib.h> #include <string.h> #include <limits.h> /* compiler specific configuration */ #if UINT_MAX == 0xffffffffu typedef unsigned int khint32_t; #elif ULONG_MAX == 0xffffffffu typedef unsigned long khint32_t; #endif #if ULONG_MAX == ULLONG_MAX typedef unsigned long khint64_t; #else typedef unsigned long long khint64_t; #endif #ifndef kh_inline #ifdef _MSC_VER #define kh_inline __inline #else #define kh_inline inline #endif #endif /* kh_inline */ #ifndef klib_unused #if (defined __clang__ && __clang_major__ >= 3) || (defined __GNUC__ && __GNUC__ >= 3) #define klib_unused __attribute__ ((__unused__)) #else #define klib_unused #endif #endif /* klib_unused */ typedef khint32_t khint_t; typedef khint_t khiter_t; #define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2) #define __ac_isdel(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&1) #define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3) #define __ac_set_isdel_false(flag, i) (flag[i>>4]&=~(1ul<<((i&0xfU)<<1))) #define __ac_set_isempty_false(flag, i) (flag[i>>4]&=~(2ul<<((i&0xfU)<<1))) #define __ac_set_isboth_false(flag, i) (flag[i>>4]&=~(3ul<<((i&0xfU)<<1))) #define __ac_set_isdel_true(flag, i) (flag[i>>4]|=1ul<<((i&0xfU)<<1)) #define __ac_fsize(m) ((m) < 16? 1 : (m)>>4) #ifndef kroundup32 #define kroundup32(x) (--(x), (x)|=(x)>>1, (x)|=(x)>>2, (x)|=(x)>>4, (x)|=(x)>>8, (x)|=(x)>>16, ++(x)) #endif #ifndef kcalloc #define kcalloc(N,Z) calloc(N,Z) #endif #ifndef kmalloc #define kmalloc(Z) malloc(Z) #endif #ifndef krealloc #define krealloc(P,Z) realloc(P,Z) #endif #ifndef kfree #define kfree(P) free(P) #endif static const double __ac_HASH_UPPER = 0.77; #define __KHASH_TYPE(name, khkey_t, khval_t) \ typedef struct kh_##name##_s { \ khint_t n_buckets, size, n_occupied, upper_bound; \ khint32_t *flags; \ khkey_t *keys; \ khval_t *vals; \ } kh_##name##_t; #define __KHASH_PROTOTYPES(name, khkey_t, khval_t) \ extern kh_##name##_t *kh_init_##name(void); \ extern void kh_destroy_##name(kh_##name##_t *h); \ extern void kh_clear_##name(kh_##name##_t *h); \ extern khint_t kh_get_##name(const kh_##name##_t *h, khkey_t key); \ extern int kh_resize_##name(kh_##name##_t *h, khint_t new_n_buckets); \ extern khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret); \ extern void kh_del_##name(kh_##name##_t *h, khint_t x); \ #define __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) \ SCOPE kh_##name##_t *kh_init_##name(void) { \ return (kh_##name##_t*) kcalloc(1, sizeof(kh_##name##_t)); \ } \ SCOPE void kh_destroy_##name(kh_##name##_t *h) \ { \ if (h) { \ kfree ((void *) h->keys); \ kfree (h->flags); \ kfree ((void *) h->vals); \ kfree (h); \ } \ } \ SCOPE void kh_clear_##name(kh_##name##_t *h) \ { \ if (h && h->flags) { \ memset (h->flags, 0xaa, __ac_fsize (h->n_buckets) * sizeof (khint32_t)); \ h->size = h->n_occupied = 0; \ } \ } \ SCOPE khint_t kh_get_##name(const kh_##name##_t *h, khkey_t key) \ { \ if (h->n_buckets) { \ khint_t k, i, last, mask, step = 0; \ mask = h->n_buckets - 1; \ k = __hash_func (key); \ i = k & mask; \ last = i; \ while (!__ac_isempty (h->flags, i) && \ (__ac_isdel (h->flags, i) || !__hash_equal (h->keys[i], key))) { \ i = (i + (++step)) & mask; \ if (i == last) \ return h->n_buckets; \ } \ return __ac_iseither (h->flags, i) ? h->n_buckets : i; \ } else \ return 0; \ } \ SCOPE int kh_resize_##name(kh_##name##_t *h, khint_t new_n_buckets) \ { \ /* This function uses 0.25*n_buckets bytes of working space instead of */ \ /* [sizeof(key_t+val_t)+.25]*n_buckets. */ \ khint32_t *new_flags = 0; \ khint_t j = 1; \ { \ kroundup32 (new_n_buckets); \ if (new_n_buckets < 4) \ new_n_buckets = 4; \ if (h->size >= (khint_t) (new_n_buckets * __ac_HASH_UPPER + 0.5)) \ j = 0; /* requested size is too small */ \ else { /* hash table size to be changed (shrink or expand); rehash */ \ new_flags = (khint32_t *) kmalloc (__ac_fsize (new_n_buckets) * sizeof (khint32_t)); \ if (!new_flags) \ return -1; \ memset (new_flags, 0xaa, __ac_fsize (new_n_buckets) * sizeof (khint32_t)); \ if (h->n_buckets < new_n_buckets) { /* expand */ \ khkey_t *new_keys = (khkey_t *) krealloc ((void *) h->keys, new_n_buckets * sizeof (khkey_t)); \ if (!new_keys) { \ kfree (new_flags); \ return -1; \ } \ h->keys = new_keys; \ if (kh_is_map) { \ khval_t *new_vals = (khval_t *) krealloc ((void *) h->vals, new_n_buckets * sizeof (khval_t)); \ if (!new_vals) { \ kfree (new_flags); \ return -1; \ } \ h->vals = new_vals; \ } \ } /* otherwise shrink */ \ } \ } \ if (j) { /* rehashing is needed */ \ for (j = 0; j != h->n_buckets; ++j) { \ if (__ac_iseither (h->flags, j) == 0) { \ khkey_t key = h->keys[j]; \ khval_t val; \ khint_t new_mask; \ new_mask = new_n_buckets - 1; \ if (kh_is_map) \ val = h->vals[j]; \ __ac_set_isdel_true (h->flags, j); \ while (1) { /* kick-out process; sort of like in Cuckoo hashing */ \ khint_t k, i, step = 0; \ k = __hash_func (key); \ i = k & new_mask; \ while (!__ac_isempty (new_flags, i)) \ i = (i + (++step)) & new_mask; \ __ac_set_isempty_false (new_flags, i); \ if (i < h->n_buckets && __ac_iseither (h->flags, i) == 0) { /* kick out the existing element */ \ { \ khkey_t tmp = h->keys[i]; \ h->keys[i] = key; \ key = tmp; \ } \ if (kh_is_map) { \ khval_t tmp = h->vals[i]; \ h->vals[i] = val; \ val = tmp; \ } \ __ac_set_isdel_true (h->flags, i); /* mark it as deleted in the old hash table */ \ } else { /* write the element and jump out of the loop */ \ h->keys[i] = key; \ if (kh_is_map) \ h->vals[i] = val; \ break; \ } \ } \ } \ } \ if (h->n_buckets > new_n_buckets) { /* shrink the hash table */ \ h->keys = (khkey_t *) krealloc ((void *) h->keys, new_n_buckets * sizeof (khkey_t)); \ if (kh_is_map) \ h->vals = (khval_t *) krealloc ((void *) h->vals, new_n_buckets * sizeof (khval_t)); \ } \ kfree (h->flags); /* free the working space */ \ h->flags = new_flags; \ h->n_buckets = new_n_buckets; \ h->n_occupied = h->size; \ h->upper_bound = (khint_t) (h->n_buckets * __ac_HASH_UPPER + 0.5); \ } \ return 0; \ } \ SCOPE khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret) \ { \ khint_t x; \ if (h->n_occupied >= h->upper_bound) { /* update the hash table */ \ if (h->n_buckets > (h->size << 1)) { \ if (kh_resize_##name (h, h->n_buckets - 1) < 0) { /* clear "deleted" elements */ \ *ret = -1; \ return h->n_buckets; \ } \ } else if (kh_resize_##name (h, h->n_buckets + 1) < 0) { /* expand the hash table */ \ *ret = -1; \ return h->n_buckets; \ } \ } /* TODO: to implement automatically shrinking; resize() already support shrinking */ \ { \ khint_t k, i, site, last, mask = h->n_buckets - 1, step = 0; \ x = site = h->n_buckets; \ k = __hash_func (key); \ i = k & mask; \ if (__ac_isempty (h->flags, i)) \ x = i; /* for speed up */ \ else { \ last = i; \ while (!__ac_isempty (h->flags, i) && (__ac_isdel (h->flags, i) || !__hash_equal (h->keys[i], key))) { \ if (__ac_isdel (h->flags, i)) \ site = i; \ i = (i + (++step)) & mask; \ if (i == last) { \ x = site; \ break; \ } \ } \ if (x == h->n_buckets) { \ if (__ac_isempty (h->flags, i) && site != h->n_buckets) \ x = site; \ else \ x = i; \ } \ } \ } \ if (__ac_isempty (h->flags, x)) { /* not present at all */ \ h->keys[x] = key; \ __ac_set_isboth_false (h->flags, x); \ ++h->size; \ ++h->n_occupied; \ *ret = 1; \ } else if (__ac_isdel (h->flags, x)) { /* deleted */ \ h->keys[x] = key; \ __ac_set_isboth_false (h->flags, x); \ ++h->size; \ *ret = 2; \ } else \ *ret = 0; /* Don't touch h->keys[x] if present and not deleted */ \ return x; \ } \ SCOPE void kh_del_##name(kh_##name##_t *h, khint_t x) \ { \ if (x != h->n_buckets && !__ac_iseither (h->flags, x)) { \ __ac_set_isdel_true (h->flags, x); \ --h->size; \ } \ } \ #define KHASH_DECLARE(name, khkey_t, khval_t) \ __KHASH_TYPE(name, khkey_t, khval_t) \ __KHASH_PROTOTYPES(name, khkey_t, khval_t) #define KHASH_INIT2(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) \ __KHASH_TYPE(name, khkey_t, khval_t) \ __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) #define KHASH_INIT(name, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) \ KHASH_INIT2(name, static kh_inline klib_unused, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) \ /* --- BEGIN OF HASH FUNCTIONS --- */ /*! @function @abstract Integer hash function @param key The integer [khint32_t] @return The hash value [khint_t] */ #define kh_int_hash_func(key) (khint32_t)(key) /*! @function @abstract Integer comparison function */ #define kh_int_hash_equal(a, b) ((a) == (b)) /*! @function @abstract 64-bit integer hash function @param key The integer [khint64_t] @return The hash value [khint_t] */ #define kh_int64_hash_func(key) (khint32_t)((key)>>33^(key)^(key)<<11) /*! @function @abstract 64-bit integer comparison function */ #define kh_int64_hash_equal(a, b) ((a) == (b)) /*! @function @abstract const char* hash function @param s Pointer to a null terminated string @return The hash value */ #if defined(__clang__) && defined(__clang_major__) && (__clang_major__ >= 4) __attribute__((no_sanitize ("unsigned-integer-overflow"))) #if (__clang_major__ >= 12) __attribute__((no_sanitize ("unsigned-shift-base"))) #endif #endif static kh_inline khint_t __ac_X31_hash_string (const char *s) { khint_t h = (khint_t) * s; if (h) for (++s; *s; ++s) h = (h << 5) - h + (khint_t) * s; return h; } /*! @function @abstract Another interface to const char* hash function @param key Pointer to a null terminated string [const char*] @return The hash value [khint_t] */ #define kh_str_hash_func(key) __ac_X31_hash_string(key) /*! @function @abstract Const char* comparison function */ #define kh_str_hash_equal(a, b) (strcmp(a, b) == 0) static kh_inline khint_t __ac_Wang_hash (khint_t key) { key += ~(key << 15); key ^= (key >> 10); key += (key << 3); key ^= (key >> 6); key += ~(key << 11); key ^= (key >> 16); return key; } #define kh_int_hash_func2(k) __ac_Wang_hash((khint_t)key) /* --- END OF HASH FUNCTIONS --- */ /* Other convenient macros... */ /*! @abstract Type of the hash table. @param name Name of the hash table [symbol] */ #define khash_t(name) kh_##name##_t /*! @function @abstract Initiate a hash table. @param name Name of the hash table [symbol] @return Pointer to the hash table [khash_t(name)*] */ #define kh_init(name) kh_init_##name() /*! @function @abstract Destroy a hash table. @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] */ #define kh_destroy(name, h) kh_destroy_##name(h) /*! @function @abstract Reset a hash table without deallocating memory. @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] */ #define kh_clear(name, h) kh_clear_##name(h) /*! @function @abstract Resize a hash table. @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] @param s New size [khint_t] */ #define kh_resize(name, h, s) kh_resize_##name(h, s) /*! @function @abstract Insert a key to the hash table. @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] @param k Key [type of keys] @param r Extra return code: -1 if the operation failed; 0 if the key is present in the hash table; 1 if the bucket is empty (never used); 2 if the element in the bucket has been deleted [int*] @return Iterator to the inserted element [khint_t] */ #define kh_put(name, h, k, r) kh_put_##name(h, k, r) /*! @function @abstract Retrieve a key from the hash table. @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] @param k Key [type of keys] @return Iterator to the found element, or kh_end(h) if the element is absent [khint_t] */ #define kh_get(name, h, k) kh_get_##name(h, k) /*! @function @abstract Remove a key from the hash table. @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] @param k Iterator to the element to be deleted [khint_t] */ #define kh_del(name, h, k) kh_del_##name(h, k) /*! @function @abstract Test whether a bucket contains data. @param h Pointer to the hash table [khash_t(name)*] @param x Iterator to the bucket [khint_t] @return 1 if containing data; 0 otherwise [int] */ #define kh_exist(h, x) (!__ac_iseither((h)->flags, (x))) /*! @function @abstract Get key given an iterator @param h Pointer to the hash table [khash_t(name)*] @param x Iterator to the bucket [khint_t] @return Key [type of keys] */ #define kh_key(h, x) ((h)->keys[x]) /*! @function @abstract Get value given an iterator @param h Pointer to the hash table [khash_t(name)*] @param x Iterator to the bucket [khint_t] @return Value [type of values] @discussion For hash sets, calling this results in segfault. */ #define kh_val(h, x) ((h)->vals[x]) /*! @function @abstract Alias of kh_val() */ #define kh_value(h, x) ((h)->vals[x]) /*! @function @abstract Get the start iterator @param h Pointer to the hash table [khash_t(name)*] @return The start iterator [khint_t] */ #define kh_begin(h) (khint_t)(0) /*! @function @abstract Get the end iterator @param h Pointer to the hash table [khash_t(name)*] @return The end iterator [khint_t] */ #define kh_end(h) ((h)->n_buckets) /*! @function @abstract Get the number of elements in the hash table @param h Pointer to the hash table [khash_t(name)*] @return Number of elements in the hash table [khint_t] */ #define kh_size(h) ((h)->size) /*! @function @abstract Get the number of buckets in the hash table @param h Pointer to the hash table [khash_t(name)*] @return Number of buckets in the hash table [khint_t] */ #define kh_n_buckets(h) ((h)->n_buckets) /*! @function @abstract Iterate over the entries in the hash table @param h Pointer to the hash table [khash_t(name)*] @param kvar Variable to which key will be assigned @param vvar Variable to which value will be assigned @param code Block of code to execute */ #define kh_foreach(h, kvar, vvar, code) { khint_t __i; \ for (__i = kh_begin(h); __i != kh_end(h); ++__i) { \ if (!kh_exist(h,__i)) continue; \ (kvar) = kh_key(h,__i); \ (vvar) = kh_val(h,__i); \ code; \ } } /*! @function @abstract Iterate over the values in the hash table @param h Pointer to the hash table [khash_t(name)*] @param vvar Variable to which value will be assigned @param code Block of code to execute */ #define kh_foreach_value(h, vvar, code) { khint_t __i; \ for (__i = kh_begin (h); __i != kh_end (h); ++__i) { \ if (!kh_exist (h, __i)) \ continue; \ (vvar) = kh_val (h, __i); \ code; \ } } /* More convenient interfaces */ /*! @function @abstract Instantiate a hash set containing integer keys @param name Name of the hash table [symbol] */ #define KHASH_SET_INIT_INT(name) \ KHASH_INIT(name, khint32_t, char, 0, kh_int_hash_func, kh_int_hash_equal) /*! @function @abstract Instantiate a hash map containing integer keys @param name Name of the hash table [symbol] @param khval_t Type of values [type] */ #define KHASH_MAP_INIT_INT(name, khval_t) \ KHASH_INIT(name, khint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) /*! @function @abstract Instantiate a hash map containing 64-bit integer keys @param name Name of the hash table [symbol] */ #define KHASH_SET_INIT_INT64(name) \ KHASH_INIT(name, khint64_t, char, 0, kh_int64_hash_func, kh_int64_hash_equal) /*! @function @abstract Instantiate a hash map containing 64-bit integer keys @param name Name of the hash table [symbol] @param khval_t Type of values [type] */ #define KHASH_MAP_INIT_INT64(name, khval_t) \ KHASH_INIT(name, khint64_t, khval_t, 1, kh_int64_hash_func, kh_int64_hash_equal) typedef const char *kh_cstr_t; /*! @function @abstract Instantiate a hash map containing const char* keys @param name Name of the hash table [symbol] */ #define KHASH_SET_INIT_STR(name) \ KHASH_INIT(name, kh_cstr_t, char, 0, kh_str_hash_func, kh_str_hash_equal) /*! @function @abstract Instantiate a hash map containing const char* keys @param name Name of the hash table [symbol] @param khval_t Type of values [type] */ #define KHASH_MAP_INIT_STR(name, khval_t) \ KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal) #endif /* __AC_KHASH_H */ ================================================ FILE: src/labels.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef LABELS_H_INCLUDED #define LABELS_H_INCLUDED #ifdef ENABLE_NLS #include <libintl.h> #define _(String) dgettext (PACKAGE , String) #else #define _(String) (String) #endif #define gettext_noop(String) String #define N_(String) gettext_noop (String) /* global lang attribute */ #define DOC_LANG _( "en") /* General */ #define GEN_EXPAND_PANEL _( "Exp. Panel") #define GEN_HELP _( "Help") #define GEN_QUIT _( "Quit") #define GEN_TOTAL _( "Total") /* Sort Labels */ #define SORT_ASC_SEL _( "[x] ASC [ ] DESC") #define SORT_DESC_SEL _( "[ ] ASC [x] DESC") /* Overall Stats Labels */ #define T_ACTIVE_PANEL _("[Active Panel: %1$s]") #define T_QUIT _("[q]uit GoAccess") #define T_HELP_ENTER _("[?] Help [Enter] Exp. Panel") #define T_DASH _( "Dashboard") #define T_DASH_HEAD _( "Dashboard - Overall Analyzed Requests") #define T_HEAD N_( "Overall Analyzed Requests") #define T_BW _( "Tx. Amount") #define T_DATETIME _( "Date/Time") #define T_EXCLUDE_IP _( "Excl. IP Hits") #define T_FAILED _( "Failed Requests") #define T_GEN_TIME _( "Log Parsing Time") #define T_LOG _( "Log Size") #define T_LOG_PATH _( "Log Source") #define T_REFERRER _( "Referrers") #define T_REQUESTS _( "Total Requests") #define T_STATIC_FILES _( "Static Files") #define T_UNIQUE404 _( "Not Found") #define T_UNIQUE_FILES _( "Requested Files") #define T_UNIQUE_VISITORS _( "Unique Visitors") #define T_VALID _( "Valid Requests") /* Metric Labels */ #define MTRC_HITS_LBL _( "Hits") #define MTRC_HITS_PERC_LBL _( "h%") #define MTRC_VISITORS_LBL _( "Visitors") #define MTRC_VISITORS_SHORT_LBL _( "Vis.") #define MTRC_VISITORS_PERC_LBL _( "v%") #define MTRC_BW_LBL _( "Tx. Amount") #define MTRC_BW_PERC_LBL _( "tx%") #define MTRC_AVGTS_LBL _( "Avg. T.S.") #define MTRC_CUMTS_LBL _( "Cum. T.S.") #define MTRC_MAXTS_LBL _( "Max. T.S.") #define MTRC_METHODS_LBL _( "Method") #define MTRC_METHODS_SHORT_LBL _( "Mtd") #define MTRC_PROTOCOLS_LBL _( "Protocol") #define MTRC_PROTOCOLS_SHORT_LBL _( "Proto") #define MTRC_CITY_LBL _( "City") #define MTRC_ASB_LBL _( "ASN") #define MTRC_COUNTRY_LBL _( "Country") #define MTRC_HOSTNAME_LBL _( "Hostname") #define MTRC_DATA_LBL _( "Data") #define HTML_PLOT_HITS_VIS _( "Hits/Visitors") /* Panel Labels and Descriptions */ #define VISITORS_HEAD \ N_("Unique visitors per day") #define VISITORS_HEAD_BOTS \ N_("Unique visitors per day - Including spiders") #define VISITORS_DESC \ N_("Hits having the same IP, date and agent are a unique visit.") #define VISITORS_LABEL \ N_("Visitors") #define REQUESTS_HEAD \ N_("Requested Files (URLs)") #define REQUESTS_DESC \ N_("Top requests sorted by hits [, avgts, cumts, maxts, mthd, proto]") #define REQUESTS_LABEL \ N_("Requests") #define REQUESTS_STATIC_HEAD \ N_("Static Requests") #define REQUESTS_STATIC_DESC \ N_("Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]") #define REQUESTS_STATIC_LABEL \ N_("Static Requests") #define VISIT_TIMES_HEAD \ N_("Time Distribution") #define VISIT_TIMES_DESC \ N_("Data sorted by hour [, avgts, cumts, maxts]") #define VISIT_TIMES_LABEL \ N_("Time") #define VIRTUAL_HOSTS_HEAD \ N_("Virtual Hosts") #define VIRTUAL_HOSTS_DESC \ N_("Data sorted by hits [, avgts, cumts, maxts]") #define VIRTUAL_HOSTS_LABEL \ N_("Virtual Hosts") #define REMOTE_USER_HEAD \ N_("Remote User (HTTP authentication)") #define REMOTE_USER_DESC \ N_("Data sorted by hits [, avgts, cumts, maxts]") #define REMOTE_USER_LABEL \ N_("Remote User") #define CACHE_STATUS_HEAD \ N_("The cache status of the object served") #define CACHE_STATUS_DESC \ N_("Data sorted by hits [, avgts, cumts, maxts]") #define CACHE_STATUS_LABEL \ N_("Cache Status") #define NOT_FOUND_HEAD \ N_("Not Found URLs (404s)") #define NOT_FOUND_DESC \ N_("Top not found URLs sorted by hits [, avgts, cumts, maxts, mthd, proto]") #define NOT_FOUND_LABEL \ N_("Not Found") #define HOSTS_HEAD \ N_("Visitor Hostnames and IPs") #define HOSTS_DESC \ N_("Top visitor hosts sorted by hits [, avgts, cumts, maxts]") #define HOSTS_LABEL \ N_("Hosts") #define OS_HEAD \ N_("Operating Systems") #define OS_DESC \ N_("Top Operating Systems sorted by hits [, avgts, cumts, maxts]") #define OS_LABEL \ N_("OS") #define BROWSERS_HEAD \ N_("Browsers") #define BROWSERS_DESC \ N_("Top Browsers sorted by hits [, avgts, cumts, maxts]") #define BROWSERS_LABEL \ N_("Browsers") #define REFERRERS_HEAD \ N_("Referrer URLs") #define REFERRERS_DESC \ N_("Top Requested Referrers sorted by hits [, avgts, cumts, maxts]") #define REFERRERS_LABEL \ N_("Referrers") #define REFERRING_SITES_HEAD \ N_("Referring Sites") #define REFERRING_SITES_DESC \ N_("Top Referring Sites sorted by hits [, avgts, cumts, maxts]") #define REFERRING_SITES_LABEL \ N_("Referring Sites") #define KEYPHRASES_HEAD \ N_("Keyphrases from Google's search engine") #define KEYPHRASES_DESC \ N_("Top Keyphrases sorted by hits [, avgts, cumts, maxts]") #define KEYPHRASES_LABEL \ N_("Keyphrases") #define GEO_LOCATION_HEAD \ N_("Geo Location") #define GEO_LOCATION_DESC \ N_("Continent > Country sorted by unique hits [, avgts, cumts, maxts]") #define GEO_LOCATION_LABEL \ N_("Geo Location") #define ASN_HEAD \ N_("ASN") #define ASN_DESC \ N_("Autonomous System Numbers/Organizations (ASNs)") #define ASN_LABEL \ N_("ASN") #define STATUS_CODES_HEAD \ N_("HTTP Status Codes") #define STATUS_CODES_DESC \ N_("Top HTTP Status Codes sorted by hits [, avgts, cumts, maxts]") #define STATUS_CODES_LABEL \ N_("Status Codes") #define MIME_TYPE_HEAD \ N_("MIME Types") #define MIME_TYPE_DESC \ N_("File types shipped out") #define MIME_TYPE_LABEL \ N_("MIME Types") #define TLS_TYPE_HEAD \ N_("Encryption settings") #define TLS_TYPE_DESC \ N_("TLS version and picked algorithm") #define TLS_TYPE_LABEL \ N_("TLS Settings") /* Find Labels */ #define CISENSITIVE \ _("[ ] case sensitive") #define CSENSITIVE \ _("[x] case sensitive") #define FIND_DESC \ _("Regex allowed - ^g to cancel - TAB switch case") #define FIND_HEAD \ _("Find pattern in all views") /* Config Dialog */ #define CONFDLG_HEAD \ _("Log Format Configuration") #define CONFDLG_KEY_HINTS \ _("[SPACE] to toggle - [ENTER] to proceed - [q] to quit") #define CONFDLG_LOG_FORMAT \ _("Log Format - [c] to add/edit format") #define CONFDLG_DATE_FORMAT \ _("Date Format - [d] to add/edit format") #define CONFDLG_TIME_FORMAT \ _("Time Format - [t] to add/edit format") #define CONFDLG_DESC \ _("[UP/DOWN] to scroll - [q] to close window") /* Agents Dialog */ #define AGENTSDLG_DESC \ _("[UP/DOWN] to scroll - [q] to close window") #define AGENTSDLG_HEAD \ _("User Agents for %1$s") /* Color Scheme Dialog */ #define SCHEMEDLG_HEAD \ _("Scheme Configuration") #define SCHEMEDLG_DESC \ _("[ENTER] to use scheme - [q]uit") /* Sort Dialog */ #define SORTDLG_HEAD \ _("Sort active module by") #define SORTDLG_DESC \ _("[ENTER] select - [TAB] sort - [q]uit") /* Help TUI Dialog */ #define HELPDLG_HEAD \ _("GoAccess Quick Help") #define HELPDLG_DESC \ _("[UP/DOWN] to scroll - [q] to quit") /* Storage Built-in Option */ #define BUILT_WITH_DEFHASH \ _("In-Memory with On-Disk Persistent Storage.") /* Common UI Errors */ #define ERR_FORMAT_HEADER \ _("Format Errors - Verify your log/date/time format") #define HINT_INVALID_REQUESTS \ _("Use --invalid-requests option to store such lines in a file.") #define ERR_FORMAT_NO_DATE_FMT \ _("No date format was found on your conf file.") #define ERR_FORMAT_NO_LOG_FMT \ _("No log format was found on your conf file.") #define ERR_FORMAT_NO_TIME_FMT \ _("No time format was found on your conf file.") #define ERR_NODEF_CONF_FILE \ _("No default config file found.") #define ERR_NODEF_CONF_FILE_DESC \ _("You may specify one with") #define ERR_PARSED_NLINES_DESC \ _("producing the following errors") #define ERR_PARSED_NLINES \ _("Parsed %1$d lines") #define ERR_PLEASE_REPORT \ _("Please report it by opening an issue on GitHub") #define ERR_FORMAT_NO_TIME_FMT_DLG \ _("Select a time format.") #define ERR_FORMAT_NO_DATE_FMT_DLG \ _("Select a date format.") #define ERR_FORMAT_NO_LOG_FMT_DLG \ _("Select a log format.") #define ERR_PANEL_DISABLED \ _("'%1$s' panel is disabled") #define ERR_NO_DATA_PASSED \ _("No input data was provided nor there's data to restore.") #define ERR_LOG_REALLOC_FAILURE_MSG \ _("Unable to allocate memory for a log instance.") #define ERR_LOG_NOT_FOUND_MSG \ _("Unable to find the given log.") /* Other */ #define INFO_MORE_INFO \ _("For more details visit") #define INFO_LAST_UPDATED \ _("Last Updated") #define INFO_WS_READY_FOR_CONN \ _("WebSocket server ready to accept new client connections") #define INFO_HELP_FOLLOWING_OPTS \ _("The following options can also be supplied to the command") #define INFO_HELP_EXAMPLES \ _("Examples can be found by running") #define HTML_REPORT_TITLE \ _( "Server Statistics") #define HTML_REPORT_NAV_THEME \ N_("Theme") #define HTML_REPORT_NAV_DARK_GRAY \ N_("Dark Gray") #define HTML_REPORT_NAV_BRIGHT \ N_("Bright") #define HTML_REPORT_NAV_DARK_BLUE \ N_("Dark Blue") #define HTML_REPORT_NAV_DARK_PURPLE \ N_("Dark Purple") #define HTML_REPORT_NAV_PANELS \ N_("Panels") #define HTML_REPORT_NAV_ITEMS_PER_PAGE \ N_("Items per Page") #define HTML_REPORT_NAV_TABLES \ N_("Tables") #define HTML_REPORT_NAV_DISPLAY_TABLES \ N_("Display Tables") #define HTML_REPORT_NAV_AH_SMALL \ N_("Auto-Hide on Small Devices") #define HTML_REPORT_NAV_AH_SMALL_TITLE \ N_("Automatically hide tables on small screen devices") #define HTML_REPORT_NAV_TOGGLE_PANEL \ N_("Toggle Panel") #define HTML_REPORT_NAV_LAYOUT \ N_("Layout") #define HTML_REPORT_NAV_HOR \ N_("Horizontal") #define HTML_REPORT_NAV_VER \ N_("Vertical") #define HTML_REPORT_NAV_WIDE \ N_("WideScreen") #define HTML_REPORT_NAV_FILE_OPTS \ N_("File Options") #define HTML_REPORT_NAV_EXPORT_JSON \ N_("Export as JSON") #define HTML_REPORT_PANEL_PANEL_OPTS \ N_("Panel Options") #define HTML_REPORT_PANEL_PREVIOUS \ N_("Previous") #define HTML_REPORT_PANEL_NEXT \ N_("Next") #define HTML_REPORT_PANEL_FIRST \ N_("First") #define HTML_REPORT_PANEL_LAST \ N_("Last") #define HTML_REPORT_PANEL_CHART_OPTS \ N_("Chart Options") #define HTML_REPORT_PANEL_CHART \ N_("Chart") #define HTML_REPORT_PANEL_TYPE \ N_("Type") #define HTML_REPORT_PANEL_AREA_SPLINE \ N_("Area Spline") #define HTML_REPORT_PANEL_BAR \ N_("Bar") #define HTML_REPORT_PANEL_WMAP \ N_("World Map") #define HTML_REPORT_PANEL_GMAP \ N_("Azimuthal/Globe") #define HTML_REPORT_PANEL_PLOT_METRIC \ N_("Plot Metric") #define HTML_REPORT_PANEL_TABLE_COLS \ N_("Table Columns") /* Status Codes */ #define STATUS_CODE_0XX \ N_("0xx Unofficial Codes") #define STATUS_CODE_1XX \ N_("1xx Informational") #define STATUS_CODE_2XX \ N_("2xx Success") #define STATUS_CODE_3XX \ N_("3xx Redirection") #define STATUS_CODE_4XX \ N_("4xx Client Errors") #define STATUS_CODE_5XX \ N_("5xx Server Errors") #define STATUS_CODE_0 \ N_("0 - Caddy: Unhandled - No configured routes") #define STATUS_CODE_100 \ N_("100 - Continue: Server received the initial part of the request") #define STATUS_CODE_101 \ N_("101 - Switching Protocols: Client asked to switch protocols") #define STATUS_CODE_200 \ N_("200 - OK: The request sent by the client was successful") #define STATUS_CODE_201 \ N_("201 - Created: The request has been fulfilled and created") #define STATUS_CODE_202 \ N_("202 - Accepted: The request has been accepted for processing") #define STATUS_CODE_203 \ N_("203 - Non-authoritative Information: Response from a third party") #define STATUS_CODE_204 \ N_("204 - No Content: Request did not return any content") #define STATUS_CODE_205 \ N_("205 - Reset Content: Server asked the client to reset the document") #define STATUS_CODE_206 \ N_("206 - Partial Content: The partial GET has been successful") #define STATUS_CODE_207 \ N_("207 - Multi-Status: WebDAV; RFC 4918") #define STATUS_CODE_208 \ N_("208 - Already Reported: WebDAV; RFC 5842") #define STATUS_CODE_218 \ N_("218 - This is fine: Apache servers. A catch-all error condition") #define STATUS_CODE_300 \ N_("300 - Multiple Choices: Multiple options for the resource") #define STATUS_CODE_301 \ N_("301 - Moved Permanently: Resource has permanently moved") #define STATUS_CODE_302 \ N_("302 - Moved Temporarily (redirect)") #define STATUS_CODE_303 \ N_("303 - See Other Document: The response is at a different URI") #define STATUS_CODE_304 \ N_("304 - Not Modified: Resource has not been modified") #define STATUS_CODE_305 \ N_("305 - Use Proxy: Can only be accessed through the proxy") #define STATUS_CODE_307 \ N_("307 - Temporary Redirect: Resource temporarily moved") #define STATUS_CODE_308 \ N_("308 - Permanent Redirect") #define STATUS_CODE_400 \ N_("400 - Bad Request: The syntax of the request is invalid") #define STATUS_CODE_401 \ N_("401 - Unauthorized: Request needs user authentication") #define STATUS_CODE_402 \ N_("402 - Payment Required") #define STATUS_CODE_403 \ N_("403 - Forbidden: Server is refusing to respond to it") #define STATUS_CODE_404 \ N_("404 - Not Found: Requested resource could not be found") #define STATUS_CODE_405 \ N_("405 - Method Not Allowed: Request method not supported") #define STATUS_CODE_406 \ N_("406 - Not Acceptable") #define STATUS_CODE_407 \ N_("407 - Proxy Authentication Required") #define STATUS_CODE_408 \ N_("408 - Request Timeout: Server timed out waiting for the request") #define STATUS_CODE_409 \ N_("409 - Conflict: Conflict in the request") #define STATUS_CODE_410 \ N_("410 - Gone: Resource requested is no longer available") #define STATUS_CODE_411 \ N_("411 - Length Required: Invalid Content-Length") #define STATUS_CODE_412 \ N_("412 - Precondition Failed: Server does not meet preconditions") #define STATUS_CODE_413 \ N_("413 - Payload Too Large") #define STATUS_CODE_414 \ N_("414 - Request-URI Too Long") #define STATUS_CODE_415 \ N_("415 - Unsupported Media Type: Media type is not supported") #define STATUS_CODE_416 \ N_("416 - Requested Range Not Satisfiable: Cannot supply that portion") #define STATUS_CODE_417 \ N_("417 - Expectation Failed") #define STATUS_CODE_418 \ N_("418 - I'm a teapot") #define STATUS_CODE_419 \ N_("419 - Page Expired: Laravel Framework when a CSRF Token is missing") #define STATUS_CODE_420 \ N_("420 - Method Failure: Spring Framework when a method has failed") #define STATUS_CODE_421 \ N_("421 - Misdirected Request") #define STATUS_CODE_422 \ N_("422 - Unprocessable Entity due to semantic errors: WebDAV") #define STATUS_CODE_423 \ N_("423 - The resource that is being accessed is locked") #define STATUS_CODE_424 \ N_("424 - Failed Dependency: WebDAV") #define STATUS_CODE_426 \ N_("426 - Upgrade Required: Client should switch to a different protocol") #define STATUS_CODE_428 \ N_("428 - Precondition Required") #define STATUS_CODE_429 \ N_("429 - Too Many Requests: The user has sent too many requests") #define STATUS_CODE_430 \ N_("430 - Request Header Fields Too Large: Too many URLs are requested within a certain time frame") #define STATUS_CODE_431 \ N_("431 - Request Header Fields Too Large") #define STATUS_CODE_440 \ N_("440 - Login Time-out: The client's session has expired") #define STATUS_CODE_449 \ N_("449 - Retry With: The server cannot honour the request") #define STATUS_CODE_450 \ N_("450 - Blocked by Windows Parental Controls: The Microsoft extension code indicated") #define STATUS_CODE_451 \ N_("451 - Unavailable For Legal Reasons") #define STATUS_CODE_444 \ N_("444 - (Nginx) Connection closed without sending any headers") #define STATUS_CODE_460 \ N_("460 - AWS Elastic Load Balancing: Client closed the connection ") #define STATUS_CODE_463 \ N_("463 - AWS Elastic Load Balancing: The load balancer received more than 30 IP addresses") #define STATUS_CODE_464 \ N_("464 - AWS Elastic Load Balancing: Incompatible protocol versions") #define STATUS_CODE_494 \ N_("494 - (Nginx) Request Header Too Large") #define STATUS_CODE_495 \ N_("495 - (Nginx) SSL client certificate error") #define STATUS_CODE_496 \ N_("496 - (Nginx) Client didn't provide certificate") #define STATUS_CODE_497 \ N_("497 - (Nginx) HTTP request sent to HTTPS port") #define STATUS_CODE_498 \ N_("498 - Invalid Token: an expired or otherwise invalid token") #define STATUS_CODE_499 \ N_("499 - (Nginx) Connection closed by client while processing request") #define STATUS_CODE_500 \ N_("500 - Internal Server Error") #define STATUS_CODE_501 \ N_("501 - Not Implemented") #define STATUS_CODE_502 \ N_("502 - Bad Gateway: Received an invalid response from the upstream") #define STATUS_CODE_503 \ N_("503 - Service Unavailable: The server is currently unavailable") #define STATUS_CODE_504 \ N_("504 - Gateway Timeout: The upstream server failed to send request") #define STATUS_CODE_505 \ N_("505 - HTTP Version Not Supported") #define STATUS_CODE_509 \ N_("509 - Bandwidth Limit Exceeded: The server has exceeded the bandwidth") #define STATUS_CODE_520 \ N_("520 - CloudFlare - Web server is returning an unknown error") #define STATUS_CODE_521 \ N_("521 - CloudFlare - Web server is down") #define STATUS_CODE_522 \ N_("522 - CloudFlare - Connection timed out") #define STATUS_CODE_523 \ N_("523 - CloudFlare - Origin is unreachable") #define STATUS_CODE_524 \ N_("524 - CloudFlare - A timeout occurred") #define STATUS_CODE_525 \ N_("525 - SSL Handshake Failed: Cloudflare could not negotiate a SSL/TLS handshake") #define STATUS_CODE_526 \ N_("526 - Invalid SSL Certificate: Cloudflare could not validate the SSL certificate") #define STATUS_CODE_527 \ N_("527 - Railgun Error: An interrupted connection") #define STATUS_CODE_529 \ N_("529 - Site is overloaded: A site can not process the request") #define STATUS_CODE_530 \ N_("530 - Site is frozen: A site has been frozen due to inactivity") #define STATUS_CODE_540 \ N_("540 - Temporarily Disabled: The requested endpoint has been temporarily disabled") #define STATUS_CODE_561 \ N_("561 - Unauthorized: An error around authentication") #define STATUS_CODE_598 \ N_("598 - Network read timeout error: some HTTP proxies to signal a network read timeout") #define STATUS_CODE_599 \ N_("599 - Network Connect Timeout Error: An error used by some HTTP proxies") #define STATUS_CODE_783 \ N_("783 - Unexpected Token: The request includes a JSON syntax error") /* Menu buttons */ #define HTML_REPORT_NAV_BUTTON_MENU \ N_("Menu") #define HTML_REPORT_NAV_BUTTON_SETTINGS \ N_("Settings") #define HTML_REPORT_WEBSOCKET_STATUS_CONNECTED \ N_("WebSocket Status: Connected") #define HTML_REPORT_WEBSOCKET_STATUS_DISCONNECTED \ N_("WebSocket Status: Disconnected") #endif // for #ifndef LABELS_H ================================================ FILE: src/opesys.c ================================================ /** * opesys.c -- functions for dealing with operating systems * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <string.h> #include <stddef.h> #include "opesys.h" #include "error.h" #include "settings.h" #include "util.h" #include "xmalloc.h" /* ###NOTE: The size of the list is proportional to the run time, * which makes this pretty slow */ /* {"search string", "belongs to"} */ static const char *const os[][2] = { {"Android", "Android"}, {"Windows NT 10.0", "Windows"}, {"Windows NT 6.3; ARM", "Windows"}, {"Windows NT 6.3", "Windows"}, {"Windows NT 6.2; ARM", "Windows"}, {"Windows NT 6.2", "Windows"}, {"Windows NT 6.1", "Windows"}, {"Windows NT 6.0", "Windows"}, {"Windows NT 5.2", "Windows"}, {"Windows NT 5.1", "Windows"}, {"Windows NT 5.01", "Windows"}, {"Windows NT 5.0", "Windows"}, {"Windows NT 4.0", "Windows"}, {"Windows NT", "Windows"}, {"Win 9x 4.90", "Windows"}, {"Windows 98", "Windows"}, {"Windows 95", "Windows"}, {"Windows CE", "Windows"}, {"Windows Phone 8.1", "Windows"}, {"Windows Phone 8.0", "Windows"}, {"Windows", "Windows"}, {"Googlebot", "Unix-like"}, {"Mastodon", "Unix-like"}, {"bingbot", "Windows"}, {"iPad", "iOS"}, {"iPod", "iOS"}, {"iPhone", "iOS"}, {"CFNetwork", "iOS"}, {"AppleTV", "iOS"}, {"iTunes", "macOS"}, {"OS X", "macOS"}, {"macOS", "macOS"}, {"Darwin", "Darwin"}, {"Alibaba Cloud Linux", "Linux"}, {"AlmaLinux", "Linux"}, {"Amazon Linux", "Linux"}, {"CloudLinux", "Linux"}, {"Debian", "Linux"}, {"Ubuntu", "Linux"}, {"Fedora", "Linux"}, {"Mint", "Linux"}, {"SUSE", "Linux"}, {"Mandriva", "Linux"}, {"MIRACLE LINUX", "Linux"}, {"Oracle Linux", "Linux"}, {"Red Hat Enterprise Linux", "Linux"}, {"Rocky Linux", "Linux"}, {"Gentoo", "Linux"}, {"CentOS Stream", "Linux"}, {"CentOS Linux", "Linux"}, {"PCLinuxOS", "Linux"}, {"Arch", "Linux"}, {"Parabola", "Linux"}, {"webOS", "Linux"}, {"samsung", "Linux"}, {"FreeBSD", "BSD"}, {"NetBSD", "BSD"}, {"OpenBSD", "BSD"}, {"DragonFly", "BSD"}, {"PlayStation", "BSD"}, {"Linux", "Linux"}, {"linux", "Linux"}, {"CrOS", "Chrome OS"}, {"QNX", "Unix-like"}, {"BB10", "Unix-like"}, {"AIX", "Unix"}, {"SunOS", "Unix"}, {"BlackBerry", "Others"}, {"Sony", "Others"}, {"AmigaOS", "Others"}, {"SymbianOS", "Others"}, {"SymbOS", "Others"}, {"Nokia", "Others"}, {"Nintendo", "Others"}, {"Apache", "Others"}, {"Xbox One", "Windows"}, {"Xbox", "Windows"}, }; /* Get the Android code name (if applicable). * * On error, the given name is allocated and returned. * On success, the matching Android codename is allocated and * returned. */ static char * get_real_android (const char *droid) { if (strstr (droid, "16")) return alloc_string ("Android 16"); else if (strstr (droid, "15")) return alloc_string ("Android 15"); else if (strstr (droid, "14")) return alloc_string ("Android 14"); else if (strstr (droid, "13")) return alloc_string ("Android 13"); else if (strstr (droid, "12.1")) return alloc_string ("Android 12.1"); else if (strstr (droid, "12")) return alloc_string ("Android 12"); else if (strstr (droid, "11")) return alloc_string ("Android 11"); else if (strstr (droid, "10")) return alloc_string ("Android 10"); else if (strstr (droid, "9")) return alloc_string ("Pie 9"); else if (strstr (droid, "8.1")) return alloc_string ("Oreo 8.1"); else if (strstr (droid, "8.0")) return alloc_string ("Oreo 8.0"); else if (strstr (droid, "7.1")) return alloc_string ("Nougat 7.1"); else if (strstr (droid, "7.0")) return alloc_string ("Nougat 7.0"); else if (strstr (droid, "6.0.1")) return alloc_string ("Marshmallow 6.0.1"); else if (strstr (droid, "6.0")) return alloc_string ("Marshmallow 6.0"); else if (strstr (droid, "5.1")) return alloc_string ("Lollipop 5.1"); else if (strstr (droid, "5.0")) return alloc_string ("Lollipop 5.0"); else if (strstr (droid, "4.4")) return alloc_string ("KitKat 4.4"); else if (strstr (droid, "4.3")) return alloc_string ("Jelly Bean 4.3"); else if (strstr (droid, "4.2")) return alloc_string ("Jelly Bean 4.2"); else if (strstr (droid, "4.1")) return alloc_string ("Jelly Bean 4.1"); else if (strstr (droid, "4.0")) return alloc_string ("Ice Cream Sandwich 4.0"); else if (strstr (droid, "3.")) return alloc_string ("Honeycomb 3"); else if (strstr (droid, "2.3")) return alloc_string ("Gingerbread 2.3"); else if (strstr (droid, "2.2")) return alloc_string ("Froyo 2.2"); else if (strstr (droid, "2.0") || strstr (droid, "2.1")) return alloc_string ("Eclair 2"); else if (strstr (droid, "1.6")) return alloc_string ("Donut 1.6"); else if (strstr (droid, "1.5")) return alloc_string ("Cupcake 1.5"); return alloc_string (droid); } /* Get the Windows marketing name (if applicable). * * On error, the given name is allocated and returned. * On success, the matching Windows marketing name is allocated and * returned. */ static char * get_real_win (const char *win) { if (strstr (win, "11.0")) return alloc_string ("Windows 11"); else if (strstr (win, "10.0")) return alloc_string ("Windows 10"); else if (strstr (win, "6.3")) return alloc_string ("Windows 8.1"); else if (strstr (win, "6.2")) return alloc_string ("Windows 8"); else if (strstr (win, "6.1")) return alloc_string ("Windows 7"); else if (strstr (win, "6.0")) return alloc_string ("Windows Vista"); else if (strstr (win, "5.2")) return alloc_string ("Windows XP x64"); else if (strstr (win, "5.1")) return alloc_string ("Windows XP"); else if (strstr (win, "5.0")) return alloc_string ("Windows 2000"); return NULL; } /* Get the Mac OS X code name (if applicable). * * On error, the given name is allocated and returned. * On success, the matching Mac OS X codename is allocated and * returned. */ static char * get_real_mac_osx (const char *osx) { if (strstr (osx, "26.0") || strstr (osx, "Tahoe")) return alloc_string ("macOS 26 Tahoe"); else if (strstr (osx, "15.0") || strstr (osx, "Sequoia")) return alloc_string ("macOS 15 Sequoia"); else if (strstr (osx, "14.0") || strstr (osx, "Sonoma")) return alloc_string ("macOS 14 Sonoma"); else if (strstr (osx, "13.0") || strstr (osx, "Ventura")) return alloc_string ("macOS 13 Ventura"); else if (strstr (osx, "12.0") || strstr (osx, "Monterey")) return alloc_string ("macOS 12 Monterey"); else if (strstr (osx, "11.0") || strstr (osx, "Big Sur")) return alloc_string ("macOS 11 Big Sur"); else if (strstr (osx, "10.15")) /* Catalina */ return alloc_string ("macOS 10.15 Catalina"); else if (strstr (osx, "10.14")) /* Mojave */ return alloc_string ("macOS 10.14 Mojave"); else if (strstr (osx, "10.13")) /* High Sierra */ return alloc_string ("macOS 10.13 High Sierra"); else if (strstr (osx, "10.12")) /* Sierra */ return alloc_string ("macOS 10.12 Sierra"); else if (strstr (osx, "10.11")) /* El Capitan */ return alloc_string ("OS X 10.11 El Capitan"); else if (strstr (osx, "10.10")) /* Yosemite */ return alloc_string ("OS X 10.10 Yosemite"); else if (strstr (osx, "10.9")) /* Mavericks */ return alloc_string ("OS X 10.9 Mavericks"); else if (strstr (osx, "10.8")) /* Mountain Lion */ return alloc_string ("OS X 10.8 Mountain Lion"); else if (strstr (osx, "10.7")) /* Lion */ return alloc_string ("OS X 10.7 Lion"); else if (strstr (osx, "10.6")) /* Snow Leopard */ return alloc_string ("OS X 10.6 Snow Leopard"); else if (strstr (osx, "10.5")) /* Leopard */ return alloc_string ("OS X 10.5 Leopard"); else if (strstr (osx, "10.4")) /* Tiger */ return alloc_string ("OS X 10.4 Tiger"); else if (strstr (osx, "10.3")) /* Panther */ return alloc_string ("OS X 10.3 Panther"); else if (strstr (osx, "10.2")) /* Jaguar */ return alloc_string ("OS X 10.2 Jaguar"); else if (strstr (osx, "10.1")) /* Puma */ return alloc_string ("OS X 10.1 Puma"); else if (strstr (osx, "10.0")) /* Cheetah */ return alloc_string ("OS X 10.0 Cheetah"); return alloc_string (osx); } /* Parse all other operating systems. * * On error, the given name is returned. * On success, the parsed OS is returned. */ static char * parse_others (char *agent, int spaces) { char *p; int space = 0; p = agent; /* assume the following chars are within the given agent */ while (*p != ';' && *p != ')' && *p != '(' && *p != '\0') { if (*p == ' ') space++; if (space > spaces) break; p++; } *p = 0; return agent; } /* Parse iOS string including version number. * * On error, the matching token is returned (no version). * On success, the parsed iOS is returned. */ static char * parse_ios (char *agent, int tlen) { char *p = NULL, *q = NULL; ptrdiff_t offset; if ((p = strstr (agent, " OS ")) == NULL) goto out; if ((offset = p - agent) <= 0) goto out; if ((q = strstr (p, " like Mac")) == NULL) goto out; *q = 0; memmove (agent + tlen, agent + offset, offset); return char_replace (agent, '_', '.'); out: agent[tlen] = 0; return agent; } /* Parse a Mac OS X string. * * On error, the given name is returned. * On success, the parsed Mac OS X is returned. */ static char * parse_osx (char *agent) { int space = 0; char *p; p = agent; /* assume the following chars are within the given agent */ while (*p != ';' && *p != ')' && *p != '(' && *p != '\0') { if (*p == '_') *p = '.'; if (*p == ' ') space++; if (space > 3) break; p++; } *p = 0; return agent; } /* Parse an Android string. * * On error, the given name is returned. * On success, the parsed Android is returned. */ static char * parse_android (char *agent) { char *p; p = agent; /* assume the following chars are within the given agent */ while (*p != ';' && *p != ')' && *p != '(' && *p != '\0') p++; *p = 0; return agent; } /* Attempt to parse specific OS. * * On success, a malloc'd string containing the OS is returned. */ static char * parse_os (char *str, char *tkn, char *os_type, int idx) { char *b; int spaces = 0; xstrncpy (os_type, os[idx][1], OPESYS_TYPE_LEN); /* Windows */ if ((strstr (str, "Windows")) != NULL) return conf.real_os && (b = get_real_win (tkn)) ? b : xstrdup (os[idx][0]); /* Android */ if ((strstr (tkn, "Android")) != NULL) { tkn = parse_android (tkn); return conf.real_os ? get_real_android (tkn) : xstrdup (tkn); } /* iOS */ if ((strstr (tkn, "CFNetwork")) != NULL) { if ((b = strchr (str, ' '))) *b = 0; return xstrdup (str); } if (strstr (tkn, "iPad") || strstr (tkn, "iPod")) return xstrdup (parse_ios (tkn, 4)); if (strstr (tkn, "iPhone")) return xstrdup (parse_ios (tkn, 6)); /* Mac OS X */ if (strstr (tkn, "OS X") || strstr (tkn, "macOS")) { tkn = parse_osx (tkn); return conf.real_os ? get_real_mac_osx (tkn) : xstrdup (tkn); } /* Darwin - capture the first part of agents such as: * Slack/248000 CFNetwork/808.0.2 Darwin/16.0.0 */ if ((strstr (tkn, "Darwin")) != NULL) { if ((b = strchr (str, ' '))) *b = 0; return xstrdup (str); } /* all others */ spaces = count_matches (os[idx][0], ' '); return alloc_string (parse_others (tkn, spaces)); } /* Given a user agent, determine the operating system used. * * ###NOTE: The size of the list is proportional to the run time, * which makes this pretty slow * * On error, NULL is returned. * On success, a malloc'd string containing the OS is returned. */ char * verify_os (char *str, char *os_type) { char *a; size_t i; if (str == NULL || *str == '\0') return NULL; str = char_replace (str, '+', ' '); for (i = 0; i < ARRAY_SIZE (os); i++) { if ((a = strstr (str, os[i][0])) != NULL) return parse_os (str, a, os_type, i); } if (conf.unknowns_as_crawlers && strcmp (os_type, "Crawlers")) xstrncpy (os_type, "Crawlers", OPESYS_TYPE_LEN); else xstrncpy (os_type, "Unknown", OPESYS_TYPE_LEN); if (conf.unknowns_log) LOG_UNKNOWNS (("%-7s%s\n", "[OS]", str)); return alloc_string ("Unknown"); } ================================================ FILE: src/opesys.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef OPESYS_H_INCLUDED #define OPESYS_H_INCLUDED #define OPESYS_TYPE_LEN 10 /* Each OS contains the number of hits and the OS's type */ typedef struct GOpeSys_ { char os_type[OPESYS_TYPE_LEN]; int hits; } GOpeSys; char *verify_os (char *str, char *os_type); #endif ================================================ FILE: src/options.c ================================================ /** * options.c -- functions related to parsing program options * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <getopt.h> #include <errno.h> #include <sys/stat.h> #ifdef HAVE_LIBGEOIP #include <GeoIP.h> #endif #include "options.h" #include "error.h" #include "labels.h" #include "util.h" #include "wsauth.h" #include "xmalloc.h" static const char *short_options = "b:e:f:j:l:o:p:H:M:S:" #ifdef HAVE_LIBGEOIP "g" #endif "acdhimqrsV"; /* *INDENT-OFF* */ static const struct option long_opts[] = { {"agent-list" , no_argument , 0 , 'a' } , {"browsers-file" , required_argument , 0 , 'b' } , {"config-dialog" , no_argument , 0 , 'c' } , {"config-file" , required_argument , 0 , 'p' } , {"debug-file" , required_argument , 0 , 'l' } , {"exclude-ip" , required_argument , 0 , 'e' } , #ifdef HAVE_LIBGEOIP {"std-geoip" , no_argument , 0 , 'g' } , #endif {"help" , no_argument , 0 , 'h' } , {"hl-header" , no_argument , 0 , 'i' } , {"http-method" , required_argument , 0 , 'M' } , {"http-protocol" , required_argument , 0 , 'H' } , {"jobs" , required_argument , 0 , 'j' } , {"log-file" , required_argument , 0 , 'f' } , {"log-size" , required_argument , 0 , 'S' } , {"no-query-string" , no_argument , 0 , 'q' } , {"no-term-resolver" , no_argument , 0 , 'r' } , {"output" , required_argument , 0 , 'o' } , {"storage" , no_argument , 0 , 's' } , {"version" , no_argument , 0 , 'V' } , {"with-mouse" , no_argument , 0 , 'm' } , {"with-output-resolver" , no_argument , 0 , 'd' } , {"444-as-404" , no_argument , 0 , 0 } , {"4xx-to-unique-count" , no_argument , 0 , 0 } , {"addr" , required_argument , 0 , 0 } , {"unix-socket" , required_argument , 0 , 0 } , {"all-static-files" , no_argument , 0 , 0 } , {"anonymize-ip" , no_argument , 0 , 0 } , {"anonymize-level" , required_argument , 0 , 0 } , {"color" , required_argument , 0 , 0 } , {"color-scheme" , required_argument , 0 , 0 } , {"crawlers-only" , no_argument , 0 , 0 } , {"chunk-size" , required_argument , 0 , 0 } , {"daemonize" , no_argument , 0 , 0 } , {"datetime-format" , required_argument , 0 , 0 } , {"date-format" , required_argument , 0 , 0 } , {"date-spec" , required_argument , 0 , 0 } , {"db-path" , required_argument , 0 , 0 } , {"fname-as-vhost" , required_argument , 0 , 0 } , {"dcf" , no_argument , 0 , 0 } , {"double-decode" , no_argument , 0 , 0 } , {"external-assets" , no_argument , 0 , 0 } , {"enable-panel" , required_argument , 0 , 0 } , {"fifo-in" , required_argument , 0 , 0 } , {"fifo-out" , required_argument , 0 , 0 } , {"hide-referrer" , required_argument , 0 , 0 } , {"hour-spec" , required_argument , 0 , 0 } , {"html-custom-css" , required_argument , 0 , 0 } , {"html-custom-js" , required_argument , 0 , 0 } , {"html-prefs" , required_argument , 0 , 0 } , {"html-report-title" , required_argument , 0 , 0 } , {"ignore-crawlers" , no_argument , 0 , 0 } , {"ignore-panel" , required_argument , 0 , 0 } , {"ignore-referrer" , required_argument , 0 , 0 } , {"ignore-statics" , required_argument , 0 , 0 } , {"ignore-status" , required_argument , 0 , 0 } , {"invalid-requests" , required_argument , 0 , 0 } , {"unknowns-log" , required_argument , 0 , 0 } , {"json-pretty-print" , no_argument , 0 , 0 } , {"keep-last" , required_argument , 0 , 0 } , {"html-refresh" , required_argument , 0 , 0 } , {"log-format" , required_argument , 0 , 0 } , {"max-items" , required_argument , 0 , 0 } , {"no-color" , no_argument , 0 , 0 } , {"no-strict-status" , no_argument , 0 , 0 } , {"no-csv-summary" , no_argument , 0 , 0 } , {"no-global-config" , no_argument , 0 , 0 } , {"no-html-last-updated" , no_argument , 0 , 0 } , {"no-ip-validation" , no_argument , 0 , 0 } , {"no-parsing-spinner" , no_argument , 0 , 0 } , {"no-progress" , no_argument , 0 , 0 } , {"no-tab-scroll" , no_argument , 0 , 0 } , {"num-tests" , required_argument , 0 , 0 } , {"origin" , required_argument , 0 , 0 } , {"output-format" , required_argument , 0 , 0 } , {"persist" , no_argument , 0 , 0 } , {"pid-file" , required_argument , 0 , 0 } , {"port" , required_argument , 0 , 0 } , {"process-and-exit" , no_argument , 0 , 0 } , {"real-os" , no_argument , 0 , 0 } , {"real-time-html" , no_argument , 0 , 0 } , {"restore" , no_argument , 0 , 0 } , {"sort-panel" , required_argument , 0 , 0 } , {"static-file" , required_argument , 0 , 0 } , {"tz" , required_argument , 0 , 0 } , {"unknowns-as-crawlers" , no_argument , 0 , 0 } , {"user-name" , required_argument , 0 , 0 } , #ifdef HAVE_LIBSSL {"ssl-cert" , required_argument , 0 , 0 } , {"ssl-key" , required_argument , 0 , 0 } , #endif {"time-format" , required_argument , 0 , 0 } , {"ws-url" , required_argument , 0 , 0 } , #ifdef HAVE_LIBSSL {"ws-auth" , required_argument , 0 , 0 } , {"ws-auth-expire" , required_argument , 0 , 0 } , {"ws-auth-url" , required_argument , 0 , 0 } , {"ws-auth-refresh-url" , required_argument , 0 , 0 } , #endif {"ping-interval" , required_argument , 0 , 0 } , #ifdef HAVE_GEOLOCATION {"geoip-database" , required_argument , 0 , 0 } , #endif {"concat-vhost-req" , no_argument , 0 , 0 } , {0, 0, 0, 0} }; /* Command line help. */ void cmd_help (void) { printf ("\nGoAccess - %s\n\n", GO_VERSION); printf ( "Usage: " "goaccess [filename] [ options ... ] [-c][-M][-H][-S][-q][-d][...]\n" "%s:\n\n", INFO_HELP_FOLLOWING_OPTS); printf ( /* Log & Date Format Options */ CYN "LOG & DATE FORMAT OPTIONS" RESET "\n\n" " --log-format=<logformat> - Specify log format. Inner quotes need\n" " escaping, or use single quotes.\n" " --date-format=<dateformat> - Specify log date format. e.g., %%d/%%b/%%Y\n" " --time-format=<timeformat> - Specify log time format. e.g., %%H:%%M:%%S\n" " --datetime-format=<dt-format> - Specify log date and time format. e.g.,\n" " %%d/%%b/%%Y %%H:%%M:%%S %%z\n" "\n" /* User Interface Options */ CYN "USER INTERFACE OPTIONS" RESET "\n\n" " -c --config-dialog - Prompt log/date/time configuration window.\n" " -i --hl-header - Color highlight active panel.\n" " -m --with-mouse - Enable mouse support on main dashboard.\n" " --color=<fg:bg[attrs, PANEL]> - Specify custom colors. See manpage for more\n" " details.\n" " --color-scheme=<1|2|3> - Schemes: 1 => Grey, 2 => Green, 3 =>\n" " Monokai.\n" " --html-custom-css=<path.css> - Specify a custom CSS file in the HTML\n" " report.\n" " --html-custom-js=<path.js> - Specify a custom JS file in the HTML\n" " report.\n" " --html-prefs=<json_obj> - Set default HTML report preferences.\n" " --html-report-title=<title> - Set HTML report page title and header.\n" " --html-refresh=<secs> - Refresh HTML report every X seconds (>=1 or\n" " <=60).\n" " --json-pretty-print - Format JSON output w/ tabs & newlines.\n" " --max-items - Maximum number of items to show per panel.\n" " See man page for limits.\n" " --no-color - Disable colored output.\n" " --no-column-names - Don't write column names in term output.\n" " --no-csv-summary - Disable summary metrics on the CSV output.\n" " --no-html-last-updated - Hide HTML last updated field.\n" " --no-parsing-spinner - Disable progress metrics and parsing\n" " spinner.\n" " --no-progress - Disable progress metrics.\n" " --no-tab-scroll - Disable scrolling through panels on TAB.\n" " --tz=<timezone> - Use the specified timezone (canonical name,\n" " e.g., America/Chicago).\n" "\n" "" /* Server Options */ CYN "SERVER OPTIONS" RESET "\n\n" " --addr=<addr> - Specify IP address to bind server to.\n" " --unix-socket=<addr> - Specify UNIX-domain socket address to bind\n" " server to.\n" " --daemonize - Run as daemon (if --real-time-html\n" " enabled).\n" " --fifo-in=<path> - Path to read named pipe (FIFO).\n" " --fifo-out=<path> - Path to write named pipe (FIFO).\n" " --origin=<addr> - Ensure clients send this origin header upon\n" " the WebSocket handshake.\n" " --pid-file=<path> - Write PID to a file when --daemonize is\n" " used.\n" " --port=<port> - Specify the port to use.\n" " --real-time-html - Enable real-time HTML output.\n" " --ssl-cert=<cert.crt> - Path to TLS/SSL certificate.\n" " --ssl-key=<priv.key> - Path to TLS/SSL private key.\n" " --user-name=<username> - Run as the specified user.\n" " --ws-url=<url> - URL to which the WebSocket server responds.\n" #ifdef HAVE_LIBSSL " --ws-auth=<jwt[:secret]> - Enables WebSocket authentication using a\n" " JSON Web Token (JWT). Optionally, a secret key\n" " can be provided for verification.\n" " --ws-auth-expire=<secs> - Time after which the JWT expires.\n" " --ws-auth-url=<url> - URL to fetch the initial JWT .\n" " e.g., https://site.com/api/get-auth-token\n" " --ws-auth-refresh-url=<url> - URL to fetch a new JWT when initial expires.\n" " e.g., https://site.com/api/refresh-token\n" #endif " --ping-interval=<secs> - Enable WebSocket ping with specified\n" " interval in seconds.\n" "\n" "" /* File Options */ CYN "FILE OPTIONS" RESET "\n\n" " - - The log file to parse is read from stdin.\n" " -f --log-file=<filename> - Path to input log file.\n" " -l --debug-file=<filename> - Send all debug messages to the specified\n" " file.\n" " -p --config-file=<filename> - Custom configuration file.\n" " -S --log-size=<number> - Specify the log size, useful when piping in\n" " logs.\n" " --external-assets - Output HTML assets to external JS/CSS files.\n" " --invalid-requests=<filename> - Log invalid requests to the specified file.\n" " --no-global-config - Don't load global configuration file.\n" " --unknowns-log=<filename> - Log unknown browsers and OSs to the\n" " specified file.\n" "\n" "" /* Parse Options */ CYN "PARSE OPTIONS" RESET "\n\n" " -a --agent-list - Enable a list of user-agents by host.\n" " -b --browsers-file=<path> - Use additional custom list of browsers.\n" " -d --with-output-resolver - Enable IP resolver on HTML|JSON output.\n" " -e --exclude-ip=<IP> - Exclude one or multiple IPv4/6. Allows IP\n" " ranges. e.g., 192.168.0.1-192.168.0.10\n" " -j --jobs=<1-6> - Thread count for parsing log. Defaults to 1.\n" " The use of 2-4 threads is recommended.\n" " -H --http-protocol=<yes|no> - Set/unset HTTP request protocol if found.\n" " -M --http-method=<yes|no> - Set/unset HTTP request method if found.\n" " -o --output=<format|filename> - Output to stdout or the specified file.\n" " e.g., -o csv, -o out.json, --output=report.html\n" " -q --no-query-string - Strip request's query string. This can\n" " decrease memory consumption.\n" " -r --no-term-resolver - Disable IP resolver on terminal output.\n" " --444-as-404 - Treat non-standard status code 444 as 404.\n" " --4xx-to-unique-count - Add 4xx client errors to the unique\n" " visitors count.\n" " --all-static-files - Include static files with a query string.\n" " --anonymize-ip - Anonymize IP addresses before outputting to\n" " report.\n" " --anonymize-level=<1|2|3> - Anonymization levels: 1 => default, 2 =>\n" " strong, 3 => pedantic.\n" " --chunk-size=<256-32768> - Number of lines processed in each data chunk\n" " for parallel execution. Default is 1024.\n" " --crawlers-only - Parse and display only crawlers.\n" " --date-spec=<date|hr|min> - Date specificity. Possible values: `date`\n" " (default), `hr` or `min`.\n" " --db-path=<path> - Persist data to disk on exit to the given\n" " path or /tmp as default.\n" " --double-decode - Decode double-encoded values.\n" " --enable-panel=<PANEL> - Enable parsing/displaying the given panel.\n" " --fname-as-vhost=<regex> - Use log filename(s) as virtual host(s).\n" " POSIX regex is passed to extract virtual\n" " host.\n" " --hide-referrer=<NEEDLE> - Hide a referrer but still count it. Wild\n" " cards are allowed. i.e., *.bing.com\n" " --hour-spec=<hr|min> - Hour specificity. Possible values: `hr`\n" " (default) or `min` (tenth of a min).\n" " --ignore-crawlers - Ignore crawlers.\n" " --ignore-panel=<PANEL> - Ignore parsing/displaying the given panel.\n" " --ignore-referrer=<NEEDLE> - Ignore a referrer from being counted. Wild\n" " cards are allowed. i.e., *.bing.com\n" " --ignore-statics=<req|panel> - Ignore static requests.\n" " req => Ignore from valid requests.\n" " panel => Ignore from valid requests and\n" " panels.\n" " --ignore-status=<CODE> - Ignore parsing the given status code.\n" " --keep-last=<NDAYS> - Keep the last NDAYS in storage.\n" " --no-ip-validation - Disable client IPv4/6 validation.\n" " --no-strict-status - Disable HTTP status code validation.\n" " --num-tests=<number> - Number of lines to test. >= 0 (10 default)\n" " --persist - Persist data to disk on exit to the given\n" " --db-path or to /tmp.\n" " --process-and-exit - Parse log and exit without outputting data.\n" " --real-os - Display real OS names. e.g, Windows XP,\n" " Snow Leopard.\n" " --restore - Restore data from disk from the given\n" " --db-path or from /tmp.\n" " --sort-panel=PANEL,METRIC,ORDER - Sort panel on initial load. e.g.,\n" " --sort-panel=VISITORS,BY_HITS,ASC.\n" " See manpage for a list of panels/fields.\n" " --static-file=<extension> - Add static file extension. e.g.: .mp3.\n" " Extensions are case sensitive.\n" " --unknowns-as-crawlers - Classify unknown OS and browsers as crawlers.\n" "\n" /* GeoIP Options */ #ifdef HAVE_GEOLOCATION CYN "GEOIP OPTIONS" RESET "\n\n" #ifdef HAVE_LIBGEOIP " -g --std-geoip - Standard GeoIP database for less memory\n" " consumption (legacy DB).\n" #endif " --geoip-database=<path> - Specify path to GeoIP database file.\n" " i.e., GeoLiteCity.dat, GeoIPv6.dat ...\n" "\n" #endif /* Other Options */ CYN "OTHER OPTIONS" RESET "\n\n" " -h --help - This help.\n" " -s --storage - Display current storage method. e.g., Hash.\n" " -V --version - Display version information and exit.\n" " --dcf - Display the path of the default config file\n" " when `-p` is not used.\n" "\n" "%s `man goaccess`.\n\n" "%s: %s\n" "GoAccess Copyright (C) 2009-2020 by Gerardo Orellana" "\n\n" , INFO_HELP_EXAMPLES, INFO_MORE_INFO, GO_WEBSITE ); exit (EXIT_FAILURE); } /* *INDENT-ON* */ /* Push a command line option to the given array if within bounds and if it's * not in the array. */ static void set_array_opt (const char *oarg, const char *arr[], int *size, int max) { if (str_inarray (oarg, arr, *size) < 0 && *size < max) arr[(*size)++] = oarg; } #ifdef HAVE_LIBSSL /* * parse_ws_auth_expire_option: * Parses a time duration string and converts it to seconds. * * Supported formats: * "3600" -> 3600 seconds * "24h" -> 24 hours = 24 * 3600 seconds * "10m" -> 10 minutes = 10 * 60 seconds * "10d" -> 10 days = 10 * 86400 seconds * * Returns 0 on success, nonzero on failure. */ static int parse_ws_auth_expire_option (const char *input) { char *endptr = NULL; double value = 0, multiplier = 0, total_seconds = 0; if (!input || *input == '\0') return -1; // Empty or NULL string value = strtod (input, &endptr); if (endptr == input) { // No conversion could be performed return -1; } multiplier = 1.0; /* Skip any whitespace after the number */ while (isspace ((unsigned char) *endptr)) endptr++; if (*endptr != '\0') { /* Expect a single unit character; any extra characters are not allowed */ char unit = *endptr; endptr++; while (isspace ((unsigned char) *endptr)) endptr++; if (*endptr != '\0') { // Extra unexpected characters return -1; } switch (unit) { case 's': case 'S': multiplier = 1.0; break; case 'm': case 'M': multiplier = 60.0; break; case 'h': case 'H': multiplier = 3600.0; break; case 'd': case 'D': multiplier = 86400.0; break; default: // Unknown unit return -1; } } total_seconds = value * multiplier; if (total_seconds < 0) return -1; // Negative durations are not allowed /* Store the result in your global configuration */ conf.ws_auth_expire = (long) total_seconds; return 0; } /** * Reads a JWT secret from a file path * @param path File path containing the secret * @return 0 on success, 1 on failure */ static int parse_jwt_from_file (const char *path) { conf.ws_auth_secret = read_secret_from_file (path); if (conf.ws_auth_secret == NULL) { fprintf (stderr, "Failed to read secret from file: %s\n", path); return 1; } conf.ws_auth_verify_only = 1; return 0; } /** * Retrieves a JWT secret from an environment variable * @param env_var Environment variable name (without '$' prefix) * @return 0 on success, 1 on failure */ static int parse_jwt_from_env (const char *env_var) { const char *env_secret = getenv (env_var); if (env_secret != NULL) { conf.ws_auth_secret = strdup (env_secret); conf.ws_auth_verify_only = 1; return 0; } fprintf (stderr, "Environment variable %s not found\n", env_var); return 1; } /** * Handles the 'verify:' prefix for JWT authentication * @param secret_spec Secret specification string * @return 0 on success, 1 on failure */ static int parse_jwt_verify_option (const char *secret_spec) { /* First try to read from file */ if (access (secret_spec, F_OK) == 0) { return parse_jwt_from_file (secret_spec); } /* Then try environment variable if path contains '$' */ if (*secret_spec == '$') { return parse_jwt_from_env (secret_spec + 1); } /* Finally use as direct secret string */ conf.ws_auth_verify_only = 1; conf.ws_auth_secret = strdup (secret_spec); return 0; } /** * Handles the legacy JWT format without 'verify:' prefix * @param remainder String after 'jwt:' prefix * @return 0 on success */ static int parse_legacy_jwt_option (const char *remainder) { if (access (remainder, F_OK) == 0) { conf.ws_auth_secret = read_secret_from_file (remainder); } else { conf.ws_auth_secret = strdup (remainder); } return 0; } /** * Handles the plain 'jwt' option with no additional parameters * @return 0 on success */ static int parse_plain_jwt_option (void) { /* Try to get secret from environment variable */ const char *env_secret = getenv ("GOACCESS_WSAUTH_SECRET"); if (env_secret != NULL) { conf.ws_auth_secret = strdup (env_secret); } else { /* Fallback to generating a secret */ conf.ws_auth_secret = generate_ws_auth_secret (); } return 0; } /** * Options: * # Read secret from file * --ws-auth="jwt:verify:/etc/ws_secret.txt" * * # Get secret from environment variable * --ws-auth="jwt:verify:$GOACCESS_WSAUTH_SECRET" * * # Use direct secret string * --ws-auth="jwt:verify:my_super_secret_key" * * # Legacy formats still work * --ws-auth="jwt:/path/to/secret" * --ws-auth="jwt:super_secret_key" * --ws-auth="jwt" // generate one * * Parses websocket authentication options * @param optarg Option argument string * @return 0 on success, 1 on failure/invalid option */ static int parse_ws_auth_option (const char *optarg) { /* Handle cases where it starts with "jwt:" */ const char *remainder = NULL; /* First check for plain "jwt" option (no colon) */ if (strcmp (optarg, "jwt") == 0) return parse_plain_jwt_option (); /* If it doesn't start with "jwt:", it's invalid */ if (strncmp (optarg, "jwt:", 4) != 0) return 1; /* Handle cases where it starts with "jwt:" */ remainder = optarg + 4; /* If the remainder is exactly "verify", that's reserved – error out */ if (strcmp (remainder, "verify") == 0) return 1; /* Check for "verify:" prefix */ if (strncmp (remainder, "verify:", 7) == 0) { // Ensure that there is a secret specification after "verify:" if (remainder[7] == '\0') { return 1; /* "verify:" with nothing following is invalid */ } return parse_jwt_verify_option (remainder + 7); } /* Legacy jwt:secret format */ return parse_legacy_jwt_option (remainder); } static int validate_url_basic (const char *url) { /* Check for NULL */ if (!url) return 0; /* Check for http:// or https:// protocol */ if (strncmp (url, "http://", 7) == 0) { /* Make sure there's something after http:// */ return url[7] != '\0'; } else if (strncmp (url, "https://", 8) == 0) { /* Make sure there's something after https:// */ return url[8] != '\0'; } return 0; /* No valid protocol */ } #endif /* Parse command line long options. */ static void parse_long_opt (const char *name, const char *oarg) { if (!strcmp ("no-global-config", name)) return; /* LOG & DATE FORMAT OPTIONS * ========================= */ /* datetime format */ if (!strcmp ("datetime-format", name) && !conf.date_format && !conf.time_format) { set_date_format_str (oarg); set_time_format_str (oarg); } /* log format */ if (!strcmp ("log-format", name)) set_log_format_str (oarg); /* time format */ if (!strcmp ("time-format", name)) set_time_format_str (oarg); /* date format */ if (!strcmp ("date-format", name)) set_date_format_str (oarg); /* USER INTERFACE OPTIONS * ========================= */ /* colors */ if (!strcmp ("color", name)) set_array_opt (oarg, conf.colors, &conf.color_idx, MAX_CUSTOM_COLORS); /* color scheme */ if (!strcmp ("color-scheme", name)) conf.color_scheme = atoi (oarg); /* html custom CSS */ if (!strcmp ("html-custom-css", name)) { if (strpbrk (oarg, "&\"'<>")) FATAL ("Invalid filename. The following chars are not allowed in filename: [\"'&<>]\n"); conf.html_custom_css = oarg; } /* html custom JS */ if (!strcmp ("html-custom-js", name)) { if (strpbrk (oarg, "&\"'<>")) FATAL ("Invalid filename. The following chars are not allowed in filename: [\"'&<>]\n"); conf.html_custom_js = oarg; } /* html JSON object containing default preferences */ if (!strcmp ("html-prefs", name)) conf.html_prefs = oarg; /* html report title */ if (!strcmp ("html-report-title", name)) conf.html_report_title = oarg; /* json pretty print */ if (!strcmp ("json-pretty-print", name)) conf.json_pretty_print = 1; /* max items */ if (!strcmp ("max-items", name)) { char *sEnd; int max = strtol (oarg, &sEnd, 10); if (oarg == sEnd || *sEnd != '\0' || errno == ERANGE) conf.max_items = 1; else conf.max_items = max; } /* no color */ if (!strcmp ("no-color", name)) conf.no_color = 1; /* no strict status */ if (!strcmp ("no-strict-status", name)) conf.no_strict_status = 1; /* no csv summary */ if (!strcmp ("no-csv-summary", name)) conf.no_csv_summary = 1; /* no parsing spinner */ if (!strcmp ("no-parsing-spinner", name)) conf.no_parsing_spinner = 1; /* no progress */ if (!strcmp ("no-progress", name)) conf.no_progress = 1; /* no tab scroll */ if (!strcmp ("no-tab-scroll", name)) conf.no_tab_scroll = 1; /* no html last updated field */ if (!strcmp ("no-html-last-updated", name)) conf.no_html_last_updated = 1; /* SERVER OPTIONS * ========================= */ /* address to bind to */ if (!strcmp ("addr", name)) conf.addr = oarg; /* unix socket to use */ if (!strcmp ("unix-socket", name)) conf.unix_socket = oarg; /* FIFO in (read) */ if (!strcmp ("fifo-in", name)) conf.fifo_in = oarg; /* FIFO out (write) */ if (!strcmp ("fifo-out", name)) conf.fifo_out = oarg; /* run program as a Unix daemon */ if (!strcmp ("daemonize", name)) conf.daemonize = 1; if (!strcmp ("user-name", name)) conf.username = oarg; /* WebSocket origin */ if (!strcmp ("origin", name)) conf.origin = oarg; /* PID file to write */ if (!strcmp ("pid-file", name)) conf.pidfile = oarg; /* port to use */ if (!strcmp ("port", name)) { int port = strtol (oarg, NULL, 10); if (port < 0 || port > 65535) LOG_DEBUG (("Invalid port.")); else conf.port = oarg; } /* real time HTML */ if (!strcmp ("real-time-html", name)) conf.real_time_html = 1; /* persist data to disk */ if (!strcmp ("persist", name)) conf.persist = 1; /* restore data from disk */ if (!strcmp ("restore", name)) conf.restore = 1; /* TLS/SSL certificate */ if (!strcmp ("ssl-cert", name)) { // Check if the SSL certificate file exists and is readable if (access (oarg, F_OK) != 0) FATAL ("SSL certificate file does not exist"); if (access (oarg, R_OK) != 0) FATAL ("SSL certificate file is not accessible"); conf.sslcert = oarg; } /* TLS/SSL private key */ if (!strcmp ("ssl-key", name)) { // Check if the SSL private key file exists and is readable if (access (oarg, F_OK) != 0) FATAL ("SSL key file does not exist"); if (access (oarg, R_OK) != 0) FATAL ("SSL key file is not accessible"); conf.sslkey = oarg; } /* timezone */ if (!strcmp ("tz", name)) conf.tz_name = oarg; /* URL to which the WebSocket server responds. */ if (!strcmp ("ws-url", name)) conf.ws_url = oarg; #ifdef HAVE_LIBSSL /* WebSocket auth */ if (!strcmp ("ws-auth", name) && parse_ws_auth_option (oarg) != 0) FATAL ("Invalid --ws-auth option."); /* WebSocket auth JWT expires */ if (!strcmp ("ws-auth-expire", name) && parse_ws_auth_expire_option (oarg) != 0) FATAL ("Invalid --ws-auth-expire option."); /* WebSocket auth JWT URL */ if (!strcmp ("ws-auth-url", name)) { if (validate_url_basic (oarg) == 0) FATAL ("Invalid --ws-auth-url option (check URL validity)."); conf.ws_auth_url = oarg; } /* WebSocket auth JWT URL refresh */ if (!strcmp ("ws-auth-refresh-url", name)) { if (validate_url_basic (oarg) == 0) FATAL ("Invalid --ws-auth-refresh-url option (check URL validity)."); conf.ws_auth_refresh_url = oarg; } #endif /* WebSocket ping interval in seconds */ if (!strcmp ("ping-interval", name)) conf.ping_interval = oarg; /* FILE OPTIONS * ========================= */ /* invalid requests */ if (!strcmp ("invalid-requests", name)) { conf.invalid_requests_log = oarg; invalid_log_open (conf.invalid_requests_log); } /* unknowns */ if (!strcmp ("unknowns-log", name)) { conf.unknowns_log = oarg; unknowns_log_open (conf.unknowns_log); } /* output file */ if (!strcmp ("output-format", name)) FATAL ("The option --output-format is deprecated, please use --output instead."); /* PARSE OPTIONS * ========================= */ /* 444 as 404 */ if (!strcmp ("444-as-404", name)) conf.code444_as_404 = 1; /* 4xx to unique count */ if (!strcmp ("4xx-to-unique-count", name)) conf.client_err_to_unique_count = 1; /* anonymize ip */ if (!strcmp ("anonymize-ip", name)) conf.anonymize_ip = 1; /* anonymization level */ if (!strcmp ("anonymize-level", name)) conf.anonymize_level = atoi (oarg); /* all static files */ if (!strcmp ("all-static-files", name)) conf.all_static_files = 1; /* chunk size */ if (!strcmp ("chunk-size", name)) { /* Recommended chunk size is 256 - 32768, hard limit is 32 - 1048576. */ conf.chunk_size = atoi (oarg); if (conf.chunk_size < 32) FATAL ("The hard lower limit of --chunk-size is 32."); if (conf.chunk_size > 1048576) FATAL ("The hard limit of --chunk-size is 1048576."); } /* crawlers only */ if (!strcmp ("crawlers-only", name)) conf.crawlers_only = 1; /* date specificity */ if (!strcmp ("date-spec", name)) { if (!strcmp (oarg, "hr")) conf.date_spec_hr = 1; else if (!strcmp (oarg, "min")) conf.date_spec_hr = 2; else if (!strcmp (oarg, "date")) conf.date_spec_hr = 0; } /* double decode */ if (!strcmp ("double-decode", name)) conf.double_decode = 1; /* enable panel */ if (!strcmp ("enable-panel", name)) set_array_opt (oarg, conf.enable_panels, &conf.enable_panel_idx, TOTAL_MODULES); /* external assets */ if (!strcmp ("external-assets", name)) conf.external_assets = 1; /* hour specificity */ if (!strcmp ("hour-spec", name) && !strcmp (oarg, "min")) conf.hour_spec_min = 1; /* ignore crawlers */ if (!strcmp ("ignore-crawlers", name)) conf.ignore_crawlers = 1; /* ignore panel */ if (!strcmp ("ignore-panel", name)) set_array_opt (oarg, conf.ignore_panels, &conf.ignore_panel_idx, TOTAL_MODULES); /* ignore referrer */ if (!strcmp ("ignore-referrer", name)) set_array_opt (oarg, conf.ignore_referers, &conf.ignore_referer_idx, MAX_IGNORE_REF); /* client IP validation */ if (!strcmp ("no-ip-validation", name)) conf.no_ip_validation = 1; /* hide referrer from report (e.g. within same site) */ if (!strcmp ("hide-referrer", name)) set_array_opt (oarg, conf.hide_referers, &conf.hide_referer_idx, MAX_IGNORE_REF); /* ignore status code */ if (!strcmp ("ignore-status", name)) if (conf.ignore_status_idx < MAX_IGNORE_STATUS) conf.ignore_status[conf.ignore_status_idx++] = atoi (oarg); /* ignore static requests */ if (!strcmp ("ignore-statics", name)) { if (!strcmp ("req", oarg)) conf.ignore_statics = IGNORE_LEVEL_REQ; else if (!strcmp ("panel", oarg)) conf.ignore_statics = IGNORE_LEVEL_PANEL; else LOG_DEBUG (("Invalid statics ignore option.")); } /* number of line tests */ if (!strcmp ("num-tests", name)) { char *sEnd; int tests = strtol (oarg, &sEnd, 10); if (oarg == sEnd || *sEnd != '\0' || errno == ERANGE) return; conf.num_tests = tests >= 0 ? tests : 0; } /* number of days to keep in storage */ if (!strcmp ("keep-last", name)) { char *sEnd; int keeplast = strtol (oarg, &sEnd, 10); if (oarg == sEnd || *sEnd != '\0' || errno == ERANGE) return; conf.keep_last = keeplast >= 0 ? keeplast : 0; } /* refresh html every X seconds */ if (!strcmp ("html-refresh", name)) { char *sEnd; uint64_t ref = strtoull (oarg, &sEnd, 10); if (oarg == sEnd || *sEnd != '\0' || errno == ERANGE) return; conf.html_refresh = ref >= 1 && ref <= 60 ? ref : 0; } /* specifies the path of the database file */ if (!strcmp ("db-path", name)) { struct stat st; // Check if the directory exists and is accessible if (stat (oarg, &st) != 0 || !S_ISDIR (st.st_mode)) FATAL ("Database path does not exist or is not a directory"); conf.db_path = oarg; } /* specifies the regex to extract the virtual host */ if (!strcmp ("fname-as-vhost", name) && oarg && *oarg != '\0') conf.fname_as_vhost = oarg; /* process and exit */ if (!strcmp ("process-and-exit", name)) conf.process_and_exit = 1; /* real os */ if (!strcmp ("real-os", name)) conf.real_os = 1; /* sort view */ if (!strcmp ("sort-panel", name)) set_array_opt (oarg, conf.sort_panels, &conf.sort_panel_idx, TOTAL_MODULES); /* static file */ if (!strcmp ("static-file", name) && conf.static_file_idx < MAX_EXTENSIONS) { if (conf.static_file_max_len < strlen (oarg)) conf.static_file_max_len = strlen (oarg); set_array_opt (oarg, conf.static_files, &conf.static_file_idx, MAX_EXTENSIONS); } /* classify unknowns as crawlers */ if (!strcmp ("unknowns-as-crawlers", name)) conf.unknowns_as_crawlers = 1; /* concatenate vhost and request */ if (!strcmp ("concat-vhost-req", name)) conf.concat_vhost_req = 1; /* GEOIP OPTIONS * ========================= */ /* specifies the path of the GeoIP City database file */ if (!strcmp ("geoip-database", name) && conf.geoip_db_idx < MAX_GEOIP_DBS) set_array_opt (oarg, conf.geoip_databases, &conf.geoip_db_idx, MAX_GEOIP_DBS); /* default config file --dwf */ if (!strcmp ("dcf", name)) { display_default_config_file (); exit (EXIT_SUCCESS); } } /* Determine if the '--no-global-config' command line option needs to be * enabled or not. */ void verify_global_config (int argc, char **argv) { int o, idx = 0; conf.load_global_config = 1; while ((o = getopt_long (argc, argv, short_options, long_opts, &idx)) >= 0) { if (-1 == o || EOF == o) break; switch (o) { case 'p': conf.iconfigfile = xstrdup (optarg); break; case 0: if (!strcmp ("no-global-config", long_opts[idx].name)) conf.load_global_config = 0; break; case '?': exit (EXIT_FAILURE); } } /* reset it to 1 */ optind = 1; } /* Attempt to add - to the array of filenames if it hasn't been added it yet. */ void add_dash_filename (void) { int i; // pre-scan for '-' and don't add if already exists: github.com/allinurl/goaccess/issues/907 for (i = 0; i < conf.filenames_idx; ++i) { if (conf.filenames[i][0] == '-' && conf.filenames[i][1] == '\0') return; } if (conf.filenames_idx < MAX_FILENAMES && !conf.read_stdin) { conf.read_stdin = 1; conf.filenames[conf.filenames_idx++] = "-"; } } /* Read the user's supplied command line options. */ void read_option_args (int argc, char **argv) { int o, idx = 0; #ifdef HAVE_LIBGEOIP conf.geo_db = GEOIP_MEMORY_CACHE; #endif while ((o = getopt_long (argc, argv, short_options, long_opts, &idx)) >= 0) { if (-1 == o || EOF == o) break; switch (o) { case 'f': if (conf.filenames_idx < MAX_FILENAMES) conf.filenames[conf.filenames_idx++] = optarg; break; case 'S': if (strchr (optarg, '-')) { printf ("[ERROR] log-size must be a positive integer\n"); exit (EXIT_FAILURE); } conf.log_size = (uint64_t) atoll (optarg); break; case 'p': /* ignore it */ break; #ifdef HAVE_LIBGEOIP case 'g': conf.geo_db = GEOIP_STANDARD; break; #endif case 'e': if (conf.ignore_ip_idx < MAX_IGNORE_IPS) conf.ignore_ips[conf.ignore_ip_idx++] = optarg; else LOG_DEBUG (("Max num of (%d) IPs to ignore reached.", MAX_IGNORE_IPS)); break; case 'a': conf.list_agents = 1; break; case 'b': conf.browsers_file = optarg; break; case 'c': conf.load_conf_dlg = 1; break; case 'i': conf.hl_header = 1; break; case 'j': /* Recommended 4 threads, soft limit is 6, hard limit is 12. */ conf.jobs = atoi (optarg); if (conf.jobs > 12) FATAL ("The hard limit of --jobs is 12."); break; case 'q': conf.ignore_qstr = 1; break; case 'o': if (!valid_output_type (optarg)) FATAL ("Invalid filename extension. It must be any of .csv, .json, or .html\n"); if (!is_writable_path (optarg)) FATAL ("Invalid or unwritable path."); if (conf.output_format_idx < MAX_OUTFORMATS) conf.output_formats[conf.output_format_idx++] = optarg; break; case 'l': conf.debug_log = optarg; dbg_log_open (conf.debug_log); break; case 'r': conf.skip_term_resolver = 1; break; case 'd': conf.enable_html_resolver = 1; break; case 'm': conf.mouse_support = 1; break; case 'M': if (strcmp ("no", optarg) == 0) conf.append_method = 0; else conf.append_method = 1; break; case 'h': cmd_help (); break; case 'H': if (strcmp ("no", optarg) == 0) conf.append_protocol = 0; else conf.append_protocol = 1; break; case 'V': display_version (); exit (EXIT_SUCCESS); break; case 0: parse_long_opt (long_opts[idx].name, optarg); break; case 's': display_storage (); exit (EXIT_SUCCESS); case '?': exit (EXIT_FAILURE); default: exit (EXIT_FAILURE); } } for (idx = optind; idx < argc; ++idx) { /* read from standard input */ if (!conf.read_stdin && strcmp ("-", argv[idx]) == 0) add_dash_filename (); /* read filenames */ else { if (conf.filenames_idx < MAX_FILENAMES) conf.filenames[conf.filenames_idx++] = argv[idx]; } } /* Final validation: * When using JWT verify mode, the ws-auth-url must be provided. * And if a ws-auth-refresh-url is set, then both ws_auth_verify_only and ws_auth_url must be set. */ if (conf.ws_auth_verify_only && !conf.ws_auth_url) { FATAL ("--ws-auth with verify requires --ws-auth-url to be set."); } if (conf.ws_auth_refresh_url) { if (!conf.ws_auth_verify_only || !conf.ws_auth_url) { FATAL ("--ws-auth-refresh-url requires both --ws-auth with verify and --ws-auth-url to be set."); } } // Ensure that both ssl-cert and ssl-key are either both set or both unset if ((conf.sslcert && !conf.sslkey) || (!conf.sslcert && conf.sslkey)) { FATAL ("Both --ssl-cert and --ssl-key must be set and accessible."); } } ================================================ FILE: src/options.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef OPTIONS_H_INCLUDED #define OPTIONS_H_INCLUDED #define CYN "\x1B[36m" #define RESET "\x1B[0m" #define HTML_REFRESH 1 /* in seconds */ void add_dash_filename (void); void cmd_help (void) __attribute__((noreturn)); void read_option_args (int argc, char **argv); void verify_global_config (int argc, char **argv); #endif ================================================ FILE: src/output.c ================================================ /** * output.c -- output to the standard output stream * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana <hello @ goaccess.io> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include <errno.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libgen.h> #include "output.h" #include "error.h" #include "json.h" #include "settings.h" #include "ui.h" #include "util.h" #include "wsauth.h" #include "xmalloc.h" #include "tpls.h" #include "bootstrapcss.h" #include "facss.h" #include "appcss.h" #include "d3js.h" #include "topojsonjs.h" #include "hoganjs.h" #include "countries110m.h" #include "cities10m.h" #include "chartsjs.h" #include "appjs.h" static void hits_bw_plot (FILE * fp, GHTMLPlot plot, int sp); static void hits_bw_req_plot (FILE * fp, GHTMLPlot plot, int sp); static void hits_visitors_plot (FILE * fp, GHTMLPlot plot, int sp); static void hits_visitors_req_plot (FILE * fp, GHTMLPlot plot, int sp); static void print_metrics (FILE * fp, const GHTML * def, int sp); static void print_host_metrics (FILE * fp, const GHTML * def, int sp); /* *INDENT-OFF* */ static const GHTML htmldef[] = { {VISITORS, 1, 0, print_metrics, { {CHART_AREASPLINE, hits_visitors_plot, 1, 1, NULL, NULL} , {CHART_AREASPLINE, hits_bw_plot, 1, 1, NULL, NULL} , }}, {REQUESTS, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_req_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_req_plot, 0, 0, NULL, NULL}, }}, {REQUESTS_STATIC, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_req_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_req_plot, 0, 0, NULL, NULL}, }}, {NOT_FOUND, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_req_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_req_plot, 0, 0, NULL, NULL}, }}, {HOSTS, 1, 0, print_host_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, {OS, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 1, NULL, NULL}, }}, {BROWSERS, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 1, NULL, NULL}, }}, {VISIT_TIMES, 1, 0, print_metrics, { {CHART_AREASPLINE, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_AREASPLINE, hits_bw_plot, 0, 1, NULL, NULL}, }}, {VIRTUAL_HOSTS, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, {REFERRERS, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, {REFERRING_SITES, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, {KEYPHRASES, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, {STATUS_CODES, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 1, NULL, NULL}, }}, {REMOTE_USER, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, {CACHE_STATUS, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, #ifdef HAVE_GEOLOCATION {GEO_LOCATION, 1, 1, print_metrics, { {CHART_WMAP, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 1, NULL, NULL}, }}, {ASN, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 0, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 0, NULL, NULL}, }}, #endif {MIME_TYPE, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 1, NULL, NULL}, }}, {TLS_TYPE, 1, 0, print_metrics, { {CHART_VBAR, hits_visitors_plot, 0, 1, NULL, NULL}, {CHART_VBAR, hits_bw_plot, 0, 1, NULL, NULL}, }}, }; /* *INDENT-ON* */ /* number of new lines (applicable fields) */ static int nlines = 0; static int external_assets = 0; /* Get the chart type for the JSON definition. * * On success, the chart type string is returned. */ static const char * chart2str (GChartType type) { static const char *strings[] = { "null", "bar", "area-spline", "wmap", "gmap" }; return strings[type]; } /* Get panel output data for the given module. * * If not found, NULL is returned. * On success, panel data is returned . */ static const GHTML * panel_lookup (GModule module) { int i, num_panels = ARRAY_SIZE (htmldef); for (i = 0; i < num_panels; i++) { if (htmldef[i].module == module) return &htmldef[i]; } return NULL; } /* Sanitize output with html entities for special chars */ static void clean_output (FILE *fp, const char *s) { if (!s) { LOG_DEBUG (("NULL data on clean_output.\n")); return; } while (*s) { switch (*s) { case '\'': fprintf (fp, "'"); break; case '"': fprintf (fp, """); break; case '&': fprintf (fp, "&"); break; case '<': fprintf (fp, "<"); break; case '>': fprintf (fp, ">"); break; case ' ': fprintf (fp, " "); break; default: fputc (*s, fp); break; } s++; } } /* Set the HTML document title and the generated date/time */ static void print_html_title (FILE *fp) { const char *title = conf.html_report_title ? conf.html_report_title : HTML_REPORT_TITLE; fprintf (fp, "<title>"); clean_output (fp, title); fprintf (fp, ""); } static void print_html_header_styles (FILE *fp, FILE *fcs) { if (fcs) { fprintf (fp, "", FILENAME_CSS); fprintf (fcs, "%.*s\n", fa_css_length, fa_css); fprintf (fcs, "%.*s\n", bootstrap_css_length, bootstrap_css); fprintf (fcs, "%.*s\n", app_css_length, app_css); } else { fprintf (fp, "", fa_css_length, fa_css); fprintf (fp, "", bootstrap_css_length, bootstrap_css); fprintf (fp, "", app_css_length, app_css); } } /* *INDENT-OFF* */ /* Output all the document head elements. */ static void print_html_header (FILE * fp, FILE *fcs) { fprintf (fp, "" "" "" "" "" "" "" "" "" "", _(DOC_LANG)); /* Output base64 encoded goaccess favicon.ico*/ fprintf (fp, ""); /* Output base64-encoded goaccess apple-touch-icon png */ fprintf (fp, ""); print_html_title (fp); print_html_header_styles(fp, fcs); /* load custom CSS file, if any */ if (conf.html_custom_css) fprintf (fp, "", conf.html_custom_css); fprintf (fp, "" ""); } /* Output all structural elements of the HTML document. */ static void print_html_body (FILE * fp, const char *now) { fprintf (fp, "" "
" "" "
" "
" "
" "" "" "
" "
", conf.html_report_title ? conf.html_report_title : ""); fprintf (fp, "%.*s", tpls_length, tpls); } /* Output all the document footer elements such as script and closing * tags. */ static void print_html_footer (FILE * fp, FILE *fjs) { if (fjs) { fprintf (fp, "", FILENAME_JS); fprintf (fjs, "%.*s", d3_js_length, d3_js); fprintf (fjs, "%.*s", hogan_js_length, hogan_js); fprintf (fjs, "%.*s", app_js_length, app_js); fprintf (fjs, "%.*s", charts_js_length, charts_js); fprintf (fjs, "%.*s", topojson_js_length, topojson_js); } else { fprintf (fp, "", d3_js_length, d3_js); fprintf (fp, "", hogan_js_length, hogan_js); fprintf (fp, "", app_js_length, app_js); fprintf (fp, "", charts_js_length, charts_js); fprintf (fp, "", topojson_js_length, topojson_js); } /* load custom JS file, if any */ if (conf.html_custom_js) fprintf (fp, "", conf.html_custom_js); fprintf (fp, ""); fprintf (fp, ""); } /* *INDENT-ON* */ static const GChartDef ChartDefStopper = { NULL, NULL }; /* Get the number of chart definitions per panel. * * The number of chart definitions is returned . */ static int get_chartdef_cnt (GChart *chart) { GChartDef *def = chart->def; while (memcmp (def, &ChartDefStopper, sizeof ChartDefStopper)) ++def; return def - chart->def; } /* Output the given JSON chart axis definition for the given panel. */ static void print_d3_chart_def_axis (FILE *fp, GChart *chart, size_t cnt, int isp) { GChartDef *def = chart->def; size_t j = 0; for (j = 0; j < cnt; ++j) { if (strchr (def[j].value, '[') != NULL) fpskeyaval (fp, def[j].key, def[j].value, isp, j == cnt - 1); else fpskeysval (fp, def[j].key, def[j].value, isp, j == cnt - 1); } } /* Output the given JSON chart definition for the given panel. */ static void print_d3_chart_def (FILE *fp, GChart *chart, size_t n, int sp) { size_t i = 0, cnt = 0; int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; for (i = 0; i < n; ++i) { cnt = get_chartdef_cnt (chart + i); fpopen_obj_attr (fp, chart[i].key, sp); print_d3_chart_def_axis (fp, chart + i, cnt, isp); fpclose_obj (fp, sp, (i == n - 1)); } } static void print_plot_def (FILE *fp, const GHTMLPlot plot, GChart *chart, int n, int sp) { int isp = 0, iisp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1, iisp = sp + 2; fpskeysval (fp, "className", plot.chart_key, isp, 0); fpskeysval (fp, "label", plot.chart_lbl, isp, 0); fpskeysval (fp, "chartType", chart2str (plot.chart_type), isp, 0); fpskeyival (fp, "chartReverse", plot.chart_reverse, isp, 0); fpskeyival (fp, "redrawOnExpand", plot.redraw_expand, isp, 0); /* D3.js data */ fpopen_obj_attr (fp, "d3", isp); /* print chart definitions */ print_d3_chart_def (fp, chart, n, iisp); /* close D3 */ fpclose_obj (fp, isp, 1); } /* Output D3.js hits/visitors plot definitions. */ static void hits_visitors_plot (FILE *fp, GHTMLPlot plot, int sp) { /* *INDENT-OFF* */ GChart def[] = { {"y0", (GChartDef[]) { {"key", "hits"}, {"label", MTRC_HITS_LBL}, ChartDefStopper }}, {"y1", (GChartDef[]) { {"key", "visitors"}, {"label", MTRC_VISITORS_LBL}, ChartDefStopper }}, }; plot.chart_key = (char[]) {"hits-visitors"}; plot.chart_lbl = (char *) {HTML_PLOT_HITS_VIS}; /* *INDENT-ON* */ print_plot_def (fp, plot, def, ARRAY_SIZE (def), sp); } /* Output D3.js hits/visitors plot definitions. */ static void hits_visitors_req_plot (FILE *fp, GHTMLPlot plot, int sp) { /* *INDENT-OFF* */ GChart def[] = { {"x", (GChartDef[]) { {"key", "[\"method\", \"data\", \"protocol\"]"}, ChartDefStopper }}, {"y0", (GChartDef[]) { {"key", "hits"}, {"label", MTRC_HITS_LBL}, ChartDefStopper }}, {"y1", (GChartDef[]) { {"key", "visitors"}, {"label", MTRC_VISITORS_LBL}, ChartDefStopper }}, }; plot.chart_key = (char[]) {"hits-visitors"}; plot.chart_lbl = (char *) {HTML_PLOT_HITS_VIS}; /* *INDENT-ON* */ print_plot_def (fp, plot, def, ARRAY_SIZE (def), sp); } /* Output C3.js bandwidth plot definitions. */ static void hits_bw_plot (FILE *fp, GHTMLPlot plot, int sp) { /* *INDENT-OFF* */ GChart def[] = { {"y0", (GChartDef[]) { {"key", "bytes"}, {"label", MTRC_BW_LBL}, {"format", "bytes"}, ChartDefStopper }}, }; if (!conf.bandwidth) return; plot.chart_key = (char[]) {"bandwidth"}; plot.chart_lbl = (char *) {MTRC_BW_LBL}; /* *INDENT-ON* */ print_plot_def (fp, plot, def, ARRAY_SIZE (def), sp); } /* Output C3.js bandwidth plot definitions. */ static void hits_bw_req_plot (FILE *fp, GHTMLPlot plot, int sp) { /* *INDENT-OFF* */ GChart def[] = { {"x", (GChartDef[]) { {"key", "[\"method\", \"protocol\", \"data\"]"}, ChartDefStopper }}, {"y0", (GChartDef[]) { {"key", "bytes"}, {"label", MTRC_BW_LBL}, {"format", "bytes"}, ChartDefStopper }}, }; if (!conf.bandwidth) return; plot.chart_key = (char[]) {"bandwidth"}; plot.chart_lbl = (char *) {MTRC_BW_LBL}; /* *INDENT-ON* */ print_plot_def (fp, plot, def, ARRAY_SIZE (def), sp); } /* Output JSON data definitions. */ static void print_json_data (FILE *fp, GHolder *holder) { char *json = NULL; if ((json = get_json (holder, 1)) == NULL) return; fprintf (fp, external_assets ? "" : ""); free (json); } /* Output WebSocket connection definition. */ static void print_conn_def (FILE *fp, const char *jwt) { int sp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) sp += 1; if (!conf.real_time_html) return; fprintf (fp, external_assets ? "" : ""); } /* Output JSON per panel metric definitions. */ static void print_def_metric (FILE *fp, const GDefMetric def, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; if (def.cname) fpskeysval (fp, "className", def.cname, isp, 0); if (def.cwidth) fpskeysval (fp, "colWidth", def.cwidth, isp, 0); if (def.metakey) fpskeysval (fp, "meta", def.metakey, isp, 0); if (def.metatype) fpskeysval (fp, "metaType", def.metatype, isp, 0); if (def.metalbl) fpskeysval (fp, "metaLabel", def.metalbl, isp, 0); if (def.datatype) fpskeysval (fp, "dataType", def.datatype, isp, 0); if (def.hlregex) fpskeysval (fp, "hlregex", def.hlregex, isp, 0); if (def.datakey) fpskeysval (fp, "key", def.datakey, isp, 0); if (def.lbl) fpskeysval (fp, "label", def.lbl, isp, 1); } /* Output JSON metric definition block. */ static void print_def_block (FILE *fp, const GDefMetric def, int sp, int last) { fpopen_obj (fp, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, last); } /* Output JSON overall requests definition block. */ static void print_def_overall_requests (FILE *fp, int sp) { GDefMetric def = { .lbl = T_REQUESTS, .datatype = "numeric", .cname = "black" }; fpopen_obj_attr (fp, OVERALL_REQ, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall valid requests definition block. */ static void print_def_overall_valid_reqs (FILE *fp, int sp) { GDefMetric def = { .lbl = T_VALID, .datatype = "numeric", .cname = "green" }; fpopen_obj_attr (fp, OVERALL_VALID, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall invalid requests definition block. */ static void print_def_overall_invalid_reqs (FILE *fp, int sp) { GDefMetric def = { .lbl = T_FAILED, .datatype = "numeric", .cname = "red" }; fpopen_obj_attr (fp, OVERALL_FAILED, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON process time definition block. */ static void print_def_overall_processed_time (FILE *fp, int sp) { GDefMetric def = { .lbl = T_GEN_TIME, .datatype = "secs", .cname = "gray" }; fpopen_obj_attr (fp, OVERALL_GENTIME, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall visitors definition block. */ static void print_def_overall_visitors (FILE *fp, int sp) { GDefMetric def = { .lbl = T_UNIQUE_VISITORS, .datatype = "numeric", .cname = "blue" }; fpopen_obj_attr (fp, OVERALL_VISITORS, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall files definition block. */ static void print_def_overall_files (FILE *fp, int sp) { GDefMetric def = { .lbl = T_UNIQUE_FILES, .datatype = "numeric", }; fpopen_obj_attr (fp, OVERALL_FILES, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall excluded requests definition block. */ static void print_def_overall_excluded (FILE *fp, int sp) { GDefMetric def = { .lbl = T_EXCLUDE_IP, .datatype = "numeric", }; fpopen_obj_attr (fp, OVERALL_EXCL_HITS, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall referrers definition block. */ static void print_def_overall_refs (FILE *fp, int sp) { GDefMetric def = { .lbl = T_REFERRER, .datatype = "numeric", }; fpopen_obj_attr (fp, OVERALL_REF, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall not found definition block. */ static void print_def_overall_notfound (FILE *fp, int sp) { GDefMetric def = { .lbl = T_UNIQUE404, .datatype = "numeric", }; fpopen_obj_attr (fp, OVERALL_NOTFOUND, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall static files definition block. */ static void print_def_overall_static_files (FILE *fp, int sp) { GDefMetric def = { .lbl = T_STATIC_FILES, .datatype = "numeric", }; fpopen_obj_attr (fp, OVERALL_STATIC, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON log size definition block. */ static void print_def_overall_log_size (FILE *fp, int sp) { GDefMetric def = { .lbl = T_LOG, .datatype = "bytes", }; fpopen_obj_attr (fp, OVERALL_LOGSIZE, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 0); } /* Output JSON overall bandwidth definition block. */ static void print_def_overall_bandwidth (FILE *fp, int sp) { GDefMetric def = { .lbl = T_BW, .datatype = "bytes", }; fpopen_obj_attr (fp, OVERALL_BANDWIDTH, sp); print_def_metric (fp, def, sp); fpclose_obj (fp, sp, 1); } /* Output JSON hits definition block. */ static void print_def_hits (FILE *fp, int sp) { GDefMetric def = { .datakey = "hits", .lbl = MTRC_HITS_LBL, .datatype = "numeric", .metakey = "count", .cwidth = "12%", }; print_def_block (fp, def, sp, 0); } /* Output JSON visitors definition block. */ static void print_def_visitors (FILE *fp, int sp) { GDefMetric def = { .datakey = "visitors", .lbl = MTRC_VISITORS_LBL, .datatype = "numeric", .metakey = "count", .cwidth = "12%", }; print_def_block (fp, def, sp, 0); } /* Output JSON bandwidth definition block. */ static void print_def_bw (FILE *fp, int sp) { GDefMetric def = { .datakey = "bytes", .lbl = MTRC_BW_LBL, .datatype = "bytes", .metakey = "count", .cwidth = "12%", }; if (!conf.bandwidth) return; print_def_block (fp, def, sp, 0); } /* Output JSON Avg. T.S. definition block. */ static void print_def_avgts (FILE *fp, int sp) { GDefMetric def = { .datakey = "avgts", .lbl = MTRC_AVGTS_LBL, .datatype = "utime", .metakey = "avg", .cwidth = "8%", }; if (!conf.serve_usecs) return; print_def_block (fp, def, sp, 0); } /* Output JSON Cum. T.S. definition block. */ static void print_def_cumts (FILE *fp, int sp) { GDefMetric def = { .datakey = "cumts", .lbl = MTRC_CUMTS_LBL, .datatype = "utime", .metakey = "count", .cwidth = "8%", }; if (!conf.serve_usecs) return; print_def_block (fp, def, sp, 0); } /* Output JSON Max. T.S. definition block. */ static void print_def_maxts (FILE *fp, int sp) { GDefMetric def = { .datakey = "maxts", .lbl = MTRC_MAXTS_LBL, .datatype = "utime", .metakey = "count", .cwidth = "8%", }; if (!conf.serve_usecs) return; print_def_block (fp, def, sp, 0); } /* Output JSON method definition block. */ static void print_def_method (FILE *fp, int sp) { GDefMetric def = { .datakey = "method", .lbl = MTRC_METHODS_LBL, .datatype = "string", .cwidth = "6%", .hlregex = "{" "\\\"(\\\\\\\\b[A-Z]{3}\\\\\\\\b)\\\": \\\"$1\\\"," "\\\"(\\\\\\\\b[A-Z]{4}\\\\\\\\b)\\\": \\\"$1\\\"," "\\\"(\\\\\\\\b[A-Z]{5,}\\\\\\\\b)\\\": \\\"$1\\\"" "}", }; if (!conf.append_method) return; print_def_block (fp, def, sp, 0); } /* Output JSON protocol definition block. */ static void print_def_protocol (FILE *fp, int sp) { GDefMetric def = { .datakey = "protocol", .lbl = MTRC_PROTOCOLS_LBL, .datatype = "string", .cwidth = "7%", .hlregex = "{" "\\\"(\\\\\\\\bHTTP/1.0\\\\\\\\b)\\\": \\\"$1\\\"," "\\\"(\\\\\\\\bHTTP/1.1\\\\\\\\b)\\\": \\\"$1\\\"," "\\\"(\\\\\\\\bHTTP/2\\\\\\\\b)\\\": \\\"$1\\\"," "\\\"(\\\\\\\\bHTTP/3\\\\\\\\b)\\\": \\\"$1\\\"" "}", }; if (!conf.append_protocol) return; print_def_block (fp, def, sp, 0); } /* Output JSON city definition block. */ static void print_def_city (FILE *fp, int sp) { GDefMetric def = { .datakey = "city", .lbl = MTRC_CITY_LBL, .datatype = "string", }; if (!conf.has_geocity) return; print_def_block (fp, def, sp, 0); } /* Output JSON ASN definition block. */ static void print_def_asn (FILE *fp, int sp) { GDefMetric def = { .datakey = "asn", .lbl = MTRC_ASB_LBL, .datatype = "string", .hlregex = "{" "\\\"^(\\\\\\\\d+)\\\": \\\"$1\\\"," "\\\"^(AS\\\\\\\\d+)\\\": \\\"$1\\\"" "}", }; if (!conf.has_geoasn) return; print_def_block (fp, def, sp, 0); } /* Output JSON country definition block. */ static void print_def_country (FILE *fp, int sp) { GDefMetric def = { .datakey = "country", .lbl = MTRC_COUNTRY_LBL, .datatype = "string", .hlregex = "{" "\\\"^([A-Z]{2})\\\": \\\"$1\\\"" "}", }; if (!conf.has_geocountry) return; print_def_block (fp, def, sp, 0); } /* Output JSON hostname definition block. */ static void print_def_hostname (FILE *fp, int sp) { GDefMetric def = { .datakey = "hostname", .lbl = MTRC_HOSTNAME_LBL, .datatype = "string", .cname = "light", }; if (!conf.enable_html_resolver) return; print_def_block (fp, def, sp, 0); } /* Output JSON data definition block. */ static void print_def_data (FILE *fp, GModule module, int sp) { GDefMetric def = { .cname = "trunc", .cwidth = "100%", .datakey = "data", .datatype = module == VISITORS ? "date" : "string", .lbl = MTRC_DATA_LBL, .metakey = "unique", .metalbl = "Total", .metatype = "numeric", .hlregex = "{" "\\\"^(1\\\\\\\\d{2}|1xx)(\\\\\\\\s.*)$\\\": \\\"$1$2\\\"," /* 2xx Success */ "\\\"^(2\\\\\\\\d{2}|2xx)(\\\\\\\\s.*)$\\\": \\\"$1$2\\\"," /* 2xx Success */ "\\\"^(3\\\\\\\\d{2}|3xx)(\\\\\\\\s.*)$\\\": \\\"$1$2\\\"," /* 3xx Success */ "\\\"^(4\\\\\\\\d{2}|4xx)(\\\\\\\\s.*)$\\\": \\\"$1$2\\\"," /* 4xx Success */ "\\\"^(5\\\\\\\\d{2}|5xx)(\\\\\\\\s.*)$\\\": \\\"$1$2\\\"," /* 5xx Success */ "\\\"^(0\\\\\\\\d{2}|0xx)(\\\\\\\\s.*)$\\\": \\\"$1$2\\\"," /* 5xx Success */ "\\\"^(AS\\\\\\\\d+)\\\": \\\"$1\\\"," /* AS9823 Google */ "\\\"^(\\\\\\\\d+:)\\\": \\\"$1\\\"," /* 01234: Data */ "\\\"(\\\\\\\\d+)|(:\\\\\\\\d+)|(:\\\\\\\\d+:\\\\\\\\d+)\\\": \\\"$1$2\\\"," /* 12/May/2022:12:34 */ "\\\"^([A-Z]{2})(\\\\\\\\s.*$)\\\": \\\"$1$2\\\"" /* US United States */ "}", }; print_def_block (fp, def, sp, 1); } /* Get the number of plots for the given panel definition. * * The number of plots for the given panel is returned. */ static int count_plot_fp (const GHTML *def) { int i = 0; for (i = 0; def->chart[i].plot != 0; ++i); return i; } /* Entry function to output JSON plot definition block. */ static void print_def_plot (FILE *fp, const GHTML *def, int sp) { int i, isp = 0, n = count_plot_fp (def); /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; fpopen_arr_attr (fp, "plot", sp); for (i = 0; i < n; ++i) { fpopen_obj (fp, isp); def->chart[i].plot (fp, def->chart[i], isp); fpclose_obj (fp, isp, (i == n - 1)); } fpclose_arr (fp, sp, 0); } /* Output JSON host panel definitions. */ static void print_host_metrics (FILE *fp, const GHTML *def, int sp) { const GOutput *output = output_lookup (def->module); print_def_hits (fp, sp); print_def_visitors (fp, sp); print_def_bw (fp, sp); print_def_avgts (fp, sp); print_def_cumts (fp, sp); print_def_maxts (fp, sp); if (output->method) print_def_method (fp, sp); if (output->protocol) print_def_protocol (fp, sp); print_def_city (fp, sp); print_def_country (fp, sp); print_def_asn (fp, sp); print_def_hostname (fp, sp); print_def_data (fp, def->module, sp); } /* Output JSON panel definitions. */ static void print_metrics (FILE *fp, const GHTML *def, int sp) { const GOutput *output = output_lookup (def->module); print_def_hits (fp, sp); print_def_visitors (fp, sp); print_def_bw (fp, sp); print_def_avgts (fp, sp); print_def_cumts (fp, sp); print_def_maxts (fp, sp); if (output->method) print_def_method (fp, sp); if (output->protocol) print_def_protocol (fp, sp); print_def_data (fp, def->module, sp); } /* Entry point to output JSON metric definitions. */ static void print_def_metrics (FILE *fp, const GHTML *def, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; /* open data metric data */ fpopen_arr_attr (fp, "items", sp); /* definition metrics */ def->metrics (fp, def, isp); /* close metrics block */ fpclose_arr (fp, sp, 1); } /* Output panel header and description metadata definitions. */ static void print_def_meta (FILE *fp, const char *head, const char *desc, int sp) { int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; fpskeysval (fp, "head", head, isp, 0); fpskeysval (fp, "desc", desc, isp, 0); } /* Output panel sort metadata definitions. */ static void print_def_sort (FILE *fp, const GHTML *def, int sp) { GSort sort = module_sort[def->module]; int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; /* output open sort attribute */ fpopen_obj_attr (fp, "sort", sp); fpskeysval (fp, "field", get_sort_field_key (sort.field), isp, 0); fpskeysval (fp, "order", get_sort_order_str (sort.sort), isp, 1); /* output close sort attribute */ fpclose_obj (fp, sp, 0); } /* Output panel metadata definitions. */ static void print_panel_def_meta (FILE *fp, const GHTML *def, int sp) { const char *desc = module_to_desc (def->module); const char *head = module_to_head (def->module); const char *id = module_to_id (def->module); int isp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1; print_def_meta (fp, head, desc, sp); fpskeysval (fp, "id", id, isp, 0); fpskeyival (fp, "table", def->table, isp, 0); fpskeyival (fp, "hasMap", def->has_map, isp, 0); print_def_sort (fp, def, isp); print_def_plot (fp, def, isp); print_def_metrics (fp, def, isp); } /* Output definitions for the given panel. */ static void print_json_def (FILE *fp, const GHTML *def) { int sp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) sp = 1; /* output open panel attribute */ fpopen_obj_attr (fp, module_to_id (def->module), sp); /* output panel data definitions */ print_panel_def_meta (fp, def, sp); /* output close panel attribute */ fpclose_obj (fp, sp, 1); fpjson (fp, (def->module != TOTAL_MODULES - 1) ? ",%.*s" : "%.*s", nlines, NL); } /* Output overall definitions. */ static void print_def_summary (FILE *fp, int sp) { int isp = 0, iisp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) isp = sp + 1, iisp = sp + 2; /* open metrics block */ fpopen_obj_attr (fp, "items", isp); print_def_overall_requests (fp, iisp); print_def_overall_valid_reqs (fp, iisp); print_def_overall_invalid_reqs (fp, iisp); print_def_overall_processed_time (fp, iisp); print_def_overall_visitors (fp, iisp); print_def_overall_files (fp, iisp); print_def_overall_excluded (fp, iisp); print_def_overall_refs (fp, iisp); print_def_overall_notfound (fp, iisp); print_def_overall_static_files (fp, iisp); print_def_overall_log_size (fp, iisp); print_def_overall_bandwidth (fp, iisp); /* close metrics block */ fpclose_obj (fp, isp, 1); } /* Cheap JSON internationalisation (i18n) - report labels */ static void print_json_i18n_def (FILE *fp) { int sp = 0; size_t i = 0; /* *INDENT-OFF* */ static const char *json_i18n[][2] = { {"theme" , HTML_REPORT_NAV_THEME} , {"dark_gray" , HTML_REPORT_NAV_DARK_GRAY} , {"bright" , HTML_REPORT_NAV_BRIGHT} , {"dark_blue" , HTML_REPORT_NAV_DARK_BLUE} , {"dark_purple" , HTML_REPORT_NAV_DARK_PURPLE} , {"panels" , HTML_REPORT_NAV_PANELS} , {"items_per_page" , HTML_REPORT_NAV_ITEMS_PER_PAGE} , {"tables" , HTML_REPORT_NAV_TABLES} , {"display_tables" , HTML_REPORT_NAV_DISPLAY_TABLES} , {"ah_small" , HTML_REPORT_NAV_AH_SMALL} , {"ah_small_title" , HTML_REPORT_NAV_AH_SMALL_TITLE} , {"toggle_panel" , HTML_REPORT_NAV_TOGGLE_PANEL} , {"layout" , HTML_REPORT_NAV_LAYOUT} , {"horizontal" , HTML_REPORT_NAV_HOR} , {"vertical" , HTML_REPORT_NAV_VER} , {"wide" , HTML_REPORT_NAV_WIDE} , {"file_opts" , HTML_REPORT_NAV_FILE_OPTS} , {"export_json" , HTML_REPORT_NAV_EXPORT_JSON} , {"panel_opts" , HTML_REPORT_PANEL_PANEL_OPTS} , {"previous" , HTML_REPORT_PANEL_PREVIOUS} , {"next" , HTML_REPORT_PANEL_NEXT} , {"first" , HTML_REPORT_PANEL_FIRST} , {"last" , HTML_REPORT_PANEL_LAST} , {"chart_opts" , HTML_REPORT_PANEL_CHART_OPTS} , {"chart" , HTML_REPORT_PANEL_CHART} , {"type" , HTML_REPORT_PANEL_TYPE} , {"area_spline" , HTML_REPORT_PANEL_AREA_SPLINE} , {"bar" , HTML_REPORT_PANEL_BAR} , {"wmap" , HTML_REPORT_PANEL_WMAP} , {"gmap" , HTML_REPORT_PANEL_GMAP} , {"plot_metric" , HTML_REPORT_PANEL_PLOT_METRIC} , {"table_columns" , HTML_REPORT_PANEL_TABLE_COLS} , {"thead" , T_HEAD} , {"version" , GO_VERSION} , {"button_menu" , HTML_REPORT_NAV_BUTTON_MENU} , {"button_settings" , HTML_REPORT_NAV_BUTTON_SETTINGS} , {"websocket_connected" , HTML_REPORT_WEBSOCKET_STATUS_CONNECTED} , {"websocket_disconnected" , HTML_REPORT_WEBSOCKET_STATUS_DISCONNECTED} , }; /* *INDENT-ON* */ /* use tabs to prettify output */ if (conf.json_pretty_print) sp = 1; fpopen_obj (fp, 0); for (i = 0; i < ARRAY_SIZE (json_i18n); ++i) { fpskeysval (fp, json_i18n[i][0], _(json_i18n[i][1]), sp, 0); } fpclose_obj (fp, 0, 1); } /* Output definitions for the given panel. */ static void print_json_def_summary (FILE *fp) { int sp = 0; /* use tabs to prettify output */ if (conf.json_pretty_print) sp = 1; /* output open panel attribute */ fpopen_obj_attr (fp, GENER_ID, sp); print_def_meta (fp, _(T_HEAD), "", sp); print_def_summary (fp, sp); /* output close panel attribute */ fpclose_obj (fp, sp, 0); } /* Entry point to output definitions for all panels. */ static void print_json_defs (FILE *fp) { const GHTML *def; size_t idx = 0; fprintf (fp, external_assets ? "" : ""); } static char * get_asset_filepath (const char *filename, const char *asset_fname) { char *fname = NULL, *path = NULL, *s = NULL; path = xstrdup (filename); fname = xstrdup (basename (path)); path[strlen (filename) - strlen (fname)] = '\0'; s = xmalloc (snprintf (NULL, 0, "%s%s", path, asset_fname) + 1); sprintf (s, "%s%s", path, asset_fname); free (path); free (fname); return s; } static FILE * get_asset (const char *filename, const char *asset_fname) { FILE *fp = NULL; char *fn = NULL; if (!(fn = get_asset_filepath (filename, asset_fname))) FATAL ("Invalid JS file."); if (!(fp = fopen (fn, "w"))) FATAL ("Unable to open file %s.", strerror (errno)); free (fn); return fp; } /* entry point to generate a report writing it to the fp */ void output_html (GHolder *holder, const char *filename) { FILE *fp, *fjs = NULL, *fcs = NULL; char now[DATE_TIME] = { 0 }; char *jwt = NULL; if (filename != NULL) fp = fopen (filename, "w"); else fp = stdout; if (!fp) FATAL ("Unable to open HTML file: %s.", strerror (errno)); if (filename && conf.external_assets) { fjs = get_asset (filename, FILENAME_JS); fcs = get_asset (filename, FILENAME_CSS); external_assets = 1; } /* use new lines to prettify output */ if (conf.json_pretty_print) nlines = 1; set_json_nlines (nlines); generate_time (); strftime (now, DATE_TIME, "%Y-%m-%d %H:%M:%S %z", &now_tm); #ifdef HAVE_LIBSSL if (conf.ws_auth_secret) jwt = create_jwt_token (); #endif print_html_header (fp, fcs); print_html_body (fp, now); print_json_defs ((fjs ? fjs : fp)); print_json_data ((fjs ? fjs : fp), holder); print_conn_def ((fjs ? fjs : fp), jwt); print_html_footer (fp, fjs); free (jwt); if (fjs) fclose (fjs); if (fcs) fclose (fcs); fclose (fp); } ================================================ FILE: src/output.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include #endif #ifndef OUTPUT_H_INCLUDED #define OUTPUT_H_INCLUDED #define MAX_PLOTS 5 /* number of metrics we can plot */ #define FILENAME_JS "goaccess.js" #define FILENAME_CSS "goaccess.css" #include "commons.h" #include "parser.h" /* Enumerated chart types */ typedef enum GChartType_ { CHART_NONE, CHART_VBAR, CHART_AREASPLINE, CHART_WMAP, CHART_GMAP, } GChartType; /* Chart axis structure */ typedef struct GChartDef_ { const char *key; const char *value; } GChartDef; /* Chart axis structure */ typedef struct GChart_ { const char *key; GChartDef *def; } GChart; /* Chart behavior */ typedef struct GHTMLPlot_ { GChartType chart_type; void (*plot) (FILE * fp, struct GHTMLPlot_ plot, int sp); int8_t chart_reverse; int8_t redraw_expand; char *chart_key; char *chart_lbl; } GHTMLPlot; /* Controls HTML panel output. */ typedef struct GHTML_ { GModule module; int8_t table; int8_t has_map; void (*metrics) (FILE * fp, const struct GHTML_ * def, int sp); GHTMLPlot chart[MAX_PLOTS]; } GHTML; /* Metric definition . */ typedef struct GDefMetric_ { const char *cname; /* metric class name */ const char *cwidth; /* metric column width */ const char *datakey; /* metric JSON data key */ const char *datatype; /* metric data value type */ const char *lbl; /* metric label (column name) */ const char *metakey; /* metric JSON meta key */ const char *metatype; /* metric meta value type */ const char *metalbl; /* metric meta value label */ const char *hlregex; /* highlight regex value */ } GDefMetric; void output_html (GHolder * holder, const char *filename); #endif ================================================ FILE: src/parser.c ================================================ /** * parser.c -- web log parsing * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /* * "_XOPEN_SOURCE" is required for the GNU libc to export "strptime(3)" * correctly. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #define _XOPEN_SOURCE 700 #define _DEFAULT_SOURCE #include #include #if HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include "gkhash.h" #include "parser.h" #include "browsers.h" #include "error.h" #include "goaccess.h" #include "gstorage.h" #include "util.h" #include "websocket.h" #include "xmalloc.h" /* Allocate memory for a new GRawData instance. * * On success, the newly allocated GRawData is returned . */ GRawData * new_grawdata (void) { GRawData *raw_data = xmalloc (sizeof (*raw_data)); memset (raw_data, 0, sizeof *raw_data); return raw_data; } /* Allocate memory for a new GRawDataItem instance. * * On success, the newly allocated GRawDataItem is returned . */ GRawDataItem * new_grawdata_item (unsigned int size) { GRawDataItem *item = xcalloc (size, sizeof (*item)); return item; } /* Free memory allocated for a GRawData and GRawDataItem instance. */ void free_raw_data (GRawData *raw_data) { free (raw_data->items); free (raw_data); } /* Reset an instance of GLog structure. */ void reset_struct (Logs *logs) { int i = 0; for (i = 0; i < logs->size; ++i) logs->glog[i].invalid = logs->glog[i].processed = 0; } /* Allocate memory for a new Logs and GLog instance. * * On success, the newly allocated Logs is returned . */ Logs * new_logs (int size) { Logs *logs = xmalloc (sizeof (*logs)); memset (logs, 0, sizeof *logs); logs->glog = xcalloc (size, sizeof (GLog)); logs->size = size; logs->idx = 0; return logs; } /* Allocate, initialize and add the given filename to our logs structure. * * On error, 1 is returned. * On success, the given filename is added to the Logs structure and 0 is * returned. */ int set_glog (Logs *logs, const char *filename) { GLog *tmp = NULL, *glog = NULL; int newlen = 0; char const *err; char *fvh = NULL, *fn = NULL; if (logs->size - 1 < logs->idx) { newlen = logs->size + 1; if (!(tmp = xrealloc (logs->glog, newlen * sizeof (GLog)))) return ERR_LOG_REALLOC_FAILURE; logs->glog = tmp; memset (logs->glog + logs->idx, 0, (logs->idx + 1 - logs->size) * sizeof *logs->glog); logs->size = newlen; } fn = xstrdup (filename); /* ensure fn is a string */ glog = logs->glog; glog[logs->idx].errors = xcalloc (MAX_LOG_ERRORS, sizeof (char *)); glog[logs->idx].props.filename = xstrdup (fn); glog[logs->idx].props.fname = xstrdup (basename (fn)); if (!glog->pipe && conf.fname_as_vhost) { if (!(fvh = regex_extract_string (glog[logs->idx].props.fname, conf.fname_as_vhost, 1, &err))) FATAL ("%s %s[%s]", err, glog[logs->idx].props.fname, conf.fname_as_vhost); glog[logs->idx].fname_as_vhost = fvh; } logs->processed = &(glog[logs->idx].processed); logs->filename = glog[logs->idx].props.filename; logs->idx++; free (fn); return 0; } /* Ensure the given filename is part of our original list of files. * * On error, 1 is returned. * On success, the given filename is added to the Logs structure and 0 is * returned. */ int set_log (Logs *logs, const char *value) { if (str_inarray (value, conf.filenames, conf.filenames_idx) < 0) return ERR_LOG_NOT_FOUND; return set_glog (logs, value); } /* Allocate memory for a new set of Logs including a GLog instance. * * On success, the newly allocated Logs is returned . */ Logs * init_logs (int size) { Logs *logs = NULL; GLog *glog = NULL; int i = 0, ret = 0; /* if no logs no a pipe nor restoring, nothing to do then */ if (!size && !conf.restore) return NULL; /* If no logs nor a pipe but restoring, we still need an minimal instance of * logs and a glog */ if (!size) { logs = xcalloc (1, sizeof (*logs)); logs->glog = xcalloc (1, sizeof (*glog)); logs->processed = &(logs->glog[0].processed); return logs; } logs = new_logs (size); logs->size = size; for (i = 0; i < size; ++i) { if ((ret = set_log (logs, conf.filenames[i]))) FATAL ("%s\n", ERR_LOG_NOT_FOUND_MSG); } return logs; } /* Free all log errors stored during parsing. */ void free_logerrors (GLog *glog) { int i; if (!glog->log_erridx) return; for (i = 0; i < glog->log_erridx; ++i) free (glog->errors[i]); glog->log_erridx = 0; } /* Free all log containers. */ void free_logs (Logs *logs) { GLog *glog = NULL; int i; for (i = 0; i < logs->size; ++i) { glog = &logs->glog[i]; free (glog->props.filename); free (glog->props.fname); free (glog->fname_as_vhost); free_logerrors (glog); free (glog->errors); pthread_mutex_destroy (&glog->error_mutex); // Destroy mutex if (glog->pipe) { fclose (glog->pipe); } } free (logs->glog); free (logs); } /* Initialize a new GLogItem instance. * * On success, the new GLogItem instance is returned. */ GLogItem * init_log_item (GLog *glog) { GLogItem *logitem; logitem = xmalloc (sizeof (GLogItem)); memset (logitem, 0, sizeof *logitem); logitem->agent = NULL; logitem->browser = NULL; logitem->browser_type = NULL; logitem->continent = NULL; logitem->asn = NULL; logitem->country = NULL; logitem->city = NULL; logitem->date = NULL; logitem->errstr = NULL; logitem->host = NULL; logitem->keyphrase = NULL; logitem->method = NULL; logitem->os = NULL; logitem->os_type = NULL; logitem->protocol = NULL; logitem->qstr = NULL; logitem->ref = NULL; logitem->req_key = NULL; logitem->req = NULL; logitem->resp_size = 0LL; logitem->serve_time = 0; logitem->status = -1; logitem->time = NULL; logitem->uniq_key = NULL; logitem->vhost = NULL; logitem->userid = NULL; logitem->cache_status = NULL; /* UMS */ logitem->mime_type = NULL; logitem->tls_type = NULL; logitem->tls_cypher = NULL; logitem->tls_type_cypher = NULL; memset (logitem->site, 0, sizeof (logitem->site)); memset (logitem->agent_hex, 0, sizeof (logitem->agent_hex)); logitem->dt = glog->start_time; return logitem; } /* Free all members of a GLogItem */ void free_glog (GLogItem *logitem) { if (!logitem) return; if (logitem->agent != NULL) free (logitem->agent); if (logitem->browser != NULL) free (logitem->browser); if (logitem->browser_type != NULL) free (logitem->browser_type); if (logitem->continent != NULL) free (logitem->continent); if (logitem->asn != NULL) free (logitem->asn); if (logitem->country != NULL) free (logitem->country); if (logitem->city != NULL) free (logitem->city); if (logitem->date != NULL) free (logitem->date); if (logitem->errstr != NULL) free (logitem->errstr); if (logitem->host != NULL) free (logitem->host); if (logitem->keyphrase != NULL) free (logitem->keyphrase); if (logitem->method != NULL) free (logitem->method); if (logitem->os != NULL) free (logitem->os); if (logitem->os_type != NULL) free (logitem->os_type); if (logitem->protocol != NULL) free (logitem->protocol); if (logitem->qstr != NULL) free (logitem->qstr); if (logitem->ref != NULL) free (logitem->ref); if (logitem->req_key != NULL) free (logitem->req_key); if (logitem->req != NULL) free (logitem->req); if (logitem->time != NULL) free (logitem->time); if (logitem->uniq_key != NULL) free (logitem->uniq_key); if (logitem->userid != NULL) free (logitem->userid); if (logitem->cache_status != NULL) free (logitem->cache_status); if (logitem->vhost != NULL) free (logitem->vhost); if (logitem->mime_type != NULL) free (logitem->mime_type); if (logitem->tls_type != NULL) free (logitem->tls_type); if (logitem->tls_cypher != NULL) free (logitem->tls_cypher); if (logitem->tls_type_cypher != NULL) free (logitem->tls_type_cypher); free (logitem); } /* Entry point to decode the given URL-encoded string. * * On success, the decoded trimmed string is assigned to the output * buffer. */ static char * decode_url (char *url) { char *out, *decoded; if ((url == NULL) || (*url == '\0')) return NULL; out = decoded = xstrdup (url); decode_hex (url, out, 0); /* double encoded URL? */ if (conf.double_decode) decode_hex (decoded, out, 0); strip_newlines (out); return trim_str (out); } /* Process keyphrases from Google search, cache, and translate. * Note that the referer hasn't been decoded at the entry point * since there could be '&' within the search query. * * On error, 1 is returned. * On success, the extracted keyphrase is assigned and 0 is returned. */ static int extract_keyphrase (char *ref, char **keyphrase) { char *r, *ptr, *pch, *referer; int encoded = 0; if (!(strstr (ref, "http://www.google.")) && !(strstr (ref, "http://webcache.googleusercontent.com/")) && !(strstr (ref, "http://translate.googleusercontent.com/")) && !(strstr (ref, "https://www.google.")) && !(strstr (ref, "https://webcache.googleusercontent.com/")) && !(strstr (ref, "https://translate.googleusercontent.com/"))) return 1; /* webcache.googleusercontent */ if ((r = strstr (ref, "/+&")) != NULL) return 1; /* webcache.googleusercontent */ else if ((r = strstr (ref, "/+")) != NULL) r += 2; /* webcache.googleusercontent */ else if ((r = strstr (ref, "q=cache:")) != NULL) { pch = strchr (r, '+'); if (pch) r += pch - r + 1; } /* www.google.* or translate.googleusercontent */ else if ((r = strstr (ref, "&q=")) != NULL || (r = strstr (ref, "?q=")) != NULL) r += 3; else if ((r = strstr (ref, "%26q%3D")) != NULL || (r = strstr (ref, "%3Fq%3D")) != NULL) encoded = 1, r += 7; else return 1; if (!encoded && (ptr = strchr (r, '&')) != NULL) *ptr = '\0'; else if (encoded && (ptr = strstr (r, "%26")) != NULL) *ptr = '\0'; referer = decode_url (r); if (referer == NULL || *referer == '\0') { free (referer); return 1; } referer = char_replace (referer, '+', ' '); *keyphrase = trim_str (referer); return 0; } /* Parse a URI and extracts the *host* part from it * i.e., //www.example.com/path?googleguy > www.example.com * * On error, 1 is returned. * On success, the extracted referer is set and 0 is returned. */ static int extract_referer_site (const char *referer, char *host) { char *url, *begin, *end; int len = 0; if ((referer == NULL) || (*referer == '\0')) return 1; url = strdup (referer); if ((begin = strstr (url, "//")) == NULL) goto clean; begin += 2; if ((len = strlen (begin)) == 0) goto clean; if ((end = strpbrk (begin, "/?")) != NULL) len = end - begin; if (len == 0) goto clean; if (len >= REF_SITE_LEN) len = REF_SITE_LEN; memcpy (host, begin, len); host[len] = '\0'; free (url); return 0; clean: free (url); return 1; } /* Determine if the given request is static (e.g., jpg, css, js, etc). * * On error, or if not static, 0 is returned. * On success, the 1 is returned. */ static int verify_static_content (const char *req) { const char *nul = NULL; const char *ext = NULL, *pch = NULL; int elen = 0, i; if ((req == NULL) || (*req == '\0')) return 0; nul = req + strlen (req); for (i = 0; i < conf.static_file_idx; ++i) { ext = conf.static_files[i]; if (ext == NULL || *ext == '\0') continue; elen = strlen (ext); if (conf.all_static_files && (pch = strchr (req, '?')) != NULL && pch - req > elen) { pch -= elen; if (0 == strncasecmp (ext, pch, elen)) return 1; continue; } if (nul - req > elen && !strncasecmp (nul - elen, ext, elen)) return 1; } return 0; } /* Extract the HTTP method. * * On error, or if not found, NULL is returned. * On success, the HTTP method is returned. */ static const char * extract_method (const char *token) { size_t i; for (i = 0; i < http_methods_len; i++) { if (strncasecmp (token, http_methods[i].method, http_methods[i].len) == 0) { return http_methods[i].method; } } return NULL; } static int is_cache_hit (const char *tkn) { if (strcasecmp ("MISS", tkn) == 0) return 1; else if (strcasecmp ("BYPASS", tkn) == 0) return 1; else if (strcasecmp ("EXPIRED", tkn) == 0) return 1; else if (strcasecmp ("STALE", tkn) == 0) return 1; else if (strcasecmp ("UPDATING", tkn) == 0) return 1; else if (strcasecmp ("REVALIDATED", tkn) == 0) return 1; else if (strcasecmp ("HIT", tkn) == 0) return 1; return 0; } /* Determine if the given token is a valid HTTP protocol. * * If not valid, 1 is returned. * If valid, 0 is returned. */ static const char * extract_protocol (const char *token) { size_t i; for (i = 0; i < http_protocols_len; i++) { if (strncasecmp (token, http_protocols[i].protocol, http_protocols[i].len) == 0) { return http_protocols[i].protocol; } } return NULL; } /* Parse a request containing the method and protocol. * * On error, or unable to parse, NULL is returned. * On success, the HTTP request is returned and the method and * protocol are assigned to the corresponding buffers. */ static char * parse_req (char *line, char **method, char **protocol) { char *req = NULL, *request = NULL, *dreq = NULL, *ptr = NULL; const char *meth, *proto; ptrdiff_t rlen; meth = extract_method (line); /* couldn't find a method, so use the whole request line */ if (meth == NULL) { request = xstrdup (line); } /* method found, attempt to parse request */ else { req = line + strlen (meth); if (!(ptr = strrchr (req, ' ')) || !(proto = extract_protocol (++ptr))) return alloc_string ("-"); req++; if ((rlen = ptr - req) <= 0) return alloc_string ("-"); request = xmalloc (rlen + 1); strncpy (request, req, rlen); request[rlen] = 0; if (conf.append_method) (*method) = strtoupper (xstrdup (meth)); if (conf.append_protocol) (*protocol) = strtoupper (xstrdup (proto)); } if (!(dreq = decode_url (request))) return request; else if (*dreq == '\0') { free (dreq); return request; } free (request); return dreq; } #if defined(HAVE_LIBSSL) && defined(HAVE_CIPHER_STD_NAME) static int extract_tls_version_cipher (char *tkn, char **cipher, char **tls_version) { SSL_CTX *ctx = NULL; SSL *ssl = NULL; int code = 0; unsigned short code_be; unsigned char cipherid[3]; const SSL_CIPHER *c = NULL; char *bEnd; const char *sn = NULL; code = strtoull (tkn, &bEnd, 10); if (tkn == bEnd || *bEnd != '\0' || errno == ERANGE) { LOG_DEBUG (("unable to convert cipher code to a valid decimal.")); goto fail; } /* ssl context */ if (!(ctx = SSL_CTX_new (SSLv23_server_method ()))) { LOG_DEBUG (("Unable to create a new SSL_CTX_new to extract TLS.")); goto fail; } if (!(ssl = SSL_new (ctx))) { LOG_DEBUG (("Unable to create a new instance of SSL_new to extract TLS.")); goto fail; } code_be = htobe16 (code); memcpy (cipherid, &code_be, 2); cipherid[2] = 0; if (!(c = SSL_CIPHER_find (ssl, cipherid))) { LOG_DEBUG (("Unable to find cipher to extract TLS.")); goto fail; } if (!(sn = SSL_CIPHER_standard_name (c))) { LOG_DEBUG (("Unable to get cipher standard name to extract TLS.")); goto fail; } *cipher = xstrdup (sn); *tls_version = xstrdup (SSL_CIPHER_get_version (c)); free (tkn); SSL_free (ssl); SSL_CTX_free (ctx); return 0; fail: free (tkn); if (ssl) SSL_free (ssl); if (ctx) SSL_CTX_free (ctx); return 1; } #endif /* Extract the next delimiter given a log format and copy the delimiter to the * destination buffer. * * On error, the dest buffer will be empty. * On success, the delimiter(s) are stored in the dest buffer. */ static void get_delim (char *dest, const char *p) { /* done, nothing to do */ if (p[0] == '\0' || p[1] == '\0') { dest[0] = '\0'; return; } /* add the first delim */ dest[0] = *(p + 1); } /* Extract and malloc a token given the parsed rule. * * On success, the malloc'd token is returned. */ static char * parsed_string (const char *pch, const char **str, int move_ptr) { char *p; size_t len = (pch - *str + 1); p = xmalloc (len); memcpy (p, *str, (len - 1)); p[len - 1] = '\0'; if (move_ptr) *str += len - 1; return trim_str (p); } /* Find and extract a token given a log format rule. * * On error, or unable to parse it, NULL is returned. * On success, the malloc'd token is returned. */ static char * parse_string (const char **str, const char *delims, int cnt) { int idx = 0; const char *pch = *str, *p = NULL; char end; if ((*delims != 0x0) && (p = strpbrk (*str, delims)) == NULL) return NULL; end = !*delims ? 0x0 : *p; do { /* match number of delims */ if (*pch == end) idx++; /* delim found, parse string then */ if ((*pch == end && cnt == idx) || *pch == '\0') return parsed_string (pch, str, 1); /* advance to the first unescaped delim */ if (*pch == '\\') pch++; } while (*pch++); return NULL; } char * extract_by_delim (const char **str, const char *end) { return parse_string (&(*str), end, 1); } /* Move forward through the log string until a non-space (!isspace) * char is found. */ static void find_alpha (const char **str) { const char *s = *str; while (*s) { if (isspace ((unsigned char) *s)) s++; else break; } *str += s - *str; } /* Move forward through the log string until a non-space (!isspace) * char is found and returns the count. */ static int find_alpha_count (const char *str) { int cnt = 0; const char *s = str; while (*s) { if (isspace ((unsigned char) *s)) s++, cnt++; else break; } return cnt; } /* Format the broken-down time tm to a numeric date format. * * On error, or unable to format the given tm, 1 is returned. * On success, a malloc'd format is returned. */ #pragma GCC diagnostic ignored "-Wformat-nonliteral" static int set_date (char **fdate, struct tm tm) { char buf[DATE_LEN] = ""; /* Ymd */ memset (buf, 0, sizeof (buf)); if (strftime (buf, DATE_LEN, conf.date_num_format, &tm) <= 0) return 1; *fdate = xstrdup (buf); return 0; } /* Format the broken-down time tm to a numeric time format. * * On error, or unable to format the given tm, 1 is returned. * On success, a malloc'd format is returned. */ static int set_time (char **ftime, struct tm tm) { char buf[TIME_LEN] = ""; memset (buf, 0, sizeof (buf)); if (strftime (buf, TIME_LEN, "%H:%M:%S", &tm) <= 0) return 1; *ftime = xstrdup (buf); return 0; } /* Determine the parsing specifier error and construct a message out * of it. * * On success, a malloc'd error message is assigned to the log * structure and 1 is returned. */ static int spec_err (GLogItem *logitem, int code, const char spec, const char *tkn) { char *err = NULL; const char *fmt = NULL; switch (code) { case ERR_SPEC_TOKN_NUL: fmt = "Token for '%%%c' specifier is NULL."; err = xmalloc (snprintf (NULL, 0, fmt, spec) + 1); sprintf (err, fmt, spec); break; case ERR_SPEC_TOKN_INV: fmt = "Token '%s' doesn't match specifier '%%%c'"; err = xmalloc (snprintf (NULL, 0, fmt, (tkn ? tkn : "-"), spec) + 1); sprintf (err, fmt, (tkn ? tkn : "-"), spec); break; case ERR_SPEC_SFMT_MIS: fmt = "Missing braces '%s' and ignore chars for specifier '%%%c'"; err = xmalloc (snprintf (NULL, 0, fmt, (tkn ? tkn : "-"), spec) + 1); sprintf (err, fmt, (tkn ? tkn : "-"), spec); break; case ERR_SPEC_LINE_INV: fmt = "Incompatible format due to early parsed line ending '\\0'."; err = xmalloc (snprintf (NULL, 0, fmt, (tkn ? tkn : "-")) + 1); sprintf (err, fmt, (tkn ? tkn : "-")); break; } logitem->errstr = err; return code; } static void set_tm_dt_logitem (GLogItem *logitem, struct tm tm) { logitem->dt.tm_year = tm.tm_year; logitem->dt.tm_mon = tm.tm_mon; logitem->dt.tm_mday = tm.tm_mday; } static void set_tm_tm_logitem (GLogItem *logitem, struct tm tm) { logitem->dt.tm_hour = tm.tm_hour; logitem->dt.tm_min = tm.tm_min; logitem->dt.tm_sec = tm.tm_sec; } static void set_numeric_date (uint32_t *numdate, const char *date) { int res = 0; if ((res = str2int (date)) == -1) FATAL ("Unable to parse date to integer %s", date); *numdate = res; } static void set_agent_hash (GLogItem *logitem) { logitem->agent_hash = djb2 ((unsigned char *) logitem->agent); sprintf (logitem->agent_hex, "%" PRIx32, logitem->agent_hash); } static int handle_default_case_token (const char **str, const char *p) { char *pch = NULL; if ((pch = strchr (*str, p[1])) != NULL) *str += pch - *str; return 0; } static void normalize_mime_type (const char *mime, char *out, size_t out_size) { size_t mime_len = 0, remaining = 0; char *temp = NULL, *dest = NULL, *ptr = NULL, *token = NULL, *end = NULL, *sep = NULL, *c = NULL; const char *delims = NULL; int first = 0, n = 0; if (!mime || !out || out_size == 0) return; mime_len = strlen (mime); temp = xmalloc (mime_len + 1); memcpy (temp, mime, mime_len + 1); out[0] = '\0'; dest = out; remaining = out_size; /* Set the delimiters; both ';' and ',' are significant separators */ delims = ";,"; first = 1; ptr = temp; /* Process each token */ while (*ptr != '\0') { /* Skip leading whitespace */ while (*ptr && isspace ((unsigned char) *ptr)) ptr++; if (*ptr == '\0') break; token = ptr; /* Find next delimiter */ sep = strpbrk (ptr, delims); if (sep != NULL) { *sep = '\0'; ptr = sep + 1; } else { ptr += strlen (ptr); } /* Trim trailing whitespace on token */ end = token + strlen (token) - 1; while (end >= token && isspace ((unsigned char) *end)) { *end = '\0'; end--; } if (*token == '\0') continue; /* Convert token to lower-case in place */ for (c = token; *c; c++) *c = (char) tolower ((unsigned char) *c); /* Append separator if this is not the first token */ if (!first) { n = snprintf (dest, remaining, "; "); if (n < 0 || (size_t) n >= remaining) { dest[remaining - 1] = '\0'; free (temp); return; } dest += n; remaining -= n; } else { first = 0; } /* Append the normalized token safely */ n = snprintf (dest, remaining, "%s", token); if (n < 0 || (size_t) n >= remaining) { dest[remaining - 1] = '\0'; free (temp); return; } dest += n; remaining -= n; } free (temp); } #pragma GCC diagnostic warning "-Wformat-nonliteral" /* Parse the log string given log format rule. * * On error, or unable to parse it, 1 is returned. * On success, the malloc'd token is assigned to a GLogItem member. */ static int parse_specifier (GLogItem *logitem, const char **str, const char *p, const char *end) { struct tm tm; const char *dfmt = conf.date_format; const char *tfmt = conf.time_format; char norm_mime[MAX_MIME_OUT] = { 0 }; char *pch, *sEnd, *bEnd, *tkn = NULL; double serve_secs = 0.0; uint64_t bandw = 0, serve_time = 0; int dspc = 0, fmtspcs = 0; errno = 0; memset (&tm, 0, sizeof (tm)); tm.tm_isdst = -1; tm = logitem->dt; switch (*p) { /* date */ case 'd': if (logitem->date) return handle_default_case_token (str, p); /* Attempt to parse date format containing spaces, * i.e., syslog date format (Jul\s15, Nov\s\s2). * Note that it's possible a date could contain some padding, e.g., * Dec\s\s2 vs Nov\s22, so we attempt to take that into consideration by looking * ahead the log string and counting the # of spaces until we find an alphanum char. */ if ((fmtspcs = count_matches (dfmt, ' ')) && (pch = strchr (*str, ' '))) dspc = find_alpha_count (pch); if (!(tkn = parse_string (&(*str), end, MAX (dspc, fmtspcs) + 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); if (str_to_time (tkn, dfmt, &tm, 1) != 0 || set_date (&logitem->date, tm) != 0) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } set_numeric_date (&logitem->numdate, logitem->date); set_tm_dt_logitem (logitem, tm); free (tkn); break; /* time */ case 't': if (logitem->time) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); if (str_to_time (tkn, tfmt, &tm, 1) != 0 || set_time (&logitem->time, tm) != 0) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } set_tm_tm_logitem (logitem, tm); free (tkn); break; /* date/time as decimal, i.e., timestamps, ms/us */ case 'x': if (logitem->time && logitem->date) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); if (str_to_time (tkn, tfmt, &tm, 1) != 0 || set_date (&logitem->date, tm) != 0 || set_time (&logitem->time, tm) != 0) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } set_numeric_date (&logitem->numdate, logitem->date); set_tm_dt_logitem (logitem, tm); set_tm_tm_logitem (logitem, tm); free (tkn); break; /* Virtual Host */ case 'v': if (logitem->vhost) return handle_default_case_token (str, p); tkn = parse_string (&(*str), end, 1); if (tkn == NULL) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); logitem->vhost = tkn; break; /* remote user */ case 'e': if (logitem->userid) return handle_default_case_token (str, p); tkn = parse_string (&(*str), end, 1); if (tkn == NULL) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); logitem->userid = tkn; break; /* cache status */ case 'C': if (logitem->cache_status) return handle_default_case_token (str, p); tkn = parse_string (&(*str), end, 1); if (tkn == NULL) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); if (is_cache_hit (tkn)) logitem->cache_status = tkn; else free (tkn); break; /* remote hostname (IP only) */ case 'h': if (logitem->host) return handle_default_case_token (str, p); /* per https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2 */ /* square brackets are possible */ if (*str[0] == '[' && (*str += 1) && **str) end = "]"; if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); if (!conf.no_ip_validation && invalid_ipaddr (tkn, &logitem->type_ip)) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } /* require a valid host token (e.g., ord38s18-in-f14.1e100.net) even when we're * not validating the IP */ if (conf.no_ip_validation && *tkn == '\0') { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } logitem->host = tkn; break; /* request method */ case 'm': if (logitem->method) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); { const char *meth = NULL; if (!(meth = extract_method (tkn))) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } logitem->method = xstrdup (meth); free (tkn); } break; /* request not including method or protocol */ case 'U': if (logitem->req) return handle_default_case_token (str, p); tkn = parse_string (&(*str), end, 1); if (tkn == NULL || *tkn == '\0') { free (tkn); return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); } if ((logitem->req = decode_url (tkn)) == NULL) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } free (tkn); break; /* query string alone, e.g., ?param=goaccess&tbm=shop */ case 'q': if (logitem->qstr) return handle_default_case_token (str, p); tkn = parse_string (&(*str), end, 1); if (tkn == NULL || *tkn == '\0') { free (tkn); return 0; } if ((logitem->qstr = decode_url (tkn)) == NULL) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } free (tkn); break; /* request protocol */ case 'H': if (logitem->protocol) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); { const char *proto = NULL; if (!(proto = extract_protocol (tkn))) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } logitem->protocol = xstrdup (proto); free (tkn); } break; /* request, including method + protocol */ case 'r': if (logitem->req) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); logitem->req = parse_req (tkn, &logitem->method, &logitem->protocol); free (tkn); break; /* Status Code */ case 's': if (logitem->status >= 0) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); logitem->status = strtol (tkn, &sEnd, 10); if (tkn == sEnd || *sEnd != '\0' || errno == ERANGE || (!conf.no_strict_status && !is_valid_http_status (logitem->status))) { spec_err (logitem, ERR_SPEC_TOKN_INV, *p, tkn); free (tkn); return 1; } free (tkn); break; /* size of response in bytes - excluding HTTP headers */ case 'b': if (logitem->resp_size) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); bandw = strtoull (tkn, &bEnd, 10); if (tkn == bEnd || *bEnd != '\0' || errno == ERANGE) bandw = 0; logitem->resp_size = bandw; { int expected = 0; __atomic_compare_exchange_n (&conf.bandwidth, &expected, 1, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); } free (tkn); break; /* referrer */ case 'R': if (logitem->ref) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) tkn = alloc_string ("-"); if (*tkn == '\0') { free (tkn); tkn = alloc_string ("-"); } if (strcmp (tkn, "-") != 0) { extract_keyphrase (tkn, &logitem->keyphrase); extract_referer_site (tkn, logitem->site); /* hide referrers from report */ if (hide_referer (logitem->site)) { logitem->site[0] = '\0'; free (tkn); } else logitem->ref = tkn; break; } logitem->ref = tkn; break; /* user agent */ case 'u': if (logitem->agent) return handle_default_case_token (str, p); tkn = parse_string (&(*str), end, 1); if (tkn != NULL && *tkn != '\0') { /* Make sure the user agent is decoded (i.e.: CloudFront) */ logitem->agent = decode_url (tkn); set_browser_os (logitem); set_agent_hash (logitem); free (tkn); break; } else if (tkn != NULL && *tkn == '\0') { free (tkn); tkn = alloc_string ("-"); } /* must be null */ else { tkn = alloc_string ("-"); } logitem->agent = tkn; set_agent_hash (logitem); break; /* time taken to serve the request, in milliseconds as a decimal number */ case 'L': /* ignore it if we already have served time */ if (logitem->serve_time) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); serve_secs = strtoull (tkn, &bEnd, 10); if (tkn == bEnd || *bEnd != '\0' || errno == ERANGE) serve_secs = 0; /* convert it to microseconds */ logitem->serve_time = (serve_secs > 0) ? serve_secs * MILS : 0; /* Determine if time-served data was stored on-disk. */ { int expected = 0; __atomic_compare_exchange_n (&conf.serve_usecs, &expected, 1, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); } free (tkn); break; /* time taken to serve the request, in seconds with a milliseconds * resolution */ case 'T': /* ignore it if we already have served time */ if (logitem->serve_time) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); if (strchr (tkn, '.') != NULL) serve_secs = strtod (tkn, &bEnd); else serve_secs = strtoull (tkn, &bEnd, 10); if (tkn == bEnd || *bEnd != '\0' || errno == ERANGE) serve_secs = 0; /* convert it to microseconds */ logitem->serve_time = (serve_secs > 0) ? serve_secs * SECS : 0; /* Determine if time-served data was stored on-disk. */ { int expected = 0; __atomic_compare_exchange_n (&conf.serve_usecs, &expected, 1, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); } free (tkn); break; /* time taken to serve the request, in microseconds */ case 'D': /* ignore it if we already have served time */ if (logitem->serve_time) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); serve_time = strtoull (tkn, &bEnd, 10); if (tkn == bEnd || *bEnd != '\0' || errno == ERANGE) serve_time = 0; logitem->serve_time = serve_time; /* Determine if time-served data was stored on-disk. */ { int expected = 0; __atomic_compare_exchange_n (&conf.serve_usecs, &expected, 1, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); } free (tkn); break; /* time taken to serve the request, in nanoseconds */ case 'n': /* ignore it if we already have served time */ if (logitem->serve_time) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); serve_time = strtoull (tkn, &bEnd, 10); if (tkn == bEnd || *bEnd != '\0' || errno == ERANGE) serve_time = 0; /* convert it to microseconds */ logitem->serve_time = (serve_time > 0) ? serve_time / MILS : 0; /* Determine if time-served data was stored on-disk. */ { int expected = 0; __atomic_compare_exchange_n (&conf.serve_usecs, &expected, 1, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); } free (tkn); break; /* UMS: Krypto (TLS) "ECDHE-RSA-AES128-GCM-SHA256" */ case 'k': /* error to set this twice */ if (logitem->tls_cypher) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); #if defined(HAVE_LIBSSL) && defined(HAVE_CIPHER_STD_NAME) { char *tmp = NULL; for (tmp = tkn; isdigit ((unsigned char) *tmp); tmp++); if (!strlen (tmp)) extract_tls_version_cipher (tkn, &logitem->tls_cypher, &logitem->tls_type); else logitem->tls_cypher = tkn; } #else logitem->tls_cypher = tkn; #endif break; /* UMS: Krypto (TLS) parameters like "TLSv1.2" */ case 'K': /* error to set this twice */ if (logitem->tls_type) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); logitem->tls_type = tkn; break; /* UMS: Mime-Type like "text/html" */ case 'M': /* error to set this twice */ if (logitem->mime_type) return handle_default_case_token (str, p); if (!(tkn = parse_string (&(*str), end, 1))) return spec_err (logitem, ERR_SPEC_TOKN_NUL, *p, NULL); normalize_mime_type (tkn, norm_mime, sizeof (norm_mime)); if (norm_mime[0] != '\0') logitem->mime_type = strdup (norm_mime); else logitem->mime_type = NULL; free (tkn); break; /* move forward through str until not a space */ case '~': find_alpha (&(*str)); break; /* everything else skip it */ default: handle_default_case_token (str, p); } return 0; } /* Parse the special host specifier and extract the characters that * need to be rejected when attempting to parse the XFF field. * * If no unable to find both curly braces (boundaries), NULL is returned. * On success, the malloc'd reject set is returned. */ static char * extract_braces (const char **p) { const char *b1 = NULL, *b2 = NULL, *s = *p; char *ret = NULL; int esc = 0; ptrdiff_t len = 0; /* iterate over the log format */ for (; *s; s++) { if (*s == '\\') { esc = 1; } else if (*s == '{' && !esc) { b1 = s; } else if (*s == '}' && !esc) { b2 = s; break; } else { esc = 0; } } if ((!b1) || (!b2)) return NULL; if ((len = b2 - (b1 + 1)) <= 0) return NULL; /* Found braces, extract 'reject' character set. */ ret = xmalloc (len + 1); memcpy (ret, b1 + 1, len); ret[len] = '\0'; (*p) = b2 + 1; return ret; } /* Attempt to extract the client IP from an X-Forwarded-For (XFF) field. * * If no IP is found, 1 is returned. * On success, the malloc'd token is assigned to a GLogItem->host and * 0 is returned. */ static int set_xff_host (GLogItem *logitem, const char *str, const char *skips, int out) { const char *ptr = NULL, *tkn = NULL; int invalid_ip = 1, len = 0, type_ip = TYPE_IPINV; int idx = 0, skips_len = 0; skips_len = strlen (skips); ptr = str; while (*ptr != '\0') { if ((len = strcspn (ptr, skips)) == 0) { len++, ptr++, idx++; goto move; } /* If our index does not match the number of delimiters and we have already a * valid client IP, then we assume we have reached the length of the XFF */ if (idx < skips_len && logitem->host) break; ptr += len; /* extract possible IP */ if (!(tkn = parsed_string (ptr, &str, 0))) break; invalid_ip = invalid_ipaddr (tkn, &type_ip); /* done, already have IP and current token is not a host */ if (logitem->host && invalid_ip) { free ((void *) tkn); break; } if (!logitem->host && !invalid_ip) { logitem->host = xstrdup (tkn); logitem->type_ip = type_ip; } free ((void *) tkn); idx = 0; /* found the client IP, break then */ if (logitem->host && out) break; move: str += len; } return logitem->host == NULL; } /* Attempt to find possible delimiters in the X-Forwarded-For (XFF) field. * * If no IP is found, 1 is returned. * On success, the malloc'd token is assigned to a GLogItem->host and 0 is returned. */ static int find_xff_host (GLogItem *logitem, const char **str, const char **p) { char *skips = NULL, *extract = NULL; char pch[2] = { 0 }; int res = 0; if (!(skips = extract_braces (p))) return spec_err (logitem, ERR_SPEC_SFMT_MIS, **p, "{}"); /* if the log format current char is not within the braces special chars, then * we assume the range of IPs are within hard delimiters */ if (!strchr (skips, **p) && strchr (*str, **p)) { *pch = **p; *(pch + 1) = '\0'; if (!(extract = parse_string (&(*str), pch, 1))) goto clean; res = set_xff_host (logitem, extract, skips, 1); free (extract); (*str)++; /* move a char forward from the trailing delim */ } else { res = set_xff_host (logitem, *str, skips, 0); } clean: free (skips); return res; } /* Handle special specifiers. * * On error, or unable to parse it, 1 is returned. * On success, the malloc'd token is assigned to a GLogItem member and * 0 is returned. */ static int special_specifier (GLogItem *logitem, const char **str, const char **p) { switch (**p) { /* XFF remote hostname (IP only) */ case 'h': if (find_xff_host (logitem, str, p)) return spec_err (logitem, ERR_SPEC_TOKN_NUL, 'h', NULL); break; } return 0; } /* Iterate over the given log format. * * On error, or unable to parse it, 1 is returned. * On success, the malloc'd token is assigned to a GLogItem member and * 0 is returned. */ static int parse_format (GLogItem *logitem, const char *str, const char *lfmt) { char end[2 + 1] = { 0 }; const char *p = NULL, *last = NULL; int perc = 0, tilde = 0, ret = 0; if (str == NULL || *str == '\0') return 1; /* iterate over the log format */ last = lfmt + strlen (lfmt); for (p = lfmt; p < last; p++) { if (*p == '%') { perc++; continue; } if (*p == '~' && perc == 0) { tilde++; continue; } if (*str == '\0') return spec_err (logitem, ERR_SPEC_LINE_INV, '-', NULL); if (*str == '\n') return 0; if (tilde && *p != '\0') { if (*str == '\0') return 0; if (special_specifier (logitem, &str, &p) == 1) return 1; tilde = 0; } /* %h */ else if (perc && *p != '\0') { if (*str == '\0') return 0; memset (end, 0, sizeof end); get_delim (end, p); /* attempt to parse format specifiers */ if ((ret = parse_specifier (logitem, &str, p, end))) return ret; perc = 0; } else if (perc && isspace ((unsigned char) p[0])) { return 1; } else { str++; } } return 0; } /* Determine if the log string is valid and if it's not a comment. * * On error, or invalid, 1 is returned. * On success, or valid line, 0 is returned. */ static int valid_line (char *line) { /* invalid line */ if ((line == NULL) || (*line == '\0')) return 1; /* ignore comments */ if (*line == '#' || *line == '\n') return 1; return 0; } /* Ignore request's query string. e.g., * /index.php?timestamp=1454385289 */ static void strip_qstring (char *req) { char *qmark; if ((qmark = strchr (req, '?')) != NULL) { if ((qmark - req) > 0) *qmark = '\0'; } } /* Output all log errors stored during parsing. */ void output_logerrors (void) { Logs *logs = get_db_logs (DB_INSTANCE); GLog *glog = NULL; int pid = getpid (), i; for (i = 0; i < logs->size; ++i) { glog = &logs->glog[i]; if (!glog->log_erridx) continue; fprintf (stderr, "==%d== GoAccess - version %s - %s %s\n", pid, GO_VERSION, __DATE__, __TIME__); fprintf (stderr, "==%d== Config file: %s\n", pid, conf.iconfigfile ? : NO_CONFIG_FILE); fprintf (stderr, "==%d== https://goaccess.io - \n", pid); fprintf (stderr, "==%d== Released under the MIT License.\n", pid); fprintf (stderr, "==%d==\n", pid); fprintf (stderr, "==%d== FILE: %s\n", pid, glog->props.filename); fprintf (stderr, "==%d== ", pid); fprintf (stderr, ERR_PARSED_NLINES, glog->log_erridx); fprintf (stderr, " %s:\n", ERR_PARSED_NLINES_DESC); fprintf (stderr, "==%d==\n", pid); for (i = 0; i < glog->log_erridx; ++i) fprintf (stderr, "==%d== %s\n", pid, glog->errors[i]); } fprintf (stderr, "==%d==\n", pid); fprintf (stderr, "==%d== %s\n", pid, ERR_FORMAT_HEADER); fprintf (stderr, "==%d== %s\n", pid, HINT_INVALID_REQUESTS); } /* Ensure we have the following fields. */ static int verify_missing_fields (GLogItem *logitem) { /* must have the following fields */ if (logitem->host == NULL) logitem->errstr = xstrdup ("IPv4/6 is required. You have to add format specifier '%h' [host (the client IP address, either IPv4 or IPv6)] to your log-format."); else if (logitem->date == NULL) logitem->errstr = xstrdup ("A valid date is required. You have to add format specifier '%x' [Datetime] or '%d' [Date] and '%t' [Time] to your log-format."); else if (logitem->req == NULL) logitem->errstr = xstrdup ("A request is required. Your log-format is missing format specifier '%r' [The request line from the client] or combination of special format specifiers such as '%m', '%U', '%q' and '%H' to parse individual fields."); return logitem->errstr != NULL; } /* Determine if the request is from a robot or spider and check if we * need to ignore or show crawlers only. * * If the request line is not ignored, 0 is returned. * If the request line is ignored, 1 is returned. */ static int handle_crawler (const char *agent) { int bot = 0; if (!conf.ignore_crawlers && !conf.crawlers_only) return 1; bot = is_crawler (agent); return (conf.ignore_crawlers && bot) || (conf.crawlers_only && !bot) ? 0 : 1; } /* A wrapper function to determine if the request is static. * * If the request is not static, 0 is returned. * If the request is static, 1 is returned. */ static int is_static (const char *req) { return verify_static_content (req); } /* Determine if the request of the given status code needs to be * ignored. * * If the status code is not within the ignore-array, 0 is returned. * If the status code is within the ignore-array, 1 is returned. */ static int ignore_status_code (int status) { int i = 0; if (!status || conf.ignore_status_idx == 0) return 0; for (i = 0; i < conf.ignore_status_idx; i++) if (status == conf.ignore_status[i]) return 1; return 0; } /* Determine if static file request should be ignored * * If the request line is not ignored, 0 is returned. * If the request line is ignored, 1 is returned. */ static int ignore_static (const char *req) { if (conf.ignore_statics && is_static (req)) return 1; return 0; } /* Determine if the request status code is a 404. * * If the request is not a 404, 0 is returned. * If the request is a 404, 1 is returned. */ static int is_404 (GLogItem *logitem) { /* is this a 404? */ if (logitem->status == 404) return 1; /* treat 444 as 404? */ else if (logitem->status == 444 && conf.code444_as_404) return 1; return 0; } /* A wrapper function to determine if a log line needs to be ignored. * * If the request line is not ignored, 0 is returned. * If the request line is ignored, IGNORE_LEVEL_PANEL is returned. * If the request line is only not counted as valid, IGNORE_LEVEL_REQ is returned. */ static int ignore_line (GLogItem *logitem) { if (excluded_ip (logitem) == 0) return IGNORE_LEVEL_PANEL; if (handle_crawler (logitem->agent) == 0) return IGNORE_LEVEL_PANEL; if (ignore_referer (logitem->ref)) return IGNORE_LEVEL_PANEL; if (ignore_status_code (logitem->status)) return IGNORE_LEVEL_PANEL; if (ignore_static (logitem->req)) return conf.ignore_statics; // IGNORE_LEVEL_PANEL or IGNORE_LEVEL_REQ /* check if we need to remove the request's query string */ if (conf.ignore_qstr) strip_qstring (logitem->req); return 0; } /* The following generates a unique key to identity unique visitors. * The key is made out of the IP, date, and user agent. * Note that for readability, doing a simple snprintf/sprintf should * suffice, however, memcpy is the fastest solution * * On success the new unique visitor key is returned */ static char * get_uniq_visitor_key (GLogItem *logitem) { char *key = NULL; size_t s1, s2, s3; s1 = strlen (logitem->date); s2 = strlen (logitem->host); s3 = strlen (logitem->agent_hex); /* includes terminating null */ key = xcalloc (s1 + s2 + s3 + 3, sizeof (char)); memcpy (key, logitem->date, s1); key[s1] = '|'; memcpy (key + s1 + 1, logitem->host, s2 + 1); key[s1 + s2 + 1] = '|'; memcpy (key + s1 + s2 + 2, logitem->agent_hex, s3 + 1); return key; } /* Determine if the current log has the content from the last time it was * parsed. It does this by comparing READ_BYTES against the beginning of the * log. * * Returns 1 if the content is likely the same or no data to compare * Returns 0 if it has different content */ static int is_likely_same_log (GLog *glog, const GLastParse *lp) { size_t size = 0; if (!lp->size) return 1; /* Must be a LOG */ size = MIN (glog->snippetlen, lp->snippetlen); if (glog->snippet[0] != '\0' && lp->snippet[0] != '\0' && memcmp (glog->snippet, lp->snippet, size) == 0) return 1; return 0; } /* Determine if we should insert new record or if it's a duplicate record from * a previously persisted dataset * * Returns 1 if it thinks the record it's being restored from disk * Returns 0 if we need to parse the record */ static int should_restore_from_disk (GLog *glog) { GLastParse lp = { 0 }; if (!conf.restore) return 0; lp = ht_get_last_parse (glog->props.inode); /* No last parse timestamp, continue parsing as we got nothing to compare * against */ if (!lp.ts) return 0; /* If our current line is greater or equal (zero indexed) to the last parsed * line and have equal timestamps, then keep parsing then */ if (glog->props.inode && is_likely_same_log (glog, &lp)) { if (glog->props.size > lp.size && glog->read >= lp.line) return 0; return 1; } /* No inode (probably a pipe), prior or equal timestamps means restore from * disk (exclusive) */ if (!glog->props.inode && lp.ts >= glog->lp.ts) return 1; /* If not likely the same content, then fallback to the following checks */ /* If timestamp is greater than last parsed, read the line then */ if (glog->lp.ts > lp.ts) return 0; /* Check if current log size is smaller than the one last parsed, if it is, * it was possibly truncated and thus it may be smaller, so fallback to * timestamp even if they are equal to the last parsed timestamp */ else if (glog->props.size < lp.size && glog->lp.ts == lp.ts) return 0; /* Everything else we ignore it. For instance, if current log size is * greater than the one last parsed, or the timestamp are equal, we ignore the * request. * * **NOTE* We try to play safe here as we would rather miss a few lines * than double-count a few. */ return 1; } static void process_invalid (GLog *glog, GLogItem *logitem, const char *line) { GLastParse lp = { 0 }; /* if not restoring from disk, then count entry as proceeded and invalid */ if (!conf.restore) { count_process_and_invalid (glog, logitem, line); return; } lp = ht_get_last_parse (glog->props.inode); /* If our current line is greater or equal (zero indexed) to the last parsed * line then keep parsing then */ if (glog->props.inode && is_likely_same_log (glog, &lp)) { /* only count invalids if we're past the last parsed line */ if (glog->props.size > lp.size && glog->read >= lp.line) count_process_and_invalid (glog, logitem, line); return; } /* no timestamp to compare against, just count the invalid then */ if (!logitem->numdate) { count_process_and_invalid (glog, logitem, line); return; } /* if there's a valid timestamp, count only if greater than last parsed ts */ if ((glog->lp.ts = mktime (&logitem->dt)) == -1) return; /* check if we were able to at least parse the date/time, if no date/time * then we simply don't count the entry as proceed & invalid to attempt over * counting restored data */ if (should_restore_from_disk (glog) == 0) count_process_and_invalid (glog, logitem, line); } static int parse_json_specifier (void *ptr_data, char *key, char *str) { GLogItem *logitem = (GLogItem *) ptr_data; char *spec = NULL; int ret = 0; if (!key || !str) return 0; /* empty JSON value, e.g., {method: ""} */ if (0 == strlen (str)) return 0; if (!(spec = ht_get_json_logfmt (key))) return 0; ret = parse_format (logitem, str, spec); free (spec); return ret; } static int parse_json_format (GLogItem *logitem, char *str) { return parse_json_string (logitem, str, parse_json_specifier); } /* Atomically updates glog->lp.ts with the maximum timestamp value from * logitem->dt. * * On error (if mktime fails), returns -1. * On success, returns the updated timestamp value, which is also stored in * glog->lp.ts. */ static int atomic_lpts_update (GLog *glog, GLogItem *logitem) { int64_t newts = mktime (&logitem->dt); // Get timestamp from logitem->dt int64_t oldts = __atomic_load_n (&glog->lp.ts, __ATOMIC_SEQ_CST); int64_t expected; while (oldts < newts) { // Only update if new timestamp is later expected = oldts; // Attempt to update glog->lp.ts from expected (oldts) to newts. if (__atomic_compare_exchange_n (&glog->lp.ts, &expected, newts, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)) { break; // Successful update. } // If the CAS failed, expected now holds the current glog->lp.ts. oldts = expected; if (oldts >= newts) break; } return newts; } static int cleanup_logitem (int ret, GLogItem *logitem) { if (logitem) free_glog (logitem); return ret; } /* Validate the basic log line format and parse it into a logitem. * * On error, ret is set and logitem contains error info. * On success, 0 is returned. */ static int validate_and_parse_line (char *line, GLogItem *logitem) { char *fmt = conf.log_format; int ret = 0; /* Parse a line of log, and fill structure with appropriate values */ if (conf.is_json_log_format) ret = parse_json_format (logitem, line); else ret = parse_format (logitem, line, fmt); return ret; } /* Collect error messages without incrementing counters (for dry run/testing) */ static void collect_invalid_errors (GLog *glog, GLogItem *logitem) { uint8_t idx = 0; if (logitem->errstr) { pthread_mutex_lock (&glog->error_mutex); idx = atomic_load (&glog->log_erridx); if (idx < MAX_LOG_ERRORS) { glog->errors[idx] = xstrdup (logitem->errstr); atomic_store (&glog->log_erridx, idx + 1); } pthread_mutex_unlock (&glog->error_mutex); } } /* Handle invalid log lines during parsing. * * During dry_run, only collects errors for display. * During normal runs, also increments counters. */ static int handle_invalid_line (GLog *glog, GLogItem *logitem, const char *line, int dry_run) { /* During dry run, only collect errors without counting */ if (dry_run) collect_invalid_errors (glog, logitem); else process_invalid (glog, logitem, line); return cleanup_logitem (1, logitem); } /* Apply post-parse processing to a valid logitem. * This includes vhost handling, timestamp updates, and restoration checks. * * Returns 1 if the line should be skipped (restoration check). * Returns 0 if processing should continue. */ static int apply_post_parse_processing (GLog *glog, GLogItem *logitem) { /* Apply vhost from filename if configured */ if (!glog->piping && conf.fname_as_vhost && glog->fname_as_vhost) logitem->vhost = xstrdup (glog->fname_as_vhost); /* Update timestamp atomically */ if (atomic_lpts_update (glog, logitem) == -1) return 1; /* Skip if we should restore from disk */ if (should_restore_from_disk (glog)) return 1; return 0; } /* Enrich a valid logitem with additional metadata. * This includes agent handling, ignore levels, static file detection, etc. */ static void enrich_logitem (GLogItem *logitem) { /* agent will be null in cases where %u is not specified */ if (logitem->agent == NULL) { logitem->agent = alloc_string ("-"); set_agent_hash (logitem); } logitem->ignorelevel = ignore_line (logitem); if (is_404 (logitem)) logitem->is_404 = 1; else if (is_static (logitem->req)) logitem->is_static = 1; /* concatenate vhost to request */ if (conf.concat_vhost_req) { size_t vhost_len = logitem->vhost ? strlen (logitem->vhost) : 0; size_t req_len = logitem->req ? strlen (logitem->req) : 0; char *new_req = xmalloc (vhost_len + req_len + 1); if (vhost_len) memcpy (new_req, logitem->vhost, vhost_len); if (req_len) memcpy (new_req + vhost_len, logitem->req, req_len); new_req[vhost_len + req_len] = '\0'; free (logitem->req); logitem->req = new_req; } logitem->uniq_key = get_uniq_visitor_key (logitem); } /* Parse a line from the log and store it accordingly taking into * account multiple parsing options prior to setting data into the * corresponding data structure. * * On error, logitem->errstr will contains the error message. */ int parse_line (GLog *glog, char *line, int dry_run, GLogItem **logitem_out) { int ret = 0; GLogItem *logitem = NULL; /* soft ignore these lines */ if (valid_line (line)) return -1; logitem = init_log_item (glog); /* Validate and parse the log format */ ret = validate_and_parse_line (line, logitem); if (ret) return handle_invalid_line (glog, logitem, line, dry_run); /* Apply post-parse processing (vhost, timestamp, restoration) */ ret = apply_post_parse_processing (glog, logitem); if (ret) return cleanup_logitem (0, logitem); /* valid format but missing fields */ if ((ret = verify_missing_fields (logitem))) return handle_invalid_line (glog, logitem, line, dry_run); /* Only count processed during non-dry runs */ if (!dry_run) count_process (glog); /* testing log only - return without further processing */ if (dry_run) return cleanup_logitem (0, logitem); /* Enrich the logitem with additional metadata */ enrich_logitem (logitem); /* ignore line at panel level */ if (logitem->ignorelevel == IGNORE_LEVEL_PANEL) return cleanup_logitem (0, logitem); *logitem_out = logitem; return 0; } /* Entry point to process the given line from the log. * * On error, NULL is returned. * On success or soft ignores, GLogItem is returned. */ static GLogItem * read_line (GLog *glog, char *line, int *test, uint32_t *cnt, int dry_run) { GLogItem *logitem = NULL; int ret = 0; if ((ret = parse_line (glog, line, dry_run, &logitem)) == 0) *test = 0; if (ret == -1) return NULL; /* Increment local counter (will be synchronized later) */ if (conf.num_tests && ++(*cnt) >= conf.num_tests && *test) { uncount_processed (glog); uncount_invalid (glog); return NULL; } atomic_fetch_add (&glog->read, 1); // Only 2 arguments! return logitem; } /* Parse chunk of lines to logitems */ static void * read_lines_thread (void *arg) { GJob *job = (GJob *) arg; int i = 0; uint32_t local_cnt = atomic_load (&job->cnt); for (i = 0; i < job->p; i++) { /* Check stop_processing atomically */ if (atomic_load (&conf.stop_processing)) break; /* ensure we don't process more than we should when testing for log format */ if (!job->test || (job->test && local_cnt < conf.num_tests)) { job->logitems[i] = read_line (job->glog, job->lines[i], &job->test, &local_cnt, job->dry_run); } else { atomic_store (&conf.stop_processing, 1); break; } #ifdef WITH_GETLINE free (job->lines[i]); #endif } /* Update shared counter atomically */ atomic_store (&job->cnt, local_cnt); return (void *) 0; } /* A replacement for GNU getline() to dynamically expand fgets buffer. * Wrapper for fgetline to work with GFileHandle abstraction * * On error, NULL is returned. * On success, the malloc'd line is returned. */ char * gfile_getline (GFileHandle *fh) { char buf[LINE_BUFFER] = { 0 }; char *line = NULL, *tmp = NULL; size_t linelen = 0, len = 0; while (1) { if (!gfile_gets (buf, sizeof (buf), fh)) { if (conf.process_and_exit && errno == EAGAIN) { (void) nanosleep ((const struct timespec[]) { {0, 100000000L} }, NULL); continue; } /* Return partial line on EOF if we have data */ if (gfile_eof (fh) && line != NULL && linelen > 0) return line; break; } len = strlen (buf); /* Skip empty reads but don't fail - could be transient. This is normal * when tailing files */ if (len == 0) continue; /* overflow check */ if (SIZE_MAX - len - 1 < linelen) break; if ((tmp = realloc (line, linelen + len + 1)) == NULL) break; line = tmp; strcpy (line + linelen, buf); linelen += len; /* Complete line or EOF reached */ if (gfile_eof (fh) || buf[len - 1] == '\n') return line; } free (line); return NULL; } void * process_lines_thread (void *arg) { GJob *job = (GJob *) arg; int i = 0; for (i = 0; i < job->p; i++) { if (job->logitems[i] != NULL && !job->dry_run && job->logitems[i]->errstr == NULL) { process_log (job->logitems[i]); free_glog (job->logitems[i]); job->logitems[i] = NULL; } } return (void *) 0; } /* Initialize jobs */ static void init_jobs (GJob jobs[2][conf.jobs], GLog *glog, int dry_run, int test) { int b = 0, k = 0; #ifndef WITH_GETLINE int i = 0; #endif /* Initialize error mutex once */ static int mutex_initialized = 0; if (!mutex_initialized) { pthread_mutex_init (&glog->error_mutex, NULL); mutex_initialized = 1; } for (b = 0; b < 2; b++) { for (k = 0; k < conf.jobs; k++) { jobs[b][k].p = 0; atomic_store (&jobs[b][k].cnt, 0); // Use atomic store jobs[b][k].glog = glog; jobs[b][k].test = test; jobs[b][k].dry_run = dry_run; jobs[b][k].running = 0; jobs[b][k].logitems = xcalloc (conf.chunk_size, sizeof (GLogItem)); jobs[b][k].lines = xcalloc (conf.chunk_size, sizeof (char *)); #ifndef WITH_GETLINE for (i = 0; i < conf.chunk_size; i++) jobs[b][k].lines[i] = xcalloc (LINE_BUFFER, sizeof (char)); #endif } } } /* Read lines from file */ static void read_lines_from_file (GFileHandle *fh, GLog *glog, GJob jobs[2][conf.jobs], int b, char **s) { int k = 0; for (k = 0; k < conf.jobs; k++) { #ifdef WITH_GETLINE while ((*s = gfile_getline (fh)) != NULL) { jobs[b][k].lines[jobs[b][k].p] = *s; #else while ((*s = gfile_gets (jobs[b][k].lines[jobs[b][k].p], LINE_BUFFER, fh)) != NULL) { #endif glog->bytes += strlen (jobs[b][k].lines[jobs[b][k].p]); if (++(jobs[b][k].p) >= conf.chunk_size) break; // goto next chunk } } } /* Processes lines using threads from the GJob array, updating counters. */ static void process_lines (GJob jobs[2][conf.jobs], uint32_t *cnt, int *test, int b) { int k = 0; for (k = 0; k < conf.jobs; k++) { process_lines_thread (&jobs[b][k]); /* If interrupted, free any remaining logitems that weren't processed */ if (atomic_load (&conf.stop_processing)) { int i; for (i = 0; i < jobs[b][k].p; i++) { if (jobs[b][k].logitems[i] != NULL) { free_glog (jobs[b][k].logitems[i]); jobs[b][k].logitems[i] = NULL; } } } /* Read atomic counter */ *cnt += atomic_load (&jobs[b][k].cnt); atomic_store (&jobs[b][k].cnt, 0); *test &= jobs[b][k].test; jobs[b][k].p = 0; } } /* Frees memory for lines and logitems in each job of the GJob array. */ static void free_jobs (GJob jobs[2][conf.jobs]) { int b = 0, k = 0; #ifndef WITH_GETLINE int i = 0; #endif for (b = 0; b < 2; b++) { for (k = 0; k < conf.jobs; k++) { #ifndef WITH_GETLINE for (i = 0; i < conf.chunk_size; i++) free (jobs[b][k].lines[i]); #endif free (jobs[b][k].logitems); free (jobs[b][k].lines); } } } /* Reads lines from the given file pointer `fp` and processes them using * parallel threads. * * On error or when interrupted by a signal (SIGINT), the function returns 0. * On success, it returns 1 if the number of processed lines is greater than or * equal to the configured number of tests (NUM_TESTS), otherwise 0. */ static int read_lines (GFileHandle *fh, GLog *glog, int dry_run) { int b = 0, k = 0, test = conf.num_tests > 0 ? 1 : 0; uint32_t cnt = 0; void *status = NULL; char *s = NULL; GJob jobs[2][conf.jobs]; pthread_t threads[conf.jobs]; glog->bytes = 0; init_jobs (jobs, glog, dry_run, test); b = 0; while (1) { /* b = 0 or 1 */ read_lines_from_file (fh, glog, jobs, b, &s); /* if nothing was read from the log, skip it for now */ if (!glog->bytes) { test = 0; break; } if (conf.jobs == 1) { read_lines_thread (&jobs[b][0]); } else { for (k = 0; k < conf.jobs; k++) { jobs[b][k].running = 1; pthread_create (&threads[k], NULL, read_lines_thread, (void *) &jobs[b][k]); } } /* flip from block A/B to B/A */ if (conf.jobs > 1) b = b ^ 1; process_lines (jobs, &cnt, &test, b); /* flip from block B/A to A/B */ if (conf.jobs > 1) b = b ^ 1; if (conf.jobs > 1) { for (k = 0; k < conf.jobs; k++) { if (jobs[b][k].running) { pthread_join (threads[k], &status); jobs[b][k].running = 0; } } } if (dry_run && cnt >= NUM_TESTS) break; /* handle SIGINT */ if (conf.stop_processing) break; /* check for EOF */ if (s == NULL) break; /* flip from block A/B to B/A */ if (conf.jobs > 1) b = b ^ 1; } // while (1) /* After eof, process last data */ for (b = 0; b < 2; b++) { for (k = 0; k < conf.jobs; k++) { if (conf.jobs > 1 && jobs[b][k].running) { pthread_join (threads[k], &status); jobs[b][k].running = 0; } if (jobs[b][k].p) { process_lines_thread (&jobs[b][k]); cnt += jobs[b][k].cnt; jobs[b][k].cnt = 0; test &= jobs[b][k].test; jobs[b][k].p = 0; } } } free_jobs (jobs); /* if no data was available to read from (probably from a pipe) and still in * test mode and still below the test count, we simply return until data * becomes available */ if (!s && (errno == EAGAIN || errno == EWOULDBLOCK) && test && cnt < conf.num_tests) return 0; return test; } /* Read the given log file and attempt to mmap a fixed number of bytes so we * can compare its content on future runs. * * On error, 1 is returned. * On success, 0 is returned. */ int set_initial_persisted_data (GLog *glog, GFileHandle *fh, const char *fn) { size_t len; time_t now = time (0); /* reset the snippet */ memset (glog->snippet, 0, sizeof (glog->snippet)); glog->snippetlen = 0; if (glog->props.size == 0) return 1; len = MIN (glog->props.size, READ_BYTES); if ((gfile_read (glog->snippet, len, 1, fh)) != 1 && gfile_error (fh)) FATAL ("Unable to read the specified log file '%s'", fn); glog->snippetlen = len; localtime_r (&now, &glog->start_time); gfile_seek (fh, 0, SEEK_SET); return 0; } static void persist_last_parse (GLog *glog) { /* insert last parsed data for the recently file parsed */ if (glog->props.inode && glog->props.size) { glog->lp.line = glog->read; glog->lp.snippetlen = glog->snippetlen; memcpy (glog->lp.snippet, glog->snippet, glog->snippetlen); ht_insert_last_parse (glog->props.inode, &glog->lp); } /* probably from a pipe */ else if (!glog->props.inode) { ht_insert_last_parse (0, &glog->lp); } } /* Read the given log line by line and process its data. * * On error, 1 is returned. * On success, 0 is returned. */ static int read_log (GLog *glog, int dry_run) { GFileHandle *fh = NULL; int piping = 0; struct stat fdstat; /* Reset stop_processing flag for new parse attempt */ atomic_store (&conf.stop_processing, 0); /* Ensure we have a valid pipe to read from stdin. Only checking for * conf.read_stdin without verifying for a valid FILE pointer would certainly * lead to issues. */ if (glog->props.filename[0] == '-' && glog->props.filename[1] == '\0' && glog->pipe) { /* For stdin pipe, we need to wrap the FILE* into a GFileHandle */ fh = calloc (1, sizeof (GFileHandle)); if (!fh) FATAL ("Unable to allocate memory for file handle"); fh->fp = glog->pipe; #ifdef HAVE_ZLIB fh->is_gzipped = 0; fh->gzfp = NULL; #endif glog->piping = piping = 1; } /* make sure we can open the log (if not reading from stdin) */ else if (!piping && (fh = gfile_open (glog->props.filename, "r")) == NULL) FATAL ("Unable to open the specified log file '%s'. %s", glog->props.filename, strerror (errno)); /* grab the inode of the file being parsed */ if (!piping && stat (glog->props.filename, &fdstat) == 0) { glog->props.inode = fdstat.st_ino; glog->props.size = glog->lp.size = fdstat.st_size; set_initial_persisted_data (glog, fh, glog->props.filename); } /* read line by line */ if (read_lines (fh, glog, dry_run)) { if (!piping) gfile_close (fh); else free (fh); /* Just free the wrapper, don't close the pipe */ return 1; } persist_last_parse (glog); /* close log file if not a pipe */ if (!piping) gfile_close (fh); else free (fh); /* Just free the wrapper, don't close the pipe */ return 0; } static void set_log_processing (Logs *logs, GLog *glog) { lock_spinner (); logs->processed = &(glog->processed); logs->filename = glog->props.filename; unlock_spinner (); } /* Entry point to parse the log line by line. * * On error, 1 is returned. * On success, 0 is returned. */ int parse_log (Logs *logs, int dry_run) { GLog *glog = NULL; const char *err_log = NULL; int idx; /* verify that we have the required formats */ if ((err_log = verify_formats ())) FATAL ("%s", err_log); /* no data piped, no logs passed, load from disk only then */ if (conf.restore && !logs->restored) logs->restored = rebuild_rawdata_cache (); /* no data piped, no logs passed, load from disk only then */ if (conf.restore && !conf.filenames_idx && !conf.read_stdin) { logs->load_from_disk_only = 1; return 0; } for (idx = 0; idx < logs->size; ++idx) { glog = &logs->glog[idx]; set_log_processing (logs, glog); if (read_log (glog, dry_run)) return 1; glog->length = glog->bytes; } return 0; } /* Ensure we have valid hits * * On error, an array of pointers containing the error strings. * On success, NULL is returned. */ char ** test_format (Logs *logs, int *len) { char **errors = NULL; GLog *glog = NULL; int i; if (parse_log (logs, 1) == 0) return NULL; for (i = 0; i < logs->size; ++i) { glog = &logs->glog[i]; if (!glog->log_erridx) continue; break; } errors = xcalloc (glog->log_erridx, sizeof (char *)); *len = glog->log_erridx; for (i = 0; i < glog->log_erridx; ++i) errors[i] = xstrdup (glog->errors[i]); free_logerrors (glog); return errors; } ================================================ FILE: src/parser.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef PARSER_H_INCLUDED #define PARSER_H_INCLUDED #define KEY_FOUND 1 #define KEY_NOT_FOUND -1 #define LINE_BUFFER 4096 /* read at most this num of chars */ #define NUM_TESTS 20 /* test this many lines from the log */ #define MAX_LOG_ERRORS 20 #define READ_BYTES 4096u #define MAX_BATCH_LINES 8192u /* max number of lines to read per batch before a reflow */ #define MAX_MIME_OUT 256 #define LINE_LEN 23 #define ERROR_LEN 255 #define REF_SITE_LEN 511 /* maximum length of a referring site */ #define CACHE_STATUS_LEN 7 #define HASH_HEX 64 #define ERR_SPEC_TOKN_NUL 0x1 #define ERR_SPEC_TOKN_INV 0x2 #define ERR_SPEC_SFMT_MIS 0x3 #define ERR_SPEC_LINE_INV 0x4 #define ERR_LOG_NOT_FOUND 0x5 #define ERR_LOG_REALLOC_FAILURE 0x6 #include #include #include #include "commons.h" #include "gslist.h" #include "fileio.h" typedef struct GLogProp_ { char *filename; /* filename including path */ char *fname; /* basename(filename) */ uint64_t inode; /* inode of the log */ uint64_t size; /* original size of log */ } GLogProp; /* Log properties. Note: This is per line parsed */ typedef struct GLogItem_ { char *agent; char *browser; char *browser_type; char *continent; char *country; char *city; char *asn; char *date; char *host; char *keyphrase; char *method; char *os; char *os_type; char *protocol; char *qstr; char *ref; char *req; char *req_key; int status; char *time; char *uniq_key; char *vhost; char *userid; char *cache_status; char site[REF_SITE_LEN + 1]; char agent_hex[HASH_HEX]; uint64_t resp_size; uint64_t serve_time; uint32_t numdate; uint32_t agent_hash; int ignorelevel; int type_ip; int is_404; int is_static; int uniq_nkey; int agent_nkey; /* UMS */ char *mime_type; char *tls_type; char *tls_cypher; char *tls_type_cypher; char *errstr; struct tm dt; } GLogItem; typedef struct GLastParse_ { uint32_t line; int64_t ts; uint64_t size; uint16_t snippetlen; char snippet[READ_BYTES + 1]; } GLastParse; /* Overall parsed log properties */ typedef struct GLog_ { uint8_t piping:1; _Atomic uint8_t log_erridx; _Atomic uint32_t read; /* lines read/parsed */ uint64_t bytes; /* bytes read on each iteration */ uint64_t length; /* length read from the log so far */ _Atomic uint64_t invalid; /* invalid lines for this log */ uint64_t processed; /* lines proceeded for this log */ uint16_t snippetlen; char snippet[READ_BYTES + 1]; GLastParse lp; GLogProp props; struct tm start_time; char *fname_as_vhost; char **errors; FILE *pipe; pthread_mutex_t error_mutex; // Add mutex for error array } GLog; /* Container for all logs */ typedef struct Logs_ { uint8_t restored:1; uint8_t load_from_disk_only:1; uint64_t *processed; uint64_t offset; int size; /* num items */ int idx; char *filename; GLog *glog; } Logs; /* Pthread jobs for multi-thread */ typedef struct GJob_ { _Atomic uint32_t cnt; // Make atomic int p, test, dry_run, running; GLog *glog; GLogItem **logitems; char **lines; } GJob; /* Raw data field type */ typedef enum { U32, STR } datatype; /* Raw Data extracted from table stores */ typedef struct GRawDataItem_ { uint32_t nkey; union { const char *data; uint32_t hits; }; } GRawDataItem; /* Raw Data per module */ typedef struct GRawData_ { GRawDataItem *items; /* data */ GModule module; /* current module */ datatype type; int idx; /* first level index */ int size; /* total num of items on ht */ } GRawData; char *extract_by_delim (const char **str, const char *end); char *gfile_getline (GFileHandle * fh); char **test_format (Logs * logs, int *len); int parse_line (GLog * glog, char *line, int dry_run, GLogItem ** logitem_out); int parse_log (Logs * logs, int dry_run); int set_glog (Logs * logs, const char *filename); int set_initial_persisted_data (GLog * glog, GFileHandle * fh, const char *fn); int set_log (Logs * logs, const char *value); void free_glog (GLogItem * logitem); void free_logerrors (GLog * glog); void free_logs (Logs * logs); void free_raw_data (GRawData * raw_data); void output_logerrors (void); void *process_lines_thread (void *arg); void reset_struct (Logs * logs); GLogItem *init_log_item (GLog * glog); GRawDataItem *new_grawdata_item (unsigned int size); GRawData *new_grawdata (void); Logs *init_logs (int size); Logs *new_logs (int size); #endif ================================================ FILE: src/pdjson.c ================================================ /** * Public Domain JSON Parser for C * By Christopher Wellons * https://github.com/skeeto/pdjson */ #ifndef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 200112L #elif _POSIX_C_SOURCE < 200112L # error incompatible _POSIX_C_SOURCE level #endif #include #include #include #ifndef PDJSON_H # include "pdjson.h" #endif #define JSON_FLAG_ERROR (1u << 0) #define JSON_FLAG_STREAMING (1u << 1) #if defined(_MSC_VER) && (_MSC_VER < 1900) #define json_error(json, format, ...) \ if (!(json->flags & JSON_FLAG_ERROR)) { \ json->flags |= JSON_FLAG_ERROR; \ _snprintf_s(json->errmsg, sizeof(json->errmsg), \ _TRUNCATE, \ format, \ __VA_ARGS__); \ } \ #else #define json_error(json, format, ...) \ if (!(json->flags & JSON_FLAG_ERROR)) { \ json->flags |= JSON_FLAG_ERROR; \ snprintf(json->errmsg, sizeof(json->errmsg), \ format, \ __VA_ARGS__); \ } \ #endif /* _MSC_VER */ /* See also PDJSON_STACK_MAX below. */ #ifndef PDJSON_STACK_INC # define PDJSON_STACK_INC 4 #endif struct json_stack { enum json_type type; long count; }; static enum json_type push (json_stream *json, enum json_type type) { json->stack_top++; #ifdef PDJSON_STACK_MAX if (json->stack_top > PDJSON_STACK_MAX) { json_error (json, "%s", "maximum depth of nesting reached"); return JSON_ERROR; } #endif if (json->stack_top >= json->stack_size) { struct json_stack *stack; size_t size = (json->stack_size + PDJSON_STACK_INC) * sizeof (*json->stack); stack = (struct json_stack *) json->alloc.realloc (json->stack, size); if (stack == NULL) { json_error (json, "%s", "out of memory"); return JSON_ERROR; } json->stack_size += PDJSON_STACK_INC; json->stack = stack; } json->stack[json->stack_top].type = type; json->stack[json->stack_top].count = 0; return type; } static enum json_type pop (json_stream *json, int c, enum json_type expected) { if (json->stack == NULL || json->stack[json->stack_top].type != expected) { json_error (json, "unexpected byte '%c'", c); return JSON_ERROR; } json->stack_top--; return expected == JSON_ARRAY ? JSON_ARRAY_END : JSON_OBJECT_END; } static int buffer_peek (struct json_source *source) { if (source->position < source->source.buffer.length) return source->source.buffer.buffer[source->position]; else return EOF; } static int buffer_get (struct json_source *source) { int c = source->peek (source); source->position++; return c; } static int stream_get (struct json_source *source) { source->position++; return fgetc (source->source.stream.stream); } static int stream_peek (struct json_source *source) { int c = fgetc (source->source.stream.stream); ungetc (c, source->source.stream.stream); return c; } static void init (json_stream *json) { json->lineno = 1; json->flags = JSON_FLAG_STREAMING; json->errmsg[0] = '\0'; json->ntokens = 0; json->next = (enum json_type) 0; json->stack = NULL; json->stack_top = (size_t) -1; json->stack_size = 0; json->data.string = NULL; json->data.string_size = 0; json->data.string_fill = 0; json->source.position = 0; json->alloc.malloc = malloc; json->alloc.realloc = realloc; json->alloc.free = free; } static enum json_type is_match (json_stream *json, const char *pattern, enum json_type type) { int c; const char *p = NULL; for (p = pattern; *p; p++) { if (*p != (c = json->source.get (&json->source))) { json_error (json, "expected '%c' instead of byte '%c'", *p, c); return JSON_ERROR; } } return type; } static int pushchar (json_stream *json, int c) { if (json->data.string_fill == json->data.string_size) { size_t size = json->data.string_size * 2; char *buffer = (char *) json->alloc.realloc (json->data.string, size); if (buffer == NULL) { json_error (json, "%s", "out of memory"); return -1; } else { json->data.string_size = size; json->data.string = buffer; } } json->data.string[json->data.string_fill++] = c; return 0; } static int init_string (json_stream *json) { json->data.string_fill = 0; if (json->data.string == NULL) { json->data.string_size = 1024; json->data.string = (char *) json->alloc.malloc (json->data.string_size); if (json->data.string == NULL) { json_error (json, "%s", "out of memory"); return -1; } } json->data.string[0] = '\0'; return 0; } static int encode_utf8 (json_stream *json, unsigned long c) { if (c < 0x80UL) { return pushchar (json, c); } else if (c < 0x0800UL) { return !((pushchar (json, (c >> 6 & 0x1F) | 0xC0) == 0) && (pushchar (json, (c >> 0 & 0x3F) | 0x80) == 0)); } else if (c < 0x010000UL) { if (c >= 0xd800 && c <= 0xdfff) { json_error (json, "invalid codepoint %06lx", c); return -1; } return !((pushchar (json, (c >> 12 & 0x0F) | 0xE0) == 0) && (pushchar (json, (c >> 6 & 0x3F) | 0x80) == 0) && (pushchar (json, (c >> 0 & 0x3F) | 0x80) == 0)); } else if (c < 0x110000UL) { return !((pushchar (json, (c >> 18 & 0x07) | 0xF0) == 0) && (pushchar (json, (c >> 12 & 0x3F) | 0x80) == 0) && (pushchar (json, (c >> 6 & 0x3F) | 0x80) == 0) && (pushchar (json, (c >> 0 & 0x3F) | 0x80) == 0)); } else { json_error (json, "unable to encode %06lx as UTF-8", c); return -1; } } static int hexchar (int c) { switch (c) { case '0': return 0; case '1': return 1; case '2': return 2; case '3': return 3; case '4': return 4; case '5': return 5; case '6': return 6; case '7': return 7; case '8': return 8; case '9': return 9; case 'a': case 'A': return 10; case 'b': case 'B': return 11; case 'c': case 'C': return 12; case 'd': case 'D': return 13; case 'e': case 'E': return 14; case 'f': case 'F': return 15; default: return -1; } } static long read_unicode_cp (json_stream *json) { long cp = 0; int shift = 12; size_t i = 0; for (i = 0; i < 4; i++) { int c = json->source.get (&json->source); int hc; if (c == EOF) { json_error (json, "%s", "unterminated string literal in Unicode"); return -1; } else if ((hc = hexchar (c)) == -1) { json_error (json, "invalid escape Unicode byte '%c'", c); return -1; } cp += hc * (1 << shift); shift -= 4; } return cp; } static int read_unicode (json_stream *json) { long cp, h, l; int c; if ((cp = read_unicode_cp (json)) == -1) { return -1; } if (cp >= 0xd800 && cp <= 0xdbff) { /* This is the high portion of a surrogate pair; we need to read the * lower portion to get the codepoint */ h = cp; c = json->source.get (&json->source); if (c == EOF) { json_error (json, "%s", "unterminated string literal in Unicode"); return -1; } else if (c != '\\') { json_error (json, "invalid continuation for surrogate pair '%c', " "expected '\\'", c); return -1; } c = json->source.get (&json->source); if (c == EOF) { json_error (json, "%s", "unterminated string literal in Unicode"); return -1; } else if (c != 'u') { json_error (json, "invalid continuation for surrogate pair '%c', " "expected 'u'", c); return -1; } if ((l = read_unicode_cp (json)) == -1) { return -1; } if (l < 0xdc00 || l > 0xdfff) { json_error (json, "surrogate pair continuation \\u%04lx out " "of range (dc00-dfff)", l); return -1; } cp = ((h - 0xd800) * 0x400) + ((l - 0xdc00) + 0x10000); } else if (cp >= 0xdc00 && cp <= 0xdfff) { json_error (json, "dangling surrogate \\u%04lx", cp); return -1; } return encode_utf8 (json, cp); } static int read_escaped (json_stream *json) { int c = json->source.get (&json->source); if (c == EOF) { json_error (json, "%s", "unterminated string literal in escape"); return -1; } else if (c == 'u') { if (read_unicode (json) != 0) return -1; } else { switch (c) { case '\\': case 'b': case 'f': case 'n': case 'r': case 't': case '/': case '"': { const char *codes = "\\bfnrt/\""; const char *p = strchr (codes, c); if (pushchar (json, "\\\b\f\n\r\t/\""[p - codes]) != 0) return -1; } break; default: json_error (json, "invalid escaped byte '%c'", c); return -1; } } return 0; } static int char_needs_escaping (int c) { if ((c >= 0) && (c < 0x20 || c == 0x22 || c == 0x5c)) { return 1; } return 0; } static int utf8_seq_length (char byte) { unsigned char u = (unsigned char) byte; if (u < 0x80) return 1; if (0x80 <= u && u <= 0xBF) { // second, third or fourth byte of a multi-byte // sequence, i.e. a "continuation byte" return 0; } else if (u == 0xC0 || u == 0xC1) { // overlong encoding of an ASCII byte return 0; } else if (0xC2 <= u && u <= 0xDF) { // 2-byte sequence return 2; } else if (0xE0 <= u && u <= 0xEF) { // 3-byte sequence return 3; } else if (0xF0 <= u && u <= 0xF4) { // 4-byte sequence return 4; } else { // u >= 0xF5 // Restricted (start of 4-, 5- or 6-byte sequence) or invalid UTF-8 return 0; } } static int is_legal_utf8 (const unsigned char *bytes, int length) { unsigned char a; const unsigned char *srcptr; if (0 == bytes || 0 == length) return 0; srcptr = bytes + length; switch (length) { default: return 0; // Everything else falls through when true. case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0; /* FALLTHRU */ case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0; /* FALLTHRU */ case 2: a = (*--srcptr); switch (*bytes) { case 0xE0: if (a < 0xA0 || a > 0xBF) return 0; break; case 0xED: if (a < 0x80 || a > 0x9F) return 0; break; case 0xF0: if (a < 0x90 || a > 0xBF) return 0; break; case 0xF4: if (a < 0x80 || a > 0x8F) return 0; break; default: if (a < 0x80 || a > 0xBF) return 0; break; } /* FALLTHRU */ case 1: if (*bytes >= 0x80 && *bytes < 0xC2) return 0; } return *bytes <= 0xF4; } static int read_utf8 (json_stream *json, int next_char) { int i; char buffer[4]; int count = utf8_seq_length (next_char); if (!count) { json_error (json, "%s", "invalid UTF-8 character"); return -1; } buffer[0] = next_char; for (i = 1; i < count; ++i) { buffer[i] = json->source.get (&json->source); } if (!is_legal_utf8 ((unsigned char *) buffer, count)) { json_error (json, "%s", "invalid UTF-8 text"); return -1; } for (i = 0; i < count; ++i) { if (pushchar (json, buffer[i]) != 0) return -1; } return 0; } static enum json_type read_string (json_stream *json) { if (init_string (json) != 0) return JSON_ERROR; while (1) { int c = json->source.get (&json->source); if (c == EOF) { json_error (json, "%s", "unterminated string literal"); return JSON_ERROR; } else if (c == '"') { if (pushchar (json, '\0') == 0) return JSON_STRING; else return JSON_ERROR; } else if (c == '\\') { if (read_escaped (json) != 0) return JSON_ERROR; } else if ((unsigned) c >= 0x80) { if (read_utf8 (json, c) != 0) return JSON_ERROR; } else { if (char_needs_escaping (c)) { json_error (json, "%s", "unescaped control character in string"); return JSON_ERROR; } if (pushchar (json, c) != 0) return JSON_ERROR; } } return JSON_ERROR; } static int is_digit (int c) { return c >= 48 /*0 */ && c <= 57 /*9 */ ; } static int read_digits (json_stream *json) { int c; unsigned nread = 0; while (is_digit (c = json->source.peek (&json->source))) { if (pushchar (json, json->source.get (&json->source)) != 0) return -1; nread++; } if (nread == 0) { json_error (json, "expected digit instead of byte '%c'", c); return -1; } return 0; } static enum json_type read_number (json_stream *json, int c) { if (pushchar (json, c) != 0) return JSON_ERROR; if (c == '-') { c = json->source.get (&json->source); if (is_digit (c)) { return read_number (json, c); } else { json_error (json, "unexpected byte '%c' in number", c); return JSON_ERROR; } } else if (strchr ("123456789", c) != NULL) { c = json->source.peek (&json->source); if (is_digit (c)) { if (read_digits (json) != 0) return JSON_ERROR; } } /* Up to decimal or exponent has been read. */ c = json->source.peek (&json->source); if (strchr (".eE", c) == NULL) { if (pushchar (json, '\0') != 0) return JSON_ERROR; else return JSON_NUMBER; } if (c == '.') { json->source.get (&json->source); // consume . if (pushchar (json, c) != 0) return JSON_ERROR; if (read_digits (json) != 0) return JSON_ERROR; } /* Check for exponent. */ c = json->source.peek (&json->source); if (c == 'e' || c == 'E') { json->source.get (&json->source); // consume e/E if (pushchar (json, c) != 0) return JSON_ERROR; c = json->source.peek (&json->source); if (c == '+' || c == '-') { json->source.get (&json->source); // consume if (pushchar (json, c) != 0) return JSON_ERROR; if (read_digits (json) != 0) return JSON_ERROR; } else if (is_digit (c)) { if (read_digits (json) != 0) return JSON_ERROR; } else { json_error (json, "unexpected byte '%c' in number", c); return JSON_ERROR; } } if (pushchar (json, '\0') != 0) return JSON_ERROR; else return JSON_NUMBER; } bool json_isspace (int c) { switch (c) { case 0x09: case 0x0a: case 0x0d: case 0x20: return true; } return false; } /* Returns the next non-whitespace character in the stream. */ static int next (json_stream *json) { int c; while (json_isspace (c = json->source.get (&json->source))) if (c == '\n') json->lineno++; return c; } static enum json_type read_value (json_stream *json, int c) { json->ntokens++; switch (c) { case EOF: json_error (json, "%s", "unexpected end of text"); return JSON_ERROR; case '{': return push (json, JSON_OBJECT); case '[': return push (json, JSON_ARRAY); case '"': return read_string (json); case 'n': return is_match (json, "ull", JSON_NULL); case 'f': return is_match (json, "alse", JSON_FALSE); case 't': return is_match (json, "rue", JSON_TRUE); case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '-': if (init_string (json) != 0) return JSON_ERROR; return read_number (json, c); default: json_error (json, "unexpected byte '%c' in value", c); return JSON_ERROR; } } enum json_type json_peek (json_stream *json) { enum json_type next; if (json->next) next = json->next; else next = json->next = json_next (json); return next; } enum json_type json_next (json_stream *json) { int c; enum json_type value; if (json->flags & JSON_FLAG_ERROR) return JSON_ERROR; if (json->next != 0) { enum json_type next = json->next; json->next = (enum json_type) 0; return next; } if (json->ntokens > 0 && json->stack_top == (size_t) -1) { /* In the streaming mode leave any trailing whitespaces in the stream. * This allows the user to validate any desired separation between * values (such as newlines) using json_source_get/peek() with any * remaining whitespaces ignored as leading when we parse the next * value. */ if (!(json->flags & JSON_FLAG_STREAMING)) { do { c = json->source.peek (&json->source); if (json_isspace (c)) { c = json->source.get (&json->source); } } while (json_isspace (c)); if (c != EOF) { json_error (json, "expected end of text instead of byte '%c'", c); return JSON_ERROR; } } return JSON_DONE; } c = next (json); if (json->stack_top == (size_t) -1) { if (c == EOF && (json->flags & JSON_FLAG_STREAMING)) return JSON_DONE; return read_value (json, c); } if (json->stack[json->stack_top].type == JSON_ARRAY) { if (json->stack[json->stack_top].count == 0) { if (c == ']') { return pop (json, c, JSON_ARRAY); } json->stack[json->stack_top].count++; return read_value (json, c); } else if (c == ',') { json->stack[json->stack_top].count++; return read_value (json, next (json)); } else if (c == ']') { return pop (json, c, JSON_ARRAY); } else { json_error (json, "unexpected byte '%c'", c); return JSON_ERROR; } } else if (json->stack[json->stack_top].type == JSON_OBJECT) { if (json->stack[json->stack_top].count == 0) { if (c == '}') { return pop (json, c, JSON_OBJECT); } /* No member name/value pairs yet. */ value = read_value (json, c); if (value != JSON_STRING) { if (value != JSON_ERROR) json_error (json, "%s", "expected member name or '}'"); return JSON_ERROR; } else { json->stack[json->stack_top].count++; return value; } } else if ((json->stack[json->stack_top].count % 2) == 0) { /* Expecting comma followed by member name. */ if (c != ',' && c != '}') { json_error (json, "%s", "expected ',' or '}' after member value"); return JSON_ERROR; } else if (c == '}') { return pop (json, c, JSON_OBJECT); } else { value = read_value (json, next (json)); if (value != JSON_STRING) { if (value != JSON_ERROR) json_error (json, "%s", "expected member name"); return JSON_ERROR; } else { json->stack[json->stack_top].count++; return value; } } } else if ((json->stack[json->stack_top].count % 2) == 1) { /* Expecting colon followed by value. */ if (c != ':') { json_error (json, "%s", "expected ':' after member name"); return JSON_ERROR; } else { json->stack[json->stack_top].count++; return read_value (json, next (json)); } } } json_error (json, "%s", "invalid parser state"); return JSON_ERROR; } void json_reset (json_stream *json) { json->stack_top = -1; json->ntokens = 0; json->flags &= ~JSON_FLAG_ERROR; json->errmsg[0] = '\0'; } enum json_type json_skip (json_stream *json) { enum json_type type = json_next (json); size_t cnt_arr = 0; size_t cnt_obj = 0; enum json_type skip; for (skip = type;; skip = json_next (json)) { if (skip == JSON_ERROR || skip == JSON_DONE) return skip; if (skip == JSON_ARRAY) { ++cnt_arr; } else if (skip == JSON_ARRAY_END && cnt_arr > 0) { --cnt_arr; } else if (skip == JSON_OBJECT) { ++cnt_obj; } else if (skip == JSON_OBJECT_END && cnt_obj > 0) { --cnt_obj; } if (!cnt_arr && !cnt_obj) break; } return type; } enum json_type json_skip_until (json_stream *json, enum json_type type) { while (1) { enum json_type skip = json_skip (json); if (skip == JSON_ERROR || skip == JSON_DONE) return skip; if (skip == type) break; } return type; } const char * json_get_string (json_stream *json, size_t *length) { if (length != NULL) *length = json->data.string_fill; if (json->data.string == NULL) return ""; else return json->data.string; } double json_get_number (json_stream *json) { char *p = json->data.string; return p == NULL ? 0 : strtod (p, NULL); } const char * json_get_error (json_stream *json) { return json->flags & JSON_FLAG_ERROR ? json->errmsg : NULL; } size_t json_get_lineno (json_stream *json) { return json->lineno; } size_t json_get_position (json_stream *json) { return json->source.position; } size_t json_get_depth (json_stream *json) { return json->stack_top + 1; } /* Return the current parsing context, that is, JSON_OBJECT if we are inside an object, JSON_ARRAY if we are inside an array, and JSON_DONE if we are not yet/anymore in either. Additionally, for the first two cases, also return the number of parsing events that have already been observed at this level with json_next/peek(). In particular, inside an object, an odd number would indicate that the just observed JSON_STRING event is a member name. */ enum json_type json_get_context (json_stream *json, size_t *count) { if (json->stack_top == (size_t) -1) return JSON_DONE; if (count != NULL) *count = json->stack[json->stack_top].count; return json->stack[json->stack_top].type; } int json_source_get (json_stream *json) { int c = json->source.get (&json->source); if (c == '\n') json->lineno++; return c; } int json_source_peek (json_stream *json) { return json->source.peek (&json->source); } void json_open_buffer (json_stream *json, const void *buffer, size_t size) { init (json); json->source.get = buffer_get; json->source.peek = buffer_peek; json->source.source.buffer.buffer = (const char *) buffer; json->source.source.buffer.length = size; } void json_open_string (json_stream *json, const char *string) { json_open_buffer (json, string, strlen (string)); } void json_open_stream (json_stream *json, FILE *stream) { init (json); json->source.get = stream_get; json->source.peek = stream_peek; json->source.source.stream.stream = stream; } static int user_get (struct json_source *json) { return json->source.user.get (json->source.user.ptr); } static int user_peek (struct json_source *json) { return json->source.user.peek (json->source.user.ptr); } void json_open_user (json_stream *json, json_user_io get, json_user_io peek, void *user) { init (json); json->source.get = user_get; json->source.peek = user_peek; json->source.source.user.ptr = user; json->source.source.user.get = get; json->source.source.user.peek = peek; } void json_set_allocator (json_stream *json, json_allocator *a) { json->alloc = *a; } void json_set_streaming (json_stream *json, bool streaming) { if (streaming) json->flags |= JSON_FLAG_STREAMING; else json->flags &= ~JSON_FLAG_STREAMING; } void json_close (json_stream *json) { json->alloc.free (json->stack); json->alloc.free (json->data.string); } ================================================ FILE: src/pdjson.h ================================================ #ifndef PDJSON_H #define PDJSON_H #ifndef PDJSON_SYMEXPORT # define PDJSON_SYMEXPORT #endif #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) #include #else #ifndef bool #define bool int #define true 1 #define false 0 #endif /* bool */ #endif /* __STDC_VERSION__ */ #include enum json_type { JSON_ERROR = 1, JSON_DONE, JSON_OBJECT, JSON_OBJECT_END, JSON_ARRAY, JSON_ARRAY_END, JSON_STRING, JSON_NUMBER, JSON_TRUE, JSON_FALSE, JSON_NULL }; struct json_allocator { void *(*malloc) (size_t); void *(*realloc) (void *, size_t); void (*free) (void *); }; typedef int (*json_user_io) (void *user); typedef struct json_stream json_stream; typedef struct json_allocator json_allocator; PDJSON_SYMEXPORT void json_open_buffer (json_stream * json, const void *buffer, size_t size); PDJSON_SYMEXPORT void json_open_string (json_stream * json, const char *string); PDJSON_SYMEXPORT void json_open_stream (json_stream * json, FILE * stream); PDJSON_SYMEXPORT void json_open_user (json_stream * json, json_user_io get, json_user_io peek, void *user); PDJSON_SYMEXPORT void json_close (json_stream * json); PDJSON_SYMEXPORT void json_set_allocator (json_stream * json, json_allocator * a); PDJSON_SYMEXPORT void json_set_streaming (json_stream * json, bool mode); PDJSON_SYMEXPORT enum json_type json_next (json_stream * json); PDJSON_SYMEXPORT enum json_type json_peek (json_stream * json); PDJSON_SYMEXPORT void json_reset (json_stream * json); PDJSON_SYMEXPORT const char *json_get_string (json_stream * json, size_t *length); PDJSON_SYMEXPORT double json_get_number (json_stream * json); PDJSON_SYMEXPORT enum json_type json_skip (json_stream * json); PDJSON_SYMEXPORT enum json_type json_skip_until (json_stream * json, enum json_type type); PDJSON_SYMEXPORT size_t json_get_lineno (json_stream * json); PDJSON_SYMEXPORT size_t json_get_position (json_stream * json); PDJSON_SYMEXPORT size_t json_get_depth (json_stream * json); PDJSON_SYMEXPORT enum json_type json_get_context (json_stream * json, size_t *count); PDJSON_SYMEXPORT const char *json_get_error (json_stream * json); PDJSON_SYMEXPORT int json_source_get (json_stream * json); PDJSON_SYMEXPORT int json_source_peek (json_stream * json); PDJSON_SYMEXPORT bool json_isspace (int c); /* internal */ struct json_source { int (*get) (struct json_source *); int (*peek) (struct json_source *); size_t position; union { struct { FILE *stream; } stream; struct { const char *buffer; size_t length; } buffer; struct { void *ptr; json_user_io get; json_user_io peek; } user; } source; }; struct json_stream { size_t lineno; struct json_stack *stack; size_t stack_top; size_t stack_size; enum json_type next; unsigned flags; struct { char *string; size_t string_fill; size_t string_size; } data; size_t ntokens; struct json_source source; struct json_allocator alloc; char errmsg[128]; }; #endif ================================================ FILE: src/persistence.c ================================================ /** * persistence.c -- on-disk persistence functionality * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include #include #include #include #include #include "persistence.h" #include "error.h" #include "gkhash.h" #include "sort.h" #include "tpl.h" #include "util.h" #include "xmalloc.h" static uint32_t *persisted_dates = NULL; static uint32_t persisted_dates_len = 0; /* Determine the path for the given database file. * * On error, a fatal error is thrown. * On success, the databases path string is returned. */ static char * set_db_path (const char *fn) { struct stat info; char *rpath = NULL, *path = NULL; const char *dbpath = NULL; if (!conf.db_path) dbpath = DB_PATH; else dbpath = conf.db_path; rpath = realpath (dbpath, NULL); if (rpath == NULL) FATAL ("Unable to open the specified db path/file '%s'. %s", dbpath, strerror (errno)); /* sanity check: Is db_path accessible and a directory? */ if (stat (rpath, &info) != 0) FATAL ("Unable to access database path: %s", strerror (errno)); else if (!(info.st_mode & S_IFDIR)) FATAL ("Database path is not a directory."); path = xmalloc (snprintf (NULL, 0, "%s/%s", rpath, fn) + 1); sprintf (path, "%s/%s", rpath, fn); free (rpath); return path; } /* Given a database filename, restore a string key, uint32_t value back to the * storage */ static void restore_global_si08 (khash_t (si08) *hash, const char *fn) { tpl_node *tn; char *key = NULL; char fmt[] = "A(sv)"; uint16_t val; tn = tpl_map (fmt, &key, &val); tpl_load (tn, TPL_FILE, fn); while (tpl_unpack (tn, 1) > 0) { ins_si08 (hash, key, val); free (key); } tpl_free (tn); } /* Given a hash and a filename, persist to disk a string key, uint32_t value */ static void persist_global_si08 (khash_t (si08) *hash, const char *fn) { tpl_node *tn; khint_t k; const char *key = NULL; char fmt[] = "A(sv)"; uint16_t val; if (!hash || kh_size (hash) == 0) return; tn = tpl_map (fmt, &key, &val); for (k = 0; k < kh_end (hash); ++k) { if (!kh_exist (hash, k) || (!(key = kh_key (hash, k)))) continue; val = kh_value (hash, k); tpl_pack (tn, 1); } tpl_dump (tn, TPL_FILE, fn); tpl_free (tn); } /* Given a database filename, restore a string key, uint32_t value back to the * storage */ static void restore_global_si32 (khash_t (si32) *hash, const char *fn) { tpl_node *tn; char *key = NULL; char fmt[] = "A(su)"; uint32_t val; tn = tpl_map (fmt, &key, &val); tpl_load (tn, TPL_FILE, fn); while (tpl_unpack (tn, 1) > 0) { ins_si32 (hash, key, val); free (key); } tpl_free (tn); } /* Given a hash and a filename, persist to disk a string key, uint32_t value */ static void persist_global_si32 (khash_t (si32) *hash, const char *fn) { tpl_node *tn; khint_t k; const char *key = NULL; char fmt[] = "A(su)"; uint32_t val; if (!hash || kh_size (hash) == 0) return; tn = tpl_map (fmt, &key, &val); for (k = 0; k < kh_end (hash); ++k) { if (!kh_exist (hash, k) || (!(key = kh_key (hash, k)))) continue; val = kh_value (hash, k); tpl_pack (tn, 1); } tpl_dump (tn, TPL_FILE, fn); tpl_free (tn); } /* Given a database filename, restore a uint64_t key, GLastParse value back to * the storage */ static void restore_global_iglp (khash_t (iglp) *hash, const char *fn) { tpl_node *tn; uint64_t key; GLastParse val = { 0 }; char fmt[] = "A(US(uIUvc#))"; tn = tpl_map (fmt, &key, &val, READ_BYTES); tpl_load (tn, TPL_FILE, fn); while (tpl_unpack (tn, 1) > 0) { ins_iglp (hash, key, &val); } tpl_free (tn); } /* Given a hash and a filename, persist to disk a uint64_t key, uint32_t value */ static void persist_global_iglp (khash_t (iglp) *hash, const char *fn) { tpl_node *tn; khint_t k; uint64_t key; GLastParse val = { 0 }; char fmt[] = "A(US(uIUvc#))"; if (!hash || kh_size (hash) == 0) return; tn = tpl_map (fmt, &key, &val, READ_BYTES); for (k = 0; k < kh_end (hash); ++k) { if (!kh_exist (hash, k)) continue; key = kh_key (hash, k); val = kh_value (hash, k); tpl_pack (tn, 1); } tpl_dump (tn, TPL_FILE, fn); tpl_free (tn); } /* Given a filename, ensure we have a valid return path * * On error, NULL is returned. * On success, the valid path is returned */ static char * check_restore_path (const char *fn) { char *path = set_db_path (fn); if (access (path, F_OK) != -1) return path; LOG_DEBUG (("DB file %s doesn't exist. %s\n", path, strerror (errno))); free (path); return NULL; } static char * build_filename (const char *type, const char *modstr, const char *mtrstr) { char *fn = xmalloc (snprintf (NULL, 0, "%s_%s_%s.db", type, modstr, mtrstr) + 1); sprintf (fn, "%s_%s_%s.db", type, modstr, mtrstr); return fn; } /* Get the database filename given a module and a metric. * * On error, a fatal error is triggered. * On success, the filename is returned */ static char * get_filename (GModule module, GKHashMetric mtrc) { const char *mtrstr, *modstr, *type; char *fn = NULL; if (!(mtrstr = get_mtr_str (mtrc.metric.storem))) FATAL ("Unable to allocate metric name."); if (!(modstr = get_module_str (module))) FATAL ("Unable to allocate module name."); if (!(type = get_mtr_type_str (mtrc.type))) FATAL ("Unable to allocate module name."); fn = build_filename (type, modstr, mtrstr); return fn; } /* Dump to disk the database file and frees its memory */ static void close_tpl (tpl_node *tn, const char *fn) { tpl_dump (tn, TPL_FILE, fn); tpl_free (tn); } /* Check if the given date can be inserted based on how many dates we need to * keep conf.keep_last. * * Returns -1 if it fails to insert the date. * Returns 1 if the date exists. * Returns 2 if the date shouldn't be inserted. * On success or if the date is inserted 0 is returned */ static int insert_restored_date (uint32_t date) { uint32_t i, len = 0; /* no keep last, simply insert the restored date to our storage */ if (!conf.keep_last || persisted_dates_len < conf.keep_last) return ht_insert_date (date); len = MIN (persisted_dates_len, conf.keep_last); for (i = 0; i < len; ++i) if (persisted_dates[i] == date) return ht_insert_date (date); return 2; } /* Given a database filename, restore a string key, uint32_t value back to * the storage */ static int restore_si32 (GSMetric metric, const char *path, int module) { khash_t (si32) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(su))"; int date = 0, ret = 0; char *key = NULL; uint32_t val = 0; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_si32 (hash, key, val); free (key); } } tpl_free (tn); return 0; } /* Given a database filename, restore a string key, uint32_t value back to * the storage */ static int migrate_si32_to_ii32 (GSMetric metric, const char *path, int module) { khash_t (ii32) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(su))"; int date = 0, ret = 0; char *key = NULL; uint32_t val = 0; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_ii32 (hash, djb2 ((const unsigned char *) key), val); free (key); } } tpl_free (tn); return 0; } static char * migrate_unique_key (const char *key) { char *nkey = NULL, *token = NULL, *ptr = NULL; char agent_hex[64] = { 0 }; uint32_t delims = 0; if (!key || count_matches (key, '|') < 2) return NULL; nkey = xstrdup (""); while ((ptr = strchr (key, '|'))) { if (!(token = extract_by_delim (&key, "|"))) { free (nkey); return NULL; } append_str (&nkey, token); append_str (&nkey, "|"); free (token); key++; delims++; } if (delims == 2) { sprintf (agent_hex, "%" PRIx32, djb2 ((const unsigned char *) key)); append_str (&nkey, agent_hex); } return nkey; } /* Given a database filename, restore a string key, uint32_t value back to * the storage */ static int migrate_si32_to_ii32_unique_keys (GSMetric metric, const char *path, int module) { khash_t (si32) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(su))"; int date = 0, ret = 0; char *key = NULL, *nkey = NULL; uint32_t val = 0; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { if ((nkey = migrate_unique_key (key))) ins_si32 (hash, nkey, val); free (key); free (nkey); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a string key, uint32_t value */ static int persist_si32 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (si32) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(su))"; uint32_t val = 0; const char *key = NULL; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a database filename, restore a uint32_t key, string value back to * the storage */ static int migrate_is32_to_ii08 (GSMetric metric, const char *path, int module) { khash_t (ii08) * hash = NULL; GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si08) * mtpr = get_hdb (db, MTRC_METH_PROTO); tpl_node *tn; char fmt[] = "A(iA(us))"; int date = 0, ret = 0; uint32_t key = 0; char *val = NULL; khint_t k; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { k = kh_get (si08, mtpr, val); /* key found, return current value */ if (k == kh_end (mtpr)) { free (val); continue; } ins_ii08 (hash, key, kh_val (mtpr, k)); free (val); } } tpl_free (tn); return 0; } /* Given a database filename, restore a uint32_t key, string value back to * the storage */ static int restore_is32 (GSMetric metric, const char *path, int module) { khash_t (is32) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(us))"; int date = 0, ret = 0; uint32_t key = 0; char *val = NULL, *dupval = NULL; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { dupval = xstrdup (val); if (ins_is32 (hash, key, dupval) != 0) free (dupval); free (val); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a uint32_t key, string value */ static int persist_is32 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (is32) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(us))"; char *val = NULL; uint32_t key = 0; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a database filename, restore a uint32_t key, uint32_t value back to * the storage */ static int restore_ii08 (GSMetric metric, const char *path, int module) { khash_t (ii08) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(uv))"; int date = 0, ret = 0; uint32_t key = 0; uint16_t val = 0; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_ii08 (hash, key, val); } } tpl_free (tn); return 0; } /* Given a database filename, restore a uint32_t key, uint32_t value back to * the storage */ static int restore_ii32 (GSMetric metric, const char *path, int module) { khash_t (ii32) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(uu))"; int date = 0, ret = 0; uint32_t key = 0, val = 0; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_ii32 (hash, key, val); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a uint32_t key, uint32_t value */ static int persist_ii32 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (ii32) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(uu))"; uint32_t key = 0, val = 0; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a hash and a filename, persist to disk a uint32_t key, uint32_t value */ static int persist_ii08 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (ii08) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(uv))"; uint32_t key = 0; uint16_t val = 0; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a database filename, restore a uint64_t key, uint8_t value back to * the storage */ static int restore_u648 (GSMetric metric, const char *path, int module) { khash_t (u648) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(Uv))"; int date = 0, ret = 0; uint64_t key; uint16_t val = 0; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_u648 (hash, key, val); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a uint64_t key, uint8_t value */ static int persist_u648 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (u648) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(Uv))"; uint64_t key; uint16_t val = 0; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a database filename, restore a uint32_t key, uint64_t value back to * the storage */ static int restore_iu64 (GSMetric metric, const char *path, int module) { khash_t (iu64) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(uU))"; int date = 0, ret = 0; uint32_t key; uint64_t val; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_iu64 (hash, key, val); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a uint32_t key, uint64_t value */ static int persist_iu64 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (iu64) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(uU))"; uint32_t key; uint64_t val; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a database filename, restore a string key, uint64_t value back to * the storage */ static int restore_su64 (GSMetric metric, const char *path, int module) { khash_t (su64) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(sU))"; int date = 0, ret = 0; char *key = NULL; uint64_t val; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_su64 (hash, key, val); free (key); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a string key, uint64_t value */ static int persist_su64 (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (su64) * hash = NULL; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(sU))"; const char *key = NULL; uint64_t val; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, val, { tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Given a database filename, restore a uint32_t key, GSLList value back to the * storage */ static int restore_igsl (GSMetric metric, const char *path, int module) { khash_t (igsl) * hash = NULL; tpl_node *tn; char fmt[] = "A(iA(uu))"; int date = 0, ret = 0; uint32_t key, val; if (!(tn = tpl_map (fmt, &date, &key, &val))) return 1; tpl_load (tn, TPL_FILE, path); while (tpl_unpack (tn, 1) > 0) { if ((ret = insert_restored_date (date)) == 2) continue; if (ret == -1 || !(hash = get_hash (module, date, metric))) break; while (tpl_unpack (tn, 2) > 0) { ins_igsl (hash, key, val); } } tpl_free (tn); return 0; } /* Given a hash and a filename, persist to disk a uint32_t key, GSLList value */ static int persist_igsl (GSMetric metric, const char *path, int module) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (igkh) * dates = get_hdb (db, MTRC_DATES); khash_t (igsl) * hash = NULL; GSLList *node; tpl_node *tn = NULL; int date = 0; char fmt[] = "A(iA(uu))"; uint32_t key, val; if (!dates || !(tn = tpl_map (fmt, &date, &key, &val))) return 1; /* *INDENT-OFF* */ HT_FOREACH_KEY (dates, date, { if (!(hash = get_hash (module, date, metric))) return -1; kh_foreach (hash, key, node, { while (node) { val = (*(uint32_t *) node->data); node = node->next; } tpl_pack (tn, 2); }); tpl_pack (tn, 1); }); /* *INDENT-ON* */ close_tpl (tn, path); return 0; } /* Entry function to restore hash data by type */ static void restore_by_type (GKHashMetric mtrc, const char *fn, int module) { char *path = NULL; if (!(path = check_restore_path (fn))) goto clean; switch (mtrc.type) { case MTRC_TYPE_SI32: restore_si32 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_IS32: restore_is32 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_II08: restore_ii08 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_II32: restore_ii32 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_U648: restore_u648 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_IU64: restore_iu64 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_SU64: restore_su64 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_IGSL: restore_igsl (mtrc.metric.storem, path, module); break; default: break; } clean: free (path); } /* Entry function to restore hash data by metric type */ static void restore_metric_type (GModule module, GKHashMetric mtrc) { char *fn = NULL; fn = get_filename (module, mtrc); restore_by_type (mtrc, fn, module); free (fn); } static int migrate_metric (GModule module, GKHashMetric mtrc) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * db_props = get_hdb (db, MTRC_DB_PROPS); int ret = 0; char *fn = NULL, *path = NULL; const char *modstr, *mtrstr; khint_t k; k = kh_get (si32, db_props, "version"); /* db is up-to-date, thus no need to migrate anything */ if (k != kh_end (db_props) && kh_val (db_props, k) == DB_VERSION) return 0; switch (mtrc.metric.storem) { case MTRC_UNIQUE_KEYS: if (!(path = check_restore_path ("SI32_UNIQUE_KEYS.db"))) break; if (migrate_si32_to_ii32_unique_keys (mtrc.metric.storem, path, -1) != 0) break; unlink (path); ret++; break; case MTRC_KEYMAP: if (!(modstr = get_module_str (module))) FATAL ("Unable to allocate module name."); fn = build_filename ("SI32", modstr, "MTRC_KEYMAP"); if (!(path = check_restore_path (fn))) break; if (migrate_si32_to_ii32 (mtrc.metric.storem, path, module) != 0) break; unlink (path); ret++; break; case MTRC_METHODS: case MTRC_PROTOCOLS: if (!(mtrstr = get_mtr_str (mtrc.metric.storem))) FATAL ("Unable to allocate metric name."); if (!(modstr = get_module_str (module))) FATAL ("Unable to allocate module name."); fn = build_filename ("IS32", modstr, mtrstr); if (!(path = check_restore_path (fn))) break; if (migrate_is32_to_ii08 (mtrc.metric.storem, path, module) != 0) break; unlink (path); ret++; break; case MTRC_AGENT_KEYS: if (!(path = check_restore_path ("SI32_AGENT_KEYS.db"))) break; if (migrate_si32_to_ii32 (mtrc.metric.storem, path, -1) != 0) break; unlink (path); ret++; break; default: break; } free (fn); free (path); return ret; } static void persist_by_type (GKHashMetric mtrc, const char *fn, int module) { char *path = NULL; path = set_db_path (fn); switch (mtrc.type) { case MTRC_TYPE_SI32: persist_si32 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_IS32: persist_is32 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_II32: persist_ii32 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_II08: persist_ii08 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_U648: persist_u648 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_IU64: persist_iu64 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_SU64: persist_su64 (mtrc.metric.storem, path, module); break; case MTRC_TYPE_IGSL: persist_igsl (mtrc.metric.storem, path, module); break; default: break; } free (path); } static void persist_metric_type (GModule module, GKHashMetric mtrc) { char *fn = NULL; fn = get_filename (module, mtrc); persist_by_type (mtrc, fn, module); free (fn); } /* Given all the dates that we have processed, persist to disk a copy of them. */ static void persist_dates (void) { tpl_node *tn; char *path = NULL; uint32_t *dates = NULL, len = 0, i, date = 0; char fmt[] = "A(u)"; if (!(path = set_db_path ("I32_DATES.db"))) return; dates = get_sorted_dates (&len); tn = tpl_map (fmt, &date); for (i = 0; i < len; ++i) { date = dates[i]; tpl_pack (tn, 1); } tpl_dump (tn, TPL_FILE, path); tpl_free (tn); free (path); free (dates); } /* Restore all the processed dates from our last dataset */ static void restore_dates (void) { tpl_node *tn; char *path = NULL; uint32_t date, idx = 0; char fmt[] = "A(u)"; int len; if (!(path = check_restore_path ("I32_DATES.db"))) return; tn = tpl_map (fmt, &date); tpl_load (tn, TPL_FILE, path); len = tpl_Alen (tn, 1); if (len < 0) return; persisted_dates_len = len; persisted_dates = xcalloc (persisted_dates_len, sizeof (uint32_t)); while (tpl_unpack (tn, 1) > 0) persisted_dates[idx++] = date; qsort (persisted_dates, idx, sizeof (uint32_t), cmp_ui32_desc); tpl_free (tn); free (path); } /* Entry function to restore a global hashes */ static void restore_global (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * overall = get_hdb (db, MTRC_CNT_OVERALL); khash_t (si32) * seqs = get_hdb (db, MTRC_SEQS); khash_t (iglp) * last_parse = get_hdb (db, MTRC_LAST_PARSE); khash_t (si32) * db_props = get_hdb (db, MTRC_DB_PROPS); khash_t (si08) * meth_proto = get_hdb (db, MTRC_METH_PROTO); char *path = NULL; if ((path = check_restore_path ("SI32_DB_PROPS.db"))) { restore_global_si32 (db_props, path); free (path); } restore_dates (); if ((path = check_restore_path ("SI32_CNT_OVERALL.db"))) { restore_global_si32 (overall, path); free (path); } if ((path = check_restore_path ("SI32_SEQS.db"))) { restore_global_si32 (seqs, path); free (path); } if ((path = check_restore_path ("SI08_METH_PROTO.db"))) { restore_global_si08 (meth_proto, path); free (path); } if ((path = check_restore_path ("IGLP_LAST_PARSE.db"))) { restore_global_iglp (last_parse, path); free (path); } } static void persist_global (void) { GKDB *db = get_db_instance (DB_INSTANCE); khash_t (si32) * overall = get_hdb (db, MTRC_CNT_OVERALL); khash_t (si32) * seqs = get_hdb (db, MTRC_SEQS); khash_t (iglp) * last_parse = get_hdb (db, MTRC_LAST_PARSE); khash_t (si32) * db_props = get_hdb (db, MTRC_DB_PROPS); khash_t (si08) * meth_proto = get_hdb (db, MTRC_METH_PROTO); char *path = NULL; ins_si32 (db_props, "version", DB_VERSION); persist_dates (); if ((path = set_db_path ("SI32_CNT_OVERALL.db"))) { persist_global_si32 (overall, path); free (path); } if ((path = set_db_path ("SI32_SEQS.db"))) { persist_global_si32 (seqs, path); free (path); } if ((path = set_db_path ("IGLP_LAST_PARSE.db"))) { persist_global_iglp (last_parse, path); free (path); } if ((path = set_db_path ("SI08_METH_PROTO.db"))) { persist_global_si08 (meth_proto, path); free (path); } if ((path = set_db_path ("SI32_DB_PROPS.db"))) { persist_global_si32 (db_props, path); free (path); } } void persist_data (void) { GModule module; int i, n = 0; size_t idx = 0; persist_global (); n = global_metrics_len; for (i = 0; i < n; ++i) persist_by_type (global_metrics[i], global_metrics[i].filename, -1); n = module_metrics_len; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; for (i = 0; i < n; ++i) { persist_metric_type (module, module_metrics[i]); } } } /* Entry function to restore hashes */ void restore_data (void) { int migrated = 0; GModule module; int i, n = 0; size_t idx = 0; restore_global (); n = global_metrics_len; for (i = 0; i < n; ++i) { migrated += migrate_metric (-1, global_metrics[i]); restore_by_type (global_metrics[i], global_metrics[i].filename, -1); } n = module_metrics_len; FOREACH_MODULE (idx, module_list) { module = module_list[idx]; for (i = 0; i < n; ++i) { migrated += migrate_metric (module, module_metrics[i]); restore_metric_type (module, module_metrics[i]); } } if (migrated && !conf.persist) conf.persist = 1; } void free_persisted_data (void) { free (persisted_dates); } ================================================ FILE: src/persistence.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef PERSISTENCE_H_INCLUDED #define PERSISTENCE_H_INCLUDED void restore_data (void); void persist_data (void); void free_persisted_data (void); #endif // for #ifndef PERSISTENCE_H ================================================ FILE: src/settings.c ================================================ /** * settings.c -- goaccess configuration * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #include #include #include #include #include #include #include "settings.h" #include "error.h" #include "gkhash.h" #include "labels.h" #include "pdjson.h" #include "util.h" #include "xmalloc.h" static char **nargv; static int nargc = 0; /* *INDENT-OFF* */ static const GEnum LOGTYPE[] = { {"COMBINED" , COMBINED} , {"VCOMBINED" , VCOMBINED} , {"COMMON" , COMMON} , {"VCOMMON" , VCOMMON} , {"W3C" , W3C} , {"CLOUDFRONT" , CLOUDFRONT} , {"CLOUDSTORAGE" , CLOUDSTORAGE} , {"AWSELB" , AWSELB} , {"SQUID" , SQUID} , {"AWSS3" , AWSS3} , {"CADDY" , CADDY} , {"AWSALB" , AWSALB} , {"TRAEFIKCLF" , TRAEFIKCLF} , }; static const GPreConfLog logs = { "%h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\"", /* NCSA */ "%v:%^ %h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\"", /* NCSA + VHost */ "%h %^[%d:%t %^] \"%r\" %s %b", /* CLF */ "%v:%^ %h %^[%d:%t %^] \"%r\" %s %b", /* CLF+VHost */ "%d %t %^ %m %U %q %^ %^ %h %u %R %s %^ %^ %L", /* W3C */ "%d\\t%t\\t%^\\t%b\\t%h\\t%m\\t%v\\t%U\\t%s\\t%R\\t%u\\t%q\\t%^\\t%C\\t%^\\t%^\\t%^\\t%^\\t%T\\t%^\\t%K\\t%k\\t%^\\t%H\\t%^", /* CloudFront */ "\"%x\",\"%h\",%^,%^,\"%m\",\"%U\",\"%s\",%^,\"%b\",\"%D\",%^,\"%R\",\"%u\"", /* Cloud Storage */ "%^ %dT%t.%^ %^ %h:%^ %^ %^ %T %^ %s %^ %^ %b \"%r\" \"%u\" %k %K %^ \"%^\" \"%v\"", /* AWS Elastic Load Balancing */ "%^ %^ %^ %v %^: %x.%^ %~%L %h %^/%s %b %m %U", /* Squid Native */ "%^ %v [%d:%t %^] %h %^\"%r\" %s %^ %b %^ %L %^ \"%R\" \"%u\"", /* Amazon S3 */ /* Caddy JSON */ "{ \"ts\": \"%x.%^\", \"request\": { \"client_ip\": \"%h\", \"proto\":" "\"%H\", \"method\": \"%m\", \"host\": \"%v\", \"uri\": \"%U\", \"headers\": {" "\"User-Agent\": [\"%u\"], \"Referer\": [\"%R\"] }, \"tls\": { \"cipher_suite\":" "\"%k\", \"proto\": \"%K\" } }, \"duration\": \"%T\", \"size\": \"%b\"," "\"status\": \"%s\", \"resp_headers\": { \"Content-Type\": [\"%M\"] } }", "%^ %dT%t.%^ %v %h:%^ %^ %^ %T %^ %s %^ %^ %b \"%r\" \"%u\" %k %K %^", /* Amazon ALB */ "%h - %e [%d:%t %^] \"%r\" %s %b \"%R\" \"%u\" %^ \"%v\" \"%U\" %Lms" /* Traefik's CLF flavor with header */ }; static const GPreConfTime times = { "%H:%M:%S", "%f", /* Cloud Storage (usec) */ "%s", /* Squid (sec) */ }; static const GPreConfDate dates = { "%d/%b/%Y", /* Apache */ "%Y-%m-%d", /* W3C */ "%f", /* Cloud Storage (usec) */ "%s", /* Squid (sec) */ }; /* *INDENT-ON* */ /* Ignore the following options */ static const char *const ignore_cmd_opts[] = { "help", "storage", "version", }; /* Determine if the given command line option needs to be ignored. * * If needs to be ignored, 1 is returned. * If not within the list of ignored command line options, 0 is returned. */ static int in_ignore_cmd_opts (const char *val) { size_t i; for (i = 0; i < ARRAY_SIZE (ignore_cmd_opts); i++) { if (strstr (val, ignore_cmd_opts[i]) != NULL) return 1; } return 0; } /* Get the location of the configuration file. * * By default, it attempts to read it from the user supplied path, else it will * try to open the global config file path (sysconfdir) or from the HOME * environment variable (~/.goaccessrc). * * On success, the path to the configuration file is returned. */ char * get_config_file_path (void) { char *upath = NULL, *gpath = NULL, *rpath = NULL; /* determine which config file to open, default or custom */ if (conf.iconfigfile != NULL) { rpath = realpath (conf.iconfigfile, NULL); if (rpath == NULL) FATAL ("Unable to open the specified config file. %s", strerror (errno)); return rpath; } /* first attempt to use the user's config file, e.g., ~/.goaccessrc */ upath = get_user_config (); /* failure, e.g. if the file does not exist */ if ((rpath = realpath (upath, NULL)) != NULL) { free (upath); return rpath; } LOG_DEBUG (("Unable to find user's config file %s %s", upath, strerror (errno))); free (upath); /* otherwise, fallback to global config file, e.g.,%sysconfdir%/goaccess.conf */ gpath = get_global_config (); if ((rpath = realpath (gpath, NULL)) != NULL && conf.load_global_config) { free (gpath); return rpath; } LOG_DEBUG (("Unable to find global config file %s %s", gpath, strerror (errno))); free (gpath); return NULL; } /* Use predefined static files when no config file is used. Note that * the order in which are listed is from the most to the least common * (most cases). */ void set_default_static_files (void) { size_t i; const char *const exts[] = { ".css", ".js ", ".jpg", ".png", ".gif", ".ico", ".jpeg", ".pdf", ".txt", ".csv", ".mpeg", ".mpg", ".swf", ".woff", ".woff2", ".xls", ".xlsx", ".doc ", ".docx", ".ppt ", ".pptx", ".zip", ".mp3", ".mp4", ".exe", ".iso ", ".gz ", ".rar ", ".svg ", ".bmp ", ".tar ", ".tgz ", ".tiff", ".tif ", ".ttf ", ".flv ", ".avi", }; if (conf.static_file_idx > 0) return; /* If a configuration file is used and, if no static-file extensions are provided, do not set the default static-file extensions. */ if (conf.iconfigfile != NULL && conf.static_file_idx == 0) { return; } for (i = 0; i < ARRAY_SIZE (exts); i++) { if (conf.static_file_max_len < strlen (exts[i])) conf.static_file_max_len = strlen (exts[i]); conf.static_files[conf.static_file_idx++] = exts[i]; } } /* Clean malloc'd log/date/time escaped formats. */ void free_formats (void) { free (conf.log_format); free (conf.date_format); free (conf.date_num_format); free (conf.spec_date_time_format); free (conf.spec_date_time_num_format); free (conf.time_format); free (conf.date_time_format); } /* Clean malloc'd command line arguments. */ void free_cmd_args (void) { int i; if (nargc == 0) return; for (i = 0; i < nargc; i++) free (nargv[i]); free (nargv); free (conf.iconfigfile); free (conf.ws_auth_secret); } /* Append extra value to argv */ static void append_to_argv (int *argc, char ***argv, char *val) { char **_argv = xrealloc (*argv, (*argc + 2) * sizeof (*_argv)); _argv[*argc] = val; _argv[*argc + 1] = (char *) '\0'; (*argc)++; *argv = _argv; } /* Parses the configuration file to feed getopt_long. * * On error, ENOENT error code is returned. * On success, 0 is returned and config file enabled options are appended to * argv. */ int parse_conf_file (int *argc, char ***argv) { char line[MAX_LINE_CONF + 1]; char *path = NULL, *val, *opt, *p; FILE *file; int i, n = 0; size_t idx; /* assumes program name is on argv[0], though, it is not guaranteed */ append_to_argv (&nargc, &nargv, xstrdup (*argv[0] ? : PACKAGE_NAME)); /* determine which config file to open, default or custom */ path = get_config_file_path (); if (path == NULL) return ENOENT; /* could not open conf file, if so prompt conf dialog */ if ((file = fopen (path, "r")) == NULL) { free (path); return ENOENT; } while (fgets (line, sizeof line, file) != NULL) { while (line[0] == ' ' || line[0] == '\t') memmove (line, line + 1, strlen (line)); n++; if (line[0] == '\n' || line[0] == '\r' || line[0] == '#') continue; /* key */ idx = strcspn (line, " \t"); if (strlen (line) == idx) FATAL ("Malformed config key at line: %d", n); line[idx] = '\0'; /* make old config options backwards compatible by * substituting underscores with dashes */ while ((p = strpbrk (line, "_")) != NULL) *p = '-'; /* Ignore the following options when reading the config file */ if (in_ignore_cmd_opts (line)) continue; /* value */ val = line + (idx + 1); idx = strspn (val, " \t"); if (strlen (line) == idx) FATAL ("Malformed config value at line: %d", n); val = val + idx; val = trim_str (val); if (strcmp ("false", val) == 0) continue; /* set it as command line options */ opt = xmalloc (snprintf (NULL, 0, "--%s", line) + 1); sprintf (opt, "--%s", line); append_to_argv (&nargc, &nargv, opt); if (strcmp ("true", val) != 0) append_to_argv (&nargc, &nargv, xstrdup (val)); } /* give priority to command line arguments */ for (i = 1; i < *argc; i++) append_to_argv (&nargc, &nargv, xstrdup ((char *) (*argv)[i])); *argc = nargc; *argv = (char **) nargv; fclose (file); if (conf.iconfigfile == NULL) conf.iconfigfile = xstrdup (path); free (path); return 0; } /* Get the enumerated log format given its equivalent format string. * The case in the format string does not matter. * * On error, -1 is returned. * On success, the enumerated format is returned. */ static int get_log_format_item_enum (const char *str) { int ret; char *upstr; ret = str2enum (LOGTYPE, ARRAY_SIZE (LOGTYPE), str); if (ret >= 0) return ret; /* uppercase the input string and try again */ upstr = strtoupper (xstrdup (str)); ret = str2enum (LOGTYPE, ARRAY_SIZE (LOGTYPE), upstr); free (upstr); return ret; } /* Determine the selected log format from the config file or command line * option. * * On error, -1 is returned. * On success, the index of the matched item is returned. */ size_t get_selected_format_idx (void) { if (conf.log_format == NULL) return (size_t) -1; if (strcmp (conf.log_format, logs.common) == 0) return COMMON; else if (strcmp (conf.log_format, logs.vcommon) == 0) return VCOMMON; else if (strcmp (conf.log_format, logs.combined) == 0) return COMBINED; else if (strcmp (conf.log_format, logs.vcombined) == 0) return VCOMBINED; else if (strcmp (conf.log_format, logs.w3c) == 0) return W3C; else if (strcmp (conf.log_format, logs.cloudfront) == 0) return CLOUDFRONT; else if (strcmp (conf.log_format, logs.cloudstorage) == 0) return CLOUDSTORAGE; else if (strcmp (conf.log_format, logs.awselb) == 0) return AWSELB; else if (strcmp (conf.log_format, logs.squid) == 0) return SQUID; else if (strcmp (conf.log_format, logs.awss3) == 0) return AWSS3; else if (strcmp (conf.log_format, logs.caddy) == 0) return CADDY; else if (strcmp (conf.log_format, logs.awsalb) == 0) return AWSALB; else if (strcmp (conf.log_format, logs.traefikclf) == 0) return TRAEFIKCLF; else return (size_t) -1; } /* Determine the selected log format from the config file or command line * option. * * On error, NULL is returned. * On success, an allocated string containing the log format is returned. */ char * get_selected_format_str (size_t idx) { char *fmt = NULL; switch (idx) { case COMBINED: fmt = alloc_string (logs.combined); break; case VCOMBINED: fmt = alloc_string (logs.vcombined); break; case COMMON: fmt = alloc_string (logs.common); break; case VCOMMON: fmt = alloc_string (logs.vcommon); break; case W3C: fmt = alloc_string (logs.w3c); break; case CLOUDFRONT: fmt = alloc_string (logs.cloudfront); break; case CLOUDSTORAGE: fmt = alloc_string (logs.cloudstorage); break; case AWSELB: fmt = alloc_string (logs.awselb); break; case SQUID: fmt = alloc_string (logs.squid); break; case AWSS3: fmt = alloc_string (logs.awss3); break; case CADDY: fmt = alloc_string (logs.caddy); break; case AWSALB: fmt = alloc_string (logs.awsalb); break; case TRAEFIKCLF: fmt = alloc_string (logs.traefikclf); break; } return fmt; } /* Determine the selected date format from the config file or command line * option. * * On error, NULL is returned. * On success, an allocated string containing the date format is returned. */ char * get_selected_date_str (size_t idx) { char *fmt = NULL; switch (idx) { case COMMON: case VCOMMON: case COMBINED: case VCOMBINED: case AWSS3: case TRAEFIKCLF: fmt = alloc_string (dates.apache); break; case AWSELB: case AWSALB: case CLOUDFRONT: case W3C: fmt = alloc_string (dates.w3c); break; case CLOUDSTORAGE: fmt = alloc_string (dates.usec); break; case SQUID: case CADDY: fmt = alloc_string (dates.sec); break; } return fmt; } /* Determine the selected time format from the config file or command line * option. * * On error, NULL is returned. * On success, an allocated string containing the time format is returned. */ char * get_selected_time_str (size_t idx) { char *fmt = NULL; switch (idx) { case AWSELB: case AWSALB: case CLOUDFRONT: case COMBINED: case COMMON: case VCOMBINED: case VCOMMON: case W3C: case AWSS3: case TRAEFIKCLF: fmt = alloc_string (times.fmt24); break; case CLOUDSTORAGE: fmt = alloc_string (times.usec); break; case SQUID: case CADDY: fmt = alloc_string (times.sec); break; } return fmt; } /* Determine if the log/date/time were set, otherwise exit the program * execution. */ const char * verify_formats (void) { if (conf.time_format == NULL || *conf.time_format == '\0') return ERR_FORMAT_NO_TIME_FMT; if (conf.date_format == NULL || *conf.date_format == '\0') return ERR_FORMAT_NO_DATE_FMT; if (conf.log_format == NULL || *conf.log_format == '\0') return ERR_FORMAT_NO_LOG_FMT; return NULL; } /* A wrapper function to concat the given specificity to the date * format. */ static char * append_spec_date_format (const char *date_format, const char *spec_format) { char *s = xmalloc (snprintf (NULL, 0, "%s%s", date_format, spec_format) + 1); sprintf (s, "%s%s", date_format, spec_format); return s; } /* Iterate over the given format and clean unwanted chars and keep all * date/time specifiers such as %b%Y%d%M%S. * * On error NULL is returned. * On success, a clean format containing only date/time specifiers is * returned. */ static char * clean_date_time_format (const char *format) { char *fmt = NULL, *pr = NULL, *pw = NULL; int special = 0; if (format == NULL || *format == '\0') return NULL; fmt = xstrdup (format); pr = fmt; pw = fmt; while (*pr) { *pw = *pr++; if (*pw == '%' || special) { special = !special; pw++; } } *pw = '\0'; return fmt; } /* Determine if the given specifier character is an abbreviated type * of date. * * If it is, 1 is returned, otherwise, 0 is returned. */ static int is_date_abbreviated (const char *fdate) { if (strpbrk (fdate, "cDF")) return 1; return 0; } /* A wrapper to extract time specifiers from a time format. * * On error NULL is returned. * On success, a clean format containing only time specifiers is * returned. */ static char * set_format_time (void) { char *ftime = NULL; if (has_timestamp (conf.date_format) || !strcmp ("%T", conf.time_format)) ftime = xstrdup ("%H%M%S"); else ftime = clean_date_time_format (conf.time_format); return ftime; } /* A wrapper to extract date specifiers from a date format. * * On error NULL is returned. * On success, a clean format containing only date specifiers is * returned. */ static char * set_format_date (void) { char *fdate = NULL; if (has_timestamp (conf.date_format)) fdate = xstrdup ("%Y%m%d"); else fdate = clean_date_time_format (conf.date_format); return fdate; } /* Once we have a numeric date format, we attempt to read the time * format and construct a date_time numeric specificity format (if any * specificity is given). The result may look like Ymd[HM]. * * On success, the numeric date time specificity format is set. */ static void set_spec_date_time_num_format (void) { char *buf = NULL, *tf = set_format_time (); const char *df = conf.date_num_format; if (!df || !tf) { free (tf); return; } if (conf.date_spec_hr == 1 && strchr (tf, 'H')) buf = append_spec_date_format (df, "%H"); else if (conf.date_spec_hr == 2 && strchr (tf, 'M')) buf = append_spec_date_format (df, "%H%M"); else buf = xstrdup (df); conf.spec_date_time_num_format = buf; free (tf); } /* Set a human-readable specificity date and time format. * * On success, the human-readable date time specificity format is set. */ static void set_spec_date_time_format (void) { char *buf = NULL; const char *fmt = conf.spec_date_time_num_format; int buflen = 0, flen = 0; if (!fmt) return; flen = (strlen (fmt) * 2) + 1; buf = xcalloc (flen, sizeof (char)); if (strchr (fmt, 'd')) buflen += snprintf (buf + buflen, flen - buflen, "%%d/"); if (strchr (fmt, 'm')) buflen += snprintf (buf + buflen, flen - buflen, "%%b/"); if (strchr (fmt, 'Y')) buflen += snprintf (buf + buflen, flen - buflen, "%%Y"); if (strchr (fmt, 'H')) buflen += snprintf (buf + buflen, flen - buflen, ":%%H"); if (strchr (fmt, 'M')) buflen += snprintf (buf + buflen, flen - buflen, ":%%M"); conf.spec_date_time_format = buf; } /* Normalize the date format from the date format given by the user to * Ymd so it can be sorted out properly afterwards. * * On error or unable to determine the format, 1 is returned. * On success, the numeric date format as Ymd is set and 0 is * returned. */ static int set_date_num_format (void) { char *fdate = NULL, *buf = NULL; int buflen = 0, flen = 0; fdate = set_format_date (); if (!fdate) return 1; if (is_date_abbreviated (fdate)) { free (fdate); conf.date_num_format = xstrdup ("%Y%m%d"); return 0; } flen = strlen (fdate) + 1; flen = MAX (MIN_DATENUM_FMT_LEN, flen); /* at least %Y%m%d + 1 */ buf = xcalloc (flen, sizeof (char)); /* always add a %Y */ buflen += snprintf (buf + buflen, flen - buflen, "%%Y"); if (strpbrk (fdate, "hbmBf*")) buflen += snprintf (buf + buflen, flen - buflen, "%%m"); if (strpbrk (fdate, "def*")) buflen += snprintf (buf + buflen, flen - buflen, "%%d"); conf.date_num_format = buf; free (fdate); return buflen == 0 ? 1 : 0; } /* Determine if we have a valid JSON format */ int is_json_log_format (const char *fmt) { enum json_type t = JSON_ERROR; json_stream json; json_open_string (&json, fmt); /* ensure we use strict JSON when determining if we're using a JSON format */ json_set_streaming (&json, false); do { t = json_next (&json); switch (t) { case JSON_ERROR: json_close (&json); return 0; default: break; } } while (t != JSON_DONE && t != JSON_ERROR); json_close (&json); return 1; } /* Delete the given key from a nested object key or empty the key. */ static void dec_json_key (char *key, int has_dot) { if (!key || has_dot < 0) return; /* Designed to iterate has_dot + 1 times */ /* if has_dot is 2, the loop will run three times (when i is 0, 1, and 2). Each * iteration of the loop removes one dot from the end of the key string. * Therefore, if has_dot is 2, it will remove up to three dots from the end of * the key string. */ for (int i = 0; i <= has_dot; i++) { char *last_dot = strrchr (key, '.'); if (last_dot) *last_dot = '\0'; else { *key = '\0'; return; } } } /* Given a JSON string, parse it and call the given function pointer after each * value. * * On error, a non-zero value is returned. * On success, 0 is returned. */ int parse_json_string (void *ptr_data, const char *str, int (*cb) (void *, char *, char *)) { char *key = NULL, *val = NULL; enum json_type ctx = JSON_ERROR, t = JSON_ERROR; int ret = 0, has_dot = 0; size_t len = 0, level = 0; json_stream json; json_open_string (&json, str); do { t = json_next (&json); switch (t) { case JSON_OBJECT: if (key == NULL) key = xstrdup (""); break; case JSON_ARRAY_END: case JSON_OBJECT_END: dec_json_key (key, 0); break; case JSON_TRUE: val = xstrdup ("true"); if (!key || (ret = (*cb) (ptr_data, key, val))) goto clean; ctx = json_get_context (&json, &level); if (ctx != JSON_ARRAY) dec_json_key (key, 0); free (val); val = NULL; break; case JSON_FALSE: val = xstrdup ("false"); if (!key || (ret = (*cb) (ptr_data, key, val))) goto clean; ctx = json_get_context (&json, &level); if (ctx != JSON_ARRAY) dec_json_key (key, 0); free (val); val = NULL; break; case JSON_NULL: val = xstrdup ("-"); if (!key || (ret = (*cb) (ptr_data, key, val))) goto clean; ctx = json_get_context (&json, &level); if (ctx != JSON_ARRAY) dec_json_key (key, 0); free (val); val = NULL; break; case JSON_STRING: case JSON_NUMBER: ctx = json_get_context (&json, &level); /* key */ if ((level % 2) != 0 && ctx != JSON_ARRAY) { /* check if key contains a dot, to account for it on dec_json_key */ has_dot = count_matches (json_get_string (&json, &len), '.'); if (strlen (key) != 0) append_str (&key, "."); append_str (&key, json_get_string (&json, &len)); } /* val */ else if (key && (ctx == JSON_ARRAY || ((level % 2) == 0 && ctx != JSON_ARRAY))) { val = xstrdup (json_get_string (&json, &len)); if (!key || (ret = (*cb) (ptr_data, key, val))) goto clean; if (ctx != JSON_ARRAY) dec_json_key (key, has_dot); free (val); val = NULL; } break; case JSON_ERROR: ret = -1; goto clean; break; default: break; } } while (t != JSON_DONE && t != JSON_ERROR); clean: free (val); free (key); json_close (&json); return ret; } /* If specificity is supplied, then determine which value we need to * append to the date format. */ void set_spec_date_format (void) { if (verify_formats ()) return; if (conf.is_json_log_format) { if (parse_json_string (NULL, conf.log_format, ht_insert_json_logfmt) == -1) FATAL ("Invalid JSON log format. Verify the syntax."); } if (conf.date_num_format) free (conf.date_num_format); if (conf.spec_date_time_format) free (conf.spec_date_time_format); if (conf.spec_date_time_num_format) free (conf.spec_date_time_num_format); if (set_date_num_format () == 0) { set_spec_date_time_num_format (); set_spec_date_time_format (); } } /* Attempt to set the date format given a command line option * argument. The supplied optarg can be either an actual format string * or the enumerated value such as VCOMBINED */ void set_date_format_str (const char *oarg) { char *fmt = NULL; int type = get_log_format_item_enum (oarg); /* free date format if it was previously set by set_log_format_str() */ if (conf.date_format) free (conf.date_format); /* type not found, use whatever was given by the user then */ if (type == -1) { conf.date_format = unescape_str (oarg); return; } /* attempt to get the format string by the enum value */ if ((fmt = get_selected_date_str (type)) == NULL) { LOG_DEBUG (("Unable to set date format from enum: %s\n", oarg)); return; } conf.date_format = fmt; } /* Attempt to set the time format given a command line option * argument. The supplied optarg can be either an actual format string * or the enumerated value such as VCOMBINED */ void set_time_format_str (const char *oarg) { char *fmt = NULL; int type = get_log_format_item_enum (oarg); /* free time format if it was previously set by set_log_format_str() */ if (conf.time_format) free (conf.time_format); /* type not found, use whatever was given by the user then */ if (type == -1) { conf.time_format = unescape_str (oarg); return; } /* attempt to get the format string by the enum value */ if ((fmt = get_selected_time_str (type)) == NULL) { LOG_DEBUG (("Unable to set time format from enum: %s\n", oarg)); return; } conf.time_format = fmt; } /* Determine if some global flags were set through log-format. */ static void contains_specifier (void) { conf.serve_usecs = conf.bandwidth = 0; /* flag */ if (!conf.log_format) return; if (strstr (conf.log_format, "%b")) conf.bandwidth = 1; /* flag */ if (strstr (conf.log_format, "%D")) conf.serve_usecs = 1; /* flag */ if (strstr (conf.log_format, "%T")) conf.serve_usecs = 1; /* flag */ if (strstr (conf.log_format, "%L")) conf.serve_usecs = 1; /* flag */ } /* Attempt to set the log format given a command line option argument. * The supplied optarg can be either an actual format string or the * enumerated value such as VCOMBINED */ void set_log_format_str (const char *oarg) { char *fmt = NULL; int type = get_log_format_item_enum (oarg); /* free log format if it was previously set */ if (conf.log_format) free (conf.log_format); if (type == -1 && is_json_log_format (oarg)) { conf.is_json_log_format = 1; conf.log_format = unescape_str (oarg); contains_specifier (); /* set flag */ return; } /* type not found, use whatever was given by the user then */ if (type == -1) { conf.log_format = unescape_str (oarg); contains_specifier (); /* set flag */ return; } /* attempt to get the format string by the enum value */ if ((fmt = get_selected_format_str (type)) == NULL) { LOG_DEBUG (("Unable to set log format from enum: %s\n", oarg)); return; } if (is_json_log_format (fmt)) conf.is_json_log_format = 1; conf.log_format = unescape_str (fmt); contains_specifier (); /* set flag */ /* assume we are using the default date/time formats */ set_time_format_str (oarg); set_date_format_str (oarg); free (fmt); } ================================================ FILE: src/settings.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef SETTINGS_H_INCLUDED #define SETTINGS_H_INCLUDED #include #include "commons.h" #define MAX_LINE_CONF 4096 #define MAX_EXTENSIONS 128 #define MAX_GEOIP_DBS 3 #define MAX_IGNORE_IPS 1024 + 128 #define MAX_IGNORE_REF 64 #define MAX_CUSTOM_COLORS 64 #define MAX_IGNORE_STATUS 64 #define MAX_OUTFORMATS 3 #define MAX_FILENAMES 3072 #define MIN_DATENUM_FMT_LEN 7 #define NO_CONFIG_FILE "No config file used" typedef enum LOGTYPE { COMBINED, VCOMBINED, COMMON, VCOMMON, W3C, CLOUDFRONT, CLOUDSTORAGE, AWSELB, SQUID, AWSS3, CADDY, AWSALB, TRAEFIKCLF, } GLogType; /* predefined log times */ typedef struct GPreConfTime_ { const char *fmt24; const char *usec; const char *sec; } GPreConfTime; /* predefined log dates */ typedef struct GPreConfDate_ { const char *apache; const char *w3c; const char *usec; const char *sec; } GPreConfDate; /* predefined log formats */ typedef struct GPreConfLog_ { const char *combined; const char *vcombined; const char *common; const char *vcommon; const char *w3c; const char *cloudfront; const char *cloudstorage; const char *awselb; const char *squid; const char *awss3; const char *caddy; const char *awsalb; const char *traefikclf; } GPreConfLog; /* *INDENT-OFF* */ /* All configuration properties */ typedef struct GConf_ { /* Array options */ const char *colors[MAX_CUSTOM_COLORS]; /* colors */ const char *enable_panels[TOTAL_MODULES]; /* array of panels to enable */ const char *filenames[MAX_FILENAMES]; /* log files */ const char *hide_referers[MAX_IGNORE_REF]; /* hide referrers from report */ const char *ignore_ips[MAX_IGNORE_IPS]; /* array of ips to ignore */ const char *ignore_panels[TOTAL_MODULES]; /* array of panels to ignore */ const char *ignore_referers[MAX_IGNORE_REF]; /* referrers to ignore */ int ignore_status[MAX_IGNORE_STATUS]; /* status to ignore */ const char *output_formats[MAX_OUTFORMATS]; /* output format, e.g. , HTML */ const char *sort_panels[TOTAL_MODULES]; /* sorting options for each panel */ const char *static_files[MAX_EXTENSIONS]; /* static extensions */ const char *geoip_databases[MAX_GEOIP_DBS]; /* geoip db paths */ /* Log/date/time formats */ const char *tz_name; /* Canonical TZ name, e.g., America/Chicago */ char *date_time_format; /* date & time format */ char *date_format; /* date format */ char *date_num_format; /* numeric date format %Y%m%d */ char *time_format; /* time format as given by the user */ char *spec_date_time_format; /* date format w/ specificity */ char *spec_date_time_num_format; /* numeric date format w/ specificity */ char *log_format; /* log format */ char *iconfigfile; /* config file path */ char ***user_browsers_hash; /* custom list of browsers */ const char *debug_log; /* debug log path */ const char *html_custom_css; /* custom CSS */ const char *html_custom_js; /* custom JS */ const char *html_prefs; /* default HTML JSON preferences */ const char *html_report_title; /* report title */ const char *invalid_requests_log; /* invalid lines log path */ const char *unknowns_log; /* unknown browsers/OSs log path */ const char *pidfile; /* daemonize pid file path */ const char *browsers_file; /* browser's file path */ const char *db_path; /* db path to files */ const char *fname_as_vhost; /* filenames as vhost/server blocks */ /* HTML real-time */ const char *addr; /* IP address to bind to */ const char *fifo_in; /* path FIFO in (reader) */ const char *fifo_out; /* path FIFO out (writer) */ const char *origin; /* WebSocket origin */ const char *port; /* port to use */ const char *sslcert; /* TLS/SSL path to certificate */ const char *sslkey; /* TLS/SSL path to private key */ const char *ws_url; /* WebSocket URL */ const char *ping_interval; /* WebSocket ping interval in seconds */ const char *unix_socket; /* unix socket to bind to */ const char *ws_auth_url; /* URL to fetch the initial JWT */ const char *ws_auth_refresh_url; /* URL to fetch the refreh JWT */ char *ws_auth_secret; /* WebSocket AUTH */ long ws_auth_expire; /* WebSocket AUTH JWT expire in seconds */ int ws_auth_verify_only; /* WebSocket AUTH verify only */ /* User flags */ int all_static_files; /* parse all static files */ int anonymize_ip; /* anonymize ip addresses */ int anonymize_level; /* anonymization level */ int append_method; /* append method to the req key */ int append_protocol; /* append protocol to the req key */ int client_err_to_unique_count; /* count 400s as visitors */ int code444_as_404; /* 444 as 404s? */ int color_scheme; /* color scheme */ int chunk_size; /* chunk size for each thread */ int crawlers_only; /* crawlers only */ int daemonize; /* run program as a Unix daemon */ const char *username; /* user to run program as */ int double_decode; /* need to double decode */ int external_assets; /* write JS/CSS assets to external files */ int enable_html_resolver; /* html/json/csv resolver */ int geo_db; /* legacy geoip db */ int hl_header; /* highlight header on term */ int ignore_crawlers; /* ignore crawlers */ int unknowns_as_crawlers; /* unknown OS and browsers are classified as crawlers */ int ignore_qstr; /* ignore query string */ int ignore_statics; /* ignore static files */ int jobs; /* multi-thread jobs count */ int json_pretty_print; /* pretty print JSON data */ int list_agents; /* show list of agents per host */ int load_conf_dlg; /* load curses config dialog */ int load_global_config; /* use global config file */ int max_items; /* max number of items to output */ int mouse_support; /* add curses mouse support */ int no_color; /* no terminal colors */ int no_strict_status; /* don't enforce 100-599 status codes */ int no_column_names; /* don't show col names on terminal */ int no_csv_summary; /* don't show overall metrics */ int no_html_last_updated; /* don't show HTML last updated field */ int no_ip_validation; /* don't validate client IP addresses */ int no_parsing_spinner; /* disable parsing spinner */ int no_progress; /* disable progress metrics */ int no_tab_scroll; /* don't scroll dashboard on tab */ int output_stdout; /* outputting to stdout */ int persist; /* ensure to persist data on exit */ int process_and_exit; /* parse and exit without outputting */ int real_os; /* show real OSs */ int real_time_html; /* enable real-time HTML output */ int restore; /* reload data from db-path */ int skip_term_resolver; /* no terminal resolver */ int is_json_log_format; /* is a json log format */ uint32_t keep_last; /* number of days to keep in storage */ uint32_t num_tests; /* number of lines to test */ uint64_t html_refresh; /* refresh html report every X of seconds */ uint64_t log_size; /* log size override */ int concat_vhost_req; /* concatenate vhost and request */ /* Internal flags */ int bandwidth; /* is there bandwidth within the req line */ int date_spec_hr; /* date specificity - hour */ int has_geocity; int has_geocountry; int has_geoasn; int hour_spec_min; /* hour specificity - min */ int read_stdin; /* read from stdin */ int serve_usecs; /* is there time served within req line */ _Atomic int stop_processing; /* stop all processing */ int tailing_mode; /* in tailing-mode? */ /* Array indices */ int color_idx; /* colors index */ int enable_panel_idx; /* enable panels index */ int filenames_idx; /* filenames index */ int hide_referer_idx; /* hide referrers index */ int ignore_ip_idx; /* ignored ips index */ int ignore_panel_idx; /* ignored panels index */ int ignore_referer_idx; /* ignored referrers index */ int ignore_status_idx; /* ignore status index */ int output_format_idx; /* output format index */ int sort_panel_idx; /* sort panel index */ int static_file_idx; /* static extensions index */ int geoip_db_idx; /* geoip db index */ int browsers_hash_idx; /* browsers hash index */ size_t static_file_max_len; } GConf; /* *INDENT-ON* */ char *get_selected_date_str (size_t idx); char *get_selected_format_str (size_t idx); char *get_selected_time_str (size_t idx); const char *verify_formats (void); int is_json_log_format (const char *fmt); int parse_json_string (void *userdata, const char *str, int (*cb) (void *, char *, char *)); size_t get_selected_format_idx (void); void set_date_format_str (const char *optarg); void set_log_format_str (const char *optarg); void set_spec_date_format (void); void set_time_format_str (const char *optarg); extern GConf conf; char *get_config_file_path (void); int parse_conf_file (int *argc, char ***argv); void free_cmd_args (void); void free_formats (void); void set_default_static_files (void); #endif ================================================ FILE: src/sha1.c ================================================ /* SHA-1 in C By Steve Reid 100% Public Domain Test Vectors (from FIPS PUB 180-1) "abc" A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" 84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1 A million repetitions of "a" 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F */ /* #define LITTLE_ENDIAN * This should be #define'd if true. */ #if __LITTLE_ENDIAN__ #define LITTLE_ENDIAN #endif /* #define SHA1HANDSOFF * Copies data before messing with it. */ #include #include "sha1.h" void SHA1Transform (uint32_t state[5], uint8_t buffer[64]); #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) /* blk0() and blk() perform the initial expand. */ /* I got the idea of expanding during the round function from SSLeay */ #ifdef LITTLE_ENDIAN #define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ |(rol(block->l[i],8)&0x00FF00FF)) #else #define blk0(i) block->l[i] #endif #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ ^block->l[(i+2)&15]^block->l[i&15],1)) /* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */ #define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30); #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30); #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30); #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30); /* Hash a single 512-bit block. This is the core of the algorithm. */ void SHA1Transform (uint32_t state[5], uint8_t buffer[64]) { uint32_t a, b, c, d, e; typedef union { uint8_t c[64]; uint32_t l[16]; } CHAR64LONG16; CHAR64LONG16 *block; #ifdef SHA1HANDSOFF static uint8_t workspace[64]; block = (CHAR64LONG16 *) (void *) workspace; memcpy (block, buffer, 64); #else block = (CHAR64LONG16 *) (void *) buffer; #endif /* Copy context->state[] to working vars */ a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; /* 4 rounds of 20 operations each. Loop unrolled. */ R0 (a, b, c, d, e, 0); R0 (e, a, b, c, d, 1); R0 (d, e, a, b, c, 2); R0 (c, d, e, a, b, 3); R0 (b, c, d, e, a, 4); R0 (a, b, c, d, e, 5); R0 (e, a, b, c, d, 6); R0 (d, e, a, b, c, 7); R0 (c, d, e, a, b, 8); R0 (b, c, d, e, a, 9); R0 (a, b, c, d, e, 10); R0 (e, a, b, c, d, 11); R0 (d, e, a, b, c, 12); R0 (c, d, e, a, b, 13); R0 (b, c, d, e, a, 14); R0 (a, b, c, d, e, 15); R1 (e, a, b, c, d, 16); R1 (d, e, a, b, c, 17); R1 (c, d, e, a, b, 18); R1 (b, c, d, e, a, 19); R2 (a, b, c, d, e, 20); R2 (e, a, b, c, d, 21); R2 (d, e, a, b, c, 22); R2 (c, d, e, a, b, 23); R2 (b, c, d, e, a, 24); R2 (a, b, c, d, e, 25); R2 (e, a, b, c, d, 26); R2 (d, e, a, b, c, 27); R2 (c, d, e, a, b, 28); R2 (b, c, d, e, a, 29); R2 (a, b, c, d, e, 30); R2 (e, a, b, c, d, 31); R2 (d, e, a, b, c, 32); R2 (c, d, e, a, b, 33); R2 (b, c, d, e, a, 34); R2 (a, b, c, d, e, 35); R2 (e, a, b, c, d, 36); R2 (d, e, a, b, c, 37); R2 (c, d, e, a, b, 38); R2 (b, c, d, e, a, 39); R3 (a, b, c, d, e, 40); R3 (e, a, b, c, d, 41); R3 (d, e, a, b, c, 42); R3 (c, d, e, a, b, 43); R3 (b, c, d, e, a, 44); R3 (a, b, c, d, e, 45); R3 (e, a, b, c, d, 46); R3 (d, e, a, b, c, 47); R3 (c, d, e, a, b, 48); R3 (b, c, d, e, a, 49); R3 (a, b, c, d, e, 50); R3 (e, a, b, c, d, 51); R3 (d, e, a, b, c, 52); R3 (c, d, e, a, b, 53); R3 (b, c, d, e, a, 54); R3 (a, b, c, d, e, 55); R3 (e, a, b, c, d, 56); R3 (d, e, a, b, c, 57); R3 (c, d, e, a, b, 58); R3 (b, c, d, e, a, 59); R4 (a, b, c, d, e, 60); R4 (e, a, b, c, d, 61); R4 (d, e, a, b, c, 62); R4 (c, d, e, a, b, 63); R4 (b, c, d, e, a, 64); R4 (a, b, c, d, e, 65); R4 (e, a, b, c, d, 66); R4 (d, e, a, b, c, 67); R4 (c, d, e, a, b, 68); R4 (b, c, d, e, a, 69); R4 (a, b, c, d, e, 70); R4 (e, a, b, c, d, 71); R4 (d, e, a, b, c, 72); R4 (c, d, e, a, b, 73); R4 (b, c, d, e, a, 74); R4 (a, b, c, d, e, 75); R4 (e, a, b, c, d, 76); R4 (d, e, a, b, c, 77); R4 (c, d, e, a, b, 78); R4 (b, c, d, e, a, 79); /* Add the working vars back into context.state[] */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; /* Wipe variables */ a = b = c = d = e = 0; } /* SHA1Init - Initialize new context */ void SHA1Init (SHA1_CTX *context) { /* SHA1 initialization constants */ context->state[0] = 0x67452301; context->state[1] = 0xEFCDAB89; context->state[2] = 0x98BADCFE; context->state[3] = 0x10325476; context->state[4] = 0xC3D2E1F0; context->count[0] = context->count[1] = 0; } /* Run your data through this. */ void SHA1Update (SHA1_CTX *context, uint8_t *data, unsigned int len) { unsigned int i, j; j = (context->count[0] >> 3) & 63; if ((context->count[0] += len << 3) < (len << 3)) context->count[1]++; context->count[1] += (len >> 29); if ((j + len) > 63) { memcpy (&context->buffer[j], data, (i = 64 - j)); SHA1Transform (context->state, context->buffer); for (; i + 63 < len; i += 64) { SHA1Transform (context->state, &data[i]); } j = 0; } else i = 0; memcpy (&context->buffer[j], &data[i], len - i); } /* Add padding and return the message digest. */ void SHA1Final (uint8_t digest[20], SHA1_CTX *context) { uint32_t i, j; uint8_t finalcount[8]; for (i = 0; i < 8; i++) { finalcount[i] = (uint8_t) ((context->count[(i >= 4 ? 0 : 1)] >> ((3 - (i & 3)) * 8)) & 255); /* Endian independent */ } SHA1Update (context, (uint8_t *) "\200", 1); while ((context->count[0] & 504) != 448) { SHA1Update (context, (uint8_t *) "\0", 1); } SHA1Update (context, finalcount, 8); /* Should cause a SHA1Transform() */ for (i = 0; i < 20; i++) { digest[i] = (uint8_t) ((context->state[i >> 2] >> ((3 - (i & 3)) * 8)) & 255); } /* Wipe variables */ i = j = 0; memset (context->buffer, 0, 64); memset (context->state, 0, 20); memset (context->count, 0, 8); memset (&finalcount, 0, 8); #ifdef SHA1HANDSOFF /* make SHA1Transform overwrite its own static vars */ SHA1Transform (context->state, context->buffer); #endif } ================================================ FILE: src/sha1.h ================================================ #ifndef SHA1_H_INCLUDED #define SHA1_H_INCLUDED #include #include // From http://www.mirrors.wiretapped.net/security/cryptography/hashes/sha1/sha1.c typedef struct { uint32_t state[5]; uint32_t count[2]; uint8_t buffer[64]; } SHA1_CTX; extern void SHA1Init (SHA1_CTX * context); extern void SHA1Update (SHA1_CTX * context, uint8_t * data, uint32_t len); extern void SHA1Final (uint8_t digest[20], SHA1_CTX * context); #endif // for #ifndef SHA1_H ================================================ FILE: src/sort.c ================================================ /** * sort.c -- functions related to sort functionality * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include #endif #include #include #include #include "settings.h" #include "util.h" #include "sort.h" /* *INDENT-OFF* */ const int sort_choices[][SORT_MAX_OPTS] = { /* VISITORS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* REQUESTS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, SORT_BY_PROT, SORT_BY_MTHD, -1}, /* REQUESTS_STATIC */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, SORT_BY_PROT, SORT_BY_MTHD, -1}, /* NOT_FOUND */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, SORT_BY_PROT, SORT_BY_MTHD, -1}, /* HOSTS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* OS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* BROWSERS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* VISIT_TIMES */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* VIRTUAL_HOSTS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* REFERRERS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* REFERRING_SITES */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* KEYPHRASES */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* STATUS_CODES */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* REMOTE_USER */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* CACHE_STATUS */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, #ifdef HAVE_GEOLOCATION /* GEO_LOCATION */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* ASN */ {SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, #endif /* MIME_TYPE */ {SORT_BY_HITS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, -1}, /* TLS_TYPE */ {SORT_BY_HITS, SORT_BY_DATA, SORT_BY_VISITORS, SORT_BY_BW, -1}, }; static const GEnum FIELD[] = { {"BY_HITS" , SORT_BY_HITS } , {"BY_VISITORS" , SORT_BY_VISITORS } , {"BY_DATA" , SORT_BY_DATA } , {"BY_BW" , SORT_BY_BW } , {"BY_AVGTS" , SORT_BY_AVGTS } , {"BY_CUMTS" , SORT_BY_CUMTS } , {"BY_MAXTS" , SORT_BY_MAXTS } , {"BY_PROT" , SORT_BY_PROT } , {"BY_MTHD" , SORT_BY_MTHD } , }; static const GEnum ORDER[] = { {"ASC" , SORT_ASC } , {"DESC" , SORT_DESC } , }; GSort module_sort[TOTAL_MODULES] = { {VISITORS , SORT_BY_DATA , SORT_DESC } , {REQUESTS , SORT_BY_HITS , SORT_DESC } , {REQUESTS_STATIC , SORT_BY_HITS , SORT_DESC } , {NOT_FOUND , SORT_BY_HITS , SORT_DESC } , {HOSTS , SORT_BY_HITS , SORT_DESC } , {OS , SORT_BY_HITS , SORT_DESC } , {BROWSERS , SORT_BY_HITS , SORT_DESC } , {VISIT_TIMES , SORT_BY_DATA , SORT_ASC } , {VIRTUAL_HOSTS , SORT_BY_HITS , SORT_DESC } , {REFERRERS , SORT_BY_HITS , SORT_DESC } , {REFERRING_SITES , SORT_BY_HITS , SORT_DESC } , {KEYPHRASES , SORT_BY_HITS , SORT_DESC } , {STATUS_CODES , SORT_BY_HITS , SORT_DESC } , {REMOTE_USER , SORT_BY_HITS , SORT_DESC } , {CACHE_STATUS , SORT_BY_HITS , SORT_DESC } , #ifdef HAVE_GEOLOCATION {GEO_LOCATION , SORT_BY_HITS , SORT_DESC } , {ASN , SORT_BY_HITS , SORT_DESC } , #endif {MIME_TYPE , SORT_BY_HITS , SORT_DESC } , {TLS_TYPE , SORT_BY_VISITORS , SORT_DESC } , }; /* *INDENT-ON* */ /* Sort an array of strings ascending */ int strcmp_asc (const void *a, const void *b) { return strcmp (*((char *const *) a), *((char *const *) b)); } /* Sort 'data' metric ascending */ static int cmp_data_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; return strcmp (ia->metrics->data, ib->metrics->data); } /* Sort 'data' metric descending */ static int cmp_data_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; return strcmp (ib->metrics->data, ia->metrics->data); } /* Sort 'hits' metric descending */ static int cmp_num_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->hits; uint64_t vb = ib->metrics->hits; return (va < vb) - (va > vb); } /* Sort 'hits' metric ascending */ static int cmp_num_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->hits; uint64_t vb = ib->metrics->hits; return (va > vb) - (va < vb); } /* Sort 'visitors' metric descending */ static int cmp_vis_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->visitors; uint64_t vb = ib->metrics->visitors; return (va < vb) - (va > vb); } /* Sort 'visitors' metric ascending */ static int cmp_vis_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->visitors; uint64_t vb = ib->metrics->visitors; return (va > vb) - (va < vb); } /* Sort GRawDataItem value descending */ static int cmp_raw_num_desc (const void *a, const void *b) { const GRawDataItem *ia = a; const GRawDataItem *ib = b; uint64_t va = ia->hits; uint64_t vb = ib->hits; return (va < vb) - (va > vb); } /* Sort GRawDataItem value descending */ static int cmp_raw_str_desc (const void *a, const void *b) { const GRawDataItem *ia = a; const GRawDataItem *ib = b; return strcmp (ib->data, ia->data); } /* Sort 'bandwidth' metric descending */ static int cmp_bw_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->nbw; uint64_t vb = ib->metrics->nbw; return (va < vb) - (va > vb); } /* Sort 'bandwidth' metric ascending */ static int cmp_bw_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->nbw; uint64_t vb = ib->metrics->nbw; return (va > vb) - (va < vb); } /* Sort 'avgts' metric descending */ static int cmp_avgts_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->avgts.nts; uint64_t vb = ib->metrics->avgts.nts; return (va < vb) - (va > vb); } /* Sort 'avgts' metric ascending */ static int cmp_avgts_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->avgts.nts; uint64_t vb = ib->metrics->avgts.nts; return (va > vb) - (va < vb); } /* Sort 'cumts' metric descending */ static int cmp_cumts_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->cumts.nts; uint64_t vb = ib->metrics->cumts.nts; return (va < vb) - (va > vb); } /* Sort 'cumts' metric ascending */ static int cmp_cumts_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->cumts.nts; uint64_t vb = ib->metrics->cumts.nts; return (va > vb) - (va < vb); } /* Sort 'maxts' metric descending */ static int cmp_maxts_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->maxts.nts; uint64_t vb = ib->metrics->maxts.nts; return (va < vb) - (va > vb); } /* Sort 'maxts' metric ascending */ static int cmp_maxts_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; uint64_t va = ia->metrics->maxts.nts; uint64_t vb = ib->metrics->maxts.nts; return (va > vb) - (va < vb); } /* Sort 'protocol' metric ascending */ static int cmp_proto_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; return strcmp (ia->metrics->protocol, ib->metrics->protocol); } /* Sort 'protocol' metric descending */ static int cmp_proto_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; return strcmp (ib->metrics->protocol, ia->metrics->protocol); } /* Sort 'method' metric ascending */ static int cmp_mthd_asc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; return strcmp (ia->metrics->method, ib->metrics->method); } /* Sort 'method' metric descending */ static int cmp_mthd_desc (const void *a, const void *b) { const GHolderItem *ia = a; const GHolderItem *ib = b; return strcmp (ib->metrics->method, ia->metrics->method); } /* Sort ascending */ #if defined(__clang__) && defined(__clang_major__) && (__clang_major__ >= 4) __attribute__((no_sanitize ("implicit-conversion", "unsigned-integer-overflow"))) #endif int cmp_ui32_asc (const void *a, const void *b) { const uint32_t *ia = (const uint32_t *) a; // casting pointer types const uint32_t *ib = (const uint32_t *) b; return *ia - *ib; } int cmp_ui32_desc (const void *a, const void *b) { const uint32_t *ia = (const uint32_t *) a; // casting pointer types const uint32_t *ib = (const uint32_t *) b; return *ib - *ia; } /* Given a string sort field, get the enum field value. * * On error, -1 is returned. * On success, the enumerated field value is returned. */ int get_sort_field_enum (const char *str) { return str2enum (FIELD, ARRAY_SIZE (FIELD), str); } /* Given a string sort order, get the enum order value. * * On error, -1 is returned. * On success, the enumerated order value is returned. */ int get_sort_order_enum (const char *str) { return str2enum (ORDER, ARRAY_SIZE (ORDER), str); } /* Given a GSortOrder enum value, return the corresponding string. * * The string corresponding to the enumerated order value is returned. */ const char * get_sort_order_str (GSortOrder order) { return ORDER[order].str; } /* Given a GSortField enum value, return the corresponding string. * * The string corresponding to the enumerated field value is returned. */ const char * get_sort_field_str (GSortField field) { return FIELD[field].str; } /* Given a GSortField enum value, return the corresponding key. * * The key corresponding to the enumerated field value is returned. */ const char * get_sort_field_key (GSortField field) { static const char *const field2key[][2] = { {"BY_HITS", "hits"}, {"BY_VISITORS", "visitors"}, {"BY_DATA", "data"}, {"BY_BW", "bytes"}, {"BY_AVGTS", "avgts"}, {"BY_CUMTS", "cumts"}, {"BY_MAXTS", "maxts"}, {"BY_PROT", "protocol"}, {"BY_MTHD", "method"}, }; return field2key[field][1]; } /* Set the initial metric sort per module/panel. * * On error, function returns. * On success, panel metrics are sorted. */ void set_initial_sort (const char *smod, const char *sfield, const char *ssort) { int module, field, order; if ((module = get_module_enum (smod)) == -1) return; if ((field = get_sort_field_enum (sfield)) == -1) return; if ((order = get_sort_order_enum (ssort)) == -1) return; if (!can_sort_module (module, field)) return; module_sort[module].field = field; module_sort[module].sort = order; } /* Determine if module/panel metric can be sorted. * * On error or if metric can't be sorted, 0 is returned. * On success, 1 is returned. */ int can_sort_module (GModule module, int field) { int i, can_sort = 0; for (i = 0; -1 != sort_choices[module][i]; i++) { if (sort_choices[module][i] != field) continue; if (SORT_BY_AVGTS == field && !conf.serve_usecs) continue; if (SORT_BY_CUMTS == field && !conf.serve_usecs) continue; if (SORT_BY_MAXTS == field && !conf.serve_usecs) continue; else if (SORT_BY_BW == field && !conf.bandwidth) continue; else if (SORT_BY_PROT == field && !conf.append_protocol) continue; else if (SORT_BY_MTHD == field && !conf.append_method) continue; can_sort = 1; break; } return can_sort; } /* Parse all initial sort options from the config file. * * On error, function returns. * On success, panel metrics are sorted. */ void parse_initial_sort (void) { int i; char module[SORT_MODULE_LEN], field[SORT_FIELD_LEN], order[SORT_ORDER_LEN]; for (i = 0; i < conf.sort_panel_idx; ++i) { if (sscanf (conf.sort_panels[i], "%15[^','],%11[^','],%4s", module, field, order) != 3) continue; set_initial_sort (module, field, order); } } /* Apply user defined sort */ void sort_holder_items (GHolderItem *items, int size, GSort sort) { switch (sort.field) { case SORT_BY_HITS: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_num_desc); else qsort (items, size, sizeof (GHolderItem), cmp_num_asc); break; case SORT_BY_VISITORS: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_vis_desc); else qsort (items, size, sizeof (GHolderItem), cmp_vis_asc); break; case SORT_BY_DATA: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_data_desc); else qsort (items, size, sizeof (GHolderItem), cmp_data_asc); break; case SORT_BY_BW: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_bw_desc); else qsort (items, size, sizeof (GHolderItem), cmp_bw_asc); break; case SORT_BY_AVGTS: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_avgts_desc); else qsort (items, size, sizeof (GHolderItem), cmp_avgts_asc); break; case SORT_BY_CUMTS: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_cumts_desc); else qsort (items, size, sizeof (GHolderItem), cmp_cumts_asc); break; case SORT_BY_MAXTS: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_maxts_desc); else qsort (items, size, sizeof (GHolderItem), cmp_maxts_asc); break; case SORT_BY_PROT: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_proto_desc); else qsort (items, size, sizeof (GHolderItem), cmp_proto_asc); break; case SORT_BY_MTHD: if (sort.sort == SORT_DESC) qsort (items, size, sizeof (GHolderItem), cmp_mthd_desc); else qsort (items, size, sizeof (GHolderItem), cmp_mthd_asc); break; } } /* Sort raw numeric data in a descending order for the first run * (default sort) * * On success, raw data sorted in a descending order. */ GRawData * sort_raw_num_data (GRawData *raw_data, int ht_size) { qsort (raw_data->items, ht_size, sizeof *(raw_data->items), cmp_raw_num_desc); return raw_data; } /* Sort raw string data in a descending order for the first run. * * On success, raw data sorted in a descending order. */ GRawData * sort_raw_str_data (GRawData *raw_data, int ht_size) { qsort (raw_data->items, ht_size, sizeof *(raw_data->items), cmp_raw_str_desc); return raw_data; } ================================================ FILE: src/sort.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include #endif #ifndef SORT_H_INCLUDED #define SORT_H_INCLUDED #include "commons.h" #include "parser.h" #define SORT_MAX_OPTS 11 /* See GEnum for mapping */ #define SORT_FIELD_LEN 11 + 1 /* longest metric name */ #define SORT_MODULE_LEN 15 + 1 /* longest module name */ #define SORT_ORDER_LEN 4 + 1 /* length of ASC or DESC */ /* Enumerated sorting metrics */ typedef enum GSortField_ { SORT_BY_HITS, SORT_BY_VISITORS, SORT_BY_DATA, SORT_BY_BW, SORT_BY_AVGTS, SORT_BY_CUMTS, SORT_BY_MAXTS, SORT_BY_PROT, SORT_BY_MTHD, } GSortField; /* Enumerated sorting order */ typedef enum GSortOrder_ { SORT_ASC, SORT_DESC } GSortOrder; /* Sorting of each panel, metric and order */ typedef struct GSort_ { GModule module; GSortField field; GSortOrder sort; } GSort; extern GSort module_sort[TOTAL_MODULES]; extern const int sort_choices[][SORT_MAX_OPTS]; GRawData *sort_raw_num_data (GRawData * raw_data, int ht_size); GRawData *sort_raw_str_data (GRawData * raw_data, int ht_size); const char *get_sort_field_key (GSortField field); const char *get_sort_field_str (GSortField field); const char *get_sort_order_str (GSortOrder order); int can_sort_module (GModule module, int field); int get_sort_field_enum (const char *str); int get_sort_order_enum (const char *str); int strcmp_asc (const void *a, const void *b); int cmp_ui32_asc (const void *a, const void *b); int cmp_ui32_desc (const void *a, const void *b); void parse_initial_sort (void); void set_initial_sort (const char *smod, const char *sfield, const char *ssort); void sort_holder_items (GHolderItem * items, int size, GSort sort); #endif ================================================ FILE: src/tpl.c ================================================ /* Copyright (c) 2005-2013, Troy D. Hanson http://troydhanson.github.com/tpl/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #define TPL_VERSION 1.6 /*static const char id[]="$Id: tpl.c 192 2009-04-24 10:35:30Z thanson $";*/ #include /* malloc */ #include /* va_list */ #include /* memcpy, memset, strchr */ #include /* printf (tpl_hook.oops default function) */ #ifndef _WIN32 #include /* for ftruncate */ #else #include #define ftruncate(x,y) _chsize(x,y) #endif #include /* for 'open' */ #include /* for 'open' */ #include #ifndef _WIN32 #include /* uint32_t, uint64_t, etc */ #else typedef unsigned short ushort; typedef __int16 int16_t; typedef __int32 int32_t; typedef __int64 int64_t; typedef unsigned __int16 uint16_t; typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; #endif #ifndef S_ISREG #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) #endif #if ( defined __CYGWIN__ || defined __MINGW32__ || defined _WIN32 ) #include "win/mman.h" /* mmap */ #else #include /* mmap */ #endif #include "tpl.h" #define TPL_GATHER_BUFLEN 8192 #define TPL_MAGIC "tpl" /* macro to add a structure to a doubly-linked list */ #define DL_ADD(head,add) \ do { \ if (head) { \ (add)->prev = (head)->prev; \ (head)->prev->next = (add); \ (head)->prev = (add); \ (add)->next = NULL; \ } else { \ (head)=(add); \ (head)->prev = (head); \ (head)->next = NULL; \ } \ } while (0); #define fatal_oom() tpl_hook.fatal("out of memory\n") /* bit flags (internal). preceded by the external flags in tpl.h */ #define TPL_WRONLY (1 << 9) /* app has initiated tpl packing */ #define TPL_RDONLY (1 << 10) /* tpl was loaded (for unpacking) */ #define TPL_XENDIAN (1 << 11) /* swap endianness when unpacking */ #define TPL_OLD_STRING_FMT (1 << 12) /* tpl has strings in 1.2 format */ /* values for the flags byte that appears after the magic prefix */ #define TPL_SUPPORTED_BITFLAGS 3 #define TPL_FL_BIGENDIAN (1 << 0) #define TPL_FL_NULLSTRINGS (1 << 1) /* char values for node type */ #define TPL_TYPE_ROOT 0 #define TPL_TYPE_INT32 1 #define TPL_TYPE_UINT32 2 #define TPL_TYPE_BYTE 3 #define TPL_TYPE_STR 4 #define TPL_TYPE_ARY 5 #define TPL_TYPE_BIN 6 #define TPL_TYPE_DOUBLE 7 #define TPL_TYPE_INT64 8 #define TPL_TYPE_UINT64 9 #define TPL_TYPE_INT16 10 #define TPL_TYPE_UINT16 11 #define TPL_TYPE_POUND 12 /* error codes */ #define ERR_NOT_MINSIZE (-1) #define ERR_MAGIC_MISMATCH (-2) #define ERR_INCONSISTENT_SZ (-3) #define ERR_FMT_INVALID (-4) #define ERR_FMT_MISSING_NUL (-5) #define ERR_FMT_MISMATCH (-6) #define ERR_FLEN_MISMATCH (-7) #define ERR_INCONSISTENT_SZ2 (-8) #define ERR_INCONSISTENT_SZ3 (-9) #define ERR_INCONSISTENT_SZ4 (-10) #define ERR_UNSUPPORTED_FLAGS (-11) /* access to A(...) nodes by index */ typedef struct tpl_pidx { struct tpl_node *node; struct tpl_pidx *next, *prev; } tpl_pidx; /* A(...) node datum */ typedef struct tpl_atyp { uint32_t num; /* num elements */ size_t sz; /* size of each backbone's datum */ struct tpl_backbone *bb, *bbtail; void *cur; } tpl_atyp; /* backbone to extend A(...) lists dynamically */ typedef struct tpl_backbone { struct tpl_backbone *next; /* when this structure is malloc'd, extra space is alloc'd at the * end to store the backbone "datum", and data points to it. */ #if __STDC_VERSION__ < 199901 char *data; #else char data[]; #endif } tpl_backbone; /* mmap record */ typedef struct tpl_mmap_rec { int fd; void *text; size_t text_sz; } tpl_mmap_rec; /* root node datum */ typedef struct tpl_root_data { int flags; tpl_pidx *pidx; tpl_mmap_rec mmap; char *fmt; int *fxlens, num_fxlens; } tpl_root_data; /* node type to size mapping */ struct tpl_type_t { char c; int sz; }; /* Internal prototypes */ static tpl_node *tpl_node_new (tpl_node * parent); static tpl_node *tpl_find_i (tpl_node * n, int i); static void *tpl_cpv (void *datav, const void *data, size_t sz); static void *tpl_extend_backbone (tpl_node * n); static char *tpl_fmt (tpl_node * r); static void *tpl_dump_atyp (tpl_node * n, tpl_atyp * at, void *dv); static size_t tpl_ser_osz (tpl_node * n); static void tpl_free_atyp (tpl_node * n, tpl_atyp * atyp); static int tpl_dump_to_mem (tpl_node * r, void *addr, size_t sz); static int tpl_mmap_file (char *filename, tpl_mmap_rec * map_rec); static int tpl_mmap_output_file (char *filename, size_t sz, void **text_out); static int tpl_cpu_bigendian (void); static int tpl_needs_endian_swap (void *); static void tpl_byteswap (void *word, int len); static void tpl_fatal (const char *fmt, ...) __attribute__((__format__ (printf, 1, 2))) __attribute__((__noreturn__)); static int tpl_serlen (tpl_node * r, tpl_node * n, void *dv, size_t *serlen); static int tpl_unpackA0 (tpl_node * r); static int tpl_oops (const char *fmt, ...) __attribute__((__format__ (printf, 1, 2))); static int tpl_gather_mem (char *buf, size_t len, tpl_gather_t ** gs, tpl_gather_cb * cb, void *data); static int tpl_gather_nonblocking (int fd, tpl_gather_t ** gs, tpl_gather_cb * cb, void *data); static int tpl_gather_blocking (int fd, void **img, size_t *sz); /* This is used internally to help calculate padding when a 'double' * follows a smaller datatype in a structure. Normally under gcc * on x86, d will be aligned at +4, however use of -malign-double * causes d to be aligned at +8 (this is actually faster on x86). * Also SPARC and x86_64 seem to align always on +8. */ struct tpl_double_alignment_detector { char a; double d; /* some platforms align this on +4, others on +8 */ }; /* this is another case where alignment varies. mac os x/gcc was observed * to align the int64_t at +4 under -m32 and at +8 under -m64 */ struct tpl_int64_alignment_detector { int i; int64_t j; /* some platforms align this on +4, others on +8 */ }; typedef struct { size_t inter_elt_len; /* padded inter-element len; i.e. &a[1].field - &a[0].field */ tpl_node *iter_start_node; /* node to jump back to, as we start each new iteration */ size_t iternum; /* current iteration number (total req'd. iter's in n->num) */ } tpl_pound_data; /* Hooks for customizing tpl mem alloc, error handling, etc. Set defaults. */ tpl_hook_t tpl_hook = { /* .oops = */ tpl_oops, /* .malloc = */ malloc, /* .realloc = */ realloc, /* .free = */ free, /* .fatal = */ tpl_fatal, /* .gather_max = */ 0 /* max tpl size (bytes) for tpl_gather */ }; static const char tpl_fmt_chars[] = "AS($)BiucsfIUjv#"; /* valid format chars */ /* valid within S(...) */ /* static const char tpl_S_fmt_chars[] = "iucsfIUjv#$()"; */ static const char tpl_datapeek_ok_chars[] = "iucsfIUjv"; /* valid in datapeek */ static const struct tpl_type_t tpl_types[] = { /* [TPL_TYPE_ROOT] = */ {'r', 0}, /* [TPL_TYPE_INT32] = */ {'i', sizeof (int32_t)}, /* [TPL_TYPE_UINT32] = */ {'u', sizeof (uint32_t)}, /* [TPL_TYPE_BYTE] = */ {'c', sizeof (char)}, /* [TPL_TYPE_STR] = */ {'s', sizeof (char *)}, /* [TPL_TYPE_ARY] = */ {'A', 0}, /* [TPL_TYPE_BIN] = */ {'B', 0}, /* [TPL_TYPE_DOUBLE] = */ {'f', 8}, /* not sizeof(double) as that varies */ /* [TPL_TYPE_INT64] = */ {'I', sizeof (int64_t)}, /* [TPL_TYPE_UINT64] = */ {'U', sizeof (uint64_t)}, /* [TPL_TYPE_INT16] = */ {'j', sizeof (int16_t)}, /* [TPL_TYPE_UINT16] = */ {'v', sizeof (uint16_t)}, /* [TPL_TYPE_POUND] = */ {'#', 0}, }; /* default error-reporting function. Just writes to stderr. */ static int tpl_oops (const char *fmt, ...) { va_list ap; va_start (ap, fmt); vfprintf (stderr, fmt, ap); va_end (ap); return 0; } static tpl_node * tpl_node_new (tpl_node *parent) { tpl_node *n; if ((n = tpl_hook.malloc (sizeof (tpl_node))) == NULL) { fatal_oom (); } n->addr = NULL; n->data = NULL; n->num = 1; n->ser_osz = 0; n->children = NULL; n->next = NULL; n->parent = parent; return n; } /* Used in S(..) formats to pack several fields from a structure based on * only the structure address. We need to calculate field addresses * manually taking into account the size of the fields and intervening padding. * The wrinkle is that double is not normally aligned on x86-32 but the * -malign-double compiler option causes it to be. Double are aligned * on Sparc, and apparently on 64 bit x86. We use a helper structure * to detect whether double is aligned in this compilation environment. */ static char * calc_field_addr (tpl_node *parent, int type, char *struct_addr, int ordinal) { tpl_node *prev; int offset; int align_sz; if (ordinal == 1) return struct_addr; /* first field starts on structure address */ /* generate enough padding so field addr is divisible by it's align_sz. 4, 8, etc */ prev = parent->children->prev; switch (type) { case TPL_TYPE_DOUBLE: align_sz = sizeof (struct tpl_double_alignment_detector) > 12 ? 8 : 4; break; case TPL_TYPE_INT64: case TPL_TYPE_UINT64: align_sz = sizeof (struct tpl_int64_alignment_detector) > 12 ? 8 : 4; break; default: align_sz = tpl_types[type].sz; break; } offset = ((uintptr_t) prev->addr - (uintptr_t) struct_addr) + (tpl_types[prev->type].sz * prev->num); offset = (offset + align_sz - 1) / align_sz * align_sz; return struct_addr + offset; } TPL_API tpl_node * tpl_map (char *fmt, ...) { va_list ap; tpl_node *tn; va_start (ap, fmt); tn = tpl_map_va (fmt, ap); va_end (ap); return tn; } TPL_API tpl_node * tpl_map_va (char *fmt, va_list ap) { int lparen_level = 0, expect_lparen = 0, t = 0, in_structure = 0, ordinal = 0; int in_nested_structure = 0; char *c, *peek, *struct_addr = NULL, *struct_next; tpl_node *root, *parent, *n = NULL, *preceding, *iter_start_node = NULL, *struct_widest_node = NULL, *np; tpl_pidx *pidx; tpl_pound_data *pd; int *fxlens, num_fxlens, pound_num, pound_prod, applies_to_struct; int contig_fxlens[10]; /* temp space for contiguous fxlens */ uint32_t num_contig_fxlens; uint32_t i; int j; ptrdiff_t inter_elt_len = 0; /* padded element length of contiguous structs in array */ root = tpl_node_new (NULL); root->type = TPL_TYPE_ROOT; root->data = (tpl_root_data *) tpl_hook.malloc (sizeof (tpl_root_data)); if (!root->data) fatal_oom (); memset ((tpl_root_data *) root->data, 0, sizeof (tpl_root_data)); /* set up root nodes special ser_osz to reflect overhead of preamble */ root->ser_osz = sizeof (uint32_t); /* tpl leading length */ root->ser_osz += strlen (fmt) + 1; /* fmt + NUL-terminator */ root->ser_osz += 4; /* 'tpl' magic prefix + flags byte */ parent = root; c = fmt; while (*c != '\0') { switch (*c) { case 'c': case 'i': case 'u': case 'j': case 'v': case 'I': case 'U': case 'f': if (*c == 'c') t = TPL_TYPE_BYTE; else if (*c == 'i') t = TPL_TYPE_INT32; else if (*c == 'u') t = TPL_TYPE_UINT32; else if (*c == 'j') t = TPL_TYPE_INT16; else if (*c == 'v') t = TPL_TYPE_UINT16; else if (*c == 'I') t = TPL_TYPE_INT64; else if (*c == 'U') t = TPL_TYPE_UINT64; else if (*c == 'f') t = TPL_TYPE_DOUBLE; if (expect_lparen) goto fail; n = tpl_node_new (parent); n->type = t; if (in_structure) { if (ordinal == 1) { /* for S(...)# iteration. Apply any changes to case 's' too!!! */ iter_start_node = n; struct_widest_node = n; } if (tpl_types[n->type].sz > tpl_types[struct_widest_node->type].sz) { struct_widest_node = n; } n->addr = calc_field_addr (parent, n->type, struct_addr, ordinal++); } else n->addr = (void *) va_arg (ap, void *); n->data = tpl_hook.malloc (tpl_types[t].sz); if (!n->data) fatal_oom (); if (n->parent->type == TPL_TYPE_ARY) ((tpl_atyp *) (n->parent->data))->sz += tpl_types[t].sz; DL_ADD (parent->children, n); break; case 's': if (expect_lparen) goto fail; n = tpl_node_new (parent); n->type = TPL_TYPE_STR; if (in_structure) { if (ordinal == 1) { iter_start_node = n; /* for S(...)# iteration */ struct_widest_node = n; } if (tpl_types[n->type].sz > tpl_types[struct_widest_node->type].sz) { struct_widest_node = n; } n->addr = calc_field_addr (parent, n->type, struct_addr, ordinal++); } else n->addr = (void *) va_arg (ap, void *); n->data = tpl_hook.malloc (sizeof (char *)); if (!n->data) fatal_oom (); *(char **) (n->data) = NULL; if (n->parent->type == TPL_TYPE_ARY) ((tpl_atyp *) (n->parent->data))->sz += sizeof (void *); DL_ADD (parent->children, n); break; case '#': /* apply a 'num' to preceding atom */ if (!parent->children) goto fail; preceding = parent->children->prev; /* first child's prev is 'last child' */ t = preceding->type; applies_to_struct = (*(c - 1) == ')') ? 1 : 0; if (!applies_to_struct) { if (!(t == TPL_TYPE_BYTE || t == TPL_TYPE_INT32 || t == TPL_TYPE_UINT32 || t == TPL_TYPE_DOUBLE || t == TPL_TYPE_UINT64 || t == TPL_TYPE_INT64 || t == TPL_TYPE_UINT16 || t == TPL_TYPE_INT16 || t == TPL_TYPE_STR)) goto fail; } /* count up how many contiguous # and form their product */ pound_prod = 1; num_contig_fxlens = 0; for (peek = c; *peek == '#'; peek++) { pound_num = va_arg (ap, int); if (pound_num < 1) { tpl_hook.fatal ("non-positive iteration count %d\n", pound_num); } if (num_contig_fxlens >= (sizeof (contig_fxlens) / sizeof (contig_fxlens[0]))) { tpl_hook.fatal ("contiguous # exceeds hardcoded limit\n"); } contig_fxlens[num_contig_fxlens++] = pound_num; pound_prod *= pound_num; } /* increment c to skip contiguous # so its points to last one */ c = peek - 1; /* differentiate atom-# from struct-# by noting preceding rparen */ if (applies_to_struct) { /* insert # node to induce looping */ n = tpl_node_new (parent); n->type = TPL_TYPE_POUND; n->num = pound_prod; n->data = tpl_hook.malloc (sizeof (tpl_pound_data)); if (!n->data) fatal_oom (); pd = (tpl_pound_data *) n->data; pd->inter_elt_len = inter_elt_len; pd->iter_start_node = iter_start_node; pd->iternum = 0; DL_ADD (parent->children, n); /* multiply the 'num' and data space on each atom in the structure */ for (np = iter_start_node; np != n; np = np->next) { if (n->parent->type == TPL_TYPE_ARY) { ((tpl_atyp *) (n->parent->data))->sz += tpl_types[np->type].sz * (np->num * (n->num - 1)); } np->data = tpl_hook.realloc (np->data, tpl_types[np->type].sz * np->num * n->num); if (!np->data) fatal_oom (); memset (np->data, 0, tpl_types[np->type].sz * np->num * n->num); } } else { /* simple atom-# form does not require a loop */ preceding->num = pound_prod; preceding->data = tpl_hook.realloc (preceding->data, tpl_types[t].sz * preceding->num); if (!preceding->data) fatal_oom (); memset (preceding->data, 0, tpl_types[t].sz * preceding->num); if (n->parent->type == TPL_TYPE_ARY) { ((tpl_atyp *) (n->parent->data))->sz += tpl_types[t].sz * (preceding->num - 1); } } root->ser_osz += (sizeof (uint32_t) * num_contig_fxlens); j = ((tpl_root_data *) root->data)->num_fxlens; /* before incrementing */ (((tpl_root_data *) root->data)->num_fxlens) += num_contig_fxlens; num_fxlens = ((tpl_root_data *) root->data)->num_fxlens; /* new value */ fxlens = ((tpl_root_data *) root->data)->fxlens; fxlens = tpl_hook.realloc (fxlens, sizeof (int) * num_fxlens); if (!fxlens) fatal_oom (); ((tpl_root_data *) root->data)->fxlens = fxlens; for (i = 0; i < num_contig_fxlens; i++) fxlens[j++] = contig_fxlens[i]; break; case 'B': if (expect_lparen) goto fail; if (in_structure) goto fail; n = tpl_node_new (parent); n->type = TPL_TYPE_BIN; n->addr = (tpl_bin *) va_arg (ap, void *); n->data = tpl_hook.malloc (sizeof (tpl_bin *)); if (!n->data) fatal_oom (); *((tpl_bin **) n->data) = NULL; if (n->parent->type == TPL_TYPE_ARY) ((tpl_atyp *) (n->parent->data))->sz += sizeof (tpl_bin); DL_ADD (parent->children, n); break; case 'A': if (in_structure) goto fail; n = tpl_node_new (parent); n->type = TPL_TYPE_ARY; DL_ADD (parent->children, n); parent = n; expect_lparen = 1; pidx = (tpl_pidx *) tpl_hook.malloc (sizeof (tpl_pidx)); if (!pidx) fatal_oom (); pidx->node = n; pidx->next = NULL; DL_ADD (((tpl_root_data *) (root->data))->pidx, pidx); /* set up the A's tpl_atyp */ n->data = (tpl_atyp *) tpl_hook.malloc (sizeof (tpl_atyp)); if (!n->data) fatal_oom (); ((tpl_atyp *) (n->data))->num = 0; ((tpl_atyp *) (n->data))->sz = 0; ((tpl_atyp *) (n->data))->bb = NULL; ((tpl_atyp *) (n->data))->bbtail = NULL; ((tpl_atyp *) (n->data))->cur = NULL; if (n->parent->type == TPL_TYPE_ARY) ((tpl_atyp *) (n->parent->data))->sz += sizeof (void *); break; case 'S': if (in_structure) goto fail; expect_lparen = 1; ordinal = 1; /* index upcoming atoms in S(..) */ in_structure = 1 + lparen_level; /* so we can tell where S fmt ends */ struct_addr = (char *) va_arg (ap, void *); break; case '$': /* nested structure */ if (!in_structure) goto fail; expect_lparen = 1; in_nested_structure++; break; case ')': lparen_level--; if (lparen_level < 0) goto fail; if (*(c - 1) == '(') goto fail; if (in_nested_structure) in_nested_structure--; else if (in_structure && (in_structure - 1 == lparen_level)) { /* calculate delta between contiguous structures in array */ struct_next = calc_field_addr (parent, struct_widest_node->type, struct_addr, ordinal++); inter_elt_len = struct_next - struct_addr; in_structure = 0; } else parent = parent->parent; /* rparen ends A() type, not S() type */ break; case '(': if (!expect_lparen) goto fail; expect_lparen = 0; lparen_level++; break; default: tpl_hook.oops ("unsupported option %c\n", *c); goto fail; } c++; } if (lparen_level != 0) goto fail; /* copy the format string, save for convenience */ ((tpl_root_data *) (root->data))->fmt = tpl_hook.malloc (strlen (fmt) + 1); if (((tpl_root_data *) (root->data))->fmt == NULL) fatal_oom (); memcpy (((tpl_root_data *) (root->data))->fmt, fmt, strlen (fmt) + 1); return root; fail: tpl_hook.oops ("failed to parse %s\n", fmt); tpl_free (root); return NULL; } static int tpl_unmap_file (tpl_mmap_rec *mr) { if (munmap (mr->text, mr->text_sz) == -1) { tpl_hook.oops ("Failed to munmap: %s\n", strerror (errno)); } close (mr->fd); mr->text = NULL; mr->text_sz = 0; return 0; } static void tpl_free_keep_map (tpl_node *r) { int mmap_bits = (TPL_RDONLY | TPL_FILE); int ufree_bits = (TPL_MEM | TPL_UFREE); tpl_node *nxtc, *c; int find_next_node = 0, looking, i; size_t sz; /* For mmap'd files, or for 'ufree' memory images , do appropriate release */ if ((((tpl_root_data *) (r->data))->flags & mmap_bits) == mmap_bits) { tpl_unmap_file (&((tpl_root_data *) (r->data))->mmap); } else if ((((tpl_root_data *) (r->data))->flags & ufree_bits) == ufree_bits) { tpl_hook.free (((tpl_root_data *) (r->data))->mmap.text); } c = r->children; if (c) { while (c->type != TPL_TYPE_ROOT) { /* loop until we come back to root node */ switch (c->type) { case TPL_TYPE_BIN: /* free any binary buffer hanging from tpl_bin */ if (*((tpl_bin **) (c->data))) { if ((*((tpl_bin **) (c->data)))->addr) { tpl_hook.free ((*((tpl_bin **) (c->data)))->addr); } *((tpl_bin **) c->data) = NULL; /* reset tpl_bin */ } find_next_node = 1; break; case TPL_TYPE_STR: /* free any packed (copied) string */ for (i = 0; i < c->num; i++) { char *str = ((char **) c->data)[i]; if (str) { tpl_hook.free (str); ((char **) c->data)[i] = NULL; } } find_next_node = 1; break; case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: case TPL_TYPE_POUND: find_next_node = 1; break; case TPL_TYPE_ARY: c->ser_osz = 0; /* zero out the serialization output size */ sz = ((tpl_atyp *) (c->data))->sz; /* save sz to use below */ tpl_free_atyp (c, c->data); /* make new atyp */ c->data = (tpl_atyp *) tpl_hook.malloc (sizeof (tpl_atyp)); if (!c->data) fatal_oom (); ((tpl_atyp *) (c->data))->num = 0; ((tpl_atyp *) (c->data))->sz = sz; /* restore bb datum sz */ ((tpl_atyp *) (c->data))->bb = NULL; ((tpl_atyp *) (c->data))->bbtail = NULL; ((tpl_atyp *) (c->data))->cur = NULL; c = c->children; break; default: tpl_hook.fatal ("unsupported format character\n"); break; } if (find_next_node) { find_next_node = 0; looking = 1; while (looking) { if (c->next) { nxtc = c->next; c = nxtc; looking = 0; } else { if (c->type == TPL_TYPE_ROOT) break; /* root node */ else { nxtc = c->parent; c = nxtc; } } } } } } ((tpl_root_data *) (r->data))->flags = 0; /* reset flags */ } TPL_API void tpl_free (tpl_node *r) { int mmap_bits = (TPL_RDONLY | TPL_FILE); int ufree_bits = (TPL_MEM | TPL_UFREE); tpl_node *nxtc, *c; int find_next_node = 0, looking, num, i; tpl_pidx *pidx, *pidx_nxt; /* For mmap'd files, or for 'ufree' memory images , do appropriate release */ if ((((tpl_root_data *) (r->data))->flags & mmap_bits) == mmap_bits) { tpl_unmap_file (&((tpl_root_data *) (r->data))->mmap); } else if ((((tpl_root_data *) (r->data))->flags & ufree_bits) == ufree_bits) { tpl_hook.free (((tpl_root_data *) (r->data))->mmap.text); } c = r->children; if (c) { while (c->type != TPL_TYPE_ROOT) { /* loop until we come back to root node */ switch (c->type) { case TPL_TYPE_BIN: /* free any binary buffer hanging from tpl_bin */ if (*((tpl_bin **) (c->data))) { if ((*((tpl_bin **) (c->data)))->sz != 0) { tpl_hook.free ((*((tpl_bin **) (c->data)))->addr); } tpl_hook.free (*((tpl_bin **) c->data)); /* free tpl_bin */ } tpl_hook.free (c->data); /* free tpl_bin* */ find_next_node = 1; break; case TPL_TYPE_STR: /* free any packed (copied) string */ num = 1; nxtc = c->next; while (nxtc) { if (nxtc->type == TPL_TYPE_POUND) { num = nxtc->num; } nxtc = nxtc->next; } for (i = 0; i < c->num * num; i++) { char *str = ((char **) c->data)[i]; if (str) { tpl_hook.free (str); ((char **) c->data)[i] = NULL; } } tpl_hook.free (c->data); find_next_node = 1; break; case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: case TPL_TYPE_POUND: tpl_hook.free (c->data); find_next_node = 1; break; case TPL_TYPE_ARY: tpl_free_atyp (c, c->data); if (c->children) c = c->children; /* normal case */ else find_next_node = 1; /* edge case, handle bad format A() */ break; default: tpl_hook.fatal ("unsupported format character\n"); break; } if (find_next_node) { find_next_node = 0; looking = 1; while (looking) { if (c->next) { nxtc = c->next; tpl_hook.free (c); c = nxtc; looking = 0; } else { if (c->type == TPL_TYPE_ROOT) break; /* root node */ else { nxtc = c->parent; tpl_hook.free (c); c = nxtc; } } } } } } /* free root */ for (pidx = ((tpl_root_data *) (r->data))->pidx; pidx; pidx = pidx_nxt) { pidx_nxt = pidx->next; tpl_hook.free (pidx); } tpl_hook.free (((tpl_root_data *) (r->data))->fmt); if (((tpl_root_data *) (r->data))->num_fxlens > 0) { tpl_hook.free (((tpl_root_data *) (r->data))->fxlens); } tpl_hook.free (r->data); /* tpl_root_data */ tpl_hook.free (r); } /* Find the i'th packable ('A' node) */ static tpl_node * tpl_find_i (tpl_node *n, int i) { int j = 0; tpl_pidx *pidx; if (n->type != TPL_TYPE_ROOT) return NULL; if (i == 0) return n; /* packable 0 is root */ for (pidx = ((tpl_root_data *) (n->data))->pidx; pidx; pidx = pidx->next) { if (++j == i) return pidx->node; } return NULL; } static void * tpl_cpv (void *datav, const void *data, size_t sz) { if (sz > 0) memcpy (datav, data, sz); return (void *) ((uintptr_t) datav + sz); } static void * tpl_extend_backbone (tpl_node *n) { tpl_backbone *bb; bb = (tpl_backbone *) tpl_hook.malloc (sizeof (tpl_backbone) + ((tpl_atyp *) (n->data))->sz); /* datum hangs on coattails of bb */ if (!bb) fatal_oom (); #if __STDC_VERSION__ < 199901 bb->data = (char *) ((uintptr_t) bb + sizeof (tpl_backbone)); #endif memset (bb->data, 0, ((tpl_atyp *) (n->data))->sz); bb->next = NULL; /* Add the new backbone to the tail, also setting head if necessary */ if (((tpl_atyp *) (n->data))->bb == NULL) { ((tpl_atyp *) (n->data))->bb = bb; ((tpl_atyp *) (n->data))->bbtail = bb; } else { ((tpl_atyp *) (n->data))->bbtail->next = bb; ((tpl_atyp *) (n->data))->bbtail = bb; } ((tpl_atyp *) (n->data))->num++; return bb->data; } /* Get the format string corresponding to a given tpl (root node) */ static char * tpl_fmt (tpl_node *r) { return ((tpl_root_data *) (r->data))->fmt; } /* Get the fmt # lengths as a contiguous buffer of ints (length num_fxlens) */ static int * tpl_fxlens (tpl_node *r, int *num_fxlens) { *num_fxlens = ((tpl_root_data *) (r->data))->num_fxlens; return ((tpl_root_data *) (r->data))->fxlens; } /* called when serializing an 'A' type node into a buffer which has * already been set up with the proper space. The backbone is walked * which was obtained from the tpl_atyp header passed in. */ static void * tpl_dump_atyp (tpl_node *n, tpl_atyp *at, void *dv) { tpl_backbone *bb; tpl_node *c; void *datav; uint32_t slen; tpl_bin *binp; char *strp; tpl_atyp *atypp; tpl_pound_data *pd; int i; size_t itermax; /* handle 'A' nodes */ dv = tpl_cpv (dv, &at->num, sizeof (uint32_t)); /* array len */ for (bb = at->bb; bb; bb = bb->next) { datav = bb->data; c = n->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: dv = tpl_cpv (dv, datav, tpl_types[c->type].sz * c->num); datav = (void *) ((uintptr_t) datav + tpl_types[c->type].sz * c->num); break; case TPL_TYPE_BIN: /* dump the buffer length followed by the buffer */ memcpy (&binp, datav, sizeof (tpl_bin *)); /* cp to aligned */ slen = binp->sz; dv = tpl_cpv (dv, &slen, sizeof (uint32_t)); dv = tpl_cpv (dv, binp->addr, slen); datav = (void *) ((uintptr_t) datav + sizeof (tpl_bin *)); break; case TPL_TYPE_STR: /* dump the string length followed by the string */ for (i = 0; i < c->num; i++) { memcpy (&strp, datav, sizeof (char *)); /* cp to aligned */ slen = strp ? (strlen (strp) + 1) : 0; dv = tpl_cpv (dv, &slen, sizeof (uint32_t)); if (slen > 1) dv = tpl_cpv (dv, strp, slen - 1); datav = (void *) ((uintptr_t) datav + sizeof (char *)); } break; case TPL_TYPE_ARY: memcpy (&atypp, datav, sizeof (tpl_atyp *)); /* cp to aligned */ dv = tpl_dump_atyp (c, atypp, dv); datav = (void *) ((uintptr_t) datav + sizeof (void *)); break; case TPL_TYPE_POUND: /* iterate over the preceding nodes */ pd = (tpl_pound_data *) c->data; itermax = c->num; if (++(pd->iternum) < itermax) { c = pd->iter_start_node; continue; } else { /* loop complete. */ pd->iternum = 0; } break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } } return dv; } /* figure the serialization output size needed for tpl whose root is n*/ static size_t tpl_ser_osz (tpl_node *n) { tpl_node *c, *np; size_t sz, itermax; tpl_bin *binp; char *strp; tpl_pound_data *pd; int i; /* handle the root node ONLY (subtree's ser_osz have been bubbled-up) */ if (n->type != TPL_TYPE_ROOT) { tpl_hook.fatal ("internal error: tpl_ser_osz on non-root node\n"); } sz = n->ser_osz; /* start with fixed overhead, already stored */ c = n->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: sz += tpl_types[c->type].sz * c->num; break; case TPL_TYPE_BIN: sz += sizeof (uint32_t); /* binary buf len */ memcpy (&binp, c->data, sizeof (tpl_bin *)); /* cp to aligned */ sz += binp->sz; break; case TPL_TYPE_STR: for (i = 0; i < c->num; i++) { sz += sizeof (uint32_t); /* string len */ memcpy (&strp, &((char **) c->data)[i], sizeof (char *)); /* cp to aligned */ sz += strp ? strlen (strp) : 0; } break; case TPL_TYPE_ARY: sz += sizeof (uint32_t); /* array len */ sz += c->ser_osz; /* bubbled-up child array ser_osz */ break; case TPL_TYPE_POUND: /* iterate over the preceding nodes */ itermax = c->num; pd = (tpl_pound_data *) c->data; if (++(pd->iternum) < itermax) { for (np = pd->iter_start_node; np != c; np = np->next) { np->data = (char *) (np->data) + (tpl_types[np->type].sz * np->num); } c = pd->iter_start_node; continue; } else { /* loop complete. */ pd->iternum = 0; for (np = pd->iter_start_node; np != c; np = np->next) { np->data = (char *) (np->data) - ((itermax - 1) * tpl_types[np->type].sz * np->num); } } break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } return sz; } TPL_API int tpl_dump (tpl_node *r, int mode, ...) { va_list ap; char *filename, *bufv; void **addr_out, *buf, *pa_addr; int fd, rc = 0; size_t sz, *sz_out, pa_sz; struct stat sbuf; if (((tpl_root_data *) (r->data))->flags & TPL_RDONLY) { /* unusual */ tpl_hook.oops ("error: tpl_dump called for a loaded tpl\n"); return -1; } sz = tpl_ser_osz (r); /* compute the size needed to serialize */ va_start (ap, mode); if (mode & TPL_FILE) { filename = va_arg (ap, char *); fd = tpl_mmap_output_file (filename, sz, &buf); if (fd == -1) rc = -1; else { rc = tpl_dump_to_mem (r, buf, sz); if (msync (buf, sz, MS_SYNC) == -1) { tpl_hook.oops ("msync failed on fd %d: %s\n", fd, strerror (errno)); } if (munmap (buf, sz) == -1) { tpl_hook.oops ("munmap failed on fd %d: %s\n", fd, strerror (errno)); } close (fd); } } else if (mode & TPL_FD) { fd = va_arg (ap, int); if ((buf = tpl_hook.malloc (sz)) == NULL) fatal_oom (); tpl_dump_to_mem (r, buf, sz); bufv = buf; do { rc = write (fd, bufv, sz); if (rc > 0) { sz -= rc; bufv += rc; } else if (rc == -1) { if (errno == EINTR || errno == EAGAIN) continue; tpl_hook.oops ("error writing to fd %d: %s\n", fd, strerror (errno)); /* attempt to rewind partial write to a regular file */ if (fstat (fd, &sbuf) == 0 && S_ISREG (sbuf.st_mode)) { if (ftruncate (fd, sbuf.st_size - (bufv - (char *) buf)) == -1) { tpl_hook.oops ("can't rewind: %s\n", strerror (errno)); } } free (buf); va_end (ap); return -1; } } while (sz > 0); free (buf); rc = 0; } else if (mode & TPL_MEM) { if (mode & TPL_PREALLOCD) { /* caller allocated */ pa_addr = (void *) va_arg (ap, void *); pa_sz = va_arg (ap, size_t); if (pa_sz < sz) { tpl_hook.oops ("tpl_dump: buffer too small, need %zu bytes\n", sz); va_end (ap); return -1; } rc = tpl_dump_to_mem (r, pa_addr, sz); } else { /* we allocate */ addr_out = (void **) va_arg (ap, void *); sz_out = va_arg (ap, size_t *); if ((buf = tpl_hook.malloc (sz)) == NULL) fatal_oom (); *sz_out = sz; *addr_out = buf; rc = tpl_dump_to_mem (r, buf, sz); } } else if (mode & TPL_GETSIZE) { sz_out = va_arg (ap, size_t *); *sz_out = sz; } else { tpl_hook.oops ("unsupported tpl_dump mode %d\n", mode); rc = -1; } va_end (ap); return rc; } /* This function expects the caller to have set up a memory buffer of * adequate size to hold the serialized tpl. The sz parameter must be * the result of tpl_ser_osz(r). */ static int tpl_dump_to_mem (tpl_node *r, void *addr, size_t sz) { uint32_t slen, sz32; int *fxlens, num_fxlens, i; void *dv; char *fmt, flags; tpl_node *c, *np; tpl_pound_data *pd; size_t itermax; fmt = tpl_fmt (r); flags = 0; if (tpl_cpu_bigendian ()) flags |= TPL_FL_BIGENDIAN; if (strchr (fmt, 's')) flags |= TPL_FL_NULLSTRINGS; sz32 = sz; dv = addr; dv = tpl_cpv (dv, TPL_MAGIC, 3); /* copy tpl magic prefix */ dv = tpl_cpv (dv, &flags, 1); /* copy flags byte */ dv = tpl_cpv (dv, &sz32, sizeof (uint32_t)); /* overall length (inclusive) */ dv = tpl_cpv (dv, fmt, strlen (fmt) + 1); /* copy format with NUL-term */ fxlens = tpl_fxlens (r, &num_fxlens); dv = tpl_cpv (dv, fxlens, num_fxlens * sizeof (uint32_t)); /* fmt # lengths */ /* serialize the tpl content, iterating over direct children of root */ c = r->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: dv = tpl_cpv (dv, c->data, tpl_types[c->type].sz * c->num); break; case TPL_TYPE_BIN: slen = (*(tpl_bin **) (c->data))->sz; dv = tpl_cpv (dv, &slen, sizeof (uint32_t)); /* buffer len */ dv = tpl_cpv (dv, (*(tpl_bin **) (c->data))->addr, slen); /* buf */ break; case TPL_TYPE_STR: for (i = 0; i < c->num; i++) { char *str = ((char **) c->data)[i]; slen = str ? strlen (str) + 1 : 0; dv = tpl_cpv (dv, &slen, sizeof (uint32_t)); /* string len */ if (slen > 1) dv = tpl_cpv (dv, str, slen - 1); /*string */ } break; case TPL_TYPE_ARY: dv = tpl_dump_atyp (c, (tpl_atyp *) c->data, dv); break; case TPL_TYPE_POUND: pd = (tpl_pound_data *) c->data; itermax = c->num; if (++(pd->iternum) < itermax) { /* in start or midst of loop. advance data pointers. */ for (np = pd->iter_start_node; np != c; np = np->next) { np->data = (char *) (np->data) + (tpl_types[np->type].sz * np->num); } /* do next iteration */ c = pd->iter_start_node; continue; } else { /* loop complete. */ /* reset iteration index and addr/data pointers. */ pd->iternum = 0; for (np = pd->iter_start_node; np != c; np = np->next) { np->data = (char *) (np->data) - ((itermax - 1) * tpl_types[np->type].sz * np->num); } } break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } return 0; } static int tpl_cpu_bigendian (void) { unsigned i = 1; char *c; c = (char *) &i; return (c[0] == 1 ? 0 : 1); } /* * algorithm for sanity-checking a tpl image: * scan the tpl whilst not exceeding the buffer size (bufsz) , * formulating a calculated (expected) size of the tpl based * on walking its data. When calcsize has been calculated it * should exactly match the buffer size (bufsz) and the internal * recorded size (intlsz) */ static int tpl_sanity (tpl_node *r, int excess_ok) { uint32_t intlsz; int found_nul = 0, rc, octothorpes = 0, num_fxlens, *fxlens, flen; void *d, *dv; char intlflags, *fmt, c, *mapfmt; size_t bufsz, serlen; d = ((tpl_root_data *) (r->data))->mmap.text; bufsz = ((tpl_root_data *) (r->data))->mmap.text_sz; dv = d; if (bufsz < (4 + sizeof (uint32_t) + 1)) return ERR_NOT_MINSIZE; /* min sz: magic+flags+len+nul */ if (memcmp (dv, TPL_MAGIC, 3) != 0) return ERR_MAGIC_MISMATCH; /* missing tpl magic prefix */ if (tpl_needs_endian_swap (dv)) ((tpl_root_data *) (r->data))->flags |= TPL_XENDIAN; dv = (void *) ((uintptr_t) dv + 3); memcpy (&intlflags, dv, sizeof (char)); /* extract flags */ if (intlflags & ~TPL_SUPPORTED_BITFLAGS) return ERR_UNSUPPORTED_FLAGS; /* TPL1.3 stores strings with a "length+1" prefix to discern NULL strings from empty strings from non-empty strings; TPL1.2 only handled the latter two. So we need to be mindful of which string format we're reading from. */ if (!(intlflags & TPL_FL_NULLSTRINGS)) { ((tpl_root_data *) (r->data))->flags |= TPL_OLD_STRING_FMT; } dv = (void *) ((uintptr_t) dv + 1); memcpy (&intlsz, dv, sizeof (uint32_t)); /* extract internal size */ if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&intlsz, sizeof (uint32_t)); if (!excess_ok && (intlsz != bufsz)) return ERR_INCONSISTENT_SZ; /* inconsistent buffer/internal size */ dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); /* dv points to the start of the format string. Look for nul w/in buf sz */ fmt = (char *) dv; while ((uintptr_t) dv - (uintptr_t) d < bufsz && !found_nul) { if ((c = *(char *) dv) != '\0') { if (strchr (tpl_fmt_chars, c) == NULL) return ERR_FMT_INVALID; /* invalid char in format string */ if ((c = *(char *) dv) == '#') octothorpes++; dv = (void *) ((uintptr_t) dv + 1); } else found_nul = 1; } if (!found_nul) return ERR_FMT_MISSING_NUL; /* runaway format string */ dv = (void *) ((uintptr_t) dv + 1); /* advance to octothorpe lengths buffer */ /* compare the map format to the format of this tpl image */ mapfmt = tpl_fmt (r); rc = strcmp (mapfmt, fmt); if (rc != 0) return ERR_FMT_MISMATCH; /* compare octothorpe lengths in image to the mapped values */ if ((((uintptr_t) dv + (octothorpes * 4)) - (uintptr_t) d) > bufsz) return ERR_INCONSISTENT_SZ4; fxlens = tpl_fxlens (r, &num_fxlens); /* mapped fxlens */ while (num_fxlens--) { memcpy (&flen, dv, sizeof (uint32_t)); /* stored flen */ if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&flen, sizeof (uint32_t)); if (flen != *fxlens) return ERR_FLEN_MISMATCH; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); fxlens++; } /* dv now points to beginning of data */ rc = tpl_serlen (r, r, dv, &serlen); /* get computed serlen of data part */ if (rc == -1) return ERR_INCONSISTENT_SZ2; /* internal inconsistency in tpl image */ serlen += ((uintptr_t) dv - (uintptr_t) d); /* add back serlen of preamble part */ if (excess_ok && (bufsz < serlen)) return ERR_INCONSISTENT_SZ3; if (!excess_ok && (serlen != bufsz)) return ERR_INCONSISTENT_SZ3; /* buffer/internal sz exceeds serlen */ return 0; } static void * tpl_find_data_start (void *d) { int octothorpes = 0; d = (void *) ((uintptr_t) d + 4); /* skip TPL_MAGIC and flags byte */ d = (void *) ((uintptr_t) d + 4); /* skip int32 overall len */ while (*(char *) d != '\0') { if (*(char *) d == '#') octothorpes++; d = (void *) ((uintptr_t) d + 1); } d = (void *) ((uintptr_t) d + 1); /* skip NUL */ d = (void *) ((uintptr_t) d + (octothorpes * sizeof (uint32_t))); /* skip # array lens */ return d; } static int tpl_needs_endian_swap (void *d) { char *c; int cpu_is_bigendian; c = (char *) d; cpu_is_bigendian = tpl_cpu_bigendian (); return ((c[3] & TPL_FL_BIGENDIAN) == cpu_is_bigendian) ? 0 : 1; } static size_t tpl_size_for (char c) { uint32_t i; for (i = 0; i < sizeof (tpl_types) / sizeof (tpl_types[0]); i++) { if (tpl_types[i].c == c) return tpl_types[i].sz; } return 0; } TPL_API char * tpl_peek (int mode, ...) { va_list ap; int xendian = 0, found_nul = 0, old_string_format = 0; char *filename = NULL, *datapeek_f = NULL, *datapeek_c, *datapeek_s; void *addr = NULL, *dv, *datapeek_p = NULL; size_t sz = 0, fmt_len, first_atom, num_fxlens = 0; uint32_t datapeek_ssz, datapeek_csz, datapeek_flen; tpl_mmap_rec mr = { 0, NULL, 0 }; char *fmt, *fmt_cpy = NULL, c; uint32_t intlsz, **fxlens = NULL, *num_fxlens_out = NULL, *fxlensv; va_start (ap, mode); if ((mode & TPL_FXLENS) && (mode & TPL_DATAPEEK)) { tpl_hook.oops ("TPL_FXLENS and TPL_DATAPEEK mutually exclusive\n"); goto fail; } if (mode & TPL_FILE) filename = va_arg (ap, char *); else if (mode & TPL_MEM) { addr = va_arg (ap, void *); sz = va_arg (ap, size_t); } else { tpl_hook.oops ("unsupported tpl_peek mode %d\n", mode); goto fail; } if (mode & TPL_DATAPEEK) { datapeek_f = va_arg (ap, char *); } if (mode & TPL_FXLENS) { num_fxlens_out = va_arg (ap, uint32_t *); fxlens = va_arg (ap, uint32_t **); *num_fxlens_out = 0; *fxlens = NULL; } if (mode & TPL_FILE) { if (tpl_mmap_file (filename, &mr) != 0) { tpl_hook.oops ("tpl_peek failed for file %s\n", filename); goto fail; } addr = mr.text; sz = mr.text_sz; } dv = addr; if (sz < (4 + sizeof (uint32_t) + 1)) goto fail; /* min sz */ if (memcmp (dv, TPL_MAGIC, 3) != 0) goto fail; /* missing tpl magic prefix */ if (tpl_needs_endian_swap (dv)) xendian = 1; if ((((char *) dv)[3] & TPL_FL_NULLSTRINGS) == 0) old_string_format = 1; dv = (void *) ((uintptr_t) dv + 4); memcpy (&intlsz, dv, sizeof (uint32_t)); /* extract internal size */ if (xendian) tpl_byteswap (&intlsz, sizeof (uint32_t)); if (intlsz != sz) goto fail; /* inconsistent buffer/internal size */ dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); /* dv points to the start of the format string. Look for nul w/in buf sz */ fmt = (char *) dv; while ((uintptr_t) dv - (uintptr_t) addr < sz && !found_nul) { if ((c = *(char *) dv) == '\0') { found_nul = 1; } else if (c == '#') { num_fxlens++; } dv = (void *) ((uintptr_t) dv + 1); } if (!found_nul) goto fail; /* runaway format string */ fmt_len = (char *) dv - fmt; /* include space for \0 */ fmt_cpy = tpl_hook.malloc (fmt_len); if (fmt_cpy == NULL) { fatal_oom (); } memcpy (fmt_cpy, fmt, fmt_len); /* retrieve the octothorpic lengths if requested */ if (num_fxlens > 0) { if (sz < ((uintptr_t) dv + (num_fxlens * sizeof (uint32_t)) - (uintptr_t) addr)) { goto fail; } } if ((mode & TPL_FXLENS) && (num_fxlens > 0)) { *fxlens = tpl_hook.malloc (num_fxlens * sizeof (uint32_t)); if (*fxlens == NULL) tpl_hook.fatal ("out of memory"); *num_fxlens_out = num_fxlens; fxlensv = *fxlens; while (num_fxlens--) { memcpy (fxlensv, dv, sizeof (uint32_t)); if (xendian) tpl_byteswap (fxlensv, sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); fxlensv++; } } /* if caller requested, peek into the specified data elements */ if (mode & TPL_DATAPEEK) { first_atom = strspn (fmt, "S()"); /* skip any leading S() */ datapeek_flen = strlen (datapeek_f); if (strspn (datapeek_f, tpl_datapeek_ok_chars) < datapeek_flen) { tpl_hook.oops ("invalid TPL_DATAPEEK format: %s\n", datapeek_f); tpl_hook.free (fmt_cpy); fmt_cpy = NULL; /* fail */ goto fail; } if (strncmp (&fmt[first_atom], datapeek_f, datapeek_flen) != 0) { tpl_hook.oops ("TPL_DATAPEEK format mismatches tpl image\n"); tpl_hook.free (fmt_cpy); fmt_cpy = NULL; /* fail */ goto fail; } /* advance to data start, then copy out requested elements */ dv = (void *) ((uintptr_t) dv + (num_fxlens * sizeof (uint32_t))); for (datapeek_c = datapeek_f; *datapeek_c != '\0'; datapeek_c++) { datapeek_p = va_arg (ap, void *); if (*datapeek_c == 's') { /* special handling for strings */ if ((uintptr_t) dv - (uintptr_t) addr + sizeof (uint32_t) > sz) { tpl_hook.oops ("tpl_peek: tpl has insufficient length\n"); tpl_hook.free (fmt_cpy); fmt_cpy = NULL; /* fail */ goto fail; } memcpy (&datapeek_ssz, dv, sizeof (uint32_t)); /* get slen */ if (xendian) tpl_byteswap (&datapeek_ssz, sizeof (uint32_t)); if (old_string_format) datapeek_ssz++; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); /* adv. to str */ if (datapeek_ssz == 0) datapeek_s = NULL; else { if ((uintptr_t) dv - (uintptr_t) addr + datapeek_ssz - 1 > sz) { tpl_hook.oops ("tpl_peek: tpl has insufficient length\n"); tpl_hook.free (fmt_cpy); fmt_cpy = NULL; /* fail */ goto fail; } datapeek_s = tpl_hook.malloc (datapeek_ssz); if (datapeek_s == NULL) fatal_oom (); memcpy (datapeek_s, dv, datapeek_ssz - 1); datapeek_s[datapeek_ssz - 1] = '\0'; dv = (void *) ((uintptr_t) dv + datapeek_ssz - 1); } *(char **) datapeek_p = datapeek_s; } else { datapeek_csz = tpl_size_for (*datapeek_c); if ((uintptr_t) dv - (uintptr_t) addr + datapeek_csz > sz) { tpl_hook.oops ("tpl_peek: tpl has insufficient length\n"); tpl_hook.free (fmt_cpy); fmt_cpy = NULL; /* fail */ goto fail; } memcpy (datapeek_p, dv, datapeek_csz); if (xendian) tpl_byteswap (datapeek_p, datapeek_csz); dv = (void *) ((uintptr_t) dv + datapeek_csz); } } } fail: va_end (ap); if ((mode & TPL_FILE) && mr.text != NULL) tpl_unmap_file (&mr); return fmt_cpy; } /* tpl_jot(TPL_FILE, "file.tpl", "si", &s, &i); */ /* tpl_jot(TPL_MEM, &buf, &sz, "si", &s, &i); */ /* tpl_jot(TPL_FD, fd, "si", &s, &i); */ TPL_API int tpl_jot (int mode, ...) { va_list ap; char *filename, *fmt; size_t *sz; int fd, rc = 0; void **buf; tpl_node *tn; va_start (ap, mode); if (mode & TPL_FILE) { filename = va_arg (ap, char *); fmt = va_arg (ap, char *); tn = tpl_map_va (fmt, ap); if (tn == NULL) { rc = -1; goto fail; } tpl_pack (tn, 0); rc = tpl_dump (tn, TPL_FILE, filename); tpl_free (tn); } else if (mode & TPL_MEM) { buf = va_arg (ap, void *); sz = va_arg (ap, size_t *); fmt = va_arg (ap, char *); tn = tpl_map_va (fmt, ap); if (tn == NULL) { rc = -1; goto fail; } tpl_pack (tn, 0); rc = tpl_dump (tn, TPL_MEM, buf, sz); tpl_free (tn); } else if (mode & TPL_FD) { fd = va_arg (ap, int); fmt = va_arg (ap, char *); tn = tpl_map_va (fmt, ap); if (tn == NULL) { rc = -1; goto fail; } tpl_pack (tn, 0); rc = tpl_dump (tn, TPL_FD, fd); tpl_free (tn); } else { tpl_hook.fatal ("invalid tpl_jot mode\n"); } fail: va_end (ap); return rc; } TPL_API int tpl_load (tpl_node *r, int mode, ...) { va_list ap; int rc = 0, fd = 0; char *filename = NULL; void *addr; size_t sz; va_start (ap, mode); if (mode & TPL_FILE) filename = va_arg (ap, char *); else if (mode & TPL_MEM) { addr = va_arg (ap, void *); sz = va_arg (ap, size_t); } else if (mode & TPL_FD) { fd = va_arg (ap, int); } else { tpl_hook.oops ("unsupported tpl_load mode %d\n", mode); va_end (ap); return -1; } va_end (ap); if (r->type != TPL_TYPE_ROOT) { tpl_hook.oops ("error: tpl_load to non-root node\n"); return -1; } if (((tpl_root_data *) (r->data))->flags & (TPL_WRONLY | TPL_RDONLY)) { /* already packed or loaded, so reset it as if newly mapped */ tpl_free_keep_map (r); } if (mode & TPL_FILE) { if (tpl_mmap_file (filename, &((tpl_root_data *) (r->data))->mmap) != 0) { tpl_hook.oops ("tpl_load failed for file %s\n", filename); return -1; } if ((rc = tpl_sanity (r, (mode & TPL_EXCESS_OK))) != 0) { if (rc == ERR_FMT_MISMATCH) { tpl_hook.oops ("%s: format signature mismatch\n", filename); } else if (rc == ERR_FLEN_MISMATCH) { tpl_hook.oops ("%s: array lengths mismatch\n", filename); } else { tpl_hook.oops ("%s: not a valid tpl file\n", filename); } tpl_unmap_file (&((tpl_root_data *) (r->data))->mmap); return -1; } ((tpl_root_data *) (r->data))->flags = (TPL_FILE | TPL_RDONLY); } else if (mode & TPL_MEM) { ((tpl_root_data *) (r->data))->mmap.text = addr; ((tpl_root_data *) (r->data))->mmap.text_sz = sz; if ((rc = tpl_sanity (r, (mode & TPL_EXCESS_OK))) != 0) { if (rc == ERR_FMT_MISMATCH) { tpl_hook.oops ("format signature mismatch\n"); } else { tpl_hook.oops ("not a valid tpl file\n"); } return -1; } ((tpl_root_data *) (r->data))->flags = (TPL_MEM | TPL_RDONLY); if (mode & TPL_UFREE) ((tpl_root_data *) (r->data))->flags |= TPL_UFREE; } else if (mode & TPL_FD) { /* if fd read succeeds, resulting mem img is used for load */ if (tpl_gather (TPL_GATHER_BLOCKING, fd, &addr, &sz) > 0) { return tpl_load (r, TPL_MEM | TPL_UFREE, addr, sz); } else return -1; } else { tpl_hook.oops ("invalid tpl_load mode %d\n", mode); return -1; } /* this applies to TPL_MEM or TPL_FILE */ if (tpl_needs_endian_swap (((tpl_root_data *) (r->data))->mmap.text)) ((tpl_root_data *) (r->data))->flags |= TPL_XENDIAN; tpl_unpackA0 (r); /* prepare root A nodes for use */ return 0; } TPL_API int tpl_Alen (tpl_node *r, int i) { tpl_node *n; n = tpl_find_i (r, i); if (n == NULL) { tpl_hook.oops ("invalid index %d to tpl_unpack\n", i); return -1; } if (n->type != TPL_TYPE_ARY) return -1; return ((tpl_atyp *) (n->data))->num; } static void tpl_free_atyp (tpl_node *n, tpl_atyp *atyp) { tpl_backbone *bb, *bbnxt; tpl_node *c; void *dv; tpl_bin *binp; tpl_atyp *atypp; char *strp; size_t itermax; tpl_pound_data *pd; int i; bb = atyp->bb; while (bb) { bbnxt = bb->next; dv = bb->data; c = n->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: dv = (void *) ((uintptr_t) dv + tpl_types[c->type].sz * c->num); break; case TPL_TYPE_BIN: memcpy (&binp, dv, sizeof (tpl_bin *)); /* cp to aligned */ if (binp->addr) tpl_hook.free (binp->addr); /* free buf */ tpl_hook.free (binp); /* free tpl_bin */ dv = (void *) ((uintptr_t) dv + sizeof (tpl_bin *)); break; case TPL_TYPE_STR: for (i = 0; i < c->num; i++) { memcpy (&strp, dv, sizeof (char *)); /* cp to aligned */ if (strp) tpl_hook.free (strp); /* free string */ dv = (void *) ((uintptr_t) dv + sizeof (char *)); } break; case TPL_TYPE_POUND: /* iterate over the preceding nodes */ itermax = c->num; pd = (tpl_pound_data *) c->data; if (++(pd->iternum) < itermax) { c = pd->iter_start_node; continue; } else { /* loop complete. */ pd->iternum = 0; } break; case TPL_TYPE_ARY: memcpy (&atypp, dv, sizeof (tpl_atyp *)); /* cp to aligned */ tpl_free_atyp (c, atypp); /* free atyp */ dv = (void *) ((uintptr_t) dv + sizeof (void *)); break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } tpl_hook.free (bb); bb = bbnxt; } tpl_hook.free (atyp); } /* determine (by walking) byte length of serialized r/A node at address dv * returns 0 on success, or -1 if the tpl isn't trustworthy (fails consistency) */ static int tpl_serlen (tpl_node *r, tpl_node *n, void *dv, size_t *serlen) { uint32_t slen; int num = 0, fidx; tpl_node *c; size_t len = 0, alen, buf_past, itermax; tpl_pound_data *pd; buf_past = ((uintptr_t) ((tpl_root_data *) (r->data))->mmap.text + ((tpl_root_data *) (r->data))->mmap.text_sz); if (n->type == TPL_TYPE_ROOT) num = 1; else if (n->type == TPL_TYPE_ARY) { if ((uintptr_t) dv + sizeof (uint32_t) > buf_past) return -1; memcpy (&num, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&num, sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); len += sizeof (uint32_t); } else tpl_hook.fatal ("internal error in tpl_serlen\n"); while (num-- > 0) { c = n->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: for (fidx = 0; fidx < c->num; fidx++) { /* octothorpe support */ if ((uintptr_t) dv + tpl_types[c->type].sz > buf_past) return -1; dv = (void *) ((uintptr_t) dv + tpl_types[c->type].sz); len += tpl_types[c->type].sz; } break; case TPL_TYPE_BIN: len += sizeof (uint32_t); if ((uintptr_t) dv + sizeof (uint32_t) > buf_past) return -1; memcpy (&slen, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&slen, sizeof (uint32_t)); len += slen; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); if ((uintptr_t) dv + slen > buf_past) return -1; dv = (void *) ((uintptr_t) dv + slen); break; case TPL_TYPE_STR: for (fidx = 0; fidx < c->num; fidx++) { /* octothorpe support */ len += sizeof (uint32_t); if ((uintptr_t) dv + sizeof (uint32_t) > buf_past) return -1; memcpy (&slen, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&slen, sizeof (uint32_t)); if (!(((tpl_root_data *) (r->data))->flags & TPL_OLD_STRING_FMT)) slen = (slen > 1) ? (slen - 1) : 0; len += slen; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); if ((uintptr_t) dv + slen > buf_past) return -1; dv = (void *) ((uintptr_t) dv + slen); } break; case TPL_TYPE_ARY: if (tpl_serlen (r, c, dv, &alen) == -1) return -1; dv = (void *) ((uintptr_t) dv + alen); len += alen; break; case TPL_TYPE_POUND: /* iterate over the preceding nodes */ itermax = c->num; pd = (tpl_pound_data *) c->data; if (++(pd->iternum) < itermax) { c = pd->iter_start_node; continue; } else { /* loop complete. */ pd->iternum = 0; } break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } } *serlen = len; return 0; } static int tpl_mmap_output_file (char *filename, size_t sz, void **text_out) { void *text; int fd, perms; #ifndef _WIN32 perms = S_IRUSR | S_IWUSR | S_IWGRP | S_IRGRP | S_IROTH; /* ug+w o+r */ fd = open (filename, O_CREAT | O_TRUNC | O_RDWR, perms); #else perms = _S_IWRITE; fd = _open (filename, _O_CREAT | _O_TRUNC | _O_RDWR, perms); #endif if (fd == -1) { tpl_hook.oops ("Couldn't open file %s: %s\n", filename, strerror (errno)); return -1; } text = mmap (0, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); if (text == MAP_FAILED) { tpl_hook.oops ("Failed to mmap %s: %s\n", filename, strerror (errno)); close (fd); return -1; } if (ftruncate (fd, sz) == -1) { tpl_hook.oops ("ftruncate failed: %s\n", strerror (errno)); munmap (text, sz); close (fd); return -1; } *text_out = text; return fd; } static int tpl_mmap_file (char *filename, tpl_mmap_rec *mr) { struct stat stat_buf; if ((mr->fd = open (filename, O_RDONLY)) == -1) { tpl_hook.oops ("Couldn't open file %s: %s\n", filename, strerror (errno)); return -1; } if (fstat (mr->fd, &stat_buf) == -1) { close (mr->fd); tpl_hook.oops ("Couldn't stat file %s: %s\n", filename, strerror (errno)); return -1; } mr->text_sz = (size_t) stat_buf.st_size; mr->text = mmap (0, stat_buf.st_size, PROT_READ, MAP_PRIVATE, mr->fd, 0); if (mr->text == MAP_FAILED) { close (mr->fd); tpl_hook.oops ("Failed to mmap %s: %s\n", filename, strerror (errno)); return -1; } return 0; } TPL_API int tpl_pack (tpl_node *r, int i) { tpl_node *n, *child, *np; void *datav = NULL; size_t sz, itermax; uint32_t slen; char *str; tpl_bin *bin; tpl_pound_data *pd; int fidx; n = tpl_find_i (r, i); if (n == NULL) { tpl_hook.oops ("invalid index %d to tpl_pack\n", i); return -1; } if (((tpl_root_data *) (r->data))->flags & TPL_RDONLY) { /* convert to an writeable tpl, initially empty */ tpl_free_keep_map (r); } ((tpl_root_data *) (r->data))->flags |= TPL_WRONLY; if (n->type == TPL_TYPE_ARY) datav = tpl_extend_backbone (n); child = n->children; while (child) { switch (child->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: /* no need to use fidx iteration here; we can copy multiple values in one memcpy */ memcpy (child->data, child->addr, tpl_types[child->type].sz * child->num); if (datav) datav = tpl_cpv (datav, child->data, tpl_types[child->type].sz * child->num); if (n->type == TPL_TYPE_ARY) n->ser_osz += tpl_types[child->type].sz * child->num; break; case TPL_TYPE_BIN: /* copy the buffer to be packed */ slen = ((tpl_bin *) child->addr)->sz; if (slen > 0) { str = tpl_hook.malloc (slen); if (!str) fatal_oom (); memcpy (str, ((tpl_bin *) child->addr)->addr, slen); } else str = NULL; /* and make a tpl_bin to point to it */ bin = tpl_hook.malloc (sizeof (tpl_bin)); if (!bin) fatal_oom (); bin->addr = str; bin->sz = slen; /* now pack its pointer, first deep freeing any pre-existing bin */ if (*(tpl_bin **) (child->data) != NULL) { if ((*(tpl_bin **) (child->data))->sz != 0) { tpl_hook.free ((*(tpl_bin **) (child->data))->addr); } tpl_hook.free (*(tpl_bin **) (child->data)); } memcpy (child->data, &bin, sizeof (tpl_bin *)); if (datav) { datav = tpl_cpv (datav, &bin, sizeof (tpl_bin *)); *(tpl_bin **) (child->data) = NULL; } if (n->type == TPL_TYPE_ARY) { n->ser_osz += sizeof (uint32_t); /* binary buf len word */ n->ser_osz += bin->sz; /* binary buf */ } break; case TPL_TYPE_STR: for (fidx = 0; fidx < child->num; fidx++) { /* copy the string to be packed. slen includes \0. this block also works if the string pointer is NULL. */ char *caddr = ((char **) child->addr)[fidx]; char **cdata = &((char **) child->data)[fidx]; slen = caddr ? (strlen (caddr) + 1) : 0; if (slen) { str = tpl_hook.malloc (slen); if (!str) fatal_oom (); memcpy (str, caddr, slen); /* include \0 */ } else { str = NULL; } /* now pack its pointer, first freeing any pre-existing string */ if (*cdata != NULL) { tpl_hook.free (*cdata); } memcpy (cdata, &str, sizeof (char *)); if (datav) { datav = tpl_cpv (datav, &str, sizeof (char *)); *cdata = NULL; } if (n->type == TPL_TYPE_ARY) { n->ser_osz += sizeof (uint32_t); /* string len word */ if (slen > 1) n->ser_osz += slen - 1; /* string (without nul) */ } } break; case TPL_TYPE_ARY: /* copy the child's tpl_atype* and reset it to empty */ if (datav) { sz = ((tpl_atyp *) (child->data))->sz; datav = tpl_cpv (datav, &child->data, sizeof (void *)); child->data = tpl_hook.malloc (sizeof (tpl_atyp)); if (!child->data) fatal_oom (); ((tpl_atyp *) (child->data))->num = 0; ((tpl_atyp *) (child->data))->sz = sz; ((tpl_atyp *) (child->data))->bb = NULL; ((tpl_atyp *) (child->data))->bbtail = NULL; } /* parent is array? then bubble up child array's ser_osz */ if (n->type == TPL_TYPE_ARY) { n->ser_osz += sizeof (uint32_t); /* array len word */ n->ser_osz += child->ser_osz; /* child array ser_osz */ child->ser_osz = 0; /* reset child array ser_osz */ } break; case TPL_TYPE_POUND: /* we need to iterate n times over preceding nodes in S(...). * we may be in the midst of an iteration each time or starting. */ pd = (tpl_pound_data *) child->data; itermax = child->num; /* itermax is total num of iterations needed */ /* pd->iternum is current iteration index */ /* pd->inter_elt_len is element-to-element len of contiguous structs */ /* pd->iter_start_node is where we jump to at each iteration. */ if (++(pd->iternum) < itermax) { /* in start or midst of loop. advance addr/data pointers. */ for (np = pd->iter_start_node; np != child; np = np->next) { np->data = (char *) (np->data) + (tpl_types[np->type].sz * np->num); np->addr = (char *) (np->addr) + pd->inter_elt_len; } /* do next iteration */ child = pd->iter_start_node; continue; } else { /* loop complete. */ /* reset iteration index and addr/data pointers. */ pd->iternum = 0; for (np = pd->iter_start_node; np != child; np = np->next) { np->data = (char *) (np->data) - ((itermax - 1) * tpl_types[np->type].sz * np->num); np->addr = (char *) (np->addr) - ((itermax - 1) * pd->inter_elt_len); } } break; default: tpl_hook.fatal ("unsupported format character\n"); break; } child = child->next; } return 0; } TPL_API int tpl_unpack (tpl_node *r, int i) { tpl_node *n, *c, *np; uint32_t slen; int rc = 1, fidx; char *str; void *dv = NULL, *caddr; size_t A_bytes, itermax; tpl_pound_data *pd; void *img; size_t sz; /* handle unusual case of tpl_pack,tpl_unpack without an * intervening tpl_dump. do a dump/load implicitly. */ if (((tpl_root_data *) (r->data))->flags & TPL_WRONLY) { if (tpl_dump (r, TPL_MEM, &img, &sz) != 0) return -1; if (tpl_load (r, TPL_MEM | TPL_UFREE, img, sz) != 0) { tpl_hook.free (img); return -1; }; } n = tpl_find_i (r, i); if (n == NULL) { tpl_hook.oops ("invalid index %d to tpl_unpack\n", i); return -1; } /* either root node or an A node */ if (n->type == TPL_TYPE_ROOT) { dv = tpl_find_data_start (((tpl_root_data *) (n->data))->mmap.text); } else if (n->type == TPL_TYPE_ARY) { if (((tpl_atyp *) (n->data))->num <= 0) return 0; /* array consumed */ else rc = ((tpl_atyp *) (n->data))->num--; dv = ((tpl_atyp *) (n->data))->cur; if (!dv) tpl_hook.fatal ("must unpack parent of node before node itself\n"); } c = n->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: /* unpack elements of cross-endian octothorpic array individually */ if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) { for (fidx = 0; fidx < c->num; fidx++) { caddr = (void *) ((uintptr_t) c->addr + (fidx * tpl_types[c->type].sz)); memcpy (caddr, dv, tpl_types[c->type].sz); tpl_byteswap (caddr, tpl_types[c->type].sz); dv = (void *) ((uintptr_t) dv + tpl_types[c->type].sz); } } else { /* bulk unpack ok if not cross-endian */ memcpy (c->addr, dv, tpl_types[c->type].sz * c->num); dv = (void *) ((uintptr_t) dv + tpl_types[c->type].sz * c->num); } break; case TPL_TYPE_BIN: memcpy (&slen, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&slen, sizeof (uint32_t)); if (slen > 0) { str = (char *) tpl_hook.malloc (slen); if (!str) fatal_oom (); } else str = NULL; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); if (slen > 0) memcpy (str, dv, slen); memcpy (&(((tpl_bin *) c->addr)->addr), &str, sizeof (void *)); memcpy (&(((tpl_bin *) c->addr)->sz), &slen, sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + slen); break; case TPL_TYPE_STR: for (fidx = 0; fidx < c->num; fidx++) { memcpy (&slen, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&slen, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_OLD_STRING_FMT) slen += 1; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); if (slen) { /* slen includes \0 */ str = (char *) tpl_hook.malloc (slen); if (!str) fatal_oom (); if (slen > 1) memcpy (str, dv, slen - 1); str[slen - 1] = '\0'; /* nul terminate */ dv = (void *) ((uintptr_t) dv + slen - 1); } else str = NULL; memcpy (&((char **) c->addr)[fidx], &str, sizeof (char *)); } break; case TPL_TYPE_POUND: /* iterate over preceding nodes */ pd = (tpl_pound_data *) c->data; itermax = c->num; if (++(pd->iternum) < itermax) { /* in start or midst of loop. advance addr/data pointers. */ for (np = pd->iter_start_node; np != c; np = np->next) { np->addr = (char *) (np->addr) + pd->inter_elt_len; } /* do next iteration */ c = pd->iter_start_node; continue; } else { /* loop complete. */ /* reset iteration index and addr/data pointers. */ pd->iternum = 0; for (np = pd->iter_start_node; np != c; np = np->next) { np->addr = (char *) (np->addr) - ((itermax - 1) * pd->inter_elt_len); } } break; case TPL_TYPE_ARY: if (tpl_serlen (r, c, dv, &A_bytes) == -1) tpl_hook.fatal ("internal error in unpack\n"); memcpy (&((tpl_atyp *) (c->data))->num, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&((tpl_atyp *) (c->data))->num, sizeof (uint32_t)); ((tpl_atyp *) (c->data))->cur = (void *) ((uintptr_t) dv + sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + A_bytes); break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } if (n->type == TPL_TYPE_ARY) ((tpl_atyp *) (n->data))->cur = dv; /* next element */ return rc; } /* Specialized function that unpacks only the root's A nodes, after tpl_load */ static int tpl_unpackA0 (tpl_node *r) { tpl_node *n, *c; uint32_t slen; int rc = 1, fidx, i; void *dv; size_t A_bytes, itermax; tpl_pound_data *pd; n = r; dv = tpl_find_data_start (((tpl_root_data *) (r->data))->mmap.text); c = n->children; while (c) { switch (c->type) { case TPL_TYPE_BYTE: case TPL_TYPE_DOUBLE: case TPL_TYPE_INT32: case TPL_TYPE_UINT32: case TPL_TYPE_INT64: case TPL_TYPE_UINT64: case TPL_TYPE_INT16: case TPL_TYPE_UINT16: for (fidx = 0; fidx < c->num; fidx++) { dv = (void *) ((uintptr_t) dv + tpl_types[c->type].sz); } break; case TPL_TYPE_BIN: memcpy (&slen, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&slen, sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + slen); break; case TPL_TYPE_STR: for (i = 0; i < c->num; i++) { memcpy (&slen, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&slen, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_OLD_STRING_FMT) slen += 1; dv = (void *) ((uintptr_t) dv + sizeof (uint32_t)); if (slen > 1) dv = (void *) ((uintptr_t) dv + slen - 1); } break; case TPL_TYPE_POUND: /* iterate over the preceding nodes */ itermax = c->num; pd = (tpl_pound_data *) c->data; if (++(pd->iternum) < itermax) { c = pd->iter_start_node; continue; } else { /* loop complete. */ pd->iternum = 0; } break; case TPL_TYPE_ARY: if (tpl_serlen (r, c, dv, &A_bytes) == -1) tpl_hook.fatal ("internal error in unpackA0\n"); memcpy (&((tpl_atyp *) (c->data))->num, dv, sizeof (uint32_t)); if (((tpl_root_data *) (r->data))->flags & TPL_XENDIAN) tpl_byteswap (&((tpl_atyp *) (c->data))->num, sizeof (uint32_t)); ((tpl_atyp *) (c->data))->cur = (void *) ((uintptr_t) dv + sizeof (uint32_t)); dv = (void *) ((uintptr_t) dv + A_bytes); break; default: tpl_hook.fatal ("unsupported format character\n"); break; } c = c->next; } return rc; } /* In-place byte order swapping of a word of length "len" bytes */ static void tpl_byteswap (void *word, int len) { int i; char c, *w; w = (char *) word; for (i = 0; i < len / 2; i++) { c = w[i]; w[i] = w[len - 1 - i]; w[len - 1 - i] = c; } } static void tpl_fatal (const char *fmt, ...) { va_list ap; char exit_msg[100]; va_start (ap, fmt); vsnprintf (exit_msg, 100, fmt, ap); va_end (ap); tpl_hook.oops ("%s", exit_msg); exit (-1); } TPL_API int tpl_gather (int mode, ...) { va_list ap; int fd, rc = 0; size_t *szp, sz; void **img, *addr, *data; tpl_gather_t **gs; tpl_gather_cb *cb; va_start (ap, mode); switch (mode) { case TPL_GATHER_BLOCKING: fd = va_arg (ap, int); img = va_arg (ap, void *); szp = va_arg (ap, size_t *); rc = tpl_gather_blocking (fd, img, szp); break; case TPL_GATHER_NONBLOCKING: fd = va_arg (ap, int); gs = (tpl_gather_t **) va_arg (ap, void *); cb = (tpl_gather_cb *) va_arg (ap, tpl_gather_cb *); data = va_arg (ap, void *); rc = tpl_gather_nonblocking (fd, gs, cb, data); break; case TPL_GATHER_MEM: addr = va_arg (ap, void *); sz = va_arg (ap, size_t); gs = (tpl_gather_t **) va_arg (ap, void *); cb = (tpl_gather_cb *) va_arg (ap, tpl_gather_cb *); data = va_arg (ap, void *); rc = tpl_gather_mem (addr, sz, gs, cb, data); break; default: tpl_hook.fatal ("unsupported tpl_gather mode %d\n", mode); break; } va_end (ap); return rc; } /* dequeue a tpl by reading until one full tpl image is obtained. * We take care not to read past the end of the tpl. * This is intended as a blocking call i.e. for use with a blocking fd. * It can be given a non-blocking fd, but the read spins if we have to wait. */ static int tpl_gather_blocking (int fd, void **img, size_t *sz) { char preamble[8]; int rc; uint32_t i = 0, tpllen; do { rc = read (fd, &preamble[i], 8 - i); i += (rc > 0) ? rc : 0; } while ((rc == -1 && (errno == EINTR || errno == EAGAIN)) || (rc > 0 && i < 8)); if (rc < 0) { tpl_hook.oops ("tpl_gather_fd_blocking failed: %s\n", strerror (errno)); return -1; } else if (rc == 0) { /* tpl_hook.oops("tpl_gather_fd_blocking: eof\n"); */ return 0; } else if (i != 8) { tpl_hook.oops ("internal error\n"); return -1; } if (preamble[0] == 't' && preamble[1] == 'p' && preamble[2] == 'l') { memcpy (&tpllen, &preamble[4], 4); if (tpl_needs_endian_swap (preamble)) tpl_byteswap (&tpllen, 4); } else { tpl_hook.oops ("tpl_gather_fd_blocking: non-tpl input\n"); return -1; } /* malloc space for remainder of tpl image (overall length tpllen) * and read it in */ if (tpl_hook.gather_max > 0 && tpllen > tpl_hook.gather_max) { tpl_hook.oops ("tpl exceeds max length %zu\n", tpl_hook.gather_max); return -2; } *sz = tpllen; if ((*img = tpl_hook.malloc (tpllen)) == NULL) { fatal_oom (); } memcpy (*img, preamble, 8); /* copy preamble to output buffer */ i = 8; do { rc = read (fd, &((*(char **) img)[i]), tpllen - i); i += (rc > 0) ? rc : 0; } while ((rc == -1 && (errno == EINTR || errno == EAGAIN)) || (rc > 0 && i < tpllen)); if (rc < 0) { tpl_hook.oops ("tpl_gather_fd_blocking failed: %s\n", strerror (errno)); tpl_hook.free (*img); return -1; } else if (rc == 0) { /* tpl_hook.oops("tpl_gather_fd_blocking: eof\n"); */ tpl_hook.free (*img); return 0; } else if (i != tpllen) { tpl_hook.oops ("internal error\n"); tpl_hook.free (*img); return -1; } return 1; } /* Used by select()-driven apps which want to gather tpl images piecemeal */ /* the file descriptor must be non-blocking for this function to work. */ static int tpl_gather_nonblocking (int fd, tpl_gather_t **gs, tpl_gather_cb *cb, void *data) { char buf[TPL_GATHER_BUFLEN], *img, *tpl; int rc, keep_looping, cbrc = 0; size_t catlen; uint32_t tpllen; while (1) { rc = read (fd, buf, TPL_GATHER_BUFLEN); if (rc == -1) { if (errno == EINTR) continue; /* got signal during read, ignore */ if (errno == EAGAIN) return 1; /* nothing to read right now */ else { tpl_hook.oops ("tpl_gather failed: %s\n", strerror (errno)); if (*gs) { tpl_hook.free ((*gs)->img); tpl_hook.free (*gs); *gs = NULL; } return -1; /* error, caller should close fd */ } } else if (rc == 0) { if (*gs) { tpl_hook.oops ("tpl_gather: partial tpl image precedes EOF\n"); tpl_hook.free ((*gs)->img); tpl_hook.free (*gs); *gs = NULL; } return 0; /* EOF, caller should close fd */ } else { /* concatenate any partial tpl from last read with new buffer */ if (*gs) { catlen = (*gs)->len + rc; if (tpl_hook.gather_max > 0 && catlen > tpl_hook.gather_max) { tpl_hook.free ((*gs)->img); tpl_hook.free ((*gs)); *gs = NULL; tpl_hook.oops ("tpl exceeds max length %zu\n", tpl_hook.gather_max); return -2; /* error, caller should close fd */ } if ((img = tpl_hook.realloc ((*gs)->img, catlen)) == NULL) { fatal_oom (); } memcpy (img + (*gs)->len, buf, rc); tpl_hook.free (*gs); *gs = NULL; } else { img = buf; catlen = rc; } /* isolate any full tpl(s) in img and invoke cb for each */ tpl = img; keep_looping = (tpl + 8 < img + catlen) ? 1 : 0; while (keep_looping) { if (strncmp ("tpl", tpl, 3) != 0) { tpl_hook.oops ("tpl prefix invalid\n"); if (img != buf) tpl_hook.free (img); tpl_hook.free (*gs); *gs = NULL; return -3; /* error, caller should close fd */ } memcpy (&tpllen, &tpl[4], 4); if (tpl_needs_endian_swap (tpl)) tpl_byteswap (&tpllen, 4); if (tpl + tpllen <= img + catlen) { cbrc = (cb) (tpl, tpllen, data); /* invoke cb for tpl image */ tpl += tpllen; /* point to next tpl image */ if (cbrc < 0) keep_looping = 0; else keep_looping = (tpl + 8 < img + catlen) ? 1 : 0; } else keep_looping = 0; } /* check if app callback requested closure of tpl source */ if (cbrc < 0) { tpl_hook.oops ("tpl_fd_gather aborted by app callback\n"); if (img != buf) tpl_hook.free (img); if (*gs) tpl_hook.free (*gs); *gs = NULL; return -4; } /* store any leftover, partial tpl fragment for next read */ if (tpl == img && img != buf) { /* consumed nothing from img!=buf */ if ((*gs = tpl_hook.malloc (sizeof (tpl_gather_t))) == NULL) { fatal_oom (); } (*gs)->img = tpl; (*gs)->len = catlen; } else if (tpl < img + catlen) { /* consumed 1+ tpl(s) from img!=buf or 0 from img==buf */ if ((*gs = tpl_hook.malloc (sizeof (tpl_gather_t))) == NULL) { fatal_oom (); } if (((*gs)->img = tpl_hook.malloc (img + catlen - tpl)) == NULL) { fatal_oom (); } (*gs)->len = img + catlen - tpl; memcpy ((*gs)->img, tpl, img + catlen - tpl); /* free partially consumed concat buffer if used */ if (img != buf) tpl_hook.free (img); } else { /* tpl(s) fully consumed */ /* free consumed concat buffer if used */ if (img != buf) tpl_hook.free (img); } } } } /* gather tpl piecemeal from memory buffer (not fd) e.g., from a lower-level api */ static int tpl_gather_mem (char *buf, size_t len, tpl_gather_t **gs, tpl_gather_cb *cb, void *data) { char *img, *tpl; int keep_looping, cbrc = 0; size_t catlen; uint32_t tpllen; /* concatenate any partial tpl from last read with new buffer */ if (*gs) { catlen = (*gs)->len + len; if (tpl_hook.gather_max > 0 && catlen > tpl_hook.gather_max) { tpl_hook.free ((*gs)->img); tpl_hook.free ((*gs)); *gs = NULL; tpl_hook.oops ("tpl exceeds max length %zu\n", tpl_hook.gather_max); return -2; /* error, caller should stop accepting input from source */ } if ((img = tpl_hook.realloc ((*gs)->img, catlen)) == NULL) { fatal_oom (); } memcpy (img + (*gs)->len, buf, len); tpl_hook.free (*gs); *gs = NULL; } else { img = buf; catlen = len; } /* isolate any full tpl(s) in img and invoke cb for each */ tpl = img; keep_looping = (tpl + 8 < img + catlen) ? 1 : 0; while (keep_looping) { if (strncmp ("tpl", tpl, 3) != 0) { tpl_hook.oops ("tpl prefix invalid\n"); if (img != buf) tpl_hook.free (img); tpl_hook.free (*gs); *gs = NULL; return -3; /* error, caller should stop accepting input from source */ } memcpy (&tpllen, &tpl[4], 4); if (tpl_needs_endian_swap (tpl)) tpl_byteswap (&tpllen, 4); if (tpl + tpllen <= img + catlen) { cbrc = (cb) (tpl, tpllen, data); /* invoke cb for tpl image */ tpl += tpllen; /* point to next tpl image */ if (cbrc < 0) keep_looping = 0; else keep_looping = (tpl + 8 < img + catlen) ? 1 : 0; } else keep_looping = 0; } /* check if app callback requested closure of tpl source */ if (cbrc < 0) { tpl_hook.oops ("tpl_mem_gather aborted by app callback\n"); if (img != buf) tpl_hook.free (img); if (*gs) tpl_hook.free (*gs); *gs = NULL; return -4; } /* store any leftover, partial tpl fragment for next read */ if (tpl == img && img != buf) { /* consumed nothing from img!=buf */ if ((*gs = tpl_hook.malloc (sizeof (tpl_gather_t))) == NULL) { fatal_oom (); } (*gs)->img = tpl; (*gs)->len = catlen; } else if (tpl < img + catlen) { /* consumed 1+ tpl(s) from img!=buf or 0 from img==buf */ if ((*gs = tpl_hook.malloc (sizeof (tpl_gather_t))) == NULL) { fatal_oom (); } if (((*gs)->img = tpl_hook.malloc (img + catlen - tpl)) == NULL) { fatal_oom (); } (*gs)->len = img + catlen - tpl; memcpy ((*gs)->img, tpl, img + catlen - tpl); /* free partially consumed concat buffer if used */ if (img != buf) tpl_hook.free (img); } else { /* tpl(s) fully consumed */ /* free consumed concat buffer if used */ if (img != buf) tpl_hook.free (img); } return 1; } ================================================ FILE: src/tpl.h ================================================ /* Copyright (c) 2005-2013, Troy D. Hanson http://troydhanson.github.com/tpl/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef TPL_H #define TPL_H #include /* size_t */ #include /* va_list */ #ifdef __INTEL_COMPILER #include #endif /* Intel Compiler efficient memcpy etc */ #ifdef _MSC_VER typedef unsigned int uint32_t; #else #include /* uint32_t */ #endif #if defined __cplusplus extern "C" { #endif #ifdef _WIN32 #ifdef TPL_EXPORTS #define TPL_API __declspec(dllexport) #else /* */ #ifdef TPL_NOLIB #define TPL_API #else #define TPL_API __declspec(dllimport) #endif /* TPL_NOLIB */ #endif /* TPL_EXPORTS */ #else #define TPL_API #endif /* bit flags (external) */ #define TPL_FILE (1 << 0) #define TPL_MEM (1 << 1) #define TPL_PREALLOCD (1 << 2) #define TPL_EXCESS_OK (1 << 3) #define TPL_FD (1 << 4) #define TPL_UFREE (1 << 5) #define TPL_DATAPEEK (1 << 6) #define TPL_FXLENS (1 << 7) #define TPL_GETSIZE (1 << 8) /* do not add flags here without renumbering the internal flags! */ /* flags for tpl_gather mode */ #define TPL_GATHER_BLOCKING 1 #define TPL_GATHER_NONBLOCKING 2 #define TPL_GATHER_MEM 3 /* Hooks for error logging, memory allocation functions and fatal */ typedef int (tpl_print_fcn) (const char *fmt, ...); typedef void *(tpl_malloc_fcn) (size_t sz); typedef void *(tpl_realloc_fcn) (void *ptr, size_t sz); typedef void (tpl_free_fcn) (void *ptr); typedef void (tpl_fatal_fcn) (const char *fmt, ...); typedef struct tpl_hook_t { tpl_print_fcn *oops __attribute__((__format__ (printf, 1, 2))); tpl_malloc_fcn *malloc; tpl_realloc_fcn *realloc; tpl_free_fcn *free; tpl_fatal_fcn *fatal __attribute__((__format__ (printf, 1, 2))) __attribute__((__noreturn__)); size_t gather_max; } tpl_hook_t; typedef struct tpl_node { int type; void *addr; void *data; /* r:tpl_root_data*. A:tpl_atyp*. ow:szof type */ int num; /* length of type if it's a C array */ size_t ser_osz; /* serialization output size for subtree */ struct tpl_node *children; /* my children; linked-list */ struct tpl_node *next, *prev; /* my siblings (next child of my parent) */ struct tpl_node *parent; /* my parent */ } tpl_node; /* used when un/packing 'B' type (binary buffers) */ typedef struct tpl_bin { void *addr; uint32_t sz; } tpl_bin; /* for async/piecemeal reading of tpl images */ typedef struct tpl_gather_t { char *img; int len; } tpl_gather_t; /* Callback used when tpl_gather has read a full tpl image */ typedef int (tpl_gather_cb) (void *img, size_t sz, void *data); /* Prototypes */ TPL_API tpl_node *tpl_map (char *fmt, ...); /* define tpl using format */ TPL_API void tpl_free (tpl_node * r); /* free a tpl map */ TPL_API int tpl_pack (tpl_node * r, int i); /* pack the n'th packable */ TPL_API int tpl_unpack (tpl_node * r, int i); /* unpack the n'th packable */ TPL_API int tpl_dump (tpl_node * r, int mode, ...); /* serialize to mem/file */ TPL_API int tpl_load (tpl_node * r, int mode, ...); /* set mem/file to unpack */ TPL_API int tpl_Alen (tpl_node * r, int i); /* array len of packable i */ TPL_API char *tpl_peek (int mode, ...); /* sneak peek at format string */ TPL_API int tpl_gather (int mode, ...); /* non-blocking image gather */ TPL_API int tpl_jot (int mode, ...); /* quick write a simple tpl */ TPL_API tpl_node *tpl_map_va (char *fmt, va_list ap); #if defined __cplusplus } #endif #endif /* TPL_H */ ================================================ FILE: src/ui.c ================================================ /** * ui.c -- various curses interfaces * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #define STDIN_FILENO 0 #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif #ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE #endif #if HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include "ui.h" #include "color.h" #include "error.h" #include "gkhash.h" #include "gmenu.h" #include "goaccess.h" #include "util.h" #include "xmalloc.h" /* *INDENT-OFF* */ /* Determine which metrics should be displayed per module/panel */ static const GOutput outputting[] = { {VISITORS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1} , {REQUESTS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0} , {REQUESTS_STATIC , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0} , {NOT_FOUND , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0} , {HOSTS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 0} , {OS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1} , {BROWSERS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1} , {VISIT_TIMES , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1} , {VIRTUAL_HOSTS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {REFERRERS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {REFERRING_SITES , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {KEYPHRASES , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {STATUS_CODES , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {REMOTE_USER , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {CACHE_STATUS , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , #ifdef HAVE_GEOLOCATION {GEO_LOCATION , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {ASN , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , #endif {MIME_TYPE , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , {TLS_TYPE , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 0 , 0} , }; /* *INDENT-ON* */ /* Structure to display overall statistics */ typedef struct Field_ { const char *field; /* char due to log, bw, log_file */ char *value; GColors *(*colorlbl) (void); GColors *(*colorval) (void); short oneliner; } Field; /* Determine which metrics to output given a module * * On error, or if not found, NULL is returned. * On success, the panel value is returned. */ const GOutput * output_lookup (GModule module) { int i, num_panels = ARRAY_SIZE (outputting); for (i = 0; i < num_panels; i++) { if (outputting[i].module == module) return &outputting[i]; } return NULL; } /* Initialize curses colors */ void init_colors (int force) { /* use default foreground/background colors */ use_default_colors (); /* first set a default normal color */ set_normal_color (); /* then parse custom colors and initialize them */ set_colors (force); } /* Ncurses' window handling */ void set_input_opts (void) { initscr (); clear (); noecho (); halfdelay (10); nonl (); intrflush (stdscr, FALSE); keypad (stdscr, TRUE); if (curs_set (0) == ERR) LOG_DEBUG (("Unable to change cursor: %s\n", strerror (errno))); if (conf.mouse_support) mousemask (BUTTON1_CLICKED, NULL); } /* Deletes the given window, freeing all memory associated with it. */ void close_win (WINDOW *w) { if (w == NULL) return; wclear (w); wrefresh (w); delwin (w); } /* Get the current calendar time as a value of type time_t and convert * time_t to tm as local time */ void generate_time (void) { if (conf.tz_name) set_tz (); timestamp = time (NULL); localtime_r (×tamp, &now_tm); } /* Set the loading spinner as ended and manage the mutex locking. */ void end_spinner (void) { if (conf.no_parsing_spinner) return; pthread_mutex_lock (&parsing_spinner->mutex); parsing_spinner->state = SPN_END; pthread_mutex_unlock (&parsing_spinner->mutex); if (!parsing_spinner->curses) { /* wait for the ui_spinner thread to finish */ struct timespec ts = {.tv_sec = 0,.tv_nsec = SPIN_UPDATE_INTERVAL }; if (nanosleep (&ts, NULL) == -1 && errno != EINTR) FATAL ("nanosleep: %s", strerror (errno)); } } /* Set background colors to all windows. */ void set_wbkgd (WINDOW *main_win, WINDOW *header_win) { GColors *color = get_color (COLOR_BG); /* background colors */ wbkgd (main_win, COLOR_PAIR (color->pair->idx)); wbkgd (header_win, COLOR_PAIR (color->pair->idx)); wbkgd (stdscr, COLOR_PAIR (color->pair->idx)); wrefresh (main_win); } /* Creates and the new terminal windows and set basic properties to * each of them. e.g., background color, enable the reading of * function keys. */ void init_windows (WINDOW **header_win, WINDOW **main_win) { int row = 0, col = 0; /* init standard screen */ getmaxyx (stdscr, row, col); if (row < MIN_HEIGHT || col < MIN_WIDTH) FATAL ("Minimum screen size - 0 columns by 7 lines"); /* init header screen */ *header_win = newwin (6, col, 0, 0); if (*header_win == NULL) FATAL ("Unable to allocate memory for header_win."); keypad (*header_win, TRUE); /* init main screen */ *main_win = newwin (row - 8, col, 7, 0); if (*main_win == NULL) FATAL ("Unable to allocate memory for main_win."); keypad (*main_win, TRUE); set_wbkgd (*main_win, *header_win); } #pragma GCC diagnostic ignored "-Wformat-nonliteral" /* Draw a generic header with the ability to set a custom text to it. */ void draw_header (WINDOW *win, const char *s, const char *fmt, int y, int x, int w, GColors *(*func) (void)) { GColors *color = (*func) (); char *buf; buf = xmalloc (snprintf (NULL, 0, fmt, s) + 1); sprintf (buf, fmt, s); wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwhline (win, y, x, ' ', w); mvwaddnstr (win, y, x, buf, w); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); free (buf); } #pragma GCC diagnostic warning "-Wformat-nonliteral" /* Determine the actual size of the main window. */ void term_size (WINDOW *main_win, int *main_win_height) { int term_h = 0, term_w = 0; getmaxyx (stdscr, term_h, term_w); *main_win_height = term_h - (MAX_HEIGHT_HEADER + MAX_HEIGHT_FOOTER); wresize (main_win, *main_win_height, term_w); wmove (main_win, *main_win_height, 0); } /* Get the module/panel label name for the given module enum value. * * On success, a string containing the label name is returned. */ const char * module_to_label (GModule module) { static const char *const modules[] = { VISITORS_LABEL, REQUESTS_LABEL, REQUESTS_STATIC_LABEL, NOT_FOUND_LABEL, HOSTS_LABEL, OS_LABEL, BROWSERS_LABEL, VISIT_TIMES_LABEL, VIRTUAL_HOSTS_LABEL, REFERRERS_LABEL, REFERRING_SITES_LABEL, KEYPHRASES_LABEL, STATUS_CODES_LABEL, REMOTE_USER_LABEL, CACHE_STATUS_LABEL, #ifdef HAVE_GEOLOCATION GEO_LOCATION_LABEL, ASN_LABEL, #endif MIME_TYPE_LABEL, TLS_TYPE_LABEL, }; return _(modules[module]); } /* Get the module/panel label id for the given module enum value. * * On success, a string containing the label id is returned. */ const char * module_to_id (GModule module) { static const char *const modules[] = { VISITORS_ID, REQUESTS_ID, REQUESTS_STATIC_ID, NOT_FOUND_ID, HOSTS_ID, OS_ID, BROWSERS_ID, VISIT_TIMES_ID, VIRTUAL_HOSTS_ID, REFERRERS_ID, REFERRING_SITES_ID, KEYPHRASES_ID, STATUS_CODES_ID, REMOTE_USER_ID, CACHE_STATUS_ID, #ifdef HAVE_GEOLOCATION GEO_LOCATION_ID, ASN_ID, #endif MIME_TYPE_ID, TLS_TYPE_ID, }; return _(modules[module]); } /* Get the module/panel label header for the given module enum value. * * On success, a string containing the label header is returned. */ const char * module_to_head (GModule module) { static const char *modules[] = { VISITORS_HEAD, REQUESTS_HEAD, REQUESTS_STATIC_HEAD, NOT_FOUND_HEAD, HOSTS_HEAD, OS_HEAD, BROWSERS_HEAD, VISIT_TIMES_HEAD, VIRTUAL_HOSTS_HEAD, REFERRERS_HEAD, REFERRING_SITES_HEAD, KEYPHRASES_HEAD, STATUS_CODES_HEAD, REMOTE_USER_HEAD, CACHE_STATUS_HEAD, #ifdef HAVE_GEOLOCATION GEO_LOCATION_HEAD, ASN_HEAD, #endif MIME_TYPE_HEAD, TLS_TYPE_HEAD, }; if (!conf.ignore_crawlers) modules[VISITORS] = VISITORS_HEAD_BOTS; return _(modules[module]); } /* Get the module/panel label description for the given module enum * value. * * On success, a string containing the label description is returned. */ const char * module_to_desc (GModule module) { static const char *const modules[] = { VISITORS_DESC, REQUESTS_DESC, REQUESTS_STATIC_DESC, NOT_FOUND_DESC, HOSTS_DESC, OS_DESC, BROWSERS_DESC, VISIT_TIMES_DESC, VIRTUAL_HOSTS_DESC, REFERRERS_DESC, REFERRING_SITES_DESC, KEYPHRASES_DESC, STATUS_CODES_DESC, REMOTE_USER_DESC, CACHE_STATUS_DESC, #ifdef HAVE_GEOLOCATION GEO_LOCATION_DESC, ASN_DESC, #endif MIME_TYPE_DESC, TLS_TYPE_DESC, }; return _(modules[module]); } /* Rerender the header window to reflect active module. */ void update_active_module (WINDOW *header_win, GModule current) { GColors *color = get_color (COLOR_ACTIVE_LABEL); const char *module = module_to_label (current); int col = getmaxx (stdscr); char *lbl = xmalloc (snprintf (NULL, 0, T_ACTIVE_PANEL, module) + 1); sprintf (lbl, T_ACTIVE_PANEL, module); wmove (header_win, 0, 30); wattron (header_win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (header_win, 0, col - strlen (lbl) - 1, "%s", lbl); wattroff (header_win, color->attr | COLOR_PAIR (color->pair->idx)); wrefresh (header_win); free (lbl); } /* Print out (terminal) an overall field label. e.g., 'Processed Time' */ static void render_overall_field (WINDOW *win, const char *s, int y, int x, GColors *color) { wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, x, "%s", s); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } /* Print out (terminal) an overall field value. e.g., '120 secs' */ static void render_overall_value (WINDOW *win, const char *s, int y, int x, GColors *color) { wattron (win, color->attr | COLOR_PAIR (color->pair->idx)); mvwprintw (win, y, x, "%s", s); wattroff (win, color->attr | COLOR_PAIR (color->pair->idx)); } /* Convert the number of excluded ips to a string. * * On success, the number of excluded ips as a string is returned. */ static char * get_str_excluded_ips (void) { return u642str (ht_get_excluded_ips (), 0); } /* Convert the number of failed requests to a string. * * On success, the number of failed requests as a string is returned. */ static char * get_str_failed_reqs (void) { return u642str (ht_get_invalid (), 0); } /* Convert the number of processed requests to a string. * * On success, the number of processed requests as a string is returned. */ static char * get_str_processed_reqs (void) { return u642str (ht_get_processed (), 0); } /* Convert the number of valid requests to a string. * * On success, the number of valid requests as a string is returned. */ static char * get_str_valid_reqs (void) { return u642str (ht_sum_valid (), 0); } /* Convert the number of not found requests to a string. * * On success, the number of not found requests as a string is * returned. */ static char * get_str_notfound_reqs (void) { return u642str (ht_get_size_datamap (NOT_FOUND), 0); } /* Convert the number of referrers to a string. * * On success, the number of referrers as a string is returned. */ static char * get_str_ref_reqs (void) { return u642str (ht_get_size_datamap (REFERRERS), 0); } /* Convert the number of requests to a string. * * On success, the number of requests as a string is returned. */ static char * get_str_reqs (void) { return u642str (ht_get_size_datamap (REQUESTS), 0); } /* Convert the number of static requests to a string. * * On success, the number of static requests as a string is returned. */ static char * get_str_static_reqs (void) { return u642str (ht_get_size_datamap (REQUESTS_STATIC), 0); } /* Convert the number of unique visitors to a string. * * On success, the number of unique visitors as a string is returned. */ static char * get_str_visitors (void) { return u642str (ht_get_size_uniqmap (VISITORS), 0); } /* Convert the time taken to process the log to a string. * * On success, the time taken to process the log as a string is * returned. */ static char * get_str_proctime (void) { char *s = NULL; uint32_t secs = ht_get_processing_time (); s = xmalloc (snprintf (NULL, 0, "%us", secs) + 1); sprintf (s, "%us", secs); return s; } /* Get the log file size in a human-readable format. * * On success, the log file size as a string is returned. */ static char * get_str_filesize (void) { return filesize_str (get_log_sizes ()); } /* Get the log file path. * * On success, the log file path as a string is returned. */ static char * get_str_logfile (void) { int col = getmaxx (stdscr), left_padding = 20; return get_log_source_str (col - left_padding); } /* Get the bandwidth in a human-readable format. * * On success, the bandwidth as a string is returned. */ static char * get_str_bandwidth (void) { return filesize_str (ht_sum_bw ()); } /* Get the overall statistics start and end dates. * * On failure, 1 is returned * On success, 0 is returned and an string containing the overall * header is returned. */ int get_start_end_parsing_dates (char **start, char **end, const char *f) { uint32_t *dates = NULL; uint32_t len = 0; const char *sndfmt = "%Y%m%d"; char s[DATE_LEN]; char e[DATE_LEN]; dates = get_sorted_dates (&len); sprintf (s, "%u", dates[0]); sprintf (e, "%u", dates[len - 1]); /* just display the actual dates - no specificity */ *start = get_visitors_date (s, sndfmt, f); *end = get_visitors_date (e, sndfmt, f); free (dates); return 0; } /* Get the overall statistics header (label). * * On success, an string containing the overall header is returned. */ char * get_overall_header (GHolder *h) { const char *head = T_DASH_HEAD; char *hd = NULL, *start = NULL, *end = NULL; if (h->idx == 0 || get_start_end_parsing_dates (&start, &end, "%d/%b/%Y")) return xstrdup (head); hd = xmalloc (snprintf (NULL, 0, "%s (%s - %s)", head, start, end) + 1); sprintf (hd, "%s (%s - %s)", head, start, end); free (end); free (start); return hd; } /* Print out (terminal dashboard) the overall statistics header. */ static void render_overall_header (WINDOW *win, GHolder *h) { char *hd = get_overall_header (h); int col = getmaxx (stdscr); draw_header (win, hd, " %s", 0, 0, col, color_panel_header); free (hd); } /* Render the overall statistics. This will attempt to determine the * right X and Y position given the current values. */ static void render_overall_statistics (WINDOW *win, Field fields[], size_t n) { GColors *color = NULL; int x_field = 2, x_value; size_t i, j, k, max_field = 0, max_value, mod_val, y; for (i = 0, k = 0, y = 2; i < n; i++) { /* new line every OVERALL_NUM_COLS */ mod_val = k % OVERALL_NUM_COLS; /* reset position & length and increment row */ if (k > 0 && mod_val == 0) { max_field = 0; x_field = 2; y++; } /* x pos = max length of field */ x_field += max_field; color = (*fields[i].colorlbl) (); render_overall_field (win, fields[i].field, y, x_field, color); /* get max length of field in the same column */ max_field = 0; for (j = 0; j < n; j++) { size_t len = strlen (fields[j].field); if (j % OVERALL_NUM_COLS == mod_val && len > max_field && !fields[j].oneliner) max_field = len; } /* get max length of value in the same column */ max_value = 0; for (j = 0; j < n; j++) { size_t len = strlen (fields[j].value); if (j % OVERALL_NUM_COLS == mod_val && len > max_value && !fields[j].oneliner) max_value = len; } /* spacers */ x_value = max_field + x_field + 1; max_field += max_value + 2; color = (*fields[i].colorval) (); render_overall_value (win, fields[i].value, y, x_value, color); k += fields[i].oneliner ? OVERALL_NUM_COLS : 1; } } /* The entry point to render the overall statistics and free its data. */ void display_general (WINDOW *win, GHolder *h) { GColors *(*colorlbl) (void) = color_overall_lbls; GColors *(*colorpth) (void) = color_overall_path; GColors *(*colorval) (void) = color_overall_vals; size_t n, i; /* *INDENT-OFF* */ Field fields[] = { {T_REQUESTS , get_str_processed_reqs () , colorlbl , colorval , 0} , {T_UNIQUE_VISITORS , get_str_visitors () , colorlbl , colorval , 0} , {T_UNIQUE_FILES , get_str_reqs () , colorlbl , colorval , 0} , {T_REFERRER , get_str_ref_reqs () , colorlbl , colorval , 0} , {T_VALID , get_str_valid_reqs () , colorlbl , colorval , 0} , {T_GEN_TIME , get_str_proctime () , colorlbl , colorval , 0} , {T_STATIC_FILES , get_str_static_reqs () , colorlbl , colorval , 0} , {T_LOG , get_str_filesize () , colorlbl , colorval , 0} , {T_FAILED , get_str_failed_reqs () , colorlbl , colorval , 0} , {T_EXCLUDE_IP , get_str_excluded_ips () , colorlbl , colorval , 0} , {T_UNIQUE404 , get_str_notfound_reqs () , colorlbl , colorval , 0} , {T_BW , get_str_bandwidth () , colorlbl , colorval , 0} , {T_LOG_PATH , get_str_logfile () , colorlbl , colorpth , 1} }; /* *INDENT-ON* */ werase (win); render_overall_header (win, h); n = ARRAY_SIZE (fields); render_overall_statistics (win, fields, n); for (i = 0; i < n; i++) { free (fields[i].value); } } /* Set default string in input field. * * On success, the newly allocated string is returned. */ char * set_default_string (WINDOW *win, int pos_y, int pos_x, size_t max_width, const char *str) { char *s = xmalloc (max_width + 1), *tmp; size_t len = 0; size_t size_x = 0, size_y = 0; getmaxyx (win, size_y, size_x); (void) size_y; size_x -= 4; /* are we setting a default string */ if (!str) { s[0] = '\0'; return s; } len = MIN (max_width, strlen (str)); memcpy (s, str, len); s[len] = '\0'; /* is the default str length greater than input field? */ if (strlen (s) > size_x) { tmp = xstrdup (&s[0]); tmp[size_x] = '\0'; mvwprintw (win, pos_y, pos_x, "%s", tmp); free (tmp); } else { mvwprintw (win, pos_y, pos_x, "%s", s); } return s; } /* Implement a basic framework to build a field input. * * On success, the inputted string is returned. */ char * input_string (WINDOW *win, int pos_y, int pos_x, size_t max_width, const char *str, int enable_case, int *toggle_case) { char *s = NULL, *tmp; size_t i, c, pos = 0, x = 0, quit = 1, size_x = 0, size_y = 0; getmaxyx (win, size_y, size_x); size_x -= 4; s = set_default_string (win, pos_y, pos_x, max_width, str); if (str) x = pos = 0; if (enable_case) mvwprintw (win, size_y - 2, 1, " %s", CSENSITIVE); wmove (win, pos_y, pos_x + x); wrefresh (win); curs_set (1); while (quit) { c = wgetch (stdscr); switch (c) { case 1: /* ^a */ case 262: /* HOME */ pos = x = 0; break; case 5: case 360: /* END of line */ if (strlen (s) > size_x) { x = size_x; pos = strlen (s) - size_x; } else { pos = 0; x = strlen (s); } break; case 7: /* ^g */ case 27: /* ESC */ pos = x = 0; if (str && *str == '\0') s[0] = '\0'; quit = 0; break; case 9: /* TAB */ if (!enable_case) break; *toggle_case = *toggle_case == 0 ? 1 : 0; if (*toggle_case) mvwprintw (win, size_y - 2, 1, " %s", CISENSITIVE); else if (!*toggle_case) mvwprintw (win, size_y - 2, 1, " %s", CSENSITIVE); break; case 21: /* ^u */ s[0] = '\0'; pos = x = 0; break; case 8: /* xterm-256color */ case 127: case KEY_BACKSPACE: if (pos + x > 0) { memmove (&s[(pos + x) - 1], &s[pos + x], (max_width - (pos + x)) + 1); if (pos <= 0) x--; else pos--; } break; case KEY_LEFT: if (x > 0) x--; else if (pos > 0) pos--; break; case KEY_RIGHT: if ((x + pos) < strlen (s)) { if (x < size_x) x++; else pos++; } break; case 0x0a: case 0x0d: case KEY_ENTER: quit = 0; break; default: if (strlen (s) == max_width) break; if (!isprint ((unsigned char) c)) break; if (strlen (s) == pos) { s[pos + x] = c; s[pos + x + 1] = '\0'; waddch (win, c); } else { memmove (&s[pos + x + 1], &s[pos + x], strlen (&s[pos + x]) + 1); s[pos + x] = c; } if ((x + pos) < max_width) { if (x < size_x) x++; else pos++; } } tmp = xstrdup (&s[pos > 0 ? pos : 0]); tmp[MIN (strlen (tmp), size_x)] = '\0'; for (i = strlen (tmp); i < size_x; i++) mvwprintw (win, pos_y, pos_x + i, "%s", " "); mvwprintw (win, pos_y, pos_x, "%s", tmp); free (tmp); wmove (win, pos_y, pos_x + x); wrefresh (win); } curs_set (0); return s; } static const char spin_chars[] = "/-\\|"; #define SPIN_FRAMES_COUNT (sizeof(spin_chars) / sizeof(spin_chars[0])) static const char *const goaccess_mini_banner[] = { " ______ ___", " / ____/___ / | _____________ __________", " / / __/ __ \\/ /| |/ ___/ ___/ _ \\/ ___/ ___/", "/ /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) ", "\\____/\\____/_/ |_\\___/\\___/\\___/____/____/ ", "", "The MIT License (MIT) - Copyright (c) 2009-2026 Gerardo Orellana ", NULL }; /* Helper: format stats string safely */ static void format_stats (uint64_t processed, int64_t elapsed_sec, char *out, size_t outsz) { int64_t rate = (elapsed_sec >= 1) ? (int64_t) (processed / (uint64_t) elapsed_sec) : 0; snprintf (out, outsz, "%'13" PRIu64 " %" PRIi64 "/s", processed, rate); } static SpinnerSnapshot snapshot_state (GSpinner *sp) { SpinnerSnapshot snap = { 0 }; lock_spinner (); snap.state = sp->state; snap.curses = sp->curses; if (sp->processed && *(sp->processed)) { snap.processed = **(sp->processed); } else { snap.processed = 0ULL; } snap.elapsed_sec = (time (NULL) - sp->start_time); snap.filename = (sp->filename && *sp->filename) ? *sp->filename : "processing"; unlock_spinner (); return snap; } /* Curses rendering – filename + stats via draw_header, bar in middle, spinner at spin_x */ static void render_curses (GSpinner *sp, SpinnerSnapshot *snap, const char *stats, int *bounce_pos, int *bounce_dir, int bounce_width, int spin_idx) { GColors *color = (*sp->color) (); char left_buf[256] = { 0 }; const char *fname = NULL; int maxx = getmaxx (sp->win), text_width = 0, bar_start = 0, bar_max = 0, i = 0, fill_start; if (maxx < 60) maxx = 80; /* Prepare left text: filename (basename) + stats */ fname = basename_only (snap->filename); snprintf (left_buf, sizeof (left_buf), "%s %s", fname, stats); /* Draw left text using original draw_header style */ draw_header (sp->win, left_buf, " %s", sp->y, sp->x, sp->w, sp->color); /* Calculate where the bar starts (right after text ends) */ text_width = strlen (left_buf) + 2; /* + padding */ bar_start = sp->x + text_width; bar_max = maxx - bar_start - 5; /* leave space for spinner */ if (bar_max < 20) { bar_max = 20; bar_start = maxx - bar_max - 5; } /* White bold bouncing blocks */ fill_start = bar_start + *bounce_pos; wattron (sp->win, COLOR_PAIR (color->pair->idx) | A_BOLD); for (i = 0; i < bounce_width && fill_start + i < bar_start + bar_max; i++) { mvwaddch (sp->win, sp->y, fill_start + i, ACS_BLOCK); } wattroff (sp->win, COLOR_PAIR (color->pair->idx) | A_BOLD); /* Animate bounce */ *bounce_pos += *bounce_dir * 2; if (*bounce_pos >= bar_max - bounce_width) *bounce_dir = -1; if (*bounce_pos <= 0) *bounce_dir = 1; /* Spinner at original sp->spin_x position */ if (!conf.no_progress) { wattron (sp->win, COLOR_PAIR (color->pair->idx)); mvwaddch (sp->win, sp->y, sp->spin_x, spin_chars[spin_idx & 3]); wattroff (sp->win, COLOR_PAIR (color->pair->idx)); } wrefresh (sp->win); } /* Terminal (colored) rendering – same order */ static void render_plain (FILE *out, SpinnerSnapshot *snap, const char *stats, int *banner_shown, int *bounce_pos, int *bounce_dir, int bounce_width, int spin_idx) { int i = 0, barlen = 0, pos = 0; const char *fname = basename_only (snap->filename); char bar[128] = ""; char spinner_char; if (!*banner_shown) { for (i = 0; goaccess_mini_banner[i]; i++) { fprintf (out, "\033[1;36m%s\033[0m\n", goaccess_mini_banner[i]); } fprintf (out, "\n"); *banner_shown = true; } /* Build bouncing bar – smooth reverse direction */ barlen = 40; pos = *bounce_pos; // current position for (i = 0; i < barlen; i++) { if (i >= pos && i < pos + bounce_width) { bar[i] = '#'; } else { bar[i] = '-'; } } bar[barlen] = '\0'; spinner_char = spin_chars[spin_idx & 3]; fprintf (out, "\033[2K\r" "\033[1;37m%s\033[0m " /* filename white */ "\033[1;34m%s\033[0m " /* stats blue */ "\033[90m[\033[1;32m%s\033[90m]\033[0m " /* bar green fill */ "\033[36m%c\033[0m", /* spinner cyan */ fname, stats, bar, spinner_char); fflush (out); /* Animate bounce – same logic as curses */ *bounce_pos += *bounce_dir * 2; // step size 2 for smoother feel if (*bounce_pos >= barlen - bounce_width) { *bounce_dir = -1; } if (*bounce_pos <= 0) { *bounce_dir = 1; } } /* Fallback (minimal) – filename → stats → spinner */ static void render_fallback (FILE *out, SpinnerSnapshot *snap, const char *stats, int spin_idx) { const char *fname = basename_only (snap->filename); fprintf (out, "\r%s %s %c", fname, stats, spin_chars[spin_idx & 3]); fflush (out); } /* Main spinner loop */ static void ui_spinner (void *ptr_data) { GSpinner *sp = (GSpinner *) ptr_data; static int banner_shown = 0; static int bounce_pos = 0; static int bounce_dir = 1; const int bounce_width = 8; static int spin_idx = 0; struct timespec ts = {.tv_sec = 0,.tv_nsec = SPIN_UPDATE_INTERVAL }; /* Hide cursor only in interactive terminal */ int is_interactive = !sp->curses && !conf.no_progress && isatty (fileno (stderr)); if (is_interactive) { fputs ("\033[?25l", stderr); } time (&sp->start_time); while (true) { char stats[96] = { 0 }; SpinnerSnapshot snap = snapshot_state (sp); if (snap.state == SPN_END) { if (is_interactive) { fputs ("\033[?25h\033[2K\n", stderr); } break; } /* If no progress is wanted, just sleep and loop */ if (conf.no_progress) { nanosleep (&ts, NULL); continue; } format_stats (snap.processed, snap.elapsed_sec, stats, sizeof (stats)); spin_idx = (spin_idx + 1) % 4; if (snap.curses) { render_curses (sp, &snap, stats, &bounce_pos, &bounce_dir, bounce_width, spin_idx); } else if (isatty (fileno (stderr))) { render_plain (stderr, &snap, stats, &banner_shown, &bounce_pos, &bounce_dir, bounce_width, spin_idx); } else { render_fallback (stderr, &snap, stats, spin_idx); } if (nanosleep (&ts, NULL) == -1 && errno != EINTR) { FATAL ("nanosleep: %s", strerror (errno)); } } } /* Create the processing spinner's thread */ void ui_spinner_create (GSpinner *spinner) { if (conf.no_parsing_spinner) return; pthread_create (&(spinner->thread), NULL, (void *) &ui_spinner, spinner); pthread_detach (spinner->thread); } /* Initialize processing spinner data. */ void set_curses_spinner (GSpinner *spinner) { int y, x; if (spinner == NULL) return; getmaxyx (stdscr, y, x); spinner->color = color_progress; spinner->curses = 1; spinner->win = stdscr; spinner->x = 0; spinner->w = x; spinner->spin_x = x - 2; spinner->y = y - 1; } /* Determine if we need to lock the mutex. */ void lock_spinner (void) { if (parsing_spinner != NULL && parsing_spinner->state == SPN_RUN) pthread_mutex_lock (&parsing_spinner->mutex); } /* Determine if we need to unlock the mutex. */ void unlock_spinner (void) { if (parsing_spinner != NULL && parsing_spinner->state == SPN_RUN) pthread_mutex_unlock (&parsing_spinner->mutex); } /* Initialize per-item expanded state for a module. * All items start expanded (showing children) by default. */ void init_item_expanded (GScrollModule *smod, int num_items) { free_item_expanded (smod); if (num_items <= 0) return; smod->item_expanded = xcalloc (num_items, sizeof (uint8_t)); smod->item_expanded_size = num_items; memset (smod->item_expanded, 1, num_items); } /* Free per-item expanded state array. */ void free_item_expanded (GScrollModule *smod) { if (smod->item_expanded) { free (smod->item_expanded); smod->item_expanded = NULL; } smod->item_expanded_size = 0; } /* Reset per-item expanded state (frees and nullifies). */ void reset_item_expanded (GScrollModule *smod) { free_item_expanded (smod); } /* Allocate memory for a spinner instance and initialize its data. * * On success, the newly allocated GSpinner is returned. */ GSpinner * new_gspinner (void) { GSpinner *spinner; spinner = xcalloc (1, sizeof (GSpinner)); spinner->label = "Parsing..."; spinner->state = SPN_RUN; spinner->curses = 0; if (pthread_mutex_init (&(spinner->mutex), NULL)) FATAL ("Failed init thread mutex"); return spinner; } ================================================ FILE: src/ui.h ================================================ /** * ui.h -- various curses interfaces * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana */ #ifndef UI_H_INCLUDED #define UI_H_INCLUDED #ifdef HAVE_NCURSESW_NCURSES_H #include #elif HAVE_NCURSES_NCURSES_H #include #elif HAVE_NCURSES_H #include #elif HAVE_CURSES_H #include #endif #ifdef HAVE_LIBPTHREAD #include #endif #include "labels.h" #include "commons.h" /* Global UI defaults */ #define MIN_HEIGHT 8 #define MIN_WIDTH 0 #define MAX_HEIGHT_FOOTER 1 #define MAX_HEIGHT_HEADER 7 #define OVERALL_NUM_COLS 4 /* Spinner Label Format */ #define SPIN_FMT "%s" #define SPIN_FMTM "[%s %s] {%'"PRIu64"} @ {%'lld/s}" #define SPIN_LBL 256 #define SPIN_UPDATE_INTERVAL 100000000 /* Module JSON keys */ #define VISITORS_ID "visitors" #define REQUESTS_ID "requests" #define REQUESTS_STATIC_ID "static_requests" #define VISIT_TIMES_ID "visit_time" #define VIRTUAL_HOSTS_ID "vhosts" #define REMOTE_USER_ID "remote_user" #define CACHE_STATUS_ID "cache_status" #define NOT_FOUND_ID "not_found" #define HOSTS_ID "hosts" #define OS_ID "os" #define BROWSERS_ID "browsers" #define REFERRERS_ID "referrers" #define REFERRING_SITES_ID "referring_sites" #define KEYPHRASES_ID "keyphrases" #define GEO_LOCATION_ID "geolocation" #define ASN_ID "asn" #define STATUS_CODES_ID "status_codes" #define GENER_ID "general" #define MIME_TYPE_ID "mime_type" #define TLS_TYPE_ID "tls_type" /* Overall Statistics CSV/JSON Keys */ #define OVERALL_STARTDATE "start_date" #define OVERALL_ENDDATE "end_date" #define OVERALL_DATETIME "date_time" #define OVERALL_REQ "total_requests" #define OVERALL_VALID "valid_requests" #define OVERALL_GENTIME "generation_time" #define OVERALL_FAILED "failed_requests" #define OVERALL_VISITORS "unique_visitors" #define OVERALL_FILES "unique_files" #define OVERALL_EXCL_HITS "excluded_hits" #define OVERALL_REF "unique_referrers" #define OVERALL_NOTFOUND "unique_not_found" #define OVERALL_STATIC "unique_static_files" #define OVERALL_LOGSIZE "log_size" #define OVERALL_BANDWIDTH "bandwidth" #define OVERALL_LOG "log_path" /* CONFIG DIALOG */ #define CONF_MENU_H 6 #define CONF_MENU_W 67 #define CONF_MENU_X 2 #define CONF_MENU_Y 4 #define CONF_WIN_H 20 #define CONF_WIN_W 71 #define CONF_MAX_LEN_DLG 512 /* FIND DIALOG */ #define FIND_DLG_HEIGHT 8 #define FIND_DLG_WIDTH 50 #define FIND_MAX_MATCHES 1 /* COLOR SCHEME DIALOG */ #define SCHEME_MENU_H 4 #define SCHEME_MENU_W 38 #define SCHEME_MENU_X 2 #define SCHEME_MENU_Y 4 #define SCHEME_WIN_H 10 #define SCHEME_WIN_W 42 /* SORT DIALOG */ #define SORT_MENU_H 6 #define SORT_MENU_W 38 #define SORT_MENU_X 2 #define SORT_MENU_Y 4 #define SORT_WIN_H 13 #define SORT_WIN_W 42 /* AGENTS DIALOG */ #define AGENTS_MENU_X 2 #define AGENTS_MENU_Y 4 /* HELP DIALOG */ #define HELP_MENU_HEIGHT 12 #define HELP_MENU_WIDTH 60 #define HELP_MENU_X 2 #define HELP_MENU_Y 4 #define HELP_WIN_HEIGHT 17 #define HELP_WIN_WIDTH 64 /* CONF ERROR DIALOG */ #define ERR_MENU_HEIGHT 10 #define ERR_MENU_WIDTH 67 #define ERR_MENU_X 2 #define ERR_MENU_Y 4 #define ERR_WIN_HEIGHT 15 #define ERR_WIN_WIDTH 71 /* ORDER PANELS */ #define PANELS_MENU_X 2 #define PANELS_MENU_Y 4 #define PANELS_WIN_H 22 #define PANELS_WIN_W 50 #include "color.h" #include "sort.h" typedef struct GFind_ { GModule module; char *pattern; int next_idx; int next_parent_idx; int next_sub_idx; int look_in_sub; int done; int icase; } GFind; /* Helper: snapshot current spinner state (avoids holding mutex too long) */ typedef struct { int state; bool curses; uint64_t processed; int64_t elapsed_sec; const char *filename; } SpinnerSnapshot; typedef struct GScrollModule_ { int scroll; int offset; int current_metric; int use_log_scale; int reverse_bars; /* Per-item expand/collapse state for hierarchical navigation. * When NULL, all items are expanded (legacy behavior). * Otherwise, item_expanded[i] == 1 means root item i's children are visible. */ uint8_t *item_expanded; int item_expanded_size; } GScrollModule; typedef struct GScroll_ { GScrollModule module[TOTAL_MODULES]; GModule current; int dash; int expanded; } GScroll; typedef struct GSpinner_ { const char *label; GColors *(*color) (void); int curses; int spin_x; int w; int x; int y; pthread_mutex_t mutex; pthread_t thread; uint64_t **processed; char **filename; time_t start_time; WINDOW *win; enum { SPN_RUN, SPN_END } state; } GSpinner; typedef struct GOutput_ { GModule module; int8_t visitors; int8_t hits; int8_t percent; int8_t bw; int8_t avgts; int8_t cumts; int8_t maxts; int8_t protocol; int8_t method; int8_t data; int8_t graph; int8_t sub_graph; } GOutput; /* Core UI functions */ const GOutput *output_lookup (GModule module); GSpinner *new_gspinner (void); char *get_overall_header (GHolder * h); char *input_string (WINDOW * win, int pos_y, int pos_x, size_t max_width, const char *str, int enable_case, int *toggle_case); char *set_default_string (WINDOW * win, int pos_y, int pos_x, size_t max_width, const char *str); const char *module_to_desc (GModule module); const char *module_to_head (GModule module); const char *module_to_id (GModule module); const char *module_to_label (GModule module); int get_start_end_parsing_dates (char **start, char **end, const char *f); void close_win (WINDOW * w); void display_general (WINDOW * win, GHolder * h); void draw_header (WINDOW * win, const char *s, const char *fmt, int y, int x, int w, GColors * (*func) (void)); void end_spinner (void); void generate_time (void); void init_colors (int force); void init_windows (WINDOW ** header_win, WINDOW ** main_win); void lock_spinner (void); void set_curses_spinner (GSpinner * spinner); void set_input_opts (void); void set_wbkgd (WINDOW * main_win, WINDOW * header_win); void term_size (WINDOW * main_win, int *main_win_height); void ui_spinner_create (GSpinner * spinner); void unlock_spinner (void); void update_active_module (WINDOW * header_win, GModule current); /* Per-item expand/collapse state management */ void init_item_expanded (GScrollModule * smod, int num_items); void free_item_expanded (GScrollModule * smod); void reset_item_expanded (GScrollModule * smod); #endif ================================================ FILE: src/util.c ================================================ /** * util.c -- a set of handy functions to help parsing * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #define _GNU_SOURCE #define _DEFAULT_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "util.h" #include "error.h" #include "labels.h" #include "xmalloc.h" pthread_mutex_t tz_mutex = PTHREAD_MUTEX_INITIALIZER; /* HTTP status codes categories */ static const char *const code_type[] = { STATUS_CODE_0XX, STATUS_CODE_1XX, STATUS_CODE_2XX, STATUS_CODE_3XX, STATUS_CODE_4XX, STATUS_CODE_5XX, }; /* HTTP status codes */ static const char *const codes[600] = { [0] = STATUS_CODE_0, [100] = STATUS_CODE_100, STATUS_CODE_101, [200] = STATUS_CODE_200, STATUS_CODE_201, STATUS_CODE_202, STATUS_CODE_203, STATUS_CODE_204, [205] = STATUS_CODE_205, STATUS_CODE_206, STATUS_CODE_207, STATUS_CODE_208, [218] = STATUS_CODE_218, [300] = STATUS_CODE_300, STATUS_CODE_301, STATUS_CODE_302, STATUS_CODE_303, STATUS_CODE_304, [305] = STATUS_CODE_305, NULL, STATUS_CODE_307, STATUS_CODE_308, [400] = STATUS_CODE_400, STATUS_CODE_401, STATUS_CODE_402, STATUS_CODE_403, STATUS_CODE_404, [405] = STATUS_CODE_405, STATUS_CODE_406, STATUS_CODE_407, STATUS_CODE_408, STATUS_CODE_409, [410] = STATUS_CODE_410, STATUS_CODE_411, STATUS_CODE_412, STATUS_CODE_413, STATUS_CODE_414, [415] = STATUS_CODE_415, STATUS_CODE_416, STATUS_CODE_417, STATUS_CODE_418, STATUS_CODE_419, [420] = STATUS_CODE_420, STATUS_CODE_421, STATUS_CODE_422, STATUS_CODE_423, STATUS_CODE_424, [425] = NULL, STATUS_CODE_426, NULL, STATUS_CODE_428, STATUS_CODE_429, STATUS_CODE_430, [431] = STATUS_CODE_431, [440] = STATUS_CODE_440, [444] = STATUS_CODE_444, [449] = STATUS_CODE_449, [450] = STATUS_CODE_450, [451] = STATUS_CODE_451, [460] = STATUS_CODE_460, STATUS_CODE_463, STATUS_CODE_464, [494] = STATUS_CODE_494, [495] = STATUS_CODE_495, STATUS_CODE_496, STATUS_CODE_497, STATUS_CODE_498, STATUS_CODE_499, [500] = STATUS_CODE_500, STATUS_CODE_501, STATUS_CODE_502, STATUS_CODE_503, STATUS_CODE_504, [505] = STATUS_CODE_505, [509] = STATUS_CODE_509, [520] = STATUS_CODE_520, STATUS_CODE_521, STATUS_CODE_522, STATUS_CODE_523, STATUS_CODE_524, STATUS_CODE_525, STATUS_CODE_526, STATUS_CODE_527, STATUS_CODE_529, [530] = STATUS_CODE_530, [540] = STATUS_CODE_540, [561] = STATUS_CODE_561, [598] = STATUS_CODE_598, STATUS_CODE_599, }; const char * basename_only (const char *path) { const char *base = strrchr (path, '/'); return base ? base + 1 : path; } /* Return part of a string * * On error NULL is returned. * On success the extracted part of string is returned */ char * substring (const char *str, int begin, int len) { char *buffer; if (str == NULL) return NULL; if (begin < 0) begin = strlen (str) + begin; if (begin < 0) begin = 0; if (len < 0) len = 0; if (((size_t) begin) > strlen (str)) begin = strlen (str); if (((size_t) len) > strlen (&str[begin])) len = strlen (&str[begin]); if ((buffer = xmalloc (len + 1)) == NULL) return NULL; memcpy (buffer, &(str[begin]), len); buffer[len] = '\0'; return buffer; } /* A pointer to the allocated memory of the new string * * On success, a pointer to a new string is returned */ char * alloc_string (const char *str) { char *new = xmalloc (strlen (str) + 1); strcpy (new, str); return new; } /* A wrapper function to copy the first num characters of source to * destination. */ void xstrncpy (char *dest, const char *source, const size_t dest_size) { strncpy (dest, source, dest_size); if (dest_size > 0) { dest[dest_size - 1] = '\0'; } else { dest[0] = '\0'; } } /* A random string generator. */ void genstr (char *dest, size_t len) { char set[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (; len > 0; --len) *dest++ = set[rand () % (sizeof (set) - 1)]; *dest = '\0'; } /* Count the number of matches on the string `s1` given a character `c` * * If the character is not found, 0 is returned * On success, the number of characters found */ int count_matches (const char *s1, char c) { const char *ptr = s1; int n = 0; do { if (*ptr == c) n++; } while (*(ptr++)); return n; } /* Simple but efficient uint32_t hashing. */ #if defined(__clang__) && defined(__clang_major__) && (__clang_major__ >= 4) __attribute__((no_sanitize ("unsigned-integer-overflow"))) #if (__clang_major__ >= 12) __attribute__((no_sanitize ("unsigned-shift-base"))) #endif #endif uint32_t djb2 (const unsigned char *str) { uint32_t hash = 5381; int c; while ((c = *str++)) hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ return hash; } /* String matching where one string contains wildcard characters. * * If no match found, 1 is returned. * If match found, 0 is returned. */ static int wc_match (const char *wc, char *str) { while (*wc && *str) { if (*wc == '*') { while (*wc && *wc == '*') wc++; if (!*wc) return 1; while (*str && *str != *wc) str++; } else if (*wc == '?' || *wc == *str) { wc++; str++; } else { break; } } if (!*wc && !*str) return 1; return 0; } /** * Extracts the hostname part from a given URL. * * On error, NULL is returned. * On success, a dynamically allocated string containing the hostname is returned. */ static char * extract_hostname (const char *url) { const char *start, *end; char *hostname = NULL; start = strstr (url, "://"); if (start != NULL) { start += 3; } else { start = url; } end = strchr (start, '/'); if (end == NULL) { /* no path, use the entire string */ end = start + strlen (start); } hostname = xmalloc (end - start + 1); strncpy (hostname, start, end - start); hostname[end - start] = '\0'; return hostname; } /* Generic routine to extract all groups from a string given a POSIX regex. * * If no match found or error, NULL is returned. * If match found, a string is returned. */ char * regex_extract_string (const char *str, const char *regex, int max_groups, char const **err) { char *copy = NULL, *dest = NULL; int i, ret = 0; regex_t re; regmatch_t groups[max_groups]; if (str == NULL || *str == '\0') { *err = "Invalid string."; return NULL; } if (regcomp (&re, regex, REG_EXTENDED)) { *err = "Unable to compile regular expression upon extraction"; return NULL; } ret = regexec (&re, str, max_groups, groups, 0); if (ret == REG_NOMATCH) { *err = "Unable to match regular expression extraction."; goto out; } if (ret != 0) { *err = "Error while matching regular expression extraction."; goto out; } dest = xstrdup (""); for (i = 0; i < max_groups; ++i) { if (groups[i].rm_so == -1) break; copy = xstrdup (str); copy[groups[i].rm_eo] = 0; append_str (&dest, copy + groups[i].rm_so); free (copy); } out: regfree (&re); return ret == 0 ? dest : NULL; } static int handle_referer (const char *host, const char **referers, int referer_idx) { char *needle = NULL, *hostname = NULL; int i, ignore = 0; if (referer_idx == 0) return 0; if (host == NULL || *host == '\0') return 0; needle = xstrdup (host); for (i = 0; i < referer_idx; ++i) { if (referers[i] == NULL || *referers[i] == '\0') continue; if (strchr (referers[i], '*') != NULL || strchr (referers[i], '?') != NULL) { if (wc_match (referers[i], needle)) { ignore = 1; goto out; } } else { hostname = extract_hostname (host); if (strcmp (referers[i], hostname) == 0) { ignore = 1; free (hostname); goto out; } free (hostname); } } out: free (needle); return ignore; } /* Determine if the given host needs to be ignored given the list of * referrers to ignore. * * On error, or the referrer is not found, 0 is returned * On success, or if the host needs to be ignored, 1 is returned */ int ignore_referer (const char *host) { return handle_referer (host, conf.ignore_referers, conf.ignore_referer_idx); } /* Determine if the given host needs to be hidden given the list of * referrers to hide. * * On error, or the referrer is not found, 0 is returned * On success, or if the host needs to be ignored, 1 is returned */ int hide_referer (const char *host) { return handle_referer (host, conf.hide_referers, conf.hide_referer_idx); } /* Determine if the given ip is within a range of IPs. * * On error, or not within the range, 0 is returned * On success, or if within the range, 1 is returned */ static int within_range (const char *ip, const char *start, const char *end) { struct in6_addr addr6, start6, end6; struct in_addr addr4, start4, end4; if (start == NULL || *start == '\0') return 0; if (end == NULL || *end == '\0') return 0; if (ip == NULL || *ip == '\0') return 0; /* IPv4 */ if (1 == inet_pton (AF_INET, ip, &addr4)) { if (1 != inet_pton (AF_INET, start, &start4)) return 0; if (1 != inet_pton (AF_INET, end, &end4)) return 0; if (memcmp (&addr4, &start4, sizeof (addr4)) >= 0 && memcmp (&addr4, &end4, sizeof (addr4)) <= 0) return 1; } /* IPv6 */ else if (1 == inet_pton (AF_INET6, ip, &addr6)) { if (1 != inet_pton (AF_INET6, start, &start6)) return 0; if (1 != inet_pton (AF_INET6, end, &end6)) return 0; if (memcmp (&addr6, &start6, sizeof (addr6)) >= 0 && memcmp (&addr6, &end6, sizeof (addr6)) <= 0) return 1; } return 0; } /* Determine if the given IP needs to be ignored given the list of IPs * to ignore. * * On error, or not within the range, 0 is returned * On success, or if within the range, 1 is returned */ int ip_in_range (const char *ip) { char *start, *end, *dash; int i; for (i = 0; i < conf.ignore_ip_idx; ++i) { end = NULL; if (conf.ignore_ips[i] == NULL || *conf.ignore_ips[i] == '\0') continue; start = xstrdup (conf.ignore_ips[i]); /* split range */ if ((dash = strchr (start, '-')) != NULL) { *dash = '\0'; end = dash + 1; } /* matches single IP */ if (end == NULL) { if (strcmp (ip, start) == 0) { free (start); return 1; } } /* within range */ else { if (within_range (ip, start, end)) { free (start); return 1; } } free (start); } return 0; } /* Searches the array of output formats for the given extension value. * * If not found, 1 is returned. * On success, the given filename is malloc'd and assigned and 0 is * returned. */ int find_output_type (char **filename, const char *ext, int alloc) { int i; const char *dot = NULL; for (i = 0; i < conf.output_format_idx; ++i) { /* for backwards compatibility. i.e., -o json */ if (strcmp (conf.output_formats[i], ext) == 0) return 0; if ((dot = strrchr (conf.output_formats[i], '.')) != NULL && strcmp (dot + 1, ext) == 0) { if (alloc) *filename = xstrdup (conf.output_formats[i]); return 0; } } return 1; } /* Validates the '-o' filename extension for any of: * 1) .csv * 2) .json * 3) .html * * Return Value * 1: valid * 0: invalid * -1: non-existent extension */ int valid_output_type (const char *filename) { const char *ext = NULL; size_t sl; if ((ext = strrchr (filename, '.')) == NULL) return -1; ext++; /* Is extension 3<=len<=4? */ sl = strlen (ext); if (sl < 3 || sl > 4) return 0; if (strcmp ("html", ext) == 0) return 1; if (strcmp ("json", ext) == 0) return 1; if (strcmp ("csv", ext) == 0) return 1; return 0; } /* Get the path to the user config file (ie. HOME/.goaccessrc). * * On error, it returns NULL. * On success, the path of the user config file is returned. */ char * get_user_config (void) { char *user_home = NULL, *path = NULL; size_t len; user_home = getenv ("HOME"); if (user_home == NULL) return NULL; len = snprintf (NULL, 0, "%s/.goaccessrc", user_home) + 1; path = xmalloc (len); snprintf (path, len, "%s/.goaccessrc", user_home); return path; } /* Get the path to the global config file. * * On success, the path of the global config file is returned. */ char * get_global_config (void) { char *path = NULL; size_t len; len = snprintf (NULL, 0, "%s/goaccess/goaccess.conf", SYSCONFDIR) + 1; path = xmalloc (len); snprintf (path, len, "%s/goaccess/goaccess.conf", SYSCONFDIR); return path; } /* A self-checking wrapper to convert_date(). * * On error, a newly malloc'd '---' string is returned. * On success, a malloc'd 'Ymd' date is returned. */ char * get_visitors_date (const char *odate, const char *from, const char *to) { char date[DATE_TIME] = ""; /* Ymd */ memset (date, 0, sizeof *date); /* verify we have a valid date conversion */ if (convert_date (date, odate, from, to, DATE_TIME) == 0) return xstrdup (date); LOG_DEBUG (("invalid date: %s", odate)); return xstrdup ("---"); } static time_t tm2time (const struct tm *src) { struct tm tmp; tmp = *src; return timegm (&tmp) - src->tm_gmtoff; } void set_tz (void) { /* this will persist for the duration of the program but also assumes that all * threads have the same conf.tz_name values */ static char tz[TZ_NAME_LEN] = { 0 }; if (!conf.tz_name) return; if (pthread_mutex_lock (&tz_mutex) != 0) { LOG_DEBUG (("Failed to acquire tz_mutex")); return; } snprintf (tz, TZ_NAME_LEN, "TZ=%s", conf.tz_name); if ((putenv (tz)) != 0) { int old_errno = errno; LOG_DEBUG (("Can't set TZ env variable %s: %s: %d\n", tz, strerror (old_errno), old_errno)); goto release; } tzset (); release: if (pthread_mutex_unlock (&tz_mutex) != 0) { LOG_DEBUG (("Failed to release tz_mutex")); } return; } #if defined(__linux__) && !defined(__GLIBC__) static int parse_tz_specifier (const char *str, const char *fmt, struct tm *tm) { char *fmt_notz = NULL, *p = NULL, *end = NULL, *ptr = NULL; int tz_offset_hours = 0, tz_offset_minutes = 0, neg = 0; /* new format string that excludes %z */ fmt_notz = xstrdup (fmt); p = strstr (fmt_notz, "%z"); if (p != NULL) *p = '\0'; /* parse date/time without timezone offset */ end = strptime (str, fmt_notz, tm); free (fmt_notz); if (end == NULL) return 1; /* bail early if no timezone offset is expected */ if (*end == '\0') { tm->tm_gmtoff = 0; return 0; } /* try to parse timezone offset else bail early, +/-0500 */ if ((*end != '+' && *end != '-') || strlen (end) < 4) return 1; /* divide by 100 to extract the hours part (e.g., 400 / 100 = 4) */ tz_offset_hours = labs (strtol (end, &ptr, 10)) / 100; if (*ptr != '\0') return 1; if (strlen (end) >= 5) { /* minutes part of the offset is present */ tz_offset_minutes = strtol (end + 3, &ptr, 10); if (*ptr != '\0') return 1; } neg = (*end == '-'); tm->tm_gmtoff = (tz_offset_hours * 3600 + tz_offset_minutes * 60) * (neg ? -1 : 1); return 0; } #endif /* Format the given date/time according the given format. * * On error, 1 is returned. * On success, 0 is returned. */ #pragma GCC diagnostic ignored "-Wformat-nonliteral" int str_to_time (const char *str, const char *fmt, struct tm *tm, int tz) { time_t t; char *end = NULL, *sEnd = NULL; unsigned long long ts = 0; int us, ms; #if !defined(__GLIBC__) int se; #endif time_t seconds = 0; if (str == NULL || *str == '\0' || fmt == NULL || *fmt == '\0') return 1; us = strcmp ("%f", fmt) == 0; ms = strcmp ("%*", fmt) == 0; #if !defined(__GLIBC__) se = strcmp ("%s", fmt) == 0; #endif /* check if char string needs to be converted from milli/micro seconds */ /* note that MUSL doesn't have %s under strptime(3) */ #if !defined(__GLIBC__) if (se || us || ms) { #else if (us || ms) { #endif errno = 0; ts = strtoull (str, &sEnd, 10); if (str == sEnd || *sEnd != '\0' || errno == ERANGE) return 1; seconds = (us) ? ts / SECS : ((ms) ? ts / MILS : ts); if (conf.tz_name && tz) set_tz (); /* if GMT needed, gmtime_r instead of localtime_r. */ localtime_r (&seconds, tm); return 0; } #if defined(__linux__) && !defined(__GLIBC__) if (parse_tz_specifier (str, fmt, tm)) return -1; #else end = strptime (str, fmt, tm); if (end == NULL || *end != '\0') return 1; #endif if (!tz || !conf.tz_name) return 0; if ((t = tm2time (tm)) == -1) { LOG_DEBUG (("Can't set time via tm2time() %s: %s\n", str, strerror (errno))); return 0; } set_tz (); localtime_r (&t, tm); return 0; } /* Convert a date from one format to another and store in the given buffer. * * On error, 1 is returned. * On success, 0 is returned. */ int convert_date (char *res, const char *data, const char *from, const char *to, int size) { struct tm tm; memset (&tm, 0, sizeof (tm)); timestamp = time (NULL); localtime_r (×tamp, &now_tm); /* This assumes that the given date is already in the correct timezone. */ if (str_to_time (data, from, &tm, 0) != 0) return 1; /* if not a timestamp, use current year if not passed */ if (!has_timestamp (from) && strpbrk (from, "Yy") == NULL) tm.tm_year = now_tm.tm_year; if (strftime (res, size, to, &tm) <= 0) return 1; return 0; } #pragma GCC diagnostic warning "-Wformat-nonliteral" /* Determine if the given IP is a valid IPv4/IPv6 address. * * On error, 1 is returned. * On success, 0 is returned. */ int invalid_ipaddr (const char *str, int *ipvx) { union { struct sockaddr addr; struct sockaddr_in6 addr6; struct sockaddr_in addr4; } a; (*ipvx) = TYPE_IPINV; if (str == NULL || *str == '\0') return 1; memset (&a, 0, sizeof (a)); if (1 == inet_pton (AF_INET, str, &a.addr4.sin_addr)) { (*ipvx) = TYPE_IPV4; return 0; } else if (1 == inet_pton (AF_INET6, str, &a.addr6.sin6_addr)) { (*ipvx) = TYPE_IPV6; return 0; } return 1; } /* Encode a data key and a unique visitor's key to a new uint64_t key * * ###NOTE: THIS LIMITS THE MAX VALUE OF A DATA TABLE TO uint32_t * WILL NEED TO CHANGE THIS IF WE GO OVER uint32_t */ uint64_t u64encode (uint32_t x, uint32_t y) { return x > y ? (uint32_t) y | ((uint64_t) x << 32) : (uint32_t) x | ((uint64_t) y << 32); } /* Decode a uint64_t number into the original two uint32_t */ void u64decode (uint64_t n, uint32_t *x, uint32_t *y) { *x = (uint64_t) n >> 32; *y = (uint64_t) n & 0xFFFFFFFF; } /* Get information about the filename. * * On error, -1 is returned. * On success, the file size of the given filename. */ off_t file_size (const char *filename) { struct stat st; if (stat (filename, &st) == 0) return st.st_size; LOG_DEBUG (("Can't determine size of %s: %s\n", filename, strerror (errno))); return -1; } /* Determine if the given status code is within the list of status * codes and find out the status type/category. * * If not found, "Unknown" is returned. * On success, the status code type/category is returned. */ const char * verify_status_code_type (int code) { if (code < 0 || code > 599 || code_type[code / 100] == NULL) return "Unknown"; return code_type[code / 100]; } /* Determine if the given status code is within the list of status * codes. * * If not found, "Unknown" is returned. * On success, the status code is returned. */ const char * verify_status_code (int code) { if (code < 0 || code > 599 || code_type[code / 100] == NULL || codes[code] == NULL) return "Unknown"; return codes[code]; } int is_valid_http_status (int code) { return code >= 0 && code <= 599 && code_type[code / 100] != NULL && codes[code] != NULL; } /* Checks if the given string is within the given array. * * If not found, -1 is returned. * If found, the key for needle in the array is returned. */ int str_inarray (const char *s, const char *arr[], int size) { int i; for (i = 0; i < size; i++) { if (strcmp (arr[i], s) == 0) return i; } return -1; } /* Strip whitespace from the beginning of a string. * * On success, a string with whitespace stripped from the beginning of * the string is returned. */ char * ltrim (char *s) { char *begin = s; while (isspace ((unsigned char) *begin)) ++begin; memmove (s, begin, strlen (begin) + 1); return s; } /* Strip whitespace from the end of a string. * * On success, a string with whitespace stripped from the end of the * string is returned. */ char * rtrim (char *s) { char *end = s + strlen (s); while ((end != s) && isspace ((unsigned char) *(end - 1))) --end; *end = '\0'; return s; } /* Strip whitespace from the beginning and end of the string. * * On success, the trimmed string is returned. */ char * trim_str (char *str) { return rtrim (ltrim (str)); } /* Convert the file size in bytes to a human-readable format. * * On error, the original size of the string in bytes is returned. * On success, the file size in a human-readable format is returned. */ char * filesize_str (unsigned long long log_size) { char *size = xmalloc (sizeof (char) * 12); if (log_size >= (1ULL << 50)) snprintf (size, 12, "%.2f PiB", (double) (log_size) / PIB (1ULL)); else if (log_size >= (1ULL << 40)) snprintf (size, 12, "%.2f TiB", (double) (log_size) / TIB (1ULL)); else if (log_size >= (1ULL << 30)) snprintf (size, 12, "%.2f GiB", (double) (log_size) / GIB (1ULL)); else if (log_size >= (1ULL << 20)) snprintf (size, 12, "%.2f MiB", (double) (log_size) / MIB (1ULL)); else if (log_size >= (1ULL << 10)) snprintf (size, 12, "%.2f KiB", (double) (log_size) / KIB (1ULL)); else snprintf (size, 12, "%.1f B", (double) (log_size)); return size; } /* Convert microseconds to a human-readable format. * * On error, a malloc'd string in microseconds is returned. * On success, the time in a human-readable format is returned. */ char * usecs_to_str (unsigned long long usec) { char *size = xmalloc (sizeof (char) * 11); if (usec >= DAY) snprintf (size, 11, "%.2f d", (double) (usec) / DAY); else if (usec >= HOUR) snprintf (size, 11, "%.2f hr", (double) (usec) / HOUR); else if (usec >= MINS) snprintf (size, 11, "%.2f mn", (double) (usec) / MINS); else if (usec >= SECS) snprintf (size, 11, "%.2f s", (double) (usec) / SECS); else if (usec >= MILS) snprintf (size, 11, "%.2f ms", (double) (usec) / MILS); else snprintf (size, 11, "%.2f us", (double) (usec)); return size; } /* Convert the given int to a string with the ability to add some * padding. * * On success, the given number as a string is returned. */ char * int2str (int d, int width) { char *s = xmalloc (snprintf (NULL, 0, "%*d", width, d) + 1); sprintf (s, "%*d", width, d); return s; } /* Convert the given uint32_t to a string with the ability to add some * padding. * * On success, the given number as a string is returned. */ char * u322str (uint32_t d, int width) { char *s = xmalloc (snprintf (NULL, 0, "%*u", width, d) + 1); sprintf (s, "%*u", width, d); return s; } /* Convert the given uint64_t to a string with the ability to add some * padding. * * On success, the given number as a string is returned. */ char * u642str (uint64_t d, int width) { char *s = xmalloc (snprintf (NULL, 0, "%*" PRIu64, width, d) + 1); sprintf (s, "%*" PRIu64, width, d); return s; } /* Decodes the given URL-encoded string. * * On success, the decoded string is assigned to the output buffer. */ #define B16TOD(x) (((x) >= '0' && (x) <= '9') ? ((x) - '0') : (toupper((unsigned char) (x)) - 'A' + 10)) void decode_hex (char *url, char *out, int decode_plus) { char *ptr; const char *c; for (c = url, ptr = out; *c; c++) { if (*c != '%' || !isxdigit ((unsigned char) c[1]) || !isxdigit ((unsigned char) c[2])) { if (decode_plus && *c == '+') { *ptr++ = ' '; } else { *ptr++ = *c; } } else { *ptr++ = (char) ((B16TOD (c[1]) * 16) + (B16TOD (c[2]))); c += 2; } } *ptr = 0; } /* Convert the given float to a string with the ability to add some * padding. * * On success, the given number as a string is returned. */ char * float2str (float d, int width) { char *s = xmalloc (snprintf (NULL, 0, "%*.2f", width, d) + 1); sprintf (s, "%*.2f", width, d); return s; } int ptr2int (char *ptr) { char *sEnd = NULL; int value = -1; value = strtol (ptr, &sEnd, 10); if (ptr == sEnd || *sEnd != '\0' || errno == ERANGE) { LOG_DEBUG (("Invalid parse of integer value from pointer. \n")); return -1; } return value; } int str2int (const char *date) { char *sEnd = NULL; int d = strtol (date, &sEnd, 10); if (date == sEnd || *sEnd != '\0' || errno == ERANGE) return -1; return d; } /* Determine the length of an integer (number of digits). * * On success, the length of the number is returned. */ int intlen (uint64_t num) { int l = 1; while (num > 9) { l++; num /= 10; } return l; } /* Allocate a new string and fill it with the given character. * * On success, the newly allocated string is returned. */ char * char_repeat (int n, char c) { char *dest = xmalloc (n + 1); memset (dest, c, n); dest[n] = '\0'; return dest; } /* Replace all occurrences of the given char with the replacement * char. * * On error the original string is returned. * On success, a string with the replaced values is returned. */ char * char_replace (char *str, char o, char n) { char *p = str; if (str == NULL || *str == '\0') return str; while ((p = strchr (p, o)) != NULL) *p++ = n; return str; } /* Remove all occurrences of a new line. * * On success, a string with the replaced new lines is returned. */ void strip_newlines (char *str) { char *src, *dst; for (src = dst = str; *src != '\0'; src++) { *dst = *src; if (*dst != '\r' && *dst != '\n') dst++; } *dst = '\0'; } /* Strip blanks from a string. * * On success, a string without whitespace is returned. */ char * deblank (char *str) { char *out = str, *put = str; for (; *str != '\0'; ++str) { if (*str != ' ') *put++ = *str; } *put = '\0'; return out; } /* Make a string uppercase. * * On error the original string is returned. * On success, the uppercased string is returned. */ char * strtoupper (char *str) { char *p = str; if (str == NULL || *str == '\0') return str; while (*p != '\0') { *p = toupper ((unsigned char) *p); p++; } return str; } /* Left-pad a string with n amount of spaces. * * On success, a left-padded string is returned. */ char * left_pad_str (const char *s, int indent) { char *buf = NULL; indent = strlen (s) + indent; buf = xmalloc (snprintf (NULL, 0, "%*s", indent, s) + 1); sprintf (buf, "%*s", indent, s); return buf; } /* Append the source string to destination and reallocates and * updating the destination buffer appropriately. */ size_t append_str (char **dest, const char *src) { size_t curlen = strlen (*dest); size_t srclen = strlen (src); size_t newlen = curlen + srclen; char *str = xrealloc (*dest, newlen + 1); memcpy (str + curlen, src, srclen + 1); *dest = str; return newlen; } /* Escapes the special characters, e.g., '\n', '\r', '\t', '\' * in the string source by inserting a '\' before them. * * On error NULL is returned. * On success the escaped string is returned */ char * escape_str (const char *src) { char *dest, *q; const unsigned char *p; if (src == NULL || *src == '\0') return NULL; p = (const unsigned char *) src; q = dest = xmalloc (strlen (src) * 4 + 1); while (*p) { switch (*p) { case '\\': *q++ = '\\'; *q++ = '\\'; break; case '\n': *q++ = '\\'; *q++ = 'n'; break; case '\r': *q++ = '\\'; *q++ = 'r'; break; case '\t': *q++ = '\\'; *q++ = 't'; break; default: /* not ASCII */ if ((*p < ' ') || (*p >= 0177)) { *q++ = '\\'; *q++ = '0' + (((*p) >> 6) & 07); *q++ = '0' + (((*p) >> 3) & 07); *q++ = '0' + ((*p) & 07); } else *q++ = *p; break; } p++; } *q = 0; return dest; } /* Get an unescaped malloc'd string * * On error NULL is returned. * On success the unescaped string is returned */ char * unescape_str (const char *src) { char *dest, *q; const char *p = src; if (src == NULL || *src == '\0') return NULL; dest = xmalloc (strlen (src) + 1); q = dest; while (*p) { if (*p == '\\') { p++; switch (*p) { case '\0': /* warning... */ goto out; case 'n': *q++ = '\n'; break; case 'r': *q++ = '\r'; break; case 't': *q++ = '\t'; break; default: *q++ = *p; break; } } else *q++ = *p; p++; } out: *q = 0; return dest; } int is_writable_path (const char *path) { char *copy = NULL, *dir_path = NULL; char dir_path_copy[PATH_MAX] = { 0 }; int result = 0; if (path == NULL) { fprintf (stderr, "Path is NULL\n"); return 0; } /* Make a copy of the path because dirname might modify it */ copy = strdup (path); if (copy == NULL) { fprintf (stderr, "Memory allocation failed\n"); return 0; } /* Get the directory part of the path */ dir_path = dirname (copy); snprintf (dir_path_copy, sizeof (dir_path_copy), "%s", dir_path); /* Check if the directory is writable */ result = access (dir_path, W_OK); free (copy); if (result == 0) { /* Directory exists and is writable */ return 1; } switch (errno) { case ENOENT: fprintf (stderr, "Directory does not exist: %s\n", dir_path_copy); break; case EACCES: fprintf (stderr, "No write permission for directory: %s\n", dir_path_copy); break; case EROFS: fprintf (stderr, "Directory is on a read-only file system: %s\n", dir_path_copy); break; default: fprintf (stderr, "Unknown error (errno %d) for directory: %s\n", errno, dir_path_copy); break; } return 0; } ================================================ FILE: src/util.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef UTIL_H_INCLUDED #define UTIL_H_INCLUDED #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #define REGEX_ERROR 100 #define KIB(n) (n << 10) #define MIB(n) (n << 20) #define GIB(n) (n << 30) #define TIB(n) (n << 40) #define PIB(n) (n << 50) #define MILS 1000ULL #define SECS 1000000ULL #define MINS 60000000ULL #define HOUR 3600000000ULL #define DAY 86400000000ULL #define TZ_NAME_LEN 48 #define RAND_FN 7 + 1 /* Convenient macros */ #define MIN(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a < _b ? _a : _b; }) #define MAX(a,b) (((a)>(b))?(a):(b)) /* *INDENT-OFF* */ #include #include #include char *alloc_string (const char *str); char *char_repeat (int n, char c); char *char_replace (char *str, char o, char n); char *deblank (char *str); char *escape_str (const char *src); char *filesize_str (unsigned long long log_size); char *float2str (float d, int width); char *get_global_config (void); char *get_user_config (void); char *get_visitors_date (const char *odate, const char *from, const char *to); char *int2str (int d, int width); char *left_pad_str (const char *s, int indent); char *ltrim (char *s); char *regex_extract_string (const char *str, const char *regex, int max_groups, char const **err); char *rtrim (char *s); char *strtoupper (char *str); char *substring (const char *str, int begin, int len); char *trim_str (char *str); char *u322str (uint32_t d, int width); char *u642str (uint64_t d, int width); char *unescape_str (const char *src); char *usecs_to_str (unsigned long long usec); const char *verify_status_code (int code); const char *verify_status_code_type (int code); const char *basename_only (const char *path); int convert_date (char *res, const char *data, const char *from, const char *to, int size); int count_matches (const char *s1, char c); int find_output_type (char **filename, const char *ext, int alloc); int hide_referer (const char *host); int ignore_referer (const char *host); int intlen (uint64_t num); int invalid_ipaddr (const char *str, int *ipvx); int ip_in_range (const char *ip); int is_valid_http_status (int code); int is_writable_path (const char *path); int ptr2int (char *ptr); int str2int (const char *date); int str_inarray (const char *s, const char *arr[], int size); int str_to_time (const char *str, const char *fmt, struct tm *tm, int tz); int valid_output_type (const char *filename); off_t file_size (const char *filename); size_t append_str (char **dest, const char *src); uint32_t djb2 (const unsigned char *str); uint64_t u64encode (uint32_t x, uint32_t y); void decode_hex(char *url, char *out, int decode_plus); void genstr (char *dest, size_t len); void set_tz (void); void strip_newlines (char *str); void u64decode (uint64_t n, uint32_t * x, uint32_t * y); void xstrncpy (char *dest, const char *source, const size_t dest_size); /* *INDENT-ON* */ #endif ================================================ FILE: src/websocket.c ================================================ /** * websocket.c -- An rfc6455-complaint Web Socket Server * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if HAVE_CONFIG_H #include #endif #include "websocket.h" #include "base64.h" #include "error.h" #include "gslist.h" #include "sha1.h" #include "util.h" #include "xmalloc.h" /* *INDENT-OFF* */ /* UTF-8 Decoder */ /* Copyright (c) 2008-2009 Bjoern Hoehrmann * See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details. */ #define UTF8_VALID 0 #define UTF8_INVAL 1 static const uint8_t utf8d[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 00..1f */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 20..3f */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40..5f */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 60..7f */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, /* 80..9f */ 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, /* a0..bf */ 8,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, /* c0..df */ 0xa,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x4,0x3,0x3, /* e0..ef */ 0xb,0x6,0x6,0x6,0x5,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8, /* f0..ff */ 0x0,0x1,0x2,0x3,0x5,0x8,0x7,0x1,0x1,0x1,0x4,0x6,0x1,0x1,0x1,0x1, /* s0..s0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,1, /* s1..s2 */ 1,2,1,1,1,1,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1, /* s3..s4 */ 1,2,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,3,1,1,1,1,1,1, /* s5..s6 */ 1,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* s7..s8 */ }; /* *INDENT-ON* */ static struct pollfd *fdstate = NULL; static nfds_t nfdstate = 0; static WSConfig wsconfig = { 0 }; static void handle_read_close (int *conn, WSClient * client, WSServer * server); static void handle_reads (int *conn, WSServer * server); static void handle_writes (int *conn, WSServer * server); #ifdef HAVE_LIBSSL static int shutdown_ssl (WSClient * client); #endif /* Determine if the given string is valid UTF-8. * * The state after the by has been processed is returned. */ static uint32_t verify_utf8 (uint32_t *state, const char *str, int len) { int i; uint32_t type; for (i = 0; i < len; ++i) { type = utf8d[(uint8_t) str[i]]; *state = utf8d[256 + (*state) * 16 + type]; if (*state == UTF8_INVAL) break; } return *state; } /* Decode a character maintaining state and a byte, and returns the * state achieved after processing the byte. * * The state after the by has been processed is returned. */ static uint32_t utf8_decode (uint32_t *state, uint32_t *p, uint32_t b) { uint32_t type = utf8d[(uint8_t) b]; *p = (*state != UTF8_VALID) ? (b & 0x3fu) | (*p << 6) : (0xff >> type) & (b); *state = utf8d[256 + *state * 16 + type]; return *state; } /* Replace malformed sequences with a substitute character. * * On success, it replaces the whole sequence and return a malloc'd buffer. */ static char * sanitize_utf8 (const char *str, int len) { char *buf = NULL; uint32_t state = UTF8_VALID, prev = UTF8_VALID, cp = 0; int i = 0, j = 0, k = 0, l = 0; buf = xcalloc (len + 1, sizeof (char)); for (; i < len; prev = state, ++i) { switch (utf8_decode (&state, &cp, (unsigned char) str[i])) { case UTF8_INVAL: /* replace the whole sequence */ if (k) { for (l = i - k; l < i; ++l) buf[j++] = '?'; } else { buf[j++] = '?'; } state = UTF8_VALID; if (prev != UTF8_VALID) i--; k = 0; break; case UTF8_VALID: /* fill i - k valid continuation bytes */ if (k) for (l = i - k; l < i; ++l) buf[j++] = str[l]; buf[j++] = str[i]; k = 0; break; default: /* UTF8_VALID + continuation bytes */ k++; break; } } return buf; } /* find a pollfd structure based on fd * this should only be called by set_pollfd and unset_pollfd * because the position in memory may change */ static struct pollfd * get_pollfd (int fd) { struct pollfd *pfd, *efd = fdstate + nfdstate; for (pfd = fdstate; pfd < efd; pfd++) { if (pfd->fd == fd) return pfd; } return NULL; } /* set flags for an existing pollfd structure based on fd, * otherwise malloc a new one */ static void set_pollfd (int fd, short flags) { struct pollfd *pfd; if (fd == -1) FATAL ("Cannot poll an invalid fd"); pfd = get_pollfd (fd); if (pfd == NULL) { struct pollfd *newstate = xrealloc (fdstate, sizeof (*pfd) * (nfdstate + 1)); fdstate = newstate; pfd = fdstate + nfdstate++; pfd->fd = fd; } pfd->events = flags; pfd->revents = 0; } /* free a pollfd structure based on fd */ static void unset_pollfd (int fd) { struct pollfd *pfd = get_pollfd (fd), *efd; struct pollfd *newstate; if (pfd == NULL) return; nfdstate--; /* avoid undefined behaviour with realloc with a size of zero */ if (nfdstate == 0) { free (fdstate); fdstate = NULL; return; } efd = fdstate + nfdstate; if (pfd != efd) memmove (pfd, pfd + 1, (char *) efd - (char *) pfd); /* realloc could fail, but that's ok, we don't mind. */ newstate = realloc (fdstate, sizeof (*pfd) * nfdstate); if (newstate != NULL) fdstate = newstate; } /* Allocate memory for a websocket server */ static WSServer * new_wsserver (void) { WSServer *server = xcalloc (1, sizeof (WSServer)); return server; } /* Allocate memory for a websocket client */ static WSClient * new_wsclient (void) { WSClient *client = xcalloc (1, sizeof (WSClient)); client->status = WS_OK; return client; } /* Allocate memory for a websocket header */ static WSHeaders * new_wsheader (void) { WSHeaders *headers = xcalloc (1, sizeof (WSHeaders)); memset (headers->buf, 0, sizeof (headers->buf)); headers->reading = 1; return headers; } /* Allocate memory for a websocket frame */ static WSFrame * new_wsframe (void) { WSFrame *frame = xcalloc (1, sizeof (WSFrame)); memset (frame->buf, 0, sizeof (frame->buf)); frame->reading = 1; return frame; } /* Allocate memory for a websocket message */ static WSMessage * new_wsmessage (void) { WSMessage *msg = xcalloc (1, sizeof (WSMessage)); return msg; } /* Allocate memory for a websocket pipeout */ static WSPipeOut * new_wspipeout (void) { WSPipeOut *pipeout = xcalloc (1, sizeof (WSPipeOut)); pipeout->fd = -1; return pipeout; } /* Allocate memory for a websocket pipein */ static WSPipeIn * new_wspipein (void) { WSPipeIn *pipein = xcalloc (1, sizeof (WSPipeIn)); pipein->fd = -1; return pipein; } /* Escapes the special characters, e.g., '\n', '\r', '\t', '\' * in the string source by inserting a '\' before them. * * On error NULL is returned. * On success the escaped string is returned */ static char * escape_http_request (const char *src) { char *dest, *q; const unsigned char *p; if (src == NULL || *src == '\0') return NULL; p = (const unsigned char *) src; q = dest = xmalloc (strlen (src) * 4 + 1); while (*p) { switch (*p) { case '\\': *q++ = '\\'; *q++ = '\\'; break; case '\n': *q++ = '\\'; *q++ = 'n'; break; case '\r': *q++ = '\\'; *q++ = 'r'; break; case '\t': *q++ = '\\'; *q++ = 't'; break; case '"': *q++ = '\\'; *q++ = '"'; break; default: if ((*p < ' ') || (*p >= 0177)) { /* not ASCII */ } else { *q++ = *p; } break; } p++; } *q = 0; return dest; } /* Chop n characters from the beginning of the supplied buffer. * * The new length of the string is returned. */ static size_t chop_nchars (char *str, size_t n, size_t len) { if (n == 0 || str == 0) return 0; if (n > len) n = len; memmove (str, str + n, len - n); return (len - n); } /* Match a client given a socket id and an item from the list. * * On match, 1 is returned, else 0. */ static int ws_find_client_sock_in_list (void *data, void *needle) { WSClient *client = data; return client->listener == (*(int *) needle); } /* Find a client given a socket id. * * On success, an instance of a GSLList node is returned, else NULL. */ static GSLList * ws_get_list_node_from_list (int listener, GSLList **colist) { GSLList *match = NULL; /* Find the client data for the socket in use */ if (!(match = list_find (*colist, ws_find_client_sock_in_list, &listener))) return NULL; return match; } /* Find a client given a socket id. * * On success, an instance of a WSClient is returned, else NULL. */ static WSClient * ws_get_client_from_list (int listener, GSLList **colist) { GSLList *match = NULL; /* Find the client data for the socket in use */ if (!(match = list_find (*colist, ws_find_client_sock_in_list, &listener))) return NULL; return (WSClient *) match->data; } /* Free a frame structure and its data for the given client. */ static void ws_free_frame (WSClient *client) { if (client->frame) free (client->frame); client->frame = NULL; } /* Free a message structure and its data for the given client. */ static void ws_free_message (WSClient *client) { if (client->message && client->message->payload) free (client->message->payload); if (client->message) free (client->message); client->message = NULL; } /* Free all HTTP handshake headers data for the given client. */ static void ws_free_header_fields (WSHeaders *headers) { if (headers->connection) free (headers->connection); if (headers->host) free (headers->host); if (headers->agent) free (headers->agent); if (headers->method) free (headers->method); if (headers->origin) free (headers->origin); if (headers->path) free (headers->path); if (headers->protocol) free (headers->protocol); if (headers->jwt) free (headers->jwt); if (headers->upgrade) free (headers->upgrade); if (headers->ws_accept) free (headers->ws_accept); if (headers->ws_key) free (headers->ws_key); if (headers->ws_protocol) free (headers->ws_protocol); if (headers->ws_resp) free (headers->ws_resp); if (headers->ws_sock_ver) free (headers->ws_sock_ver); if (headers->referer) free (headers->referer); } /* A wrapper to close a socket. */ static void ws_close (int listener) { unset_pollfd (listener); close (listener); } /* Clear the client's sent queue and its data. */ static void ws_clear_queue (WSClient *client) { WSQueue **queue = &client->sockqueue; if (!(*queue)) return; if ((*queue)->queued) free ((*queue)->queued); (*queue)->queued = NULL; (*queue)->qlen = 0; free ((*queue)); (*queue) = NULL; /* done sending the whole queue, stop throttling */ client->status &= ~WS_THROTTLING; /* done sending, close connection if set to close */ if ((client->status & WS_CLOSE) && (client->status & WS_SENDING)) client->status = WS_CLOSE; } /* Free all HTTP handshake headers and structure. */ static void ws_clear_handshake_headers (WSHeaders *headers) { ws_free_header_fields (headers); free (headers); } /* Remove the given client from the list. */ static void ws_remove_client_from_list (WSClient *client, WSServer *server) { GSLList *node = NULL; if (!(node = ws_get_list_node_from_list (client->listener, &server->colist))) return; if (client->headers) ws_clear_handshake_headers (client->headers); list_remove_node (&server->colist, node); } #if HAVE_LIBSSL /* Attempt to send the TLS/SSL "close notify" shutdown and and removes * the SSL structure pointed to by ssl and frees up the allocated * memory. */ static void ws_shutdown_dangling_clients (WSClient *client) { shutdown_ssl (client); SSL_free (client->ssl); client->ssl = NULL; } /* Attempt to remove the SSL_CTX object pointed to by ctx and frees up * the allocated memory and cleans some more generally used TLS/SSL * memory. */ static void ws_ssl_cleanup (WSServer *server) { if (!wsconfig.use_ssl) return; if (server->ctx) SSL_CTX_free (server->ctx); CRYPTO_cleanup_all_ex_data (); CRYPTO_set_id_callback (NULL); CRYPTO_set_locking_callback (NULL); ERR_free_strings (); #if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_remove_state (0); #endif EVP_cleanup (); } #endif /* Remove all clients that are still hanging out. */ static int ws_remove_dangling_clients (void *value, void *user_data) { WSClient *client = value; (void) (user_data); if (client == NULL) return 1; if (client->headers) ws_clear_handshake_headers (client->headers); if (client->sockqueue) ws_clear_queue (client); #ifdef HAVE_LIBSSL if (client->ssl) ws_shutdown_dangling_clients (client); #endif return 0; } /* Do some housekeeping on the named pipe data packet. */ static void ws_clear_fifo_packet (WSPacket *packet) { if (!packet) return; if (packet->data) free (packet->data); free (packet); } /* Do some housekeeping on the named pipe. */ static void ws_clear_pipein (WSPipeIn *pipein) { WSPacket **packet = &pipein->packet; if (!pipein) return; if (pipein->fd != -1) ws_close (pipein->fd); ws_clear_fifo_packet (*packet); free (pipein); if (wsconfig.pipein && access (wsconfig.pipein, F_OK) != -1) unlink (wsconfig.pipein); } /* Do some housekeeping on the named pipe. */ static void ws_clear_pipeout (WSPipeOut *pipeout) { if (!pipeout) return; if (pipeout->fd != -1) ws_close (pipeout->fd); free (pipeout); if (wsconfig.pipeout && access (wsconfig.pipeout, F_OK) != -1) unlink (wsconfig.pipeout); } /* Stop the server and do some cleaning. */ void ws_stop (WSServer *server) { WSPipeIn **pipein = &server->pipein; WSPipeOut **pipeout = &server->pipeout; ws_clear_pipein (*pipein); ws_clear_pipeout (*pipeout); /* close access log (if any) */ if (wsconfig.accesslog) access_log_close (); /* remove dangling clients */ if (list_count (server->colist) > 0) list_foreach (server->colist, ws_remove_dangling_clients, NULL); if (server->colist) list_remove_nodes (server->colist); #ifdef HAVE_LIBSSL ws_ssl_cleanup (server); #endif free (server); free (fdstate); fdstate = NULL; } /* Set the connection status for the given client and return the given * bytes. * * The given number of bytes are returned. */ static int ws_set_status (WSClient *client, WSStatus status, int bytes) { client->status = status; return bytes; } /* Append the source string to destination and reallocates and * updating the destination buffer appropriately. */ static void ws_append_str (char **dest, const char *src) { size_t curlen = strlen (*dest); size_t srclen = strlen (src); size_t newlen = curlen + srclen; char *str = xrealloc (*dest, newlen + 1); memcpy (str + curlen, src, srclen + 1); *dest = str; } #if HAVE_LIBSSL /* Create a new SSL_CTX object as framework to establish TLS/SSL * enabled connections. * * On error 1 is returned. * On success, SSL_CTX object is malloc'd and 0 is returned. */ static int initialize_ssl_ctx (WSServer *server) { int ret = 1; SSL_CTX *ctx = NULL; #if OPENSSL_VERSION_NUMBER < 0x10100000L SSL_library_init (); SSL_load_error_strings (); #endif /* Ciphers and message digests */ OpenSSL_add_ssl_algorithms (); /* ssl context */ #if OPENSSL_VERSION_NUMBER < 0x10100000L if (!(ctx = SSL_CTX_new (SSLv23_server_method ()))) #else if (!(ctx = SSL_CTX_new (TLS_server_method ()))) #endif goto out; /* set certificate */ if (!SSL_CTX_use_certificate_file (ctx, wsconfig.sslcert, SSL_FILETYPE_PEM)) goto out; /* ssl private key */ if (!SSL_CTX_use_PrivateKey_file (ctx, wsconfig.sslkey, SSL_FILETYPE_PEM)) goto out; if (!SSL_CTX_check_private_key (ctx)) goto out; /* since we queued up the send data, a retry won't be the same buffer, * thus we need the following flags */ SSL_CTX_set_mode (ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_ENABLE_PARTIAL_WRITE); server->ctx = ctx; ret = 0; out: if (ret) { SSL_CTX_free (ctx); LOG (("Error: %s\n", ERR_error_string (ERR_get_error (), NULL))); } return ret; } /* Log result code for TLS/SSL I/O operation */ static void log_return_message (int ret, int err, const char *fn) { unsigned long e; switch (err) { case SSL_ERROR_NONE: LOG (("SSL: %s -> SSL_ERROR_NONE\n", fn)); LOG (("SSL: TLS/SSL I/O operation completed\n")); break; case SSL_ERROR_WANT_READ: LOG (("SSL: %s -> SSL_ERROR_WANT_READ\n", fn)); LOG (("SSL: incomplete, data available for reading\n")); break; case SSL_ERROR_WANT_WRITE: LOG (("SSL: %s -> SSL_ERROR_WANT_WRITE\n", fn)); LOG (("SSL: incomplete, data available for writing\n")); break; case SSL_ERROR_ZERO_RETURN: LOG (("SSL: %s -> SSL_ERROR_ZERO_RETURN\n", fn)); LOG (("SSL: TLS/SSL connection has been closed\n")); break; case SSL_ERROR_WANT_X509_LOOKUP: LOG (("SSL: %s -> SSL_ERROR_WANT_X509_LOOKUP\n", fn)); break; case SSL_ERROR_SYSCALL: LOG (("SSL: %s -> SSL_ERROR_SYSCALL\n", fn)); e = ERR_get_error (); if (e > 0) LOG (("SSL: %s -> %s\n", fn, ERR_error_string (e, NULL))); /* call was not successful because a fatal error occurred either at the * protocol level or a connection failure occurred. */ if (ret != 0) { LOG (("SSL bogus handshake interrupt: %s\n", strerror (errno))); break; } /* call not yet finished. */ LOG (("SSL: handshake interrupted, got EOF\n")); if (errno == EINTR || errno == EWOULDBLOCK || errno == EAGAIN) LOG (("SSL: %s -> not yet finished %s\n", fn, strerror (errno))); break; default: LOG (("SSL: %s -> failed fatal error code: %d\n", fn, err)); LOG (("SSL: %s\n", ERR_error_string (ERR_get_error (), NULL))); break; } } /* Shut down the client's TLS/SSL connection * * On fatal error, 1 is returned. * If data still needs to be read/written, -1 is returned. * On success, the TLS/SSL connection is closed and 0 is returned */ static int shutdown_ssl (WSClient *client) { int ret = -1, err = 0; /* all good */ if ((ret = SSL_shutdown (client->ssl)) > 0) return ws_set_status (client, WS_CLOSE, 0); err = SSL_get_error (client->ssl, ret); log_return_message (ret, err, "SSL_shutdown"); switch (err) { case SSL_ERROR_WANT_READ: case SSL_ERROR_WANT_WRITE: client->sslstatus = WS_TLS_SHUTTING; break; case SSL_ERROR_SYSCALL: if (ret == 0) { LOG (("SSL: SSL_shutdown, connection unexpectedly closed by peer.\n")); /* The shutdown is not yet finished. */ if (errno == EINTR || errno == EWOULDBLOCK || errno == EAGAIN) client->sslstatus = WS_TLS_SHUTTING; break; } LOG (("SSL: SSL_shutdown, probably unrecoverable, forcing close.\n")); /* FALLTHRU */ case SSL_ERROR_ZERO_RETURN: case SSL_ERROR_WANT_X509_LOOKUP: default: return ws_set_status (client, WS_ERR | WS_CLOSE, 1); } return ret; } /* Wait for a TLS/SSL client to initiate a TLS/SSL handshake * * On fatal error, the connection is shut down. * If data still needs to be read/written, -1 is returned. * On success, the TLS/SSL connection is completed and 0 is returned */ static int accept_ssl (WSClient *client) { int ret = -1, err = 0; /* all good on TLS handshake */ if ((ret = SSL_accept (client->ssl)) > 0) { client->sslstatus &= ~WS_TLS_ACCEPTING; return 0; } err = SSL_get_error (client->ssl, ret); log_return_message (ret, err, "SSL_accept"); switch (err) { case SSL_ERROR_WANT_READ: case SSL_ERROR_WANT_WRITE: client->sslstatus = WS_TLS_ACCEPTING; break; case SSL_ERROR_SYSCALL: /* Wait for more activity else bail out, for instance if the socket is closed * during the handshake. */ if (ret < 0 && (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR)) { client->sslstatus = WS_TLS_ACCEPTING; break; } /* The peer notified that it is shutting down through a SSL "close_notify" so * we shutdown too */ /* FALLTHRU */ case SSL_ERROR_ZERO_RETURN: case SSL_ERROR_WANT_X509_LOOKUP: default: client->sslstatus &= ~WS_TLS_ACCEPTING; return ws_set_status (client, WS_ERR | WS_CLOSE, 1); } return ret; } /* Create a new SSL structure for a connection and perform handshake */ static void handle_accept_ssl (WSClient *client, WSServer *server) { /* attempt to create SSL connection if we don't have one yet */ if (!client->ssl) { if (!(client->ssl = SSL_new (server->ctx))) { LOG (("SSL: SSL_new, new SSL structure failed.\n")); return; } if (!SSL_set_fd (client->ssl, client->listener)) { LOG (("SSL: unable to set file descriptor\n")); return; } } /* attempt to initiate the TLS/SSL handshake */ if (accept_ssl (client) == 0) { LOG (("SSL Accepted: %d %s\n", client->listener, client->remote_ip)); } } /* Given the current status of the SSL buffer, perform that action. * * On error or if no SSL pending status, 1 is returned. * On success, the TLS/SSL pending action is called and 0 is returned */ static int handle_ssl_pending_rw (int *conn, WSServer *server, WSClient *client) { if (!wsconfig.use_ssl) return 1; /* trying to write but still waiting for a successful SSL_accept */ if (client->sslstatus & WS_TLS_ACCEPTING) { handle_accept_ssl (client, server); return 0; } /* trying to read but still waiting for a successful SSL_read */ if (client->sslstatus & WS_TLS_READING) { handle_reads (conn, server); return 0; } /* trying to write but still waiting for a successful SSL_write */ if (client->sslstatus & WS_TLS_WRITING) { handle_writes (conn, server); return 0; } /* trying to write but still waiting for a successful SSL_shutdown */ if (client->sslstatus & WS_TLS_SHUTTING) { if (shutdown_ssl (client) == 0) handle_read_close (conn, client, server); return 0; } return 1; } /* Write bytes to a TLS/SSL connection for a given client. * * On error or if no write is performed <=0 is returned. * On success, the number of bytes actually written to the TLS/SSL * connection are returned */ static int send_ssl_buffer (WSClient *client, const char *buffer, int len) { int bytes = 0, err = 0; #if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_clear_error (); #endif if ((bytes = SSL_write (client->ssl, buffer, len)) > 0) return bytes; err = SSL_get_error (client->ssl, bytes); log_return_message (bytes, err, "SSL_write"); switch (err) { case SSL_ERROR_WANT_WRITE: break; case SSL_ERROR_WANT_READ: client->sslstatus = WS_TLS_WRITING; break; case SSL_ERROR_SYSCALL: if ((bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR))) break; /* The connection was shut down cleanly */ /* FALLTHRU */ case SSL_ERROR_ZERO_RETURN: case SSL_ERROR_WANT_X509_LOOKUP: default: return ws_set_status (client, WS_ERR | WS_CLOSE, -1); } return bytes; } /* Read data from the given client's socket and set a connection * status given the output of recv(). * * On error, -1 is returned and the connection status is set. * On success, the number of bytes read is returned. */ static int read_ssl_socket (WSClient *client, char *buffer, int size) { int bytes = 0, done = 0, err = 0; do { #if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_clear_error (); #endif done = 0; if ((bytes = SSL_read (client->ssl, buffer, size)) > 0) break; err = SSL_get_error (client->ssl, bytes); log_return_message (bytes, err, "SSL_read"); switch (err) { case SSL_ERROR_WANT_WRITE: client->sslstatus = WS_TLS_READING; done = 1; break; case SSL_ERROR_WANT_READ: done = 1; break; case SSL_ERROR_SYSCALL: if ((bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR))) break; /* FALLTHRU */ case SSL_ERROR_ZERO_RETURN: case SSL_ERROR_WANT_X509_LOOKUP: default: return ws_set_status (client, WS_ERR | WS_CLOSE, -1); } } while (SSL_pending (client->ssl) && !done); return bytes; } #endif /* Get sockaddr, either IPv4 or IPv6 */ static void * ws_get_raddr (struct sockaddr *sa) { if (sa->sa_family == AF_INET) return &(((struct sockaddr_in *) (void *) sa)->sin_addr); return &(((struct sockaddr_in6 *) (void *) sa)->sin6_addr); } /* Set the given file descriptor as NON BLOCKING. */ void set_nonblocking (int sock) { if (fcntl (sock, F_SETFL, fcntl (sock, F_GETFL, 0) | O_NONBLOCK) == -1) FATAL ("Unable to set socket as non-blocking: %s.", strerror (errno)); } /* Accept a new connection on a socket and add it to the list of * current connected clients. * * The newly assigned socket is returned. */ static int accept_client (int listener, GSLList **colist) { WSClient *client; struct sockaddr_storage raddr; int newfd; const void *src = NULL; socklen_t alen; alen = sizeof (raddr); if ((newfd = accept (listener, (struct sockaddr *) &raddr, &alen)) == -1) FATAL ("Unable to set accept: %s.", strerror (errno)); if (newfd == -1) { LOG (("Unable to accept: %s.", strerror (errno))); return newfd; } src = ws_get_raddr ((struct sockaddr *) &raddr); /* malloc a new client */ client = new_wsclient (); client->listener = newfd; inet_ntop (raddr.ss_family, src, client->remote_ip, INET6_ADDRSTRLEN); /* add up our new client to keep track of */ if (*colist == NULL) *colist = list_create (client); else *colist = list_insert_prepend (*colist, client); /* make the socket non-blocking */ set_nonblocking (client->listener); /* poll for the socket */ set_pollfd (client->listener, POLLIN); return newfd; } /* Extract the HTTP method. * * On error, or if not found, NULL is returned. * On success, the HTTP method is returned. */ static const char * ws_get_method (const char *token) { const char *lookfor = NULL; if ((lookfor = "GET", !memcmp (token, "GET ", 4)) || (lookfor = "get", !memcmp (token, "get ", 4))) return lookfor; return NULL; } /* Parse a request containing the method and protocol. * * On error, or unable to parse, NULL is returned. * On success, the HTTP request is returned and the method and * protocol are assigned to the corresponding buffers. */ static char * ws_parse_request (char *line, char **method, char **protocol) { const char *meth; char *req = NULL, *request = NULL, *proto = NULL; ptrdiff_t rlen; if ((meth = ws_get_method (line)) == NULL) { return NULL; } else { req = line + strlen (meth); if ((proto = strstr (line, " HTTP/1.0")) == NULL && (proto = strstr (line, " HTTP/1.1")) == NULL) return NULL; req++; if ((rlen = proto - req) <= 0) return NULL; request = xmalloc (rlen + 1); strncpy (request, req, rlen); request[rlen] = 0; (*method) = strtoupper (xstrdup (meth)); (*protocol) = strtoupper (xstrdup (++proto)); } return request; } /* Given a pair of key/values, assign it to our HTTP headers * structure. */ static void ws_set_header_key_value (WSHeaders *headers, char *key, char *value) { if (strcasecmp ("Host", key) == 0) headers->host = xstrdup (value); else if (strcasecmp ("Origin", key) == 0) headers->origin = xstrdup (value); else if (strcasecmp ("Upgrade", key) == 0) headers->upgrade = xstrdup (value); else if (strcasecmp ("Connection", key) == 0) headers->connection = xstrdup (value); else if (strcasecmp ("Sec-WebSocket-Protocol", key) == 0) headers->ws_protocol = xstrdup (value); else if (strcasecmp ("Sec-WebSocket-Key", key) == 0) headers->ws_key = xstrdup (value); else if (strcasecmp ("Sec-WebSocket-Version", key) == 0) headers->ws_sock_ver = xstrdup (value); else if (strcasecmp ("User-Agent", key) == 0) headers->agent = xstrdup (value); else if (strcasecmp ("Referer", key) == 0) headers->referer = xstrdup (value); } /* Verify that the given HTTP headers were passed upon doing the * websocket handshake. * * On error, or header missing, 1 is returned. * On success, 0 is returned. */ static int ws_verify_req_headers (WSHeaders *headers) { if (!headers->host) return 1; if (!headers->method) return 1; if (!headers->protocol) return 1; if (!headers->path) return 1; if (wsconfig.origin && !headers->origin) return 1; if (wsconfig.origin && strcasecmp (wsconfig.origin, headers->origin) != 0) return 1; if (!headers->connection) return 1; if (!headers->ws_key) return 1; if (!headers->ws_sock_ver) return 1; return 0; } /* Extract JWT token from query string */ static char * ws_extract_jwt_token (char *path) { char decoded_token[8192] = { 0 }; // Adjust size as needed char *query = NULL, *tokenParam = NULL, *end = NULL; if (!path) return NULL; // Look for a query string in the path query = strchr (path, '?'); if (!query) return NULL; query++; // Skip the '?' // Look for the token parameter tokenParam = strstr (query, "token="); if (!tokenParam) return NULL; tokenParam += strlen ("token="); // Move pointer past "token=" // Decode the token decode_hex (tokenParam, decoded_token, 1); // Find the end of the token (next '&' or end of string) end = strpbrk (decoded_token, "& "); if (end) *end = '\0'; // Return a dynamically allocated copy of the decoded token return strdup (decoded_token); } /* From RFC2616, each header field consists of a name followed by a * colon (":") and the field value. Field names are case-insensitive. * The field value MAY be preceded by any amount of LWS, though a * single SP is preferred */ static int ws_set_header_fields (char *line, WSHeaders *headers) { char *path = NULL, *method = NULL, *proto = NULL; char *p = NULL, *value = NULL; if (line[0] == '\n' || line[0] == '\r') return 1; if ((strstr (line, "GET ")) || (strstr (line, "get "))) { if ((path = ws_parse_request (line, &method, &proto)) == NULL) return 1; headers->path = path; headers->method = method; headers->protocol = proto; /* Extract JWT token from path */ headers->jwt = ws_extract_jwt_token (path); return 0; } if ((p = strchr (line, ':')) == NULL) return 1; value = p + 1; while (p != line && isspace ((unsigned char) *(p - 1))) p--; if (p == line) return 1; *p = '\0'; if (strpbrk (line, " \t") != NULL) { *p = ' '; return 1; } while (isspace ((unsigned char) *value)) value++; ws_set_header_key_value (headers, line, value); return 0; } /* Parse the given HTTP headers and set the expected websocket * handshake. * * On error, or 1 is returned. * On success, 0 is returned. */ static int parse_headers (WSHeaders *headers) { char *tmp = NULL; const char *buffer = headers->buf; const char *line = buffer, *next = NULL; int len = 0; while (line) { if ((next = strstr (line, "\r\n")) != NULL) len = (next - line); else len = strlen (line); if (len <= 0) return 1; tmp = xmalloc (len + 1); memcpy (tmp, line, len); tmp[len] = '\0'; if (ws_set_header_fields (tmp, headers) == 1) { free (tmp); return 1; } free (tmp); line = next ? (next + 2) : NULL; if (next && strcmp (next, "\r\n\r\n") == 0) break; } return 0; } /* Set into a queue the data that couldn't be sent. */ static void ws_queue_sockbuf (WSClient *client, const char *buffer, int len, int bytes) { WSQueue *queue = xcalloc (1, sizeof (WSQueue)); if (bytes < 1) bytes = 0; queue->queued = xcalloc (len - bytes, sizeof (char)); memcpy (queue->queued, buffer + bytes, len - bytes); queue->qlen = len - bytes; client->sockqueue = queue; client->status |= WS_SENDING; set_pollfd (client->listener, POLLIN | POLLOUT); } /* Read data from the given client's socket and set a connection * status given the output of recv(). * * On error, -1 is returned and the connection status is set. * On success, the number of bytes read is returned. */ static int read_plain_socket (WSClient *client, char *buffer, int size) { int bytes = 0; bytes = recv (client->listener, buffer, size, 0); if (bytes == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) return ws_set_status (client, WS_READING, bytes); else if (bytes == -1 || bytes == 0) return ws_set_status (client, WS_ERR | WS_CLOSE, bytes); return bytes; } /* Read data from the given client's socket and set a connection * status given the output of recv(). * * On error, -1 is returned and the connection status is set. * On success, the number of bytes read is returned. */ static int read_socket (WSClient *client, char *buffer, int size) { #ifdef HAVE_LIBSSL if (wsconfig.use_ssl) return read_ssl_socket (client, buffer, size); else return read_plain_socket (client, buffer, size); #else return read_plain_socket (client, buffer, size); #endif } static int send_plain_buffer (WSClient *client, const char *buffer, int len) { return send (client->listener, buffer, len, 0); } static int send_buffer (WSClient *client, const char *buffer, int len) { #ifdef HAVE_LIBSSL if (wsconfig.use_ssl) return send_ssl_buffer (client, buffer, len); else return send_plain_buffer (client, buffer, len); #else return send_plain_buffer (client, buffer, len); #endif } /* Attempt to send the given buffer to the given socket. * * On error, -1 is returned and the connection status is set. * On success, the number of bytes sent is returned. */ static int ws_respond_data (WSClient *client, const char *buffer, int len) { int bytes = 0; bytes = send_buffer (client, buffer, len); if (bytes == -1 && errno == EPIPE) return ws_set_status (client, WS_ERR | WS_CLOSE, bytes); /* did not send all of it... buffer it for a later attempt */ if (bytes < len || (bytes == -1 && (errno == EAGAIN || errno == EWOULDBLOCK))) ws_queue_sockbuf (client, buffer, len, bytes); return bytes; } /* Attempt to send the queued up client's data to the given socket. * * On error, -1 is returned and the connection status is set. * On success, the number of bytes sent is returned. */ static int ws_respond_cache (WSClient *client) { WSQueue *queue = client->sockqueue; int bytes = 0; bytes = send_buffer (client, queue->queued, queue->qlen); if (bytes == -1 && errno == EPIPE) return ws_set_status (client, WS_ERR | WS_CLOSE, bytes); if (bytes == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) return bytes; if (chop_nchars (queue->queued, bytes, queue->qlen) == 0) ws_clear_queue (client); else queue->qlen -= bytes; return bytes; } /* Attempt to realloc the current sent queue. * * On error, 1 is returned and the connection status is set. * On success, 0 is returned. */ static int ws_realloc_send_buf (WSClient *client, const char *buf, int len) { WSQueue *queue = client->sockqueue; char *tmp = NULL; int newlen = 0; newlen = queue->qlen + len; tmp = realloc (queue->queued, newlen); if (tmp == NULL && newlen > 0) { ws_clear_queue (client); return ws_set_status (client, WS_ERR | WS_CLOSE, 1); } queue->queued = tmp; memcpy (queue->queued + queue->qlen, buf, len); queue->qlen += len; /* client probably too slow, so stop queueing until everything is * sent */ if (queue->qlen >= WS_THROTTLE_THLD) client->status |= WS_THROTTLING; return 0; } /* An entry point to attempt to send the client's data. * * On error, 1 is returned and the connection status is set. * On success, the number of bytes sent is returned. */ static int ws_respond (WSClient *client, const char *buffer, int len) { int bytes = 0; /* attempt to send the whole buffer */ if (client->sockqueue == NULL) bytes = ws_respond_data (client, buffer, len); /* buffer not empty, just append new data iff we're not throttling the * client */ else if (client->sockqueue != NULL && buffer != NULL && !(client->status & WS_THROTTLING)) { if (ws_realloc_send_buf (client, buffer, len) == 1) return bytes; } /* send from cache buffer */ else { bytes = ws_respond_cache (client); } return bytes; } /* Encode a websocket frame (header/message) and attempt to send it * through the client's socket. * * On success, 0 is returned. */ static int ws_send_frame (WSClient *client, WSOpcode opcode, const char *p, int sz) { unsigned char buf[32] = { 0 }; char *frm = NULL; uint64_t payloadlen = 0, u64; int hsize = 2; if (sz < 126) { payloadlen = sz; } else if (sz < (1 << 16)) { payloadlen = WS_PAYLOAD_EXT16; hsize += 2; } else { payloadlen = WS_PAYLOAD_EXT64; hsize += 8; } buf[0] = 0x80 | ((uint8_t) opcode); switch (payloadlen) { case WS_PAYLOAD_EXT16: buf[1] = WS_PAYLOAD_EXT16; buf[2] = (sz & 0xff00) >> 8; buf[3] = (sz & 0x00ff) >> 0; break; case WS_PAYLOAD_EXT64: buf[1] = WS_PAYLOAD_EXT64; u64 = htobe64 (sz); memcpy (buf + 2, &u64, sizeof (uint64_t)); break; default: buf[1] = (sz & 0xff); } frm = xcalloc (hsize + sz, sizeof (unsigned char)); memcpy (frm, buf, hsize); if (p != NULL && sz > 0) memcpy (frm + hsize, p, sz); ws_respond (client, frm, hsize + sz); free (frm); return 0; } /* Send an error message to the given client. * * On success, the number of sent bytes is returned. */ static int ws_error (WSClient *client, unsigned short code, const char *err) { unsigned int len; unsigned short code_be; char buf[128] = { 0 }; len = 2; code_be = htobe16 (code); memcpy (buf, &code_be, 2); if (err) len += snprintf (buf + 2, sizeof buf - 4, "%s", err); return ws_send_frame (client, WS_OPCODE_CLOSE, buf, len); } /* Log hit to the access log. * * On success, the hit/entry is logged. */ static void access_log (WSClient *client, int status_code) { WSHeaders *hdrs = client->headers; char buf[64] = { 0 }; uint32_t elapsed = 0; struct timeval tv; struct tm time; char *req = NULL, *ref = NULL, *ua = NULL; gettimeofday (&tv, NULL); strftime (buf, sizeof (buf) - 1, "[%d/%b/%Y:%H:%M:%S %z]", localtime_r (&tv.tv_sec, &time)); elapsed = (client->end_proc.tv_sec - client->start_proc.tv_sec) * 1000.0; elapsed += (client->end_proc.tv_usec - client->start_proc.tv_usec) / 1000.0; req = escape_http_request (hdrs->path); ref = escape_http_request (hdrs->referer); ua = escape_http_request (hdrs->agent); ACCESS_LOG (("%s ", client->remote_ip)); ACCESS_LOG (("- - ")); ACCESS_LOG (("%s ", buf)); ACCESS_LOG (("\"%s ", hdrs->method)); ACCESS_LOG (("%s ", req ? req : "-")); ACCESS_LOG (("%s\" ", hdrs->protocol)); ACCESS_LOG (("%d ", status_code)); ACCESS_LOG (("%d ", hdrs->buflen)); ACCESS_LOG (("\"%s\" ", ref ? ref : "-")); ACCESS_LOG (("\"%s\" ", ua ? ua : "-")); ACCESS_LOG (("%u\n", elapsed)); if (req) free (req); if (ref) free (ref); if (ua) free (ua); } /* Send an HTTP error status to the given client. * * On success, the number of sent bytes is returned. */ static int http_error (WSClient *client, const char *buffer) { /* do access logging */ gettimeofday (&client->end_proc, NULL); if (wsconfig.accesslog) access_log (client, 400); return ws_respond (client, buffer, strlen (buffer)); } /* Compute the SHA1 for the handshake. */ static void ws_sha1_digest (char *s, int len, unsigned char *digest) { SHA1_CTX sha; SHA1Init (&sha); SHA1Update (&sha, (uint8_t *) s, len); SHA1Final (digest, &sha); } /* Set the parsed websocket handshake headers. */ static void ws_set_handshake_headers (WSHeaders *headers) { size_t klen = strlen (headers->ws_key); size_t mlen = strlen (WS_MAGIC_STR); size_t len = klen + mlen; char *s = xmalloc (klen + mlen + 1); uint8_t digest[SHA_DIGEST_LENGTH]; memset (digest, 0, sizeof *digest); memcpy (s, headers->ws_key, klen); memcpy (s + klen, WS_MAGIC_STR, mlen + 1); ws_sha1_digest (s, len, digest); /* set response headers */ headers->ws_accept = base64_encode ((unsigned char *) digest, sizeof (digest)); headers->ws_resp = xstrdup (WS_SWITCH_PROTO_STR); if (!headers->upgrade) headers->upgrade = xstrdup ("websocket"); if (!headers->connection) headers->connection = xstrdup ("Upgrade"); free (s); } /* Send the websocket handshake headers to the given client. * * On success, the number of sent bytes is returned. */ static int ws_send_handshake_headers (WSClient *client, WSHeaders *headers) { int bytes = 0; char *str = xstrdup (""); ws_append_str (&str, headers->ws_resp); ws_append_str (&str, CRLF); ws_append_str (&str, "Upgrade: "); ws_append_str (&str, headers->upgrade); ws_append_str (&str, CRLF); ws_append_str (&str, "Connection: "); ws_append_str (&str, headers->connection); ws_append_str (&str, CRLF); ws_append_str (&str, "Sec-WebSocket-Accept: "); ws_append_str (&str, headers->ws_accept); ws_append_str (&str, CRLF CRLF); bytes = ws_respond (client, str, strlen (str)); free (str); return bytes; } /* Given the HTTP connection headers, attempt to parse the web socket * handshake headers. * * On success, the number of sent bytes is returned. */ static int ws_get_handshake (WSClient *client, WSServer *server) { int bytes = 0, readh = 0; char *buf = NULL; if (client->headers == NULL) client->headers = new_wsheader (); buf = client->headers->buf; readh = client->headers->buflen; /* Probably the connection was closed before finishing handshake */ if ((bytes = read_socket (client, buf + readh, WS_MAX_HEAD_SZ - readh)) < 1) { if (client->status & WS_CLOSE) { LOG (("Connection aborted %d [%s]...\n", client->listener, client->remote_ip)); http_error (client, WS_BAD_REQUEST_STR); } LOG (("Can't establish handshake %d [%s]...\n", client->listener, client->remote_ip)); return ws_set_status (client, WS_CLOSE, bytes); } client->headers->buflen += bytes; buf[client->headers->buflen] = '\0'; /* null-terminate */ /* Must have a \r\n\r\n */ if (strstr (buf, "\r\n\r\n") == NULL) { if (strlen (buf) < WS_MAX_HEAD_SZ) { LOG (("Headers too long %d [%s]...\n", client->listener, client->remote_ip)); return ws_set_status (client, WS_READING, bytes); } LOG (("Invalid newlines for handshake %d [%s]...\n", client->listener, client->remote_ip)); http_error (client, WS_BAD_REQUEST_STR); return ws_set_status (client, WS_CLOSE, bytes); } /* Ensure we have valid HTTP headers for the handshake */ if (parse_headers (client->headers) != 0) { LOG (("Invalid headers for handshake %d [%s]...\n", client->listener, client->remote_ip)); http_error (client, WS_BAD_REQUEST_STR); return ws_set_status (client, WS_CLOSE, bytes); } /* Ensure we have the required headers */ if (ws_verify_req_headers (client->headers) != 0) { LOG (("Missing headers for handshake %d [%s]...\n", client->listener, client->remote_ip)); http_error (client, WS_BAD_REQUEST_STR); return ws_set_status (client, WS_CLOSE, bytes); } /* Ensure we can authenticate the connection */ if (wsconfig.auth_secret && wsconfig.auth (client->headers->jwt, wsconfig.auth_secret) != 1) { LOG (("Unable to authenticate connection %d [%s]...\n", client->listener, client->remote_ip)); http_error (client, WS_UNAUTHORIZED_STR); return ws_set_status (client, WS_CLOSE, bytes); } ws_set_handshake_headers (client->headers); /* handshake response */ ws_send_handshake_headers (client, client->headers); /* upon success, call onopen() callback */ if (server->onopen && wsconfig.strict && !wsconfig.echomode) server->onopen (server->pipeout, client); client->headers->reading = 0; /* do access logging */ gettimeofday (&client->end_proc, NULL); if (wsconfig.accesslog) access_log (client, 101); LOG (("Active: %d\n", list_count (server->colist))); return ws_set_status (client, WS_OK, bytes); } /* Send a data message to the given client. * * On success, 0 is returned. */ int ws_send_data (WSClient *client, WSOpcode opcode, const char *p, int sz) { char *buf = NULL; buf = sanitize_utf8 (p, sz); ws_send_frame (client, opcode, buf, sz); free (buf); return 0; } /* Read a websocket frame's header. * * On success, the number of bytes read is returned. */ static int ws_read_header (WSClient *client, WSFrame *frm, int pos, int need) { char *buf = frm->buf; int bytes = 0; /* read the first 2 bytes for basic frame info */ if ((bytes = read_socket (client, buf + pos, need)) < 1) { if (client->status & WS_CLOSE) ws_error (client, WS_CLOSE_UNEXPECTED, "Unable to read header"); return bytes; } frm->buflen += bytes; frm->buf[frm->buflen] = '\0'; /* null-terminate */ return bytes; } /* Read a websocket frame's payload. * * On success, the number of bytes read is returned. */ static int ws_read_payload (WSClient *client, WSMessage *msg, int pos, int need) { char *buf = msg->payload; int bytes = 0; /* read the first 2 bytes for basic frame info */ if ((bytes = read_socket (client, buf + pos, need)) < 1) { if (client->status & WS_CLOSE) ws_error (client, WS_CLOSE_UNEXPECTED, "Unable to read payload"); return bytes; } msg->buflen += bytes; msg->payloadsz += bytes; return bytes; } /* Set the basic frame headers on a frame structure. * * On success, 0 is returned. */ static int ws_set_front_header_fields (WSClient *client) { WSFrame **frm = &client->frame; char *buf = (*frm)->buf; (*frm)->fin = WS_FRM_FIN (*(buf)); (*frm)->masking = WS_FRM_MASK (*(buf + 1)); (*frm)->opcode = WS_FRM_OPCODE (*(buf)); (*frm)->res = WS_FRM_R1 (*(buf)) || WS_FRM_R2 (*(buf)) || WS_FRM_R3 (*(buf)); /* should be masked and can't be using RESVd bits */ if (!(*frm)->masking || (*frm)->res) return ws_set_status (client, WS_ERR | WS_CLOSE, 1); return 0; } /* Unmask the payload given the current frame's masking key. */ static void ws_unmask_payload (char *buf, int len, int offset, unsigned char mask[]) { int i, j = 0; /* unmask data */ for (i = offset; i < len; ++i, ++j) { buf[i] ^= mask[j % 4]; } } /* Close a websocket connection. */ static int ws_handle_close (WSClient *client) { client->status = WS_ERR | WS_CLOSE; return ws_send_frame (client, WS_OPCODE_CLOSE, NULL, 0); } /* Handle a websocket error. * * On success, the number of bytes sent is returned. */ static int ws_handle_err (WSClient *client, unsigned short code, WSStatus status, const char *m) { client->status = status; return ws_error (client, code, m); } /* Handle a websocket pong. */ static void ws_handle_pong (WSClient *client) { WSFrame **frm = &client->frame; if (!(*frm)->fin) { ws_handle_err (client, WS_CLOSE_PROTO_ERR, WS_ERR | WS_CLOSE, NULL); return; } ws_free_message (client); } /* Handle a websocket ping from the client and it attempts to send * back a pong as soon as possible. */ static void ws_handle_ping (WSClient *client) { WSFrame **frm = &client->frame; WSMessage **msg = &client->message; char *buf = NULL, *tmp = NULL; int pos = 0, len = (*frm)->payloadlen, newlen = 0; /* RFC states that Control frames themselves MUST NOT be * fragmented. */ if (!(*frm)->fin) { ws_handle_err (client, WS_CLOSE_PROTO_ERR, WS_ERR | WS_CLOSE, NULL); return; } /* Control frames are only allowed to have payload up to and * including 125 octets */ if ((*frm)->payloadlen > 125) { ws_handle_err (client, WS_CLOSE_PROTO_ERR, WS_ERR | WS_CLOSE, NULL); return; } /* No payload from ping */ if (len == 0) { ws_send_frame (client, WS_OPCODE_PONG, NULL, 0); return; } /* Copy the ping payload */ pos = (*msg)->payloadsz - len; buf = xcalloc (len, sizeof (char)); memcpy (buf, (*msg)->payload + pos, len); /* Unmask it */ ws_unmask_payload (buf, len, 0, (*frm)->mask); /* Resize the current payload (keep an eye on this realloc) */ newlen = (*msg)->payloadsz - len; tmp = realloc ((*msg)->payload, newlen); if (tmp == NULL && newlen > 0) { free ((*msg)->payload); free (buf); (*msg)->payload = NULL; client->status = WS_ERR | WS_CLOSE; return; } (*msg)->payload = tmp; (*msg)->payloadsz -= len; ws_send_frame (client, WS_OPCODE_PONG, buf, len); (*msg)->buflen = 0; /* done with the current frame's payload */ /* Control frame injected in the middle of a fragmented message. */ if (!(*msg)->fragmented) { ws_free_message (client); } free (buf); } /* Ensure we have valid UTF-8 text payload. * * On error, or if the message is invalid, 1 is returned. * On success, or if the message is valid, 0 is returned. */ int ws_validate_string (const char *str, int len) { uint32_t state = UTF8_VALID; if (verify_utf8 (&state, str, len) == UTF8_INVAL) { LOG (("Invalid UTF8 data!\n")); return 1; } if (state != UTF8_VALID) { LOG (("Invalid UTF8 data!\n")); return 1; } return 0; } /* It handles a text or binary message frame from the client. */ static void ws_handle_text_bin (WSClient *client, WSServer *server) { WSFrame **frm = &client->frame; WSMessage **msg = &client->message; int offset = (*msg)->mask_offset; /* All data frames after the initial data frame must have opcode 0 */ if ((*msg)->fragmented && (*frm)->opcode != WS_OPCODE_CONTINUATION) { client->status = WS_ERR | WS_CLOSE; return; } /* RFC states that there is a new masking key per frame, therefore, * time to unmask... */ ws_unmask_payload ((*msg)->payload, (*msg)->payloadsz, offset, (*frm)->mask); /* Done with the current frame's payload */ (*msg)->buflen = 0; /* Reading a fragmented frame */ (*msg)->fragmented = 1; if (!(*frm)->fin) return; /* validate text data encoded as UTF-8 */ if ((*msg)->opcode == WS_OPCODE_TEXT) { if (ws_validate_string ((*msg)->payload, (*msg)->payloadsz) != 0) { ws_handle_err (client, WS_CLOSE_INVALID_UTF8, WS_ERR | WS_CLOSE, NULL); return; } } if ((*msg)->opcode != WS_OPCODE_CONTINUATION && server->onmessage) { /* just echo the message to the client */ if (wsconfig.echomode) ws_send_data (client, (*msg)->opcode, (*msg)->payload, (*msg)->payloadsz); /* just pipe out the message */ else if (!wsconfig.strict) ws_write_fifo (server->pipeout, (*msg)->payload, (*msg)->payloadsz); else server->onmessage (server->pipeout, client); } ws_free_message (client); } /* Depending on the frame opcode, then we take certain decisions. */ static void ws_manage_payload_opcode (WSClient *client, WSServer *server) { WSFrame **frm = &client->frame; WSMessage **msg = &client->message; switch ((*frm)->opcode) { case WS_OPCODE_CONTINUATION: LOG (("CONTINUATION\n")); /* first frame can't be a continuation frame */ if (!(*msg)->fragmented) { client->status = WS_ERR | WS_CLOSE; break; } ws_handle_text_bin (client, server); break; case WS_OPCODE_TEXT: case WS_OPCODE_BIN: LOG (("TEXT\n")); client->message->opcode = (*frm)->opcode; ws_handle_text_bin (client, server); break; case WS_OPCODE_PONG: LOG (("PONG\n")); ws_handle_pong (client); break; case WS_OPCODE_PING: LOG (("PING\n")); ws_handle_ping (client); break; default: LOG (("CLOSE\n")); ws_handle_close (client); } } /* Set the extended payload length into the given pointer. */ static void ws_set_extended_header_size (const char *buf, int *extended) { uint64_t payloadlen = 0; /* determine the payload length, else read more data */ payloadlen = WS_FRM_PAYLOAD (*(buf + 1)); switch (payloadlen) { case WS_PAYLOAD_EXT16: *extended = 2; break; case WS_PAYLOAD_EXT64: *extended = 8; break; } } /* Set the extended payload length into our frame structure. */ static void ws_set_payloadlen (WSFrame *frm, const char *buf) { uint64_t payloadlen = 0, len64; uint16_t len16; /* determine the payload length, else read more data */ payloadlen = WS_FRM_PAYLOAD (*(buf + 1)); switch (payloadlen) { case WS_PAYLOAD_EXT16: memcpy (&len16, (buf + 2), sizeof (uint16_t)); frm->payloadlen = ntohs (len16); break; case WS_PAYLOAD_EXT64: memcpy (&len64, (buf + 2), sizeof (uint64_t)); frm->payloadlen = be64toh (len64); break; default: frm->payloadlen = payloadlen; } } /* Set the masking key into our frame structure. */ static void ws_set_masking_key (WSFrame *frm, const char *buf) { uint64_t payloadlen = 0; /* determine the payload length, else read more data */ payloadlen = WS_FRM_PAYLOAD (*(buf + 1)); switch (payloadlen) { case WS_PAYLOAD_EXT16: memcpy (&frm->mask, buf + 4, sizeof (frm->mask)); break; case WS_PAYLOAD_EXT64: memcpy (&frm->mask, buf + 10, sizeof (frm->mask)); break; default: memcpy (&frm->mask, buf + 2, sizeof (frm->mask)); } } /* Attempt to read the frame's header and set the relevant data into * our frame structure. * * On error, or if no data available to read, the number of bytes is * returned and the appropriate connection status is set. * On success, the number of bytes is returned. */ static int ws_get_frm_header (WSClient *client) { WSFrame **frm = NULL; int bytes = 0, readh = 0, need = 0, offset = 0, extended = 0; if (client->frame == NULL) client->frame = new_wsframe (); frm = &client->frame; /* Read the first 2 bytes for basic frame info */ readh = (*frm)->buflen; /* read from header so far */ need = 2 - readh; /* need to read */ if (need > 0) { if ((bytes = ws_read_header (client, (*frm), readh, need)) < 1) return bytes; if (bytes != need) return ws_set_status (client, WS_READING, bytes); } offset += 2; if (ws_set_front_header_fields (client) != 0) return bytes; ws_set_extended_header_size ((*frm)->buf, &extended); /* read the extended header */ readh = (*frm)->buflen; /* read from header so far */ need = (extended + offset) - readh; /* read from header field so far */ if (need > 0) { if ((bytes = ws_read_header (client, (*frm), readh, need)) < 1) return bytes; if (bytes != need) return ws_set_status (client, WS_READING, bytes); } offset += extended; /* read the masking key */ readh = (*frm)->buflen; /* read from header so far */ need = (4 + offset) - readh; if (need > 0) { if ((bytes = ws_read_header (client, (*frm), readh, need)) < 1) return bytes; if (bytes != need) return ws_set_status (client, WS_READING, bytes); } offset += 4; ws_set_payloadlen ((*frm), (*frm)->buf); ws_set_masking_key ((*frm), (*frm)->buf); if ((*frm)->payloadlen > wsconfig.max_frm_size) { ws_error (client, WS_CLOSE_TOO_LARGE, "Frame is too big"); return ws_set_status (client, WS_ERR | WS_CLOSE, bytes); } (*frm)->buflen = 0; (*frm)->reading = 0; (*frm)->payload_offset = offset; return ws_set_status (client, WS_OK, bytes); } /* Attempt to realloc the message payload. * * On error, 1 is returned. * On success, 0 is returned. */ static int ws_realloc_frm_payload (WSFrame *frm, WSMessage *msg) { char *tmp = NULL; uint64_t newlen = 0; newlen = msg->payloadsz + frm->payloadlen; tmp = realloc (msg->payload, newlen); if (tmp == NULL && newlen > 0) { free (msg->payload); msg->payload = NULL; return 1; } msg->payload = tmp; return 0; } /* Attempt to read the frame's payload and set the relevant data into * our message structure. * * On error, or if no data available to read, the number of bytes is * returned and the appropriate connection status is set. * On success, the number of bytes is returned. */ static int ws_get_frm_payload (WSClient *client, WSServer *server) { WSFrame **frm = NULL; WSMessage **msg = NULL; int bytes = 0, readh = 0, need = 0; if (client->message == NULL) client->message = new_wsmessage (); frm = &client->frame; msg = &client->message; /* message within the same frame */ if ((*msg)->payload == NULL && (*frm)->payloadlen) (*msg)->payload = xcalloc ((*frm)->payloadlen, sizeof (char)); /* handle a new frame */ else if ((*msg)->buflen == 0 && (*frm)->payloadlen) { if (ws_realloc_frm_payload ((*frm), (*msg)) == 1) return ws_set_status (client, WS_ERR | WS_CLOSE, 0); } readh = (*msg)->buflen; /* read from so far */ need = (*frm)->payloadlen - readh; /* need to read */ if (need > 0) { if ((bytes = ws_read_payload (client, (*msg), (*msg)->payloadsz, need)) < 0) return bytes; if (bytes != need) return ws_set_status (client, WS_READING, bytes); } (*msg)->mask_offset = (*msg)->payloadsz - (*msg)->buflen; ws_manage_payload_opcode (client, server); ws_free_frame (client); return bytes; } /* Determine if we need to read a frame's header or its payload. * * On success, the number of bytes is returned. */ static int ws_get_message (WSClient *client, WSServer *server) { int bytes = 0; if ((client->frame == NULL) || (client->frame->reading)) if ((bytes = ws_get_frm_header (client)) < 1 || client->frame->reading) return bytes; return ws_get_frm_payload (client, server); } /* Determine if we need to read an HTTP request or a websocket frame. * * On success, the number of bytes is returned. */ static int read_client_data (WSClient *client, WSServer *server) { int bytes = 0; /* Handshake */ if ((!(client->headers) || (client->headers->reading))) bytes = ws_get_handshake (client, server); /* Message */ else bytes = ws_get_message (client, server); return bytes; } /* Handle a tcp close connection. */ static void handle_tcp_close (int conn, WSClient *client, WSServer *server) { LOG (("Closing TCP %d [%s]\n", client->listener, client->remote_ip)); #ifdef HAVE_LIBSSL if (client->ssl) shutdown_ssl (client); #endif shutdown (conn, SHUT_RDWR); /* upon close, call onclose() callback */ if (server->onclose && wsconfig.strict && !wsconfig.echomode) (*server->onclose) (server->pipeout, client); /* do access logging */ gettimeofday (&client->end_proc, NULL); if (wsconfig.accesslog) access_log (client, 200); /* errored out while parsing a frame or a message */ if (client->status & WS_ERR) { ws_clear_queue (client); ws_free_frame (client); ws_free_message (client); } server->closing = 0; ws_close (conn); #ifdef HAVE_LIBSSL if (client->ssl) SSL_free (client->ssl); client->ssl = NULL; #endif /* remove client from our list */ ws_remove_client_from_list (client, server); LOG (("Connection Closed.\nActive: %d\n", list_count (server->colist))); } /* Handle a tcp read close connection. */ static void handle_read_close (int *conn, WSClient *client, WSServer *server) { /* We can still try to send a message to the client if not forcing close, (nice * goodbye), else proceed to close it */ if (!(client->status & WS_CLOSE) && client->status & WS_SENDING) { server->closing = 1; set_pollfd (client->listener, POLLOUT); return; } handle_tcp_close (*conn, client, server); } /* Handle a new socket connection. */ static void handle_accept (int listener, WSServer *server) { WSClient *client = NULL; int newfd; newfd = accept_client (listener, &server->colist); if (newfd == -1) return; if (!(client = ws_get_client_from_list (newfd, &server->colist))) return; #ifdef HAVE_LIBSSL /* set flag to do TLS handshake */ if (wsconfig.use_ssl) client->sslstatus |= WS_TLS_ACCEPTING; #endif LOG (("Accepted: %d [%s]\n", newfd, client->remote_ip)); } /* Handle a tcp read. */ static void handle_reads (int *conn, WSServer *server) { WSClient *client = NULL; if (!(client = ws_get_client_from_list (*conn, &server->colist))) return; LOG (("Handling read %d [%s]...\n", client->listener, client->remote_ip)); #ifdef HAVE_LIBSSL if (handle_ssl_pending_rw (conn, server, client) == 0) return; #endif /* *INDENT-OFF* */ client->start_proc = client->end_proc = (struct timeval) {0}; /* *INDENT-ON* */ gettimeofday (&client->start_proc, NULL); read_client_data (client, server); /* An error occurred while reading data or connection closed */ if ((client->status & WS_CLOSE)) { handle_read_close (conn, client, server); *conn = -1; } } /* Handle a tcp write close connection. */ static void handle_write_close (int conn, WSClient *client, WSServer *server) { handle_tcp_close (conn, client, server); } /* Handle a tcp write. */ static void handle_writes (int *conn, WSServer *server) { WSClient *client = NULL; if (!(client = ws_get_client_from_list (*conn, &server->colist))) return; #ifdef HAVE_LIBSSL if (handle_ssl_pending_rw (conn, server, client) == 0) return; #endif ws_respond (client, NULL, 0); /* buffered data */ /* done sending data */ if (client->sockqueue == NULL) { client->status &= ~WS_SENDING; set_pollfd (client->listener, server->closing ? 0 : POLLIN); } /* An error occurred while sending data or while reading data but still * waiting from the last send() from the server to the client. e.g., * sending status code */ if ((client->status & WS_CLOSE) && !(client->status & WS_SENDING)) handle_write_close (*conn, client, server); } /* Create named pipe (FIFO) with the given pipe name. * * On error, 1 is returned. * On success, 0 is returned. */ int ws_setfifo (const char *pipename) { struct stat fistat; const char *f = pipename; if (access (f, F_OK) == 0) return 0; if (mkfifo (f, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) < 0) FATAL ("Unable to set fifo: %s.", strerror (errno)); if (stat (f, &fistat) < 0) FATAL ("Unable to stat fifo: %s.", strerror (errno)); if (!S_ISFIFO (fistat.st_mode)) FATAL ("pipe is not a fifo: %s.", strerror (errno)); return 0; } /* Open a named pipe (FIFO) for input to the server (reader). */ static void ws_openfifo_in (WSPipeIn *pipein) { ws_setfifo (wsconfig.pipein); /* we should be able to open it at as reader */ if ((pipein->fd = open (wsconfig.pipein, O_RDWR | O_NONBLOCK)) < 0) FATAL ("Unable to open fifo in: %s.", strerror (errno)); } /* Open a named pipe (FIFO) for output from the server (writer). */ static int ws_openfifo_out (WSPipeOut *pipeout) { int status = 0; ws_setfifo (wsconfig.pipeout); status = open (wsconfig.pipeout, O_WRONLY | O_NONBLOCK); /* will attempt on the next write */ if (status == -1 && errno == ENXIO) LOG (("Unable to open fifo out: %s.\n", strerror (errno))); else if (status < 0) FATAL ("Unable to open fifo out: %s.", strerror (errno)); pipeout->fd = status; return status; } /* Set a new named pipe for incoming messages and one for outgoing * messages from the client. */ static void ws_fifo (WSServer *server) { ws_openfifo_in (server->pipein); set_pollfd (server->pipein->fd, POLLIN); ws_openfifo_out (server->pipeout); set_pollfd (server->pipeout->fd, POLLOUT); } /* Clear the queue for an outgoing named pipe. */ static void clear_fifo_queue (WSPipeOut *pipeout) { WSQueue **queue = &pipeout->fifoqueue; if (!(*queue)) return; if ((*queue)->queued) free ((*queue)->queued); (*queue)->queued = NULL; (*queue)->qlen = 0; free ((*queue)); (*queue) = NULL; } /* Attempt to realloc the current sent queue for an outgoing named pip * (FIFO). * * On error, 1 is returned and the connection status is closed and * reopened. * On success, 0 is returned. */ static int ws_realloc_fifobuf (WSPipeOut *pipeout, const char *buf, int len) { WSQueue *queue = pipeout->fifoqueue; char *tmp = NULL; int newlen = 0; newlen = queue->qlen + len; tmp = realloc (queue->queued, newlen); if (tmp == NULL && newlen > 0) { ws_close (pipeout->fd); clear_fifo_queue (pipeout); ws_openfifo_out (pipeout); return 1; } queue->queued = tmp; memcpy (queue->queued + queue->qlen, buf, len); queue->qlen += len; return 0; } /* Set into a queue the data that couldn't be sent in the outgoing * FIFO. */ static void ws_queue_fifobuf (WSPipeOut *pipeout, const char *buffer, int len, int bytes) { WSQueue **queue = &pipeout->fifoqueue; if (bytes < 1) bytes = 0; (*queue) = xcalloc (1, sizeof (WSQueue)); (*queue)->queued = xcalloc (len - bytes, sizeof (char)); memcpy ((*queue)->queued, buffer + bytes, len - bytes); (*queue)->qlen = len - bytes; pipeout->status |= WS_SENDING; set_pollfd (pipeout->fd, POLLOUT); } /* Attempt to send the given buffer to the given outgoing FIFO. * * On error, the data is queued up. * On success, the number of bytes sent is returned. */ static int ws_write_fifo_data (WSPipeOut *pipeout, char *buffer, int len) { int bytes = 0; bytes = write (pipeout->fd, buffer, len); /* At this point, the reader probably closed the pipe, so a cheap *hack* for * this is to close the pipe on our end and attempt to reopen it. If unable to * do so, then let it be -1 and try on the next attempt to write. */ if (bytes == -1 && errno == EPIPE) { ws_close (pipeout->fd); ws_openfifo_out (pipeout); return bytes; } if (bytes < len || (bytes == -1 && (errno == EAGAIN || errno == EWOULDBLOCK))) ws_queue_fifobuf (pipeout, buffer, len, bytes); return bytes; } /* Attempt to send the queued up client's data through the outgoing * named pipe (FIFO) . * * On error, 1 is returned and the connection status is set. * On success, the number of bytes sent is returned. */ static int ws_write_fifo_cache (WSPipeOut *pipeout) { WSQueue *queue = pipeout->fifoqueue; int bytes = 0; bytes = write (pipeout->fd, queue->queued, queue->qlen); /* At this point, the reader probably closed the pipe, so a cheap *hack* for * this is to close the pipe on our end and attempt to reopen it. If unable to * do so, then let it be -1 and try on the next attempt to write. */ if (bytes == -1 && errno == EPIPE) { ws_close (pipeout->fd); ws_openfifo_out (pipeout); return bytes; } if (chop_nchars (queue->queued, bytes, queue->qlen) == 0) clear_fifo_queue (pipeout); else queue->qlen -= bytes; return bytes; } /* An entry point to attempt to send the client's data into an * outgoing named pipe (FIFO). * * On success, the number of bytes sent is returned. */ int ws_write_fifo (WSPipeOut *pipeout, char *buffer, int len) { int bytes = 0; if (pipeout->fd == -1 && ws_openfifo_out (pipeout) == -1) return bytes; /* attempt to send the whole buffer */ if (pipeout->fifoqueue == NULL) bytes = ws_write_fifo_data (pipeout, buffer, len); /* buffer not empty, just append new data */ else if (pipeout->fifoqueue != NULL && buffer != NULL) { if (ws_realloc_fifobuf (pipeout, buffer, len) == 1) return bytes; } /* send from cache buffer */ else { bytes = ws_write_fifo_cache (pipeout); } if (pipeout->fifoqueue == NULL) { pipeout->status &= ~WS_SENDING; set_pollfd (pipeout->fd, 0); } return bytes; } /* Clear an incoming FIFO packet and header data. */ static void clear_fifo_packet (WSPipeIn *pipein) { memset (pipein->hdr, 0, sizeof (pipein->hdr)); pipein->hlen = 0; if (pipein->packet == NULL) return; if (pipein->packet->data) free (pipein->packet->data); free (pipein->packet); pipein->packet = NULL; } /* Broadcast to all connected clients the given message. */ static int ws_broadcast_fifo (WSClient *client, WSServer *server) { WSPacket *packet = server->pipein->packet; LOG (("Broadcasting to %d [%s] ", client->listener, client->remote_ip)); if (client == NULL) return 1; if (client->headers == NULL || client->headers->ws_accept == NULL) { /* no handshake for this client */ LOG (("No headers. Closing %d [%s]\n", client->listener, client->remote_ip)); return -1; } LOG ((" - Sending...\n")); ws_send_data (client, packet->type, packet->data, packet->size); return 0; } static void ws_broadcast_fifo_to_clients (WSServer *server) { WSClient *client = NULL; void *data = NULL; uint32_t *close_list = NULL; int n = 0, idx = 0, i = 0, listener = 0; if ((n = list_count (server->colist)) == 0) return; close_list = xcalloc (n, sizeof (uint32_t)); /* *INDENT-OFF* */ GSLIST_FOREACH (server->colist, data, { client = data; if (ws_broadcast_fifo(client, server) == -1) close_list[idx++] = client->listener; }); /* *INDENT-ON* */ client = NULL; for (i = 0; i < idx; ++i) { listener = close_list[i]; if ((client = ws_get_client_from_list (listener, &server->colist))) handle_tcp_close (listener, client, server); } free (close_list); } /* Send a message from the incoming named pipe to specific client * given the socket id. */ static void ws_send_strict_fifo_to_client (WSServer *server, int listener, WSPacket *pa) { WSClient *client = NULL; if (!(client = ws_get_client_from_list (listener, &server->colist))) return; /* no handshake for this client */ if (client->headers == NULL || client->headers->ws_accept == NULL) { LOG (("No headers. Closing %d [%s]\n", client->listener, client->remote_ip)); handle_tcp_close (client->listener, client, server); return; } ws_send_data (client, pa->type, pa->data, pa->len); } /* Attempt to read message from a named pipe (FIFO). * * On error, -1 is returned. * On success, the number of bytes read is returned. */ int ws_read_fifo (int fd, char *buf, int *buflen, int pos, int need) { int bytes = 0; bytes = read (fd, buf + pos, need); if (bytes == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) return bytes; else if (bytes == -1) return bytes; *buflen += bytes; return bytes; } /* Pack the given value into a network byte order. * * On success, the number size of uint32_t is returned. */ size_t pack_uint32 (void *buf, uint32_t val) { uint32_t v32 = htonl (val); memcpy (buf, &v32, sizeof (uint32_t)); return sizeof (uint32_t); } /* Unpack the given value into a host byte order. * * On success, the number size of uint32_t is returned. */ size_t unpack_uint32 (const void *buf, uint32_t *val) { uint32_t v32 = 0; memcpy (&v32, buf, sizeof (uint32_t)); *val = ntohl (v32); return sizeof (uint32_t); } /* Ensure the fields coming from the named pipe are valid. * * On error, 1 is returned. * On success, 0 is returned. */ static int validate_fifo_packet (uint32_t type, int size) { if (type != WS_OPCODE_TEXT && type != WS_OPCODE_BIN) { LOG (("Invalid fifo packet type\n")); return 1; } if (size > wsconfig.max_frm_size) { LOG (("Invalid fifo packet size\n")); return 1; } return 0; } /* Handle reading and sending the incoming data from the named pipe on * strict mode. */ static void handle_strict_fifo (WSServer *server) { WSPipeIn *pi = server->pipein; WSPacket **pa = &pi->packet; int bytes = 0, readh = 0, need = 0; char *ptr = NULL; uint32_t listener = 0, type = 0, size = 0; readh = pi->hlen; /* read from header so far */ need = HDR_SIZE - readh; /* need to read */ if (need > 0) { if ((bytes = ws_read_fifo (pi->fd, pi->hdr, &pi->hlen, readh, need)) < 0) return; if (bytes != need) return; } /* unpack size, and type */ ptr = pi->hdr; ptr += unpack_uint32 (ptr, &listener); ptr += unpack_uint32 (ptr, &type); ptr += unpack_uint32 (ptr, &size); if (validate_fifo_packet (type, size) == 1) { ws_close (pi->fd); clear_fifo_packet (pi); ws_openfifo_in (pi); return; } if ((*pa) == NULL) { (*pa) = xcalloc (1, sizeof (WSPacket)); (*pa)->type = type; (*pa)->size = size; (*pa)->data = xcalloc (size, sizeof (char)); } readh = (*pa)->len; /* read from payload so far */ need = (*pa)->size - readh; /* need to read */ if (need > 0) { if ((bytes = ws_read_fifo (pi->fd, (*pa)->data, &(*pa)->len, readh, need)) < 0) return; if (bytes != need) return; } /* no clients to send data to */ if (list_count (server->colist) == 0) { clear_fifo_packet (pi); return; } /* Either send it to a specific client or broadcast message to all * clients */ if (listener != 0) ws_send_strict_fifo_to_client (server, listener, *pa); else ws_broadcast_fifo_to_clients (server); clear_fifo_packet (pi); } /* Handle reading and sending the incoming data from the named pipe on * a fixed buffer mode. */ static void handle_fixed_fifo (WSServer *server) { WSPipeIn *pi = server->pipein; WSPacket **pa = &pi->packet; int bytes = 0; char buf[PIPE_BUF] = { 0 }; if ((bytes = read (pi->fd, buf, PIPE_BUF - 1)) < 0) return; buf[bytes] = '\0'; /* null-terminate */ if (ws_validate_string (buf, bytes) != 0) return; (*pa) = xcalloc (1, sizeof (WSPacket)); (*pa)->type = WS_OPCODE_TEXT; (*pa)->size = bytes; (*pa)->data = xstrdup (buf); /* no clients to send data to */ if (list_count (server->colist) == 0) { clear_fifo_packet (pi); return; } /* broadcast message to all clients */ ws_broadcast_fifo_to_clients (server); clear_fifo_packet (pi); } /* Determine which mode should use the incoming message from the FIFO. */ static void handle_fifo (WSServer *server) { if (wsconfig.strict) handle_strict_fifo (server); else handle_fixed_fifo (server); } /* Creates an endpoint for communication and start listening for * connections on a socket */ static void ws_socket (int *listener) { if (wsconfig.unix_socket) { struct sockaddr_un servaddr; /* Create a TCP socket. */ if ((*listener = socket (AF_UNIX, SOCK_STREAM, 0)) == -1) FATAL ("Unable to open socket: %s.", strerror (errno)); memset (&servaddr, 0, sizeof (servaddr)); servaddr.sun_family = AF_UNIX; strncpy (servaddr.sun_path, wsconfig.unix_socket, sizeof (servaddr.sun_path) - 1); /* Bind the socket to the address. */ if (bind (*listener, (struct sockaddr *) &servaddr, sizeof (servaddr)) != 0) FATAL ("Unable to set bind: %s.", strerror (errno)); } else { int ov = 1, bind_result = 0; struct addrinfo hints, *ai, *p; memset (&hints, 0, sizeof (hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; if (getaddrinfo (wsconfig.host, wsconfig.port, &hints, &ai) != 0) FATAL ("Unable to set server: %s.", gai_strerror (errno)); for (p = ai; p != NULL; p = p->ai_next) { *listener = socket (p->ai_family, p->ai_socktype, p->ai_protocol); if (*listener == -1) continue; if (setsockopt (*listener, SOL_SOCKET, SO_REUSEADDR, &ov, sizeof (ov)) == -1) { close (*listener); continue; } if (bind (*listener, p->ai_addr, p->ai_addrlen) == 0) { bind_result = 1; break; } close (*listener); } freeaddrinfo (ai); if (bind_result == 0) FATAL ("Unable to set bind: %s.", strerror (errno)); } if (listen (*listener, SOMAXCONN) == -1) FATAL ("Unable to listen: %s.", strerror (errno)); } /* Start the websocket server and start to monitor multiple file * descriptors until we have something to read or write. */ void ws_start (WSServer *server) { int listener = -1, ret = 0; struct pollfd *cfdstate = NULL, *pfd, *efd; nfds_t ncfdstate = 0; bool run = true; if (server->self_pipe[0] != -1) set_pollfd (server->self_pipe[0], POLLIN); #ifdef HAVE_LIBSSL if (wsconfig.sslcert && wsconfig.sslkey) { LOG (("==Using TLS/SSL==\n")); wsconfig.use_ssl = 1; if (initialize_ssl_ctx (server)) { LOG (("Unable to initialize_ssl_ctx\n")); return; } } #endif ws_socket (&listener); set_pollfd (listener, POLLIN); while (run) { /* take a copy of the fdstate and give that to poll to allow * any dispatch to modify the real fdstate for the next pass */ if (nfdstate > 0) { if (ncfdstate != nfdstate) { free (cfdstate); cfdstate = xmalloc (nfdstate * sizeof (*cfdstate)); memset (cfdstate, 0, sizeof (*cfdstate) * nfdstate); ncfdstate = nfdstate; } memcpy (cfdstate, fdstate, ncfdstate * sizeof (*cfdstate)); } /* yep, wait patiently */ if ((ret = poll (cfdstate, nfdstate, -1)) == -1) { switch (errno) { case EINTR: LOG (("A signal was caught on poll(2)\n")); break; default: FATAL ("Unable to poll: %s.", strerror (errno)); } } /* iterate over existing connections */ efd = cfdstate + nfdstate; for (pfd = cfdstate; pfd < efd; pfd++) { if (pfd->revents & POLLHUP) LOG (("Got POLLHUP %d\n", pfd->fd)); if (pfd->revents & POLLNVAL) LOG (("Got POLLNVAL %d\n", pfd->fd)); if (pfd->revents & POLLERR) LOG (("Got POLLERR %d\n", pfd->fd)); /* handle self-pipe trick */ if (pfd->fd == server->self_pipe[0]) { if (pfd->revents & POLLIN) { LOG (("Handled self-pipe to close event loop.\n")); run = false; break; } } else if (pfd->fd == server->pipein->fd) { /* handle pipein */ if (pfd->revents & POLLIN) handle_fifo (server); } else if (pfd->fd == server->pipeout->fd) { /* handle pipeout */ if (pfd->revents & POLLOUT) ws_write_fifo (server->pipeout, NULL, 0); } else if (pfd->fd == listener) { /* handle new connections */ if (pfd->revents & POLLIN) handle_accept (listener, server); } else { /* handle data from a client */ if (pfd->revents & POLLIN) { if (server->closing) { struct pollfd *ffd = get_pollfd (pfd->fd); if (ffd != NULL) ffd->events &= ~POLLIN; } else handle_reads (&pfd->fd, server); } /* handle sending data to a client */ if (pfd->revents & POLLOUT) handle_writes (&pfd->fd, server); } } } free (cfdstate); ws_close (listener); if (server->self_pipe[0] != -1) unset_pollfd (server->self_pipe[0]); if (wsconfig.unix_socket) { unlink (wsconfig.unix_socket); } } /* Set the origin so the server can force connections to have the * given HTTP origin. */ void ws_set_config_origin (const char *origin) { wsconfig.origin = origin; } /* Set the maximum websocket frame size. */ void ws_set_config_frame_size (int max_frm_size) { wsconfig.max_frm_size = max_frm_size; } /* Set specific name for the reader named pipe. */ void ws_set_config_pipein (const char *pipein) { wsconfig.pipein = pipein; } /* Set specific name for the writer named pipe. */ void ws_set_config_pipeout (const char *pipeout) { wsconfig.pipeout = pipeout; } /* Set a path and a file for the access log. */ void ws_set_config_accesslog (const char *accesslog) { wsconfig.accesslog = accesslog; if (access_log_open (wsconfig.accesslog) == 1) FATAL ("Unable to open access log: %s.", strerror (errno)); } /* Set if the server should handle strict named pipe handling. */ void ws_set_config_strict (int strict) { wsconfig.strict = strict; } /* Set the server into echo mode. */ void ws_set_config_echomode (int echomode) { wsconfig.echomode = echomode; } /* Set the server host bind address. */ void ws_set_config_host (const char *host) { wsconfig.host = host; } /* Set the server unix socket bind address. */ void ws_set_config_unix_socket (const char *unix_socket) { wsconfig.unix_socket = unix_socket; } /* Set the server port bind address. */ void ws_set_config_port (const char *port) { wsconfig.port = port; } /* Set specific name for the SSL certificate. */ void ws_set_config_sslcert (const char *sslcert) { wsconfig.sslcert = sslcert; } /* Set specific name for the SSL key. */ void ws_set_config_sslkey (const char *sslkey) { wsconfig.sslkey = sslkey; } /* Set auth secret for auth. */ void ws_set_config_auth_secret (const char *auth_secret) { wsconfig.auth_secret = auth_secret; } void ws_set_config_auth_cb (int (*auth_cb) (const char *jwt, const char *secret)) { wsconfig.auth = auth_cb; } /* Create a new websocket server context. */ WSServer * ws_init (const char *host, const char *port, void (*initopts) (void)) { WSServer *server = new_wsserver (); server->pipein = new_wspipein (); server->pipeout = new_wspipeout (); server->self_pipe[0] = server->self_pipe[1] = -1; wsconfig.accesslog = NULL; wsconfig.host = host; wsconfig.unix_socket = NULL; wsconfig.max_frm_size = WS_MAX_FRM_SZ; wsconfig.origin = NULL; wsconfig.pipein = NULL; wsconfig.pipeout = NULL; wsconfig.sslcert = NULL; wsconfig.sslkey = NULL; wsconfig.port = port; wsconfig.strict = 0; wsconfig.use_ssl = 0; initopts (); ws_fifo (server); return server; } ================================================ FILE: src/websocket.h ================================================ /** * _______ _______ __ __ * / ____/ | / / ___/____ _____/ /_____ / /_ * / / __ | | /| / /\__ \/ __ \/ ___/ //_/ _ \/ __/ * / /_/ / | |/ |/ /___/ / /_/ / /__/ ,< / __/ /_ * \____/ |__/|__//____/\____/\___/_/|_|\___/\__/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #if HAVE_CONFIG_H #include #endif #ifndef WEBSOCKET_H_INCLUDED #define WEBSOCKET_H_INCLUDED #include #include #include #include #if HAVE_LIBSSL #include #include #include #endif #if defined(__linux__) || defined(__CYGWIN__) # include #if ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 9)) #if defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN) # include # define htobe16(x) htons(x) # define htobe64(x) (((uint64_t)htonl(((uint32_t)(((uint64_t)(x)) >> 32)))) | \ (((uint64_t)htonl(((uint32_t)(x)))) << 32)) # define be16toh(x) ntohs(x) # define be32toh(x) ntohl(x) # define be64toh(x) (((uint64_t)ntohl(((uint32_t)(((uint64_t)(x)) >> 32)))) | \ (((uint64_t)ntohl(((uint32_t)(x)))) << 32)) #else # error Byte Order not supported! #endif #endif #elif defined(__sun__) # include # define htobe16(x) BE_16(x) # define htobe64(x) BE_64(x) # define be16toh(x) BE_IN16(x) # define be32toh(x) BE_IN32(x) # define be64toh(x) BE_IN64(x) #elif defined(__FreeBSD__) || defined(__NetBSD__) # include #elif defined(__OpenBSD__) # include # if !defined(be16toh) # define be16toh(x) betoh16(x) # endif # if !defined(be32toh) # define be32toh(x) betoh32(x) # endif # if !defined(be64toh) # define be64toh(x) betoh64(x) # endif #elif defined(__APPLE__) # include # define htobe16(x) OSSwapHostToBigInt16(x) # define htobe64(x) OSSwapHostToBigInt64(x) # define be16toh(x) OSSwapBigToHostInt16(x) # define be32toh(x) OSSwapBigToHostInt32(x) # define be64toh(x) OSSwapBigToHostInt64(x) #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ # define htobe16(x) (x) # define htobe64(x) (x) # define be16toh(x) (x) # define be32toh(x) (x) # define be64toh(x) (x) #else # error Platform not supported! #endif #define MAX(a,b) (((a)>(b))?(a):(b)) #include "gslist.h" #define WS_BAD_REQUEST_STR "HTTP/1.1 400 Invalid Request\r\n\r\n" #define WS_UNAUTHORIZED_STR "HTTP/1.1 401 Unauthorized\r\n\r\n" #define WS_SWITCH_PROTO_STR "HTTP/1.1 101 Switching Protocols" #define WS_TOO_BUSY_STR "HTTP/1.1 503 Service Unavailable\r\n\r\n" #define CRLF "\r\n" #define SHA_DIGEST_LENGTH 20 /* packet header is 3 unit32_t : type, size, listener */ #define HDR_SIZE 3 * 4 #define WS_MAX_FRM_SZ 1048576 /* 1 MiB max frame size */ #define WS_THROTTLE_THLD 2097152 /* 2 MiB throttle threshold */ #define WS_MAX_HEAD_SZ 8192 /* a reasonable size for request headers */ #define WS_MAGIC_STR "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" #define WS_PAYLOAD_EXT16 126 #define WS_PAYLOAD_EXT64 127 #define WS_PAYLOAD_FULL 125 #define WS_FRM_HEAD_SZ 16 /* frame header size */ #define WS_FRM_FIN(x) (((x) >> 7) & 0x01) #define WS_FRM_MASK(x) (((x) >> 7) & 0x01) #define WS_FRM_R1(x) (((x) >> 6) & 0x01) #define WS_FRM_R2(x) (((x) >> 5) & 0x01) #define WS_FRM_R3(x) (((x) >> 4) & 0x01) #define WS_FRM_OPCODE(x) ((x) & 0x0F) #define WS_FRM_PAYLOAD(x) ((x) & 0x7F) #define WS_CLOSE_NORMAL 1000 #define WS_CLOSE_GOING_AWAY 1001 #define WS_CLOSE_PROTO_ERR 1002 #define WS_CLOSE_INVALID_UTF8 1007 #define WS_CLOSE_TOO_LARGE 1009 #define WS_CLOSE_UNEXPECTED 1011 typedef enum WSSTATUS { WS_OK = 0, WS_ERR = (1 << 0), WS_CLOSE = (1 << 1), WS_READING = (1 << 2), WS_SENDING = (1 << 3), WS_THROTTLING = (1 << 4), WS_TLS_ACCEPTING = (1 << 5), WS_TLS_READING = (1 << 6), WS_TLS_WRITING = (1 << 7), WS_TLS_SHUTTING = (1 << 8), } WSStatus; typedef enum WSOPCODE { WS_OPCODE_CONTINUATION = 0x00, WS_OPCODE_TEXT = 0x01, WS_OPCODE_BIN = 0x02, WS_OPCODE_END = 0x03, WS_OPCODE_CLOSE = 0x08, WS_OPCODE_PING = 0x09, WS_OPCODE_PONG = 0x0A, } WSOpcode; typedef struct WSQueue_ { char *queued; /* queue data */ int qlen; /* queue length */ } WSQueue; typedef struct WSPacket_ { uint32_t type; /* packet type (fixed-size) */ uint32_t size; /* payload size in bytes (fixed-size) */ char *data; /* payload */ int len; /* payload buffer len */ } WSPacket; /* WS HTTP Headers */ typedef struct WSHeaders_ { int reading; int buflen; char buf[WS_MAX_HEAD_SZ + 1]; char *agent; char *path; char *jwt; char *method; char *protocol; char *host; char *origin; char *upgrade; char *referer; char *connection; char *ws_protocol; char *ws_key; char *ws_sock_ver; char *ws_accept; char *ws_resp; } WSHeaders; /* A WebSocket Message */ typedef struct WSFrame_ { /* frame format */ WSOpcode opcode; /* frame opcode */ unsigned char fin; /* frame fin flag */ unsigned char mask[4]; /* mask key */ uint8_t res; /* extensions */ int payload_offset; /* end of header/start of payload */ int payloadlen; /* payload length (for each frame) */ /* status flags */ int reading; /* still reading frame's header part? */ int masking; /* are we masking the frame? */ char buf[WS_FRM_HEAD_SZ + 1]; /* frame's header */ int buflen; /* recv'd buf length so far (for each frame) */ } WSFrame; /* A WebSocket Message */ typedef struct WSMessage_ { WSOpcode opcode; /* frame opcode */ int fragmented; /* reading a fragmented frame */ int mask_offset; /* for fragmented frames */ char *payload; /* payload message */ int payloadsz; /* total payload size (whole message) */ int buflen; /* recv'd buf length so far (for each frame) */ } WSMessage; /* A WebSocket Client */ typedef struct WSClient_ { /* socket data */ int listener; /* socket */ char remote_ip[INET6_ADDRSTRLEN]; /* client IP */ WSQueue *sockqueue; /* sending buffer */ WSHeaders *headers; /* HTTP headers */ WSFrame *frame; /* frame headers */ WSMessage *message; /* message */ WSStatus status; /* connection status */ struct timeval start_proc; struct timeval end_proc; #ifdef HAVE_LIBSSL SSL *ssl; WSStatus sslstatus; /* ssl connection status */ #endif } WSClient; /* Config OOptions */ typedef struct WSPipeIn_ { int fd; /* named pipe FD */ WSPacket *packet; /* FIFO data's buffer */ char hdr[HDR_SIZE]; /* FIFO header's buffer */ int hlen; } WSPipeIn; /* Pipe Out */ typedef struct WSPipeOut_ { int fd; /* named pipe FD */ WSQueue *fifoqueue; /* FIFO out queue */ WSStatus status; /* connection status */ } WSPipeOut; /* Config OOptions */ typedef struct WSConfig_ { /* Config Options */ const char *accesslog; const char *host; const char *origin; const char *pipein; const char *pipeout; const char *port; const char *sslcert; const char *sslkey; const char *unix_socket; const char *auth_secret; /* Function pointer for JWT verification */ int (*auth) (const char *jwt, const char *secret); int echomode; int strict; int max_frm_size; int use_ssl; } WSConfig; /* A WebSocket Instance */ typedef struct WSServer_ { /* Server Status */ int closing; /* Callbacks */ int (*onclose) (WSPipeOut * pipeout, WSClient * client); int (*onmessage) (WSPipeOut * pipeout, WSClient * client); int (*onopen) (WSPipeOut * pipeout, WSClient * client); /* self-pipe */ int self_pipe[2]; /* FIFO reader */ WSPipeIn *pipein; /* FIFO writer */ WSPipeOut *pipeout; /* Connected Clients */ GSLList *colist; #ifdef HAVE_LIBSSL SSL_CTX *ctx; #endif } WSServer; int ws_read_fifo (int fd, char *buf, int *buflen, int pos, int need); int ws_send_data (WSClient * client, WSOpcode opcode, const char *p, int sz); int ws_setfifo (const char *pipename); int ws_validate_string (const char *str, int len); int ws_write_fifo (WSPipeOut * pipeout, char *buffer, int len); size_t pack_uint32 (void *buf, uint32_t val); size_t unpack_uint32 (const void *buf, uint32_t * val); void set_nonblocking (int listener); void ws_set_config_accesslog (const char *accesslog); void ws_set_config_echomode (int echomode); void ws_set_config_frame_size (int max_frm_size); void ws_set_config_host (const char *host); void ws_set_config_unix_socket (const char *unix_socket); void ws_set_config_origin (const char *origin); void ws_set_config_pipein (const char *pipein); void ws_set_config_pipeout (const char *pipeout); void ws_set_config_port (const char *port); void ws_set_config_sslcert (const char *sslcert); void ws_set_config_sslkey (const char *sslkey); void ws_set_config_strict (int strict); void ws_set_config_auth_secret (const char *auth_secret); void ws_set_config_auth_cb (int (*auth_cb) (const char *jwt, const char *secret)); void ws_start (WSServer * server); void ws_stop (WSServer * server); WSServer *ws_init (const char *host, const char *port, void (*initopts) (void)); #endif // for #ifndef WEBSOCKET_H ================================================ FILE: src/win/mman.h ================================================ #ifndef _MMAN_H_ #define _MMAN_H_ /* Protections */ #define PROT_NONE 0x00 /* no permissions */ #define PROT_READ 0x01 /* pages can be read */ #define PROT_WRITE 0x02 /* pages can be written */ #define PROT_EXEC 0x04 /* pages can be executed */ /* Sharing type and options */ #define MAP_SHARED 0x0001 /* share changes */ #define MAP_PRIVATE 0x0002 /* changes are private */ #define MAP_COPY MAP_PRIVATE /* Obsolete */ #define MAP_FIXED 0x0010 /* map addr must be exactly as requested */ #define MAP_RENAME 0x0020 /* Sun: rename private pages to file */ #define MAP_NORESERVE 0x0040 /* Sun: don't reserve needed swap area */ #define MAP_INHERIT 0x0080 /* region is retained after exec */ #define MAP_NOEXTEND 0x0100 /* for MAP_FILE, don't change file size */ #define MAP_HASSEMAPHORE 0x0200 /* region may contain semaphores */ #define MAP_STACK 0x0400 /* region grows down, like a stack */ /* Error returned from mmap() */ #define MAP_FAILED ((void *)-1) /* Flags to msync */ #define MS_ASYNC 0x01 /* perform asynchronous writes */ #define MS_SYNC 0x02 /* perform synchronous writes */ #define MS_INVALIDATE 0x04 /* invalidate cached data */ /* File modes for 'open' not defined in MinGW32 (not used by mmap) */ #ifndef S_IWGRP #define S_IWGRP 0 #define S_IRGRP 0 #define S_IROTH 0 #endif /** * Map a file to a memory region */ void *mmap (void *addr, unsigned int len, int prot, int flags, int fd, unsigned int offset); /** * Unmap a memory region */ int munmap (void *addr, int len); /** * Synchronize a mapped region */ int msync (char *addr, int len, int flags); #endif /* _MMAN_H_ */ ================================================ FILE: src/win/mmap.c ================================================ #include #include #ifdef _WIN32 #include #endif #include #include "mman.h" static const char id[] = "$Id: tpl.c 107 2007-04-20 17:11:29Z thanson $"; /** * @brief Map a file to a memory region * * This function emulates the POSIX mmap() using CreateFileMapping() and * MapViewOfFile() * * @param addr the suggested start address (if != 0) * @param len length of the region * @param prot region accessibility, bitwise OR of PROT_READ, PROT_WRITE, PROT_EXEC * @param flags mapping type and options (ignored) * @param fd object to be mapped into memory * @param offset offset into mapped object * @return pointer to the memory region, or NULL in case of error */ void * mmap (void *addr, unsigned int len, int prot, int flags, int fd, unsigned int offset) { DWORD wprot; DWORD waccess; HANDLE h; void *region; /* Translate read/write/exec flags into WIN32 constants */ switch (prot) { case PROT_READ: wprot = PAGE_READONLY; break; case PROT_EXEC: wprot = PAGE_EXECUTE_READ; break; case PROT_READ | PROT_EXEC: wprot = PAGE_EXECUTE_READ; break; case PROT_WRITE: wprot = PAGE_READWRITE; break; case PROT_READ | PROT_WRITE: wprot = PAGE_READWRITE; break; case PROT_READ | PROT_WRITE | PROT_EXEC: wprot = PAGE_EXECUTE_READWRITE; break; case PROT_WRITE | PROT_EXEC: wprot = PAGE_EXECUTE_READWRITE; break; } /* Obtaing handle to map region */ h = CreateFileMapping ((HANDLE) _get_osfhandle (fd), 0, wprot, 0, len, 0); if (h == NULL) { DWORD error = GetLastError (); /* Try and translate some error codes */ switch (error) { case ERROR_ACCESS_DENIED: case ERROR_INVALID_ACCESS: errno = EACCES; break; case ERROR_OUTOFMEMORY: case ERROR_NOT_ENOUGH_MEMORY: errno = ENOMEM; break; default: errno = EINVAL; break; } return MAP_FAILED; } /* Translate sharing options into WIN32 constants */ switch (wprot) { case PAGE_READONLY: waccess = FILE_MAP_READ; break; case PAGE_READWRITE: waccess = FILE_MAP_WRITE; break; } /* Map file and return pointer */ region = MapViewOfFile (h, waccess, 0, 0, 0); if (region == NULL) { DWORD error = GetLastError (); /* Try and translate some error codes */ switch (error) { case ERROR_ACCESS_DENIED: case ERROR_INVALID_ACCESS: errno = EACCES; break; case ERROR_INVALID_HANDLE: errno = EBADF; break; default: errno = EINVAL; break; } CloseHandle (h); return MAP_FAILED; } CloseHandle (h); /* ok to call UnmapViewOfFile after this */ /* All fine */ return region; } /** * @brief Unmap a memory region * * This is a wrapper around UnmapViewOfFile in the win32 API * * @param addr start address * @param len length of the region * @return 0 for success, -1 for error */ int munmap (void *addr, int len) { if (UnmapViewOfFile (addr)) { return 0; } else { errno = EINVAL; return -1; } } /** * Synchronize a mapped region * * This is a wrapper around FlushViewOfFile * * @param addr start address * @param len number of bytes to flush * @param flags sync options -- currently ignored * @return 0 for success, -1 for error */ int msync (char *addr, int len, int flags) { if (FlushViewOfFile (addr, len) == 0) { DWORD error = GetLastError (); /* Try and translate some error codes */ switch (error) { case ERROR_INVALID_PARAMETER: errno = EINVAL; break; case ERROR_WRITE_FAULT: errno = EIO; break; default: errno = EINVAL; break; } return -1; } /* Success */ return 0; } ================================================ FILE: src/wsauth.c ================================================ /** * wsauth.c - web socket authentication * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "wsauth.h" #include "base64.h" #include "util.h" #include "pdjson.h" #include "settings.h" #include "xmalloc.h" char * read_secret_from_file (const char *path) { FILE *file = fopen (path, "r"); char *secret = xcalloc (1, MAX_SECRET_SIZE); if (!file) { perror ("Error opening secret file"); return NULL; } if (!secret) { perror ("Error allocating memory"); fclose (file); return NULL; } if (!fgets (secret, MAX_SECRET_SIZE, file)) { perror ("Error reading secret file"); free (secret); fclose (file); return NULL; } fclose (file); // Remove trailing newline, if present. secret[strcspn (secret, "\n")] = '\0'; return secret; } /* Generate a new secret (HS256-compatible) and return it as a hex string. */ char * generate_ws_auth_secret (void) { char *secret_hex = NULL; int secret_len = 32; // 256 bits unsigned char secret_bytes[32]; if (RAND_bytes (secret_bytes, secret_len) != 1) { fprintf (stderr, "Error generating random bytes\n"); return NULL; } secret_hex = xmalloc (secret_len * 2 + 1); if (!secret_hex) return NULL; for (int i = 0; i < secret_len; i++) { sprintf (&secret_hex[i * 2], "%02x", secret_bytes[i]); } secret_hex[secret_len * 2] = '\0'; return secret_hex; } static char * create_jwt_payload (const char *sub, long iat, long exp) { const char *aud = "goaccess_ws"; const char *scope = "report_access"; char *payload = NULL; char hostname[HOST_NAME_MAX]; if (gethostname (hostname, sizeof (hostname)) != 0) { perror ("gethostname"); // Fallback to a default issuer value if hostname retrieval fails. strcpy (hostname, "goaccess"); } // Allocate a buffer for the payload JSON. // Adjust the size if you plan on including more data. payload = xcalloc (1, MAX_JWT_PAYLOAD); if (!payload) return NULL; // Build the JSON payload. snprintf (payload, MAX_JWT_PAYLOAD, "{\"iss\":\"%s\",\"sub\":\"%s\",\"iat\":%ld,\"exp\":%ld,\"aud\":\"%s\",\"scope\":\"%s\"}", hostname, sub, iat, exp, aud, scope); return payload; } char * create_jwt_token (void) { char *jwt = NULL, *payload = NULL, report_id[50]; time_t now = time (NULL); struct tm *jwt_now_tm = localtime (&now); // Configure token lifetime in seconds long token_lifetime = conf.ws_auth_expire > 0 ? conf.ws_auth_expire : DEFAULT_EXPIRE_TIME; long iat = now; long exp = now + token_lifetime; // Format the date as "YYYYMMDD" for the report ID snprintf (report_id, sizeof (report_id), "goaccess_report_%04d%02d%02d", jwt_now_tm->tm_year + 1900, jwt_now_tm->tm_mon + 1, jwt_now_tm->tm_mday); payload = create_jwt_payload (report_id, iat, exp); if (!payload) { fprintf (stderr, "Failed to create JWT payload\n"); return NULL; } jwt = generate_jwt (conf.ws_auth_secret, payload); free (payload); return jwt; } static int verify_jwt_signature (const char *jwt, const char *secret) { char *token_dup = NULL, *header_part = NULL, *payload_part = NULL, *signature_part = NULL, *signing_input = NULL, *computed_signature = NULL, *computed_signature_url = NULL; unsigned char *hmac_result = NULL; unsigned int hmac_len = 0; int valid = 0; size_t signing_input_len = 0; if (!jwt || !secret) { return 0; } token_dup = strdup (jwt); if (!token_dup) { return 0; } header_part = strtok (token_dup, "."); payload_part = strtok (NULL, "."); signature_part = strtok (NULL, "."); if (!header_part || !payload_part || !signature_part) { free (token_dup); return 0; } signing_input_len = strlen (header_part) + 1 + strlen (payload_part) + 1; signing_input = malloc (signing_input_len); if (!signing_input) { free (token_dup); return 0; } snprintf (signing_input, signing_input_len, "%s.%s", header_part, payload_part); hmac_result = HMAC (EVP_sha256 (), secret, strlen (secret), (unsigned char *) signing_input, strlen (signing_input), NULL, &hmac_len); free (signing_input); if (!hmac_result) { free (token_dup); return 0; } computed_signature = base64_encode (hmac_result, hmac_len); if (!computed_signature) { free (token_dup); return 0; } // Convert computed_signature to Base64Url format computed_signature_url = base64UrlEncode (computed_signature); free (computed_signature); if (!computed_signature_url) { free (token_dup); return 0; } valid = (strcmp (computed_signature_url, signature_part) == 0); free (computed_signature_url); free (token_dup); return valid; } static int validate_jwt_claims (const char *payload_json) { json_stream json; enum json_type t = JSON_ERROR; size_t len = 0, level = 0; enum json_type ctx = JSON_ERROR; char hostname[HOST_NAME_MAX] = { 0 }; char *curr_key = NULL; /* Validation flags/values. */ int valid_iss = 0, valid_sub = 0, valid_aud = 0, valid_scope = 0; long iat = 0, exp = 0; time_t now = time (NULL); /* Get hostname for the issuer check. */ if (gethostname (hostname, sizeof (hostname)) != 0) { perror ("gethostname"); strcpy (hostname, "goaccess"); } /* Open JSON payload as a stream and disable streaming mode. */ json_open_string (&json, payload_json); json_set_streaming (&json, false); /* The payload should be a JSON object. */ t = json_next (&json); if (t != JSON_OBJECT) { json_close (&json); return 0; } /* Iterate over each token (key or value) in the JSON object. */ while ((t = json_next (&json)) != JSON_DONE && t != JSON_ERROR) { ctx = json_get_context (&json, &level); /* keys typically appear when (level % 2) != 0 and not inside an array. * otherwise, the token is a value. */ if ((level % 2) != 0 && ctx != JSON_ARRAY) { /* This token is a key. Duplicate it to use for matching. */ if (curr_key) free (curr_key); curr_key = xstrdup (json_get_string (&json, &len)); } else { /* Assume this token is the value for the last encountered key. */ if (curr_key) { char *val = xstrdup (json_get_string (&json, &len)); if (strcmp (curr_key, "iss") == 0) { /* "iss" must equal the hostname. */ valid_iss = (strcmp (val, hostname) == 0); } else if (strcmp (curr_key, "sub") == 0) { /* "sub" must be non-empty. */ valid_sub = (val[0] != '\0'); } else if (strcmp (curr_key, "aud") == 0) { valid_aud = (strcmp (val, "goaccess_ws") == 0); } else if (strcmp (curr_key, "scope") == 0) { valid_scope = (strcmp (val, "report_access") == 0); } else if (strcmp (curr_key, "iat") == 0) { iat = strtol (val, NULL, 10); } else if (strcmp (curr_key, "exp") == 0) { exp = strtol (val, NULL, 10); } free (val); free (curr_key); curr_key = NULL; } } } if (curr_key) free (curr_key); json_close (&json); /* Final validation */ if (conf.ws_auth_verify_only) { if (iat > 0 && exp > iat && now >= iat && now <= exp) return 1; else return 0; } else { if (valid_iss && valid_sub && valid_aud && valid_scope && iat > 0 && exp > iat && now >= iat && now <= exp) return 1; // Valid JWT claims. else return 0; // One or more claim validations failed. } } /* verifies the JWT signature. * Returns 1 if valid, 0 if not. */ int verify_jwt_token (const char *jwt, const char *secret) { char *payload_part = NULL, *payload_json = NULL, *token_dup = NULL, *std_payload = NULL; size_t payload_len = 0; int valid_signature = 0, valid_claims = 0; /* Step 1: Verify the signature */ valid_signature = verify_jwt_signature (jwt, secret); if (!valid_signature) { return 0; } /* Step 2: Extract the payload part from the JWT */ token_dup = strdup (jwt); if (!token_dup) { return 0; } strtok (token_dup, "."); // Skip header payload_part = strtok (NULL, "."); // Get payload if (!payload_part) { free (token_dup); return 0; } /* Convert Base64Url to standard Base64 before decoding */ std_payload = base64UrlDecode (payload_part); if (!std_payload) { free (token_dup); return 0; } /* Step 3: Decode the base64url-encoded payload */ payload_json = base64_decode (std_payload, &payload_len); free (std_payload); free (token_dup); if (!payload_json) { return 0; } /* Null-terminate the payload JSON string for parsing */ payload_json = realloc (payload_json, payload_len + 1); if (!payload_json) { return 0; } payload_json[payload_len] = '\0'; /* Step 4: Validate the claims */ valid_claims = validate_jwt_claims (payload_json); /* Clean up */ free (payload_json); return valid_claims; } /* Generate a JWT signed with HMAC-SHA256. * - secret: the secret key as a string (from conf.ws_auth_secret) * - payload: a JSON string to be used as the JWT payload. * * The JWT header is fixed to {"alg":"HS256","typ":"JWT"}. * * The returned JWT is dynamically allocated and must be freed by the caller. */ char * generate_jwt (const char *secret, const char *payload) { char *encoded_payload = NULL, *encoded_header = NULL, *encoded_signature = NULL; char *signing_input = NULL; const char *header = "{\"alg\":\"HS256\",\"typ\":\"JWT\"}"; unsigned char *hmac_result = NULL; unsigned int hmac_len = 0; size_t jwt_len = 0, signing_input_len = 0; char *jwt = NULL, *tmp = NULL; /* Encode header and convert to base64url */ tmp = base64_encode ((const unsigned char *) header, strlen (header)); if (!tmp) return NULL; encoded_header = base64UrlEncode (tmp); free (tmp); if (!encoded_header) return NULL; /* Encode payload and convert to base64url */ tmp = base64_encode ((const unsigned char *) payload, strlen (payload)); if (!tmp) { free (encoded_header); return NULL; } encoded_payload = base64UrlEncode (tmp); free (tmp); if (!encoded_payload) { free (encoded_header); return NULL; } /* Create the signing input: "." */ signing_input_len = strlen (encoded_header) + 1 + strlen (encoded_payload) + 1; signing_input = malloc (signing_input_len); if (!signing_input) { free (encoded_header); free (encoded_payload); return NULL; } snprintf (signing_input, signing_input_len, "%s.%s", encoded_header, encoded_payload); /* Compute HMAC-SHA256 signature */ hmac_result = HMAC (EVP_sha256 (), secret, strlen (secret), (unsigned char *) signing_input, strlen (signing_input), NULL, &hmac_len); if (!hmac_result) { free (encoded_header); free (encoded_payload); free (signing_input); return NULL; } /* Base64url-encode the signature */ tmp = base64_encode (hmac_result, hmac_len); if (!tmp) { free (encoded_header); free (encoded_payload); free (signing_input); return NULL; } encoded_signature = base64UrlEncode (tmp); free (tmp); if (!encoded_signature) { free (encoded_header); free (encoded_payload); free (signing_input); return NULL; } /* Build the final JWT: ".." */ jwt_len = strlen (encoded_header) + 1 + strlen (encoded_payload) + 1 + strlen (encoded_signature) + 1; jwt = malloc (jwt_len); if (!jwt) { free (encoded_header); free (encoded_payload); free (signing_input); free (encoded_signature); return NULL; } snprintf (jwt, jwt_len, "%s.%s.%s", encoded_header, encoded_payload, encoded_signature); free (encoded_header); free (encoded_payload); free (signing_input); free (encoded_signature); return jwt; } ================================================ FILE: src/wsauth.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef WSAUTH_H_INCLUDED #define WSAUTH_H_INCLUDED #define MAX_SECRET_SIZE 256 #define MAX_JWT_PAYLOAD 512 #define DEFAULT_EXPIRE_TIME 28800 // seconds char *create_jwt_token (void); char *generate_jwt (const char *secret, const char *payload); char *generate_ws_auth_secret (void); char *read_secret_from_file (const char *path); int verify_jwt_token (const char *jwt, const char *secret); #endif // for #ifndef WSAUTH_H ================================================ FILE: src/xmalloc.c ================================================ /** * xmalloc.c -- *alloc functions with error handling * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include #if !defined __SUNPRO_C #include #endif #include #include #include "error.h" #include "xmalloc.h" /* Self-checking wrapper to malloc() */ void * xmalloc (size_t size) { void *ptr; if ((ptr = malloc (size)) == NULL) FATAL ("Unable to allocate memory - failed."); return (ptr); } char * xstrdup (const char *s) { char *ptr; size_t len; len = strlen (s) + 1; ptr = xmalloc (len); strncpy (ptr, s, len); return (ptr); } /* Self-checking wrapper to calloc() */ void * xcalloc (size_t nmemb, size_t size) { void *ptr; if ((ptr = calloc (nmemb, size)) == NULL) FATAL ("Unable to calloc memory - failed."); return (ptr); } /* Self-checking wrapper to realloc() */ void * xrealloc (void *oldptr, size_t size) { void *newptr; if ((newptr = realloc (oldptr, size)) == NULL) FATAL ("Unable to reallocate memory - failed"); return (newptr); } ================================================ FILE: src/xmalloc.h ================================================ /** * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 2009-2026 Gerardo Orellana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef XMALLOC_H_INCLUDED #define XMALLOC_H_INCLUDED char *xstrdup (const char *s); void *xcalloc (size_t nmemb, size_t size); void *xmalloc (size_t size); void *xrealloc (void *oldptr, size_t size); #endif