Skip to content
Leon edited this page Oct 17, 2022 · 1 revision

/api/latLng/

Returns Lat-/ Longitude by search query

  • URL

    /api/latLng/

  • Authentication:

    Authenticated

    Not Blocked

  • Method:

    GET

  • URL Params

    Required:

    query=[string]

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { lat : ${latitude}, lng : ${longitude} }
  • Error Response:

    • Code: 400 UNPROCESSABLE ENTRY
      Content: { status : "error", msg : {title: "Fehler Titel", content: "Fehler Text"} }
  • Sample Call:

        $.ajax({
            url: "/api/latLng",
            dataType: "json",
            type : "GET",
            data: {
              "query": "Maierstraße 45, München"
            },
            success : function(r) {
              console.log(r);
            }
        });
Clone this wiki locally