Sheets Documentation
Complete reference for all MapGO custom functions available in Google Sheets. Enrich your spreadsheets with geospatial data using simple formulas.
Getting Started
Install the add-on
Search for "MapGO" in the Google Workspace Marketplace or install it from our website.
Connect your API key
Open the sidebar via Extensions → MapGO → Open MapGO, then paste your API key. Get your key from your dashboard.
Use formulas
Type any =MAPGO_ formula in a cell. All functions take latitude and longitude as inputs. Put your coordinates in separate columns (e.g., A for lat, B for lng).
Requirements
- Paid plan: Spreadsheet add-ons require a Starter, Professional, or Business plan.
- Coordinates: Latitude (-90 to 90) and longitude (-180 to 180) in decimal format.
- Permissions: The add-on requires access to your spreadsheet and external network to call the MapGO API.
🌍Location Hierarchy
7 functions
Returns the full location hierarchy for coordinates. Includes all available levels: Continent, Country, Region, Subregion, District, Municipality.
Returns the continent name for the given coordinates.
Returns the country name for the given coordinates.
Returns the region or state name for the given coordinates.
Returns the subregion (department, province, etc.) for the given coordinates.
Returns the district name for the given coordinates. Not all countries have districts.
Returns the municipality name for the given coordinates. Not all countries have municipalities.
🌊Coastline Distance
3 functions
Returns the distance to the nearest coastline as a formatted string.
Returns the distance to the nearest coastline in kilometers as a number.
Returns the distance to the nearest coastline in miles as a number.
🗺️Border Distance
3 functions
Returns the distance to the nearest country border as a formatted string.
Returns the distance to the nearest country border in kilometers as a number.
Returns the distance to the nearest country border in miles as a number.
📏Point-to-Point Distance
4 functions
Returns the distance between two coordinate points as a formatted string.
Returns the distance between two points in kilometers as a number.
Returns the distance between two points in miles as a number.
Returns the bearing (compass direction) from the first point to the second in degrees.
🔄Coordinate Conversion
2 functions
Converts decimal coordinates to DMS (Degrees, Minutes, Seconds) format.
Converts decimal coordinates to UTM (Universal Transverse Mercator) format.
Tips & Notes
- Results are cached for 6 hours to minimize API usage. The same coordinates will return instantly after the first call.
- Each formula call counts as one row toward your monthly usage limit.
- Numeric functions (_KM, _MI) return numbers you can use in calculations. Text functions return formatted strings.
- Location hierarchy depth varies by country. Some countries have only Country and Region, while others include Subregion, District, and Municipality.
- Distance calculations use the Haversine formula and are approximate great-circle distances.
- All geographic calculations are based on polygon shapefiles and should be considered approximations.
Need help?
If you have questions or run into issues, we're here to help.
Contact Us