Files
coremarket/app/data/cities.py
T
davidandClaude Opus 5.5 1bb2a299c7 Add Coremarket: Federated Core VM sizing and cloud pricing app
Dockerised FastAPI web app that sizes a VM for a selection of Federated
Computer apps (Base/Good/Better/Best tiers or custom) and prices it across
14 cloud providers and ~250 regions, grouped by continent.

- Sizing model per app with shared databases, headroom and disk growth
- Live pricing from Vultr, Akamai/Linode and Azure (DigitalOcean and
  Hetzner with tokens); dated catalog for the rest
- Hand-maintained Contabo price sheet with editor and table paste,
  including the one-time setup fee
- HIPAA/SOC2/PCI DSS/GDPR status, SMTP port 25, IPv4 and egress notes
- Estimated latency to 40 cities, real RTT via Globalping probes
- Versioned REST API (/api/v1) with OpenAPI docs and CSV export
- Accounts with admin/user roles, first admin from ADMIN_USERNAME /
  ADMIN_PASSWORD, per-account API keys, SQLite storage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:36:51 -07:00

50 lines
2.2 KiB
Python

"""Latency target cities: (id, name, country, lat, lon, extra_ms).
extra_ms is a last-mile / peering penalty added to the physical estimate for
markets where traffic commonly takes indirect routes (e.g. West Africa via
Europe, Bangladesh via Singapore/India transit).
"""
CITIES = [
("mex", "Mexico City", "MX", 19.43, -99.13, 5),
("nyc", "New York City", "US", 40.71, -74.01, 0),
("lax", "Los Angeles", "US", 34.05, -118.24, 0),
("chi", "Chicago", "US", 41.88, -87.63, 0),
("dfw", "Dallas/Fort Worth", "US", 32.90, -97.04, 0),
("hou", "Houston", "US", 29.76, -95.37, 0),
("tor", "Toronto", "CA", 43.65, -79.38, 0),
("atl", "Atlanta", "US", 33.75, -84.39, 0),
("was", "Washington DC", "US", 38.91, -77.04, 0),
("mia", "Miami", "US", 25.76, -80.19, 0),
("sao", "Sao Paulo", "BR", -23.55, -46.63, 0),
("bue", "Buenos Aires", "AR", -34.60, -58.38, 5),
("rio", "Rio de Janeiro", "BR", -22.91, -43.17, 0),
("bog", "Bogota", "CO", 4.71, -74.07, 5),
("lim", "Lima", "PE", -12.05, -77.04, 5),
("scl", "Santiago", "CL", -33.45, -70.67, 0),
("tyo", "Tokyo", "JP", 35.68, 139.69, 0),
("jkt", "Jakarta", "ID", -6.21, 106.85, 5),
("del", "Delhi", "IN", 28.61, 77.21, 5),
("sha", "Shanghai", "CN", 31.23, 121.47, 0), # cross-border penalty applied in latency.py
("mnl", "Manila", "PH", 14.60, 120.98, 8),
("dac", "Dhaka", "BD", 23.81, 90.41, 15),
("sel", "Seoul", "KR", 37.57, 126.98, 0),
("syd", "Sydney", "AU", -33.87, 151.21, 0),
("per", "Perth", "AU", -31.95, 115.86, 0),
("mel", "Melbourne", "AU", -37.81, 144.96, 0),
("tpe", "Taipei", "TW", 25.03, 121.57, 0),
("cai", "Cairo", "EG", 30.04, 31.24, 10),
("los", "Lagos", "NG", 6.52, 3.38, 20),
("jnb", "Johannesburg", "ZA", -26.20, 28.05, 0),
("par", "Paris", "FR", 48.86, 2.35, 0),
("mad", "Madrid", "ES", 40.42, -3.70, 0),
("muc", "Munich", "DE", 48.14, 11.58, 0),
("bcn", "Barcelona", "ES", 41.39, 2.17, 0),
("mil", "Milan", "IT", 45.46, 9.19, 0),
("ber", "Berlin", "DE", 52.52, 13.40, 0),
("rom", "Rome", "IT", 41.90, 12.50, 0),
("ath", "Athens", "GR", 37.98, 23.73, 3),
("rtm", "Rotterdam", "NL", 51.92, 4.48, 0),
("jrs", "Jerusalem", "IL", 31.77, 35.21, 0),
]