Public sign calculator and the twelve sign pages, SEO basics
/aszcendens-kalkulator: Sun, Moon and Ascendant signs from birth data
without an account. A calculation only (no AI, nothing saved), limited to
30 calculations and 300 place searches an hour per visitor address
(POST /v1/public/signs, GET /v1/public/geo/*). Without a birth time there
is no Ascendant, and signs near a border are marked uncertain.
/csillagjegyek and /csillagjegyek/{jegy}: the twelve signs with facts,
Sun, Moon and Ascendant, love, work, a common misbelief and an offer,
each written on its own. Links to the calculator and sign-up.
SEO: metadataBase and canonical addresses, hreflang between the
Hungarian and English privacy pages, Organization and WebSite JSON-LD on
the home page, FAQPage on the calculator, BreadcrumbList on the sign
pages; the sitemap lists the new pages, the footers link them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -48,6 +48,27 @@ impl HoroscopeClient {
|
||||
self.post("/v1/forecast", request).await
|
||||
}
|
||||
|
||||
/// `GET /v1/countries`
|
||||
pub async fn countries(&self) -> Result<Value, HoroscopeError> {
|
||||
self.get("/v1/countries", &[]).await
|
||||
}
|
||||
|
||||
/// `GET /v1/places?country=&q=&limit=`
|
||||
pub async fn places(&self, country: &str, query: &str, limit: u32) -> Result<Value, HoroscopeError> {
|
||||
self.get("/v1/places", &[("country", country), ("q", query), ("limit", &limit.to_string())]).await
|
||||
}
|
||||
|
||||
async fn get(&self, path: &str, query: &[(&str, &str)]) -> Result<Value, HoroscopeError> {
|
||||
let response = self
|
||||
.http
|
||||
.get(format!("{}{path}", self.base_url))
|
||||
.query(query)
|
||||
.send()
|
||||
.await
|
||||
.map_err(|e| HoroscopeError::Unavailable(e.to_string()))?;
|
||||
Self::answer(response).await
|
||||
}
|
||||
|
||||
async fn post(&self, path: &str, body: &Value) -> Result<Value, HoroscopeError> {
|
||||
let response = self
|
||||
.http
|
||||
@@ -56,6 +77,10 @@ impl HoroscopeClient {
|
||||
.send()
|
||||
.await
|
||||
.map_err(|e| HoroscopeError::Unavailable(e.to_string()))?;
|
||||
Self::answer(response).await
|
||||
}
|
||||
|
||||
async fn answer(response: reqwest::Response) -> Result<Value, HoroscopeError> {
|
||||
let status = response.status();
|
||||
let body: Value = response.json().await.map_err(|e| HoroscopeError::Unavailable(e.to_string()))?;
|
||||
if status.is_success() {
|
||||
|
||||
Reference in New Issue
Block a user