You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					23 lines
				
				362 B
			
		
		
			
		
	
	
					23 lines
				
				362 B
			| 
								 
											11 months ago
										 
									 | 
							
								# coordinates
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```js
							 | 
						||
| 
								 | 
							
								// usage
							 | 
						||
| 
								 | 
							
								chance.coordinates()
							 | 
						||
| 
								 | 
							
								chance.coordinates({fixed: 2})
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Generate random coordinates, which are latitude and longitude, comma separated.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```js
							 | 
						||
| 
								 | 
							
								chance.coordinates();
							 | 
						||
| 
								 | 
							
								=> "-29.52974, 24.52815"
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								By default includes 5 fixed digits after decimal, can specify otherwise.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```js
							 | 
						||
| 
								 | 
							
								chance.coordinates({fixed: 2});
							 | 
						||
| 
								 | 
							
								=> "-49.16, 68.81"
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 |