Skip to Main Content

page_parts

Location

Address
A full address, with both house number and street name.
Function name(s):
addresslocation_random.r_address
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
max_address_num Number Maximum house number for an address.
Example output:
{
    "Address": {
            "r_address": "414 Tori Boulevard"
        }
}
Altitude
An altitude/height on earth.
Function name(s):
altitudelocation_random.r_height
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
feet Text [No,Yes] Return the altitude/height in feet
livable Text [No,Yes] Altitude/height value where people are living.
Example output:
{
    "Altitude": {
            "r_height": "1347"
        }
}
Building level
The level of a building.
Function name(s):
building_levellocation_random.r_level
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
Example output:
{
    "Building level": {
            "r_level": "62"
        }
}
City
A city name.
Function name(s):
citylocation_random.r_city
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
state Text State name
Example output:
{
    "City": {
            "r_city": "Fort Smith"
        }
}
Continent
The name of one of the seven continents.
Function name(s):
continentlocation_random.r_continent
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
Example output:
Coordinate
A combination of latitude and longtitude for a point on earth.
Function name(s):
coordinatelocation_random.r_coordinate
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
precision Number Precision scale
Example output:
{
    "Coordinate": {
            "r_coordinate": "29.9205, -179.20655"
        }
}
Country
A country i.e. Denmark or Singapore.
Function name(s):
countrylocation_random.r_country
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
shortform Text [No,Yes] Shortform (China/CN)
Example output:
{
    "Country": {
            "r_country": "KM"
        }
}
Country Location
A random location inside a country.
Function name(s):
country_locationgeo_random.country_location
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
as_spatial Text [No,Yes] Spatial point compatible and not standard format
Example output:
{
    "Country Location": {
            "country_location": "36.9837742597, -92.5478248610519"
        }
}
Country from short
A country i.e. Denmark or Singapore from its short form i.e. DK or SG.
Function name(s):
country_from_shortutil_random.ru_country_from_short
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
country Text Shortform of country name
Example output:
Example output not applicable.
Depth
A depth related to earth.
Function name(s):
depthlocation_random.r_depth
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
feet Text [No,Yes] Return the depth in feet
Example output:
{
    "Depth": {
            "r_depth": "-10522"
        }
}
Floor space
The size in square meters of a floor of a building.
Function name(s):
floor_spacelocation_random.r_floor_space
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
continent Text Based on avg floor spaces per continent.
Example output:
{
    "Floor space": {
            "r_floor_space": "752"
        }
}
GeoJSON Area
A randomly generated geojson area, that can be used in maps.
Function name(s):
geojson_areageo_random.geojson_area
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
Example output:
{
    "GeoJSON Area": {
            "geojson_area": "{ "type": "Polygon", "coordinates": [ [ [0, 0.000416009957470195], [-0.000103922724655343, 0.000393288118098135], [-0.000254704191229467, 0.000292361366013578], [-0.000256408526883842, 0.000109380787970959], [-0.000285366160658443, 0.0000348732884640663], [-0.000231904536481256, -0.0000279627497170927], [-0.000337132167219035, -0.000207718834546231], [-0.000198369569438407, -0.000209448462859059], [-0.0000902774922850498, -0.000255635136799494], [-0.0000967145977326026, -0.000395147216053114], [0.00000496040002911441, -0.000271264878946759], [0.000139138064411386, -0.000323695772503477], [0.000174079652425563, -0.000274379700571025], [0.000245475931817688, -0.000288446478329382], [0.000234884912692733, -0.00013301305500062], [0.000297201250411966, -0.000103284202253749], [0.00039179996223296, -0.0000525268107380363], [0.000202591503905948, 0.0000408370779870346], [0.000279941155626039, 0.000226791853942118], [0.000177605531235098, 0.00032483224912056], [0.000015124966016279, 0.000352375254086645], [0, 0.000416009957470195] ] ] }"
        }
}
Latitude
Latitude on earth.
Function name(s):
latitudelocation_random.r_latitude
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
precision Number Precision scale
Example output:
{
    "Latitude": {
            "r_latitude": "78.36757"
        }
}
Longtitude
Longtitude on earth.
Function name(s):
longtitudelocation_random.r_longtitude
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
precision Number Precision scale
Example output:
{
    "Longtitude": {
            "r_longtitude": "98.26408"
        }
}
Room count
A roomcount for an average house.
Function name(s):
room_countlocation_random.r_room_count
Locales supported:
Not a locale specific domain.
Parameters:
Name Type Bound Input Description
continent Text Based on avg rooms in houses per continent.
Example output:
{
    "Room count": {
            "r_room_count": "3"
        }
}
Second address line
The second or additional line of an address, such as condo name or Co address.
Function name(s):
second_address_linelocation_random.r_address2
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
Example output:
{
    "Second address line": {
            "r_address2": "Flat 200"
        }
}
State
State name in a country.
Function name(s):
statelocation_random.r_state
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
shortform Text [No,Yes] Shortform (Florida/FL)
Example output:
{
    "State": {
            "r_state": "New Mexico"
        }
}
Street name
A street name.
Function name(s):
street_namelocation_random.r_street
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
shortform Text [No,Yes] Shortform (Avenue/Ave.)
syllables Number Number of syllables for made up road names.
Example output:
{
    "Street name": {
            "r_street": "Dende Extension"
        }
}
Zipcode
A zipcode, based on country if set or available.
Function name(s):
zipcodelocation_random.r_zipcode
Locales supported:
Parameters:
Name Type Bound Input Description
country Text ISO 2 letter country code
Example output:
{
    "Zipcode": {
            "r_zipcode": "01601"
        }
}

Anchor Points

On this page

  • Address
  • Altitude
  • Building level
  • City
  • Continent
  • Coordinate
  • Country
  • Country Location
  • Country from short
  • Depth
  • Floor space
  • GeoJSON Area
  • Latitude
  • Longtitude
  • Room count
  • Second address line
  • State
  • Street name
  • Zipcode