ForHosting KIT · Travel & geography

Hammer projection calculator

Project a latitude and longitude onto the Hammer equal-area world map, or turn x and y back into coordinates: the point at latitude 0 and longitude 0 lands at the center, x 0 and y 0. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Lat deg
0
Lon deg
0
R
1
Decimal places
6
You get
Calculation mode
Forward
X
0
Y
0

Hammer (Hammer–Aitoff) equal-area projection forward/inverse. Search intent: hammer projection calculator. No network calls or random seeds are required. Failed jobs are not billed.

One world map, two directions

The Hammer projection, also known as Hammer–Aitoff, draws the whole globe on a flat map while keeping areas in proportion: a country twice the size of another on the sphere also takes twice the space on the map. This calculator works in both directions. Forward, you give a latitude and a longitude in degrees and get the map position x and y. Inverse, you give x and y and recover the latitude and longitude. The point at latitude 0 and longitude 0 sits exactly at the center of the map, at x 0 and y 0.

How to avoid the usual mistakes

Enter angles in degrees, not radians, and keep the same sphere radius when you project and when you convert back, or the round trip will not land on the starting point. A radius of 1 gives normalized coordinates that are easy to scale later. If you need fewer digits, ask for a number of decimals; rounding then happens once, half up, from the full result, so repeated conversions do not drift. Invalid values are refused before any calculation, and the same input always returns the same answer, which makes the results safe to reuse in spreadsheets and teaching material.

Teaching

Pinned goldens.

What does the Hammer projection preserve?

It preserves area. Regions that are the same size on the globe also cover the same area on the map, so it suits world maps where you want to compare the size of regions fairly.

Can I turn map x and y back into latitude and longitude?

Yes. Choose the inverse direction, enter x and y with the same radius used to create them, and the calculator recovers the latitude and longitude. Projecting a point and then inverting it brings you back to where you started.

What does the sphere radius change?

It sets the size of the sphere the map is drawn from. With a radius of 1 you get coordinates on the unit sphere, and a larger radius gives proportionally larger x and y. Use the same radius when you convert back.

How are the results rounded?

Only when you ask for a number of decimals, and only once. The calculator works with the unrounded values and rounds half up at the very end, so a value exactly halfway goes up and no rounding error builds up along the way.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/geo/hammer

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/geo/hammer \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat_deg":0,"lon_deg":0}'
{
  "lat_deg": 0,
  "lon_deg": 0
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "geo.hammer",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks, automation, or teaching demos.

How it works

Hammer (Hammer–Aitoff) equal-area projection forward/inverse. x,y from φ,λ on unit sphere; inverse recovers lat/lon. No network calls or random seeds are required. Failed jobs are not billed. No network calls or random seeds are required. Failed jobs are not billed. The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks, automation, or teaching demos. The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks, automation, or teaching demos.

Inputs, limits and rounding

Optional decimals use half-up once. Optional output fields are omitted, never null. No network calls or random seeds are required. Failed jobs are not billed. No network calls or random seeds are required. Provide required JSON fields with DOM-safe names. Invalid types raise invalid_input. The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks, automation, or teaching demos. The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks,

When to use it

Use when search intent matches. Hammer (Hammer–Aitoff) equal-area projection forward/inverse. EN-only delivery; Nitro hydrates locales. No network calls or random seeds are required. Failed jobs are not billed. No network calls or random seeds are required. Failed jobs are not The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks, automation, or teaching demos. The calculator is free in the browser, deterministic, and identical on the API path. Inputs are validated before arithmetic so invalid payloads fail with invalid_input. Half-up rounding is applied once from raw IEEE values when decimals are requested. Use the same JSON from spreadsheets, CMS hooks, automation, or teaching demos.

Quick check

Free widget.

Automation

API same JSON.

Free?

Yes tier A.

Network?

No.

Bad input?

invalid_input.

API?

Yes.

Locales?

EN-only; Nitro hydrates.

Read the full KIT documentation →