Command
New-ImageQRCodeGeoLocation
Generates a QR code with geolocation data.
Syntax
New-ImageQRCodeGeoLocation
[-BackgroundColor <Color>]
[-FilePath] <String>
[-ForegroundColor <Color>]
[-Latitude] <String>
[-Longitude] <String>
[-PixelSize <Int32>]
[-Show]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Use this cmdlet to create location QR codes that open map applications at a specific coordinate.
Examples
Create a basic geolocation QR code
New-ImageQRCodeGeoLocation -Latitude '52.2297' -Longitude '21.0122' -FilePath geo.pngGenerates a QR code that opens the target coordinates in compatible map applications.
Create an event-location QR code
New-ImageQRCodeGeoLocation -Latitude '51.1079' -Longitude '17.0385' -FilePath venue.png -ForegroundColor DarkGreen -PixelSize 16 -ShowCreates a location QR for signage, invitations, or venue directions and previews it immediately.
Parameters
- -BackgroundColor Color
- Background color of the QR code.
- -FilePath String
- The image format is inferred from the file extension.
- -ForegroundColor Color
- Foreground color of QR modules.
- -Latitude String
- Latitude value.
- -Longitude String
- Longitude value.
- -PixelSize Int32
- Pixel size for each QR module.
- -Show SwitchParameter
- Open image after creation.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.