Skip to content

Commit

Permalink
Fix location data on remote skills runs, V1 API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropix126 committed Dec 24, 2023
1 parent a811284 commit 29ec78c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Wrapper for the RobotEvents.com v2 API."
repository = "https://github.com/LemLib/robotevents-rs/"
license-file = "LICENSE.md"
readme = "README.md"
version = "0.2.9"
version = "0.3.0"
edition = "2021"
authors=["tropix126", "BattleCh1cken"]
categories = ["science::robotics", "api-bindings", "web-programming::http-client"]
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct RobotEvents {
pub req_client: reqwest::Client,
}

pub const V1_API_BASE: &str = "https://www.robotevents.com/api/v1";
pub const V1_API_BASE: &str = "https://www.robotevents.com/api";
pub const V2_API_BASE: &str = "https://www.robotevents.com/api/v2";

impl RobotEvents {
Expand Down
8 changes: 4 additions & 4 deletions src/schema/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ pub struct Location {
pub address_1: String,
pub address_2: Option<String>,
pub city: String,
pub region: String,
pub postcode: String,
pub region: Option<String>,
pub postcode: Option<String>,
pub country: String,
pub coordinates: Coordinates,
}

#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Coordinates {
pub lat: f32,
pub lon: f32,
pub lat: Option<f32>,
pub lon: Option<f32>,
}

0 comments on commit 29ec78c

Please sign in to comment.