diaspora/diaspora_federation

View on GitHub
docs/_entities/location.md

Summary

Maintainability
Test Coverage
---
title: Location
---

This entity represents the location data, it is nested in a [StatusMessage][status_message].

## Properties

| Property  | Type (Length)          | Description                                                              |
| --------- | ---------------------- | ------------------------------------------------------------------------ |
| `address` | [String][string] (255) | A string describing your location, e.g. a city name, a street name, etc. |
| `lat`     | [Float][float]         | The geographical latitude of your location.                              |
| `lng`     | [Float][float]         | The geographical longitude of your location.                             |

## Example

~~~xml
<location>
  <address>Vienna, Austria</address>
  <lat>48.208174</lat>
  <lng>16.373819</lng>
</location>
~~~

[string]: {{ site.baseurl }}/federation/types.html#string
[float]: {{ site.baseurl }}/federation/types.html#float
[status_message]: {{ site.baseurl }}/entities/status_message.html