PREVIOUS Network group

NEXT Logic group

Geolocation group

1. Gelocated AS owner

Description

Geolocates an IP address and returns the AS (autonomus system) owner name.

Format

mmasowner(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmasowner(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : Google Inc.
  Example 2

mmasowner(216.58.211.229)

    • arg_1 : 216.58.211.229
    • result : Google Inc
  Example 3

mmasowner(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : Twitter Inc
  Example 4

mmasowner(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : Amazon.com,Inc.

2. Gelocated ASN

Description

Geolocates an IP address and returns the ASN (autonomous system number).An ASN is an unique number assigned to an AS (autonomous system) by IANA.

Format

mmasn(arg_1) → result

  • arg_1 : IP address
  • result : Integer

Examples

  Example 1

mmasn(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : 15169

    • arg_1 : 216.58.211.229
    • result : 15169
  Example 2

mmasn(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : 13414
  Example 3

mmasn(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : 16509

3. Geolocated City

Description

Geolocates an IP and returns the city name.

Format

mmcity(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmcity(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : Mountain View
  Example 2

mmcity(195.55.79.118)

    • arg_1 : 195.55.79.118
    • result : Madrid
  Example 3

mmcity(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : Mountain View
  Example 4

mmcity(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : Ashburn

4. Geolocated Connection Speed

Description

Geolocates an IP and returns the connection speed category.

Format

mmspeed(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmspeed(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : Corporate
  Example 2

mmspeed(195.55.79.118)

    • arg_1 : 195.55.79.118
    • result : Cable/DSL
  Example 3

mmspeed(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : Corporate
  Example 4

mmspeed(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : Corporate

5. Geolocated Country

Description

Geolocates an IP and returns the country code.

Format

mmcountry(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmcountry(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : US
  Example 2

mmcountry(195.55.79.118)

    • arg_1 : 195.55.79.118
    • result : ES
  Example 3

mmcountry(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : US
  Example 4

mmcountry(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : US

6. Geolocated Latitude

Description

Geolocates an IP and returns the corresponding latitude.

Format

mmlatitude(arg_1) → result

  • arg_1 : IP address
  • result : Float

Examples

  Example 1

mmlatitude(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : 37.4192
  Example 2

mmlatitude(194.153.110.160)

    • arg_1 : 194.153.110.160
    • result : 48.8534
  Example 3

mmlatitude(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : 37.7758
  Example 4

mmlatitude(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : 39.018

7. Geolocated Longitude

Description

Geolocates an IP and returns the corresponding longitude.

Format

mmlongitude(arg_1) → result

  • arg_1 : IP address
  • result : Float

Examples

  Example 1

mmlongitude(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : -122.0574
  Example 2

mmlongitude(194.153.110.160)

    • arg_1 : 194.153.110.160
    • result : 2.3488
  Example 3

mmlongitude(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : -122.4128
  Example 4

mmlongitude(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : -77.539

8. Geolocated Organization

Description

Geolocates an IP and returns the organization name.

Format

mmorg(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmorg(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : Google
  Example 2

mmorg(216.58.211.229)

    • arg_1 : 216.58.211.229
    • result : Google
  Example 3

mmorg(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : Twitter
  Example 4

mmorg(54.239.25.200)

9. Geolocated Postal Code

Description

Geolocates an IP and returns the corresponding postal code.

Format

mmpostalcode(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmpostalcode(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : 94043
  Example 2

mmpostalcode(195.55.79.118)

    • arg_1 : 195.55.79.118
    • result : 28008
  Example 3

mmpostalcode(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : 94103
  Example 4

mmpostalcode(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : 20147

10. Geolocated Region

Description

Geolocates an IP and returns the region code.

Format

mmregion(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmregion(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : CA
  Example 2

mmregion(195.55.79.118)

    • arg_1 : 195.55.79.118
    • result : 29
  Example 3

mmregion(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : CA
  Example 4

mmregion(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : VA

11. Geolocated Region Name

Description

Geolocates an IP and returns the region name.

Format

mmregionname(arg_1) → result

  • arg_1 : IP address
  • result : String

Examples

  Example 1

mmregionname(216.58.214.174)

    • arg_1 : 216.58.214.174
    • result : California
  Example 2

mmregionname(195.55.79.118)

    • arg_1 : 195.55.79.118
    • result : Madrid
  Example 3

mmregionname(104.244.42.193)

    • arg_1 : 104.244.42.193
    • result : California
  Example 4

mmregionname(54.239.25.200)

    • arg_1 : 54.239.25.200
    • result : Virginia

12. Geohash

Description

Generates a geocoord based on geohash coordinates. This can be done using a geohash string or another geocoord. Geohash geocoords are based on the geohash string of coordinates. Their precision depend on the length of the geohash string, so the longer, the more precise.

Format 1

  geohash(arg_1) → result
  • arg_1 : String
  • result : Geocoord

Format 2

  geohash(arg_1) → result
  • arg_1 : Geocoord
  • result : Geocoord

Format 3

  geohash(arg_1, arg_2) → result
  • arg_1 : Geocoord
  • arg_2 : Integer
  • result : Geocoord

Examples

  Example 1

geohash("ezjmguvj")

    • arg_1 : ezjmguvj
    • result : ezjmguvj
  Example 2

geohash(geocoord("40°24'46.2\"N 3°41'43.8\"W"))

    • arg_1 : geocoord("40°24'46.2\"N °41'43.8\"W")
    • result : ezjmguvj
  Example 3

geohash(geocoord("ezjmguvj"), 7)

    • arg_1 : ezjmguvj
    • arg_2 : 7
    • result : ezjmguv
  Example 4

geohash(latlon(40.412845, -3.695500), 10)

    • arg_1 : latlon(40.412845, -3.695500)
    • arg_2 : 10
    • result : ezjmguvjbs
  Example 5

geohash(geohash("ezjmguvj"), 10)

    • arg_1 : ezjmguvj
    • arg_2 : 10
    • result : ezjmguvj00

When using this operation with another geocoord, the geohash string length can be specified (8 by default).

  • If the original geocoord is a latlon, geohash will be calculated based on its latitude and longitude, returning an as much precise as specified geohash.
  • When it is a geohash, if the length is less than the original one, it will be truncated to the new size, but if it is greater, it will be filled with zeros to the right.

12. Geocoord

Description

Generates a geocoord from the given string, which must be a valid representation of one of the supported coordinate systems, listed below:

  Supported coordinate systems
  • Latlon - based on latitude and longitude and represented as sexagesimal coordinates, using degrees, minutes, seconds and position. Here is an example: 40°24'46.3"N 3°41'43.8"W. 
  • Geohash - Hash representation of coordinates, called geohash. Here is an example: ezjmguvj.

Format

geocoord(arg_1) → result

  • arg_1 : String
  • result : Geocoord

Examples

  Example 1

geocoord("ezjmguvj")

    • arg_1 : ezjmguvj
    • result : ezjmguvj
  Example 2

geocoord("40°24'46.2\"N 3°41'43.8\"W")

    • arg_1 : "40°24'46.2\"N 3°41'43.8\"W"
    • result : 40°24'46.2"N 3°41'43.8"W"

12. Geohash string

Description

Returns the geohash string of the given geocoord and length (8 if not specified).

Format 1

  geohashstr(arg_1) → result
  • arg_1 : Geocoord
  • result : String

Format 2

  geohashstr(arg_1, arg_2) → result
  • arg_1 : Geocoord
  • arg_2 : Integer
  • result : String

Examples

  Example 1

geohashstr(latlon(40.412856, -3.695502), 12)

    • arg_1 : latlon(40.412856, -3.695502)
    • arg_2 : 12
    • result : ezjmguvjbw3u
  Example 2

geohashstr(geohash("ezjmguvj"))

    • arg_1 : geohash("ezjmguvj")
    • result : ezjmguvj

13. Latitude

Description

Returns the latitude of the given geocoord.

Format

latitude(arg_1) → result

  • arg_1 : Geocoord
  • result : Float

Examples

  Example 1

latitude(latlon(40.412856, -3.695502))

    • arg_1 : latlon(40.412856, -3.695502)
    • result : 40.412856
  Example 2

latitude(geohash("ezjmguvj"))

    • arg_1 : geohash("ezjmguvj")
    • result : 40.41277885437012
  Example 3

latitude(geocoord("40°24'46.2\"N 3°41'43.8\"W"))

    • arg_1 : geocoord("40°24'46.2\"N 3°41'43.8\"W")
    • result : 40.41283333333333

14. Longitude

Description

Returns the longitude of the given geocoord.

Format

longitude(arg_1) → result

  • arg_1 : Geocoord
  • result : Float

Examples

  Example 1

longitude(latlon(40.412856, -3.695502))

    • arg_1 : latlon(40.412856, -3.695502)
    • result : -3.695502
  Example 2

longitude(geohash("ezjmguvj"))

    • arg_1 : geohash("ezjmguvj")
    • result : -3.695354461669922
  Example 3

longitude(geocoord("40°24'46.2\"N 3°41'43.8\"W"))

    • arg_1 : geocoord("40°24'46.2\"N 3°41'43.8\"W")
    • result : -3.6955000000000005

15. Geographic coordinate system

Description

Returns the coordsystem of the given geocoord.

Format

coordsystem(arg_1) → result

  • arg_1 : Geocoord
  • result : String

Examples

  Example 1

coordsystem(geocoord("40°24'46.2\"N 3°41'43.8\"W"))

    • arg_1 : geocoord("40°24'46.2\"N 3°41'43.8\"W")
    • result : latlon
  Example 2

coordsystem(geocoord("ezjmguvj"))

    • arg_1 : geocoord("ezjmguvj")
    • result : geohash
  Example 3

coordsystem(latlon(40.412856, -3.695502))

    • arg_1 : latlon(40.412856, -3.695502)
    • result : latlon
  Example 4

coordsystem(geohash("ezjmguvj"))

    • arg_1 : geohash("ezjmguvj")
    • result : geohash

16. Coordinates distance

Description

Returns the distance in meters between two geocoords.

Format

distance(arg_1, arg_2) → result

  • arg_1 : Geocoord
  • arg_2 : Geocoord
  • result : Float

Examples

  Example 1

distance(latlon(40.412856, -3.695502), latlon(40.412856, -3.695502)))

    • arg_1 : latlon(40.412856, -3.695502)
    • arg_2 : latlon(40.412856, -3.695502)
    • result : 0
  Example 2

distance(geohash("ezjmguvj"), geocoord("37°23'12.5\"N 121°59'16.6\"W"))

    • arg_1 : geohash("ezjmguvj")
    • arg_2 : geocoord("37°23'12.5\"N 121°59'16.6\"W")
    • result : 9325197.3941119

17. Round coordinates

Description

Rounds geo-coordinates according to a grid divided depending on the given latitude and longitude precision (in degrees), or to an uniform grid with the specified number of divisions.

  Click to see the latitude/longitude values
  • Latitude values: [-90, 90]
  • Longitude values: [-180, 180], but as -180 and 180 represent the same point, only 180 is in this grid (see the example below).
  Example of divisions in a non-uniform grid
  • Latitude precision = 30 → 6 divisions

[-90, -60) → -75

[-60, -30) → -45

[-30, 0) → -15

[0, 30) → 15

[30, 60) → 45

[60, 90] → 75

  • Longitude precision = 90 → 4 divisions

[-45, 45) → 0

[45, 135) → 90

[135, 180], [-180, -135) → 180

[-135, -45) → -90

Total grid size = 24

Format 1

gridlatlon(arg_1, arg_2, arg_3) → result

  • arg_1 : Geocoord
  • arg_2 : Float
  • arg_3 : Float
  • result : Geocoord

Format 2

gridlatlon(arg_1, arg_2) → result

  • arg_1 : Geocoord
  • arg_2 : Integer
  • result : Geocoord

Examples

  Example 1

gridlatlon(latlon(40.412856, -3.695502), 5, 5)

    • arg_1 : latlon(40.412856, -3.695502)
    • arg_2 : 5
    • arg_3 : 5
    • result : 42°30'0.0"N 5°0'0.0"W
  Example 2

gridlatlon(geohash("9q9k8n51"), 30, 90)

    • arg_1 : geohash("9q9k8n51")
    • arg_2 : 30
    • arg_3 : 90
    • result : 45°0'0.0"N 90°0'0.0"W
  Example 3

gridlatlon(geocoord("37°23'12.5\"N 121°59'16.6\"W"), 100)

    • arg_1 : geoeocoord("37°23'12.5\"N 121°59'16.6\"W")hash("9q9k8n51")
    • arg_2 : 100
    • result : 33°45'0.0"N 112°30'0.0''

18. Latitude and longitude coordinates

Description

Generates a geocoord based on sexagesimal coordinates. It can be done using latitude and longitude numerical values, another geocoord or a coordinate string. Latlon geocoords are based on latitude and longitude, which are decimal numbers with the following characteristics:

  Latitude / longitude characteristics
  • Latitude
    • between 0° and 90° → Northern hemisphere
    • between 0° and -90° → Southern hemisphere

  • Longitude
    • between 0° and 180° → East of the Greenwich meridian
    • between 0° and -180° → West of the Greenwich meridian

Format 1

  latlon(arg_1, arg_2) → result
  • arg_1 : Float
  • arg_2 : Float
  • result : Geocoord

Format 2

  latlon(arg_1) → result
  • arg_1 : Geocoord
  • result : Geocoord

Format 3

  latlon(arg_1) → result
  • arg_1 : String
  • result : Geocoord

Examples

  Example 1

latlon(40.412845, -3.695500)

    • arg_1 : 40.412845
    • arg_2 : -3.695500
    • result : 40°24'46.24199999999007"N 3°41'43.80000000000024"W
  Example 2

latlon(geocoord("40°24'46.2\"N 3°41'43.8\"W"))

    • arg_1 : geocoord("40°24'46.2\"N 3°41'43.8\"W")
    • result : 40°24'46.19999999999379"N 3°41'43.80000000000152"W
  Example 3

latlon(geocoord("ezjmguvj"))

    • arg_1 : ezjmguvj
    • result : 40°24'46.003875732421875"N 3°41'43.27606201171875"W
  Example 4

latlon("40°24'46.2\"N 3°41'43.8\"W")

    • arg_1 : 40°24'46.2"N 3°41'43.8"
    • result : 40°24'46.19999999999379"N 3°41'43.80000000000152"W

For this reason, latlon geocoords are represented using sexagesimal coordinates, using degrees, minutes and seconds: one angle degree includes 60 angle minutes, and one angle minute consists of 60 angle seconds of arc. As sexagesimal coordinates cannot have a negative value, letters to specify the position are used:

  Latlon geocords representation
  • N → Positive latitude
  • S → Negative latitude
  • E → Positive longitude
  • W → Negative longitude

For example, these are the values for the following coordinates: 40.412856, -3.695502

  • Latitude → 40.412856
  • Longitude → -3.695502
  • Sexagesimal coordinates → 40°24'46.3"N 3°41'43.8"W

19. Geolocated coordinates

Description

Geolocates an IP address and returns its coordinates.

Format

mmcoordinates(arg_1) → result

  • arg_1 : Ip
  • result : Geocoord

Examples

  Example 1

mmcoordinates(ip("216.58.210.131"))

    • arg_1 : ip4("216.58.210.131")
    • result : 37°25'9.12322998046875"N 122°3'26.65283203125"W
  Example 2

mmcoordinates(123.123.123.123)

    • arg_1 : 123.123.123.123
    • result : 39°55'44.0460205078125"N 116°23'17.8729248046875"E

20. Parse geocoord format

Description

Parses a geocoord in a strict format (type:<value>), as produced by the Represent geocoord format operation. If the format is not valid, the result of the parsing is null.

Format

parsegeo(arg_1) → result

  • arg_1 : String
  • result : Geocoord

Examples

  Example 1

parsegeo(:geohash:78zz0)

    • arg_1 : :geohash:78z0
    • result : 78z0
  Example 2

parsegeo(":latlon:36°N 20°W")

    • arg_1 : :latlon:36°N 20°W
    • result : 36°0'0"N 20°0'0"W
  Example 3

parsegeo(":latlon:40°24'46.3\"N 3°41'43.8\"W")

    • arg_1 : :latlon:40°24'46.3"N 3°41'43.8"W
    • result : 40°24'46.30000000000564"N 3°41'43.80000000000152"W

21. Represent geocoord format

Description

Strict string representation of the given geocoord, in a specific format (type:<value>), where type is the geocoord type.

Format

reprgeo(arg_1) → result

  • arg_1 : Geocoord
  • result : String

Examples

  Example 1

reprgeo(geocoord("78z0"))

    • arg_1 : geocoord("78z0")
    • result : :geohash:78z0
  Example 2

reprgeo(geocoord("36°N 20°W"))

    • arg_1 : geocoord("36°N 20°W")
    • result : :latlon:36°N 20°W
  Example 3

reprgeo(latlon(40.412861, -3.695489))

    • arg_1 : latlon(40.412861, -3.695489)
    • result : :latlon:40°24'46.29959999999812"N 3°41'43.76039999999918"W

22. ISO-3166-1 Continent Alpha-2 Code

Description

Returns the ISO-3166-1 Continent Alpha-2 Code from any continent identification.

Format

continentalpha2(arg_1) → result

  • arg_1 : String
  • result : String

Examples

  Example 1

continentalpha2("Europe") 

    • arg_1 : Europe
    • result : EU
  Example 2

continentalpha2("North America")

    • arg_1 : North America
    • result : NA
  Example 3

continentalpha2("Oceania")

    • arg_1 : Oceania
    • result : OC
  Example 4

continentalpha2("Antarctica")

    • arg_1 : Antarctica
    • result : AN

23. ISO-3166-1 Continent Name

Description

Returns the ISO-3166-1 Continent Name from any continent identification.

Format

continentname(result) → result

    • result : String
    • arg_1: String

Examples

  Example 1

continentname("EU")

    • arg_1: EU
    • result : Europe
  Example 2

continentname("NA")

    • arg_1: NA
    • result : North America
  Example 3

continentname("OC")

    • arg_1: OC
    • result : Oceania
  Example 4

continentname("AN")

    • arg_1: AN
    • result : Antarctica

24. ISO-3166-1 Country Alpha-2 Code

Description

Returns the ISO-3166-1 Country Alpha-2 Code from any country identification.

Format

countryalpha2(arg_1) → result

  • arg_1 : String
  • result : String

Examples

  Example 1

countryalpha2("Spain")

    • arg_1 : Spain
    • result : ES
  Example 2

countryalpha2("United States")

    • arg_1 : United States
    • result : US
  Example 3

countryalpha2("France")

    • arg_1 : France
    • result : FR
  Example 4

countryalpha2("Mex")

    • arg_1 : Mex
    • result : MX

25. ISO-3166-1 Country Alpha-2 Continent

Description

Returns the ISO-3166-1 Country Alpha-2 Continent from any country identification.

Format

countrycontinent(arg_1) → result

  • arg_1 : String
  • result : String

Examples

  Example 1

countrycontinent("Spain")

    • arg_1 : Spain
    • result : EU
  Example 2

countrycontinent("USA")

    • arg_1 : USA
    • result : NA
  Example 3

countrycontinent("JP")

    • arg_1 : JP
    • result : AS
  Example 4

countrycontinent("Australia")

    • arg_1 : Australia
    • result : OC

26. ISO-3166-1 Country Alpha-3 Code

Description

Returns the ISO-3166-1 Country Alpha-3 Code from any country identification.

Format

countryalpha3(arg_1) → result

  • arg_1 : String
  • result : String

Examples

  Example 1

countryalpha3("Spain")

    • arg_1 : Spain
    • result : ESP
  Example 2

countryalpha3("United States")

    • arg_1 : United States
    • result : USA
  Example 3

countryalpha3("France")

    • arg_1 : France
    • result : FR
  Example 4

countryalpha3("MX")

    • arg_1 : MX
    • result : MEX

27. ISO-3166-1 Country Latitude

Description

Returns the ISO-3166-1 Country Latitude from any country identification.

Format

countrylatitude(arg_1) → result

  • arg_1 : String
  • result : Float

Examples

  Example 1

countrylatitude("Spain")

    • arg_1 : Spain
    • result : 40
  Example 2

countrylatitude("USA")

    • arg_1 : USA
    • result : 38
  Example 3

countrylatitude("JP")

    • arg_1 : JP
    • result : 36
  Example 4

countrylatitude("Australia")

    • arg_1 : Australia
    • result : -27

28. ISO-3166-1 Country Longitude

Description

Returns the ISO-3166-1 Country Longitude from any country identification.

Format

countrylongitude(arg_1) → result

  • arg_1 : String
  • result : Float

Examples

  Example 1

countrylongitude("Spain")

    • arg_1 : Spain
    • result : -4
  Example 2

countrylongitude("USA")

    • arg_1 : USA
    • result : -97
  Example 3

countrylongitude("JP")

    • arg_1 : JP
    • result : 138
  Example 4

countrylongitude("Australia")

    • arg_1 : Australia
    • result : 133

29. ISO-3166-1 Country Name

Description

Returns the ISO-3166-1 Country Name from any country identification.

Format

countryname(arg_1) → result

  • arg_1 : String
  • result : String

Examples

  Example 1

countryname("ES")

    • arg_1 : ES
    • result : Spain
  Example 2

countryname("USA")

    • arg_1 : USA
    • result : United States
  Example 3

countryname("FRANCE")

    • arg_1 : FRANCE
    • result : France
  Example 4

countryname("MX")

    • arg_1 : MX
    • result : Mexico

Have we answered your question?

If not, please contact our technical support team via email by clicking the button below.

CONTACT US

PREVIOUS Network group

NEXT Logic group