«
Location Items are supported
| type | name |
|---|---|
| Location | Location |
Location << <command>| command | final | |
|---|---|---|
| '30,20' | 30,20 | |
| '30,20,80' | 30,20,80 | |
| PointType.new('40,20') | 40,20 | |
| {lat: 30, long: 30} | 30,30 | |
| {latitude: 30, longitude: 30} | 30,30 | |
| {lat: 30, long: 30, alt: 80} | 30,30,80 | |
| {latitude: 30, longitude: 30, altitude: 80} | 30,30,80 |
| type | name | state |
|---|---|---|
| Location | Location1 | 30,20 |
| Location | Location2 | 40,20 |
logger.info "Distance from Location 1 to Location 2: #{Location1 - Location2}"| type | name | state |
|---|---|---|
| Location | Location1 | 30,20 |
| Location | Location2 | 40,20 |
logger.info "Distance from Location 1 to Location 2: #{<lhs>.distance_from(<rhs>)}"| lhs | rhs | |
|---|---|---|
| Location1 | Location2 | |
| Location1 | Location2.state | |
| Location1 | '40,20' | |
| Location1 | {lat: 40, long: 20} | |
| Location1 | {latitude: 40, longitude: 20} | |
| Location1 | PointType.new('40,20') | |
| Location2 | Location1 | |
| Location2.state | Location1 | |
| PointType.new('40,20') | Location1 |