Guard against invalid lng/lat values.

Closes #27.