{% extends "_section.html" %} {% block location_section_class %}section-selected{% endblock %} {% block section_title %}Location{% endblock %} {% block section_title_plural %}Locations{% endblock %} {% block section_get_url %}/api/locations/query?q{,f,o,s}{% endblock %} {% block section_post_url %}/api/locations/query{% endblock %} {% block section_introduction %}
This will search for locations matching the query string (q) and returning the data fields listed in the field string (f) sorted by the fields in the sort string (s) using options provided in the option string (o).
{% endblock %} {% block section_query_example %} {"location_city":"Mount Airy"} {% endblock %} {% block section_field_defaults %} location_id, location_city, location_state, and location_country {% endblock %} {% block section_field_example %} ["location_id", "location_city","location_state"] {% endblock %} {% block section_sort_default %} location_key_id {% endblock %} {% block section_sort_example %} [{"location_total_num_inventors":"desc"}] {% endblock %} {% block section_get_url_example %} locations/query?q={"location_city":"Mount Airy"}&f=["location_id","location_state","location_total_num_patents"] {% endblock %} {% block section_post_url_example %} locations/query {% endblock %} {% block section_post_body_example %} {"q":{"location_city":"Mount Airy"},"f":["location_id", "location_state","location_total_num_patents"]} {% endblock %} {% block section_examples %}Return the last known location of any assigness with patents which have at least one inventor with last name "Yamazaki", "Weder", or "Edison".