"Location" (Interpreter Type)
-
See Also
- Interpreter
- SemanticImport
- Restricted
- Failure
- GeoPosition
-
- Interpreter Types
- ComputedLocation
- GeoCoordinates
- StreetAddress
- City
- Country
- CountryClass
- ZIPCode
- Airport
- USState
- USStateClass
- AdministrativeDivision
- AdministrativeDivisionClass
- Continent
- GeographicRegion
- StructuredGeoCoordinates
- ComputedCity
- ComputedCountry
- ComputedZIPCode
- ComputedAirport
- ComputedUSState
- ComputedAdministrativeDivision
- ComputedContinent
- ComputedGeographicRegion
-
- Text Contents
- Location
- Related Guides
-
-
See Also
- Interpreter
- SemanticImport
- Restricted
- Failure
- GeoPosition
-
- Interpreter Types
- ComputedLocation
- GeoCoordinates
- StreetAddress
- City
- Country
- CountryClass
- ZIPCode
- Airport
- USState
- USStateClass
- AdministrativeDivision
- AdministrativeDivisionClass
- Continent
- GeographicRegion
- StructuredGeoCoordinates
- ComputedCity
- ComputedCountry
- ComputedZIPCode
- ComputedAirport
- ComputedUSState
- ComputedAdministrativeDivision
- ComputedContinent
- ComputedGeographicRegion
-
- Text Contents
- Location
- Related Guides
-
See Also
"Location" (Interpreter Type)
Natural-language name or coordinates of a geographic location.
Details
- "Location" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Location" requires connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["Location",{{choice1,…}}] one among choices Restricted["Location",reg] a location in the region reg, given as an Entity Restricted["Location",reg,datum] a location in the region reg, with position referring to datum
Interpretation
- "Location" yields a GeoPosition object. For extended entities, it uses when possible the position of the geographic center of the entity.
Examples
Basic Examples (4)
Interpreter["Location"]["Boston, MA"]Interpret geographic coordinates:
Interpreter["Location"]["10.5N 23E"]Interpreter["Location"]["1 Broadway, NYC"]Interpreter[Restricted["Location", Entity["Country", "UnitedStates"]]]["mount rushmore"]Interpreter[Restricted["Location", Entity["Country", "UnitedStates"]]]["mt blanc"]Interpret locations of any kind:
Interpreter["Location"]["NYC"]Interpreter["Location"]["Eiffel tower"]Interpreter["Location"]["DC 20500"]Interpreter["Location"]["Mount Everest"]Interpreter["Location"]["lat 34, long 78"]Change the datum for the resulting GeoPosition:
Interpreter[Restricted["Location", Automatic, "NAD27"]]["lat 45.3, long -15"]Geographic restrictions apply to the center coordinates in case of extended entities:
Interpreter[Restricted["Location", Entity["AdministrativeDivision", {"NouvelleAquitaine", "France"}]]]["france"]See Also
Interpreter SemanticImport Restricted Failure GeoPosition
Interpreter Types: ComputedLocation GeoCoordinates StreetAddress City Country CountryClass ZIPCode Airport USState USStateClass AdministrativeDivision AdministrativeDivisionClass Continent GeographicRegion StructuredGeoCoordinates ComputedCity ComputedCountry ComputedZIPCode ComputedAirport ComputedUSState ComputedAdministrativeDivision ComputedContinent ComputedGeographicRegion
Text Contents: Location
Related Guides
History
Introduced in 2014 (10.0)