Demo of using geo data in PHP web applications

Overview

phpgeo-demo

Demo of using geo data in PHP web applications

Goals

  • Demonstrate basic data storage and retrieval methods using Geo specific data
  • Orient the user to SQL (MySQL) and NoSQL (MongoDB) containers
  • Introduction to GeoJSON
  • Discussion of methods for comparing data
  • Introduction to database queries and indexing for Geometric/Geographic data

API

Base URL : {domain} /api/v1/

Authentication

PUT/POST/DELETE requests are required to include a header X-Authorization with it's value set to an API token matching a token found in the api_keys table.

Routes

locations

GET /locations
Params: null
Response

Collection of all of the locations stored in the locations MySQL table.

POST /locations
Params
  • geometry - (array)
  • name (string)
  • description (text)
PUT /locations/{id}
Params
  • geometry - (array)
  • name (string)
  • description (text)
DELETE /locations/{id}
GET /contains
Params:
  • lat - (float) latitude of a point to test against locations
  • lng - (float) longitude of a point to test against locations
Response

Collection of all of the locations that contain the point described in the request parameters.

GET /intersects
Params:
  • geometry - (array) Array of points that define a closed polygon
Response

Collection of all locations intersected by the geometry described in the request parameter.

GET /within
Params:
  • geometry - (array) Array of points that define a closed polygon
Response

Collection of all locations wholly bounded by the geometry described in the request parameter.

You might also like...
CollectiveAccess is a web-based suite of applications providing a framework for management, description, and discovery of complex digital

README: Pawtucket2 version 1.7.14 About CollectiveAccess CollectiveAccess is a web-based suite of applications providing a framework for management, d

Retrieve MySejahtera App's data from MySejahtera API and show to users via web browser. Written in PHP
Retrieve MySejahtera App's data from MySejahtera API and show to users via web browser. Written in PHP

MySejahtera-PHP-Web Retrieve MySejahtera App's data from MySejahtera API and show to users via web browser. Written in PHP. Disclaimer This web app is

Emoncms is an open-source web application for processing, logging and visualising energy, temperature and other environmental data and is part of the OpenEnergyMonitor project.
Emoncms is an open-source web application for processing, logging and visualising energy, temperature and other environmental data and is part of the OpenEnergyMonitor project.

Emoncms is an open-source web application for processing, logging and visualising energy, temperature and other environmental data and is part of the OpenEnergyMonitor project.

Damn Vulnerable Web Application (DVWA) is a PHP/MySQL web application that is damn vulnerable.

Damn Vulnerable Web Application (DVWA) is a PHP/MySQL web application that is damn vulnerable. Its main goal is to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and to aid both students & teachers to learn about web application security in a controlled class room environment.

A web application for a school, facilitating the registration of students. Built using HTML/CSS, PHP and Oracle.

Student Registration System A web application for a school, facilitating the registration of students. Built using HTML/CSS, PHP and Oracle. Included

Open Source Point of Sale is a web based point of sale application written in PHP using CodeIgniter framework.

Open Source Point of Sale is a web based point of sale application written in PHP using CodeIgniter framework. It uses MySQL as the data back end and has a Bootstrap 3 based user interface.

OTT Web Application using PHP
OTT Web Application using PHP

OTT - WEB Application This project is based on OTT Web Application Where you can enjoy lots of entertainment content. This Web Based Application is un

Web Application using MVC PHP Framework (LavaLust)

LavaLust Version 2 This is an early release of LavaLust Version 2. You may check the changelog.txt file to see the changes. Overview of Changes in Ve

Online web application developed in PHP using Laravel framework for managing real-time kitchen orders in a restaurant.
Online web application developed in PHP using Laravel framework for managing real-time kitchen orders in a restaurant.

Online web application developed in PHP using Laravel framework for managing real-time kitchen orders in a restaurant. It allows, through a web panel, real-time communication between chefs and waiters about the status of orders.

Owner
J Corry
Software engineer with an appreciation for doing things better than I used to. Always be improving!
J Corry
A framework for building rich, data-driven applications in PHP and MySQL

Xataface A framework for building rich, data-driven applications in PHP and MySQL License GPL Requirements PHP 5.2 or higher MySQL 5 or higher Install

Steve Hannah 129 Dec 13, 2022
Satu platform demo ringkas untuk rujukan Basic PHP

praktisphpmysql Satu platform demo ringkas untuk rujukan Basic PHP Demo https://legoom.biz.my/praktisphpmysql/ Belajar Koding Kemasukan Mei dan Septem

RB 11 Jun 21, 2022
Elastic Beanstalk Multi Container PHP-FPM + Nginx Demo App

Elastic Beanstalk Multi Container PHP-FPM + Nginx Demo App This demo app shows you how to run a simple PHP application using the PHP-FPM and Nginx Doc

AWS Samples 141 Sep 18, 2022
Phalcon - Développez des applications web complexes et performantes en PHP

Phalcon - Développez des applications web complexes et performantes en PHP Ce projet GitHub contient les sources du livre : Phalcon 3 - Développez des

Les Enovateurs 3 Jul 5, 2022
Demo for "Migrating into Layout Builder" from DrupalCon in 2021.

Migrating Into Layout Builder Demo For DrupalCon in 2021, I presented on Migrating Into Layout Builder. For this presentation, I came up with this sim

Chris Wells 10 Nov 3, 2022
A demo of deploying mediawiki to kubernetes

emwcon-demo Files needed for a demo of deploying mediawiki to kubernetes Prerequisites docker a kubernetes cluster a copy of mediawiki/core moved into

J H 7 Jun 22, 2022
Demo of automated testing use cases for the 2022 nationals

Tests automatisés aux finales nationales 2022 Test d'API (Module C2) Pour le module C2, les spécifications de l'API seront fournies dans la spécificat

Worldskills France - Web Technologies 1 Oct 15, 2021
Twitter like application made with Laravel in 10 hours. Demo at

Critter, A Twitter like application written with Laravel in under 10 hours by @msurguy Imagine Twitter is down again. It's dark outside, and how can y

Maksim Surguy 58 Nov 30, 2022
The completed blog demo project from Laravel 8 From Scratch.

Laravel From Scratch Blog Demo Project http://laravelfromscratch.com Installation First clone this repository, install the dependencies, and setup you

Jeffrey Way 379 Jan 5, 2023
DBase - An easy-to-use backend for mobile and web applications

DBase DBase is an easy-to-use backend for your mobile and web applications, host the files in an Ubuntu server and use the SDKs to perform CRUD operat

Frank Eno ~ XSGames 39 May 25, 2022