GET https://osm-labo.cipherbliss.com/admin/stats/50130

Query Metrics

37 Database Queries
29 Different statements
1508.31 ms Query time
0 Invalid entities
4323 Managed entities

Queries

Group similar statements

default connection

# Time Info
1 40.53 ms
SELECT s0_.id AS id_0, s0_.zone AS zone_1, s0_.completion_percent AS completion_percent_2, s0_.places_count AS places_count_3, s0_.avec_horaires AS avec_horaires_4, s0_.avec_adresse AS avec_adresse_5, s0_.avec_site AS avec_site_6, s0_.avec_accessibilite AS avec_accessibilite_7, s0_.avec_note AS avec_note_8, s0_.name AS name_9, s0_.population AS population_10, s0_.siren AS siren_11, s0_.code_epci AS code_epci_12, s0_.codes_postaux AS codes_postaux_13, s0_.date_created AS date_created_14, s0_.date_modified AS date_modified_15, s0_.avec_siret AS avec_siret_16, s0_.avec_name AS avec_name_17, s0_.avec_email AS avec_email_18, s0_.osm_data_date_min AS osm_data_date_min_19, s0_.osm_data_date_avg AS osm_data_date_avg_20, s0_.osm_data_date_max AS osm_data_date_max_21, s0_.budget_annuel AS budget_annuel_22, s0_.lat AS lat_23, s0_.lon AS lon_24, s0_.date_labourage_requested AS date_labourage_requested_25, s0_.date_labourage_done AS date_labourage_done_26, s0_.kind AS kind_27 FROM stats s0_ WHERE s0_.zone = ? ORDER BY s0_.id ASC LIMIT 1
Parameters:
[
  "50130"
]
2 27.54 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.measure AS measure_3, t0.date AS date_4, t0.stats_id AS stats_id_5 FROM city_follow_up t0 WHERE t0.stats_id = ?
Parameters:
[
  26504
]
3 0.17 ms
"START TRANSACTION"
Parameters:
[]
4 0.61 ms
INSERT INTO action_log (type, data, created_at, from_url, who) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  "stats_de_ville"
  "{"insee_code":"50130","nom":"50130"}"
  "2026-07-13 00:48:40"
  null
  null
]
5 596.83 ms
"COMMIT"
Parameters:
[]
6 491.82 ms
SELECT COUNT(*) FROM osm_object t0 WHERE t0.zone = ?
Parameters:
[
  "50130"
]
7 2.97 ms
SELECT s0_.id AS id_0, s0_.places_count AS places_count_1, s0_.emails_count AS emails_count_2, s0_.completion_percent AS completion_percent_3, s0_.emails_sent AS emails_sent_4, s0_.date AS date_5, s0_.names_count AS names_count_6, s0_.opening_hours_count AS opening_hours_count_7, s0_.website_count AS website_count_8, s0_.address_count AS address_count_9, s0_.siret_count AS siret_count_10, s0_.stats_id AS stats_id_11 FROM stats_history s0_ WHERE s0_.stats_id = ? ORDER BY s0_.id DESC LIMIT 100
Parameters:
[
  26504
]
8 0.53 ms
SELECT p0_.osm_user AS osm_user_0, COUNT(p0_.id) AS sclr_1, AVG((CASE WHEN p0_.has_opening_hours = 1 THEN 1 ELSE 0 END) + (CASE WHEN p0_.has_address = 1 THEN 1 ELSE 0 END) + (CASE WHEN p0_.has_website = 1 THEN 1 ELSE 0 END) + (CASE WHEN p0_.has_wheelchair = 1 THEN 1 ELSE 0 END) + (CASE WHEN p0_.has_note = 1 THEN 1 ELSE 0 END)) / 5 * 100 AS sclr_2 FROM place p0_ WHERE p0_.osm_user IS NOT NULL AND p0_.osm_user <> '' AND p0_.stats_id = ? GROUP BY p0_.osm_user ORDER BY sclr_1 DESC LIMIT 100
Parameters:
[
  26504
]
9 191.73 ms
SELECT t0.id AS id_1, t0.disappeared_list AS disappeared_list_2, t0.current_list AS current_list_3, t0.theme AS theme_4, t0.stats_id AS stats_id_5 FROM zone_places t0 WHERE t0.stats_id = ?
Parameters:
[
  26504
]

osm connection

# Time Info
1 2.04 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_history'
Parameters:
[]
2 0.61 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_meta"
]
3 0.50 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
4 1.84 ms
SELECT COUNT(*) FROM osm_object_meta WHERE osm_type = 'relation'
                  AND geom IS NOT NULL
                  AND (tags->'admin_level') = '8'
                  AND (tags->'boundary') = 'administrative'
                  AND (tags->'ref:INSEE') IS NOT NULL
Parameters:
[]
5 1.30 ms
INSERT INTO osm_object_meta (
    osm_type, osm_id, geom, tags, version, osm_timestamp, changeset, osm_user, uid
)
SELECT
    'relation',
    latest.osm_id,
    latest.geom,
    latest.tags,
    latest.version,
    to_char(latest.valid_from AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"'),
    latest.changeset,
    latest.osm_user,
    latest.uid
FROM (
    SELECT DISTINCT ON (h.osm_id)
        h.osm_id,
        h.geom,
        h.tags,
        h.version,
        h.valid_from,
        h.changeset,
        h.osm_user,
        h.uid
    FROM osm_object_history h
    WHERE h.osm_type = 'relation'
      AND h.visible = true
      AND h.geom IS NOT NULL
      AND (h.tags->'boundary') = 'administrative'
      AND (h.tags->'admin_level') = '8'
      AND (h.tags->'ref:INSEE') IS NOT NULL
    ORDER BY h.osm_id, h.version DESC, h.valid_from DESC
) AS latest
WHERE NOT EXISTS (
    SELECT 1 FROM osm_object_meta m
    WHERE m.osm_type = 'relation' AND m.osm_id = latest.osm_id
)
Parameters:
[]
6 6.23 ms
SELECT ST_AsText(ST_Multi(geom)) AS wkt
FROM osm_object_meta m
WHERE osm_type = 'relation'
  AND geom IS NOT NULL
  AND (tags->'ref:INSEE') = ?
  AND (tags->'admin_level') = '8'
  AND (tags->'boundary') = 'administrative'
ORDER BY ST_Area(geom::geography) DESC NULLS LAST
LIMIT 1
Parameters:
[
  "50130"
]
7 0.73 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
8 0.40 ms
SELECT ST_AsText(ST_Multi(geom)) AS wkt
FROM (
    SELECT DISTINCT ON (h.osm_id)
        h.geom
    FROM osm_object_history h
    WHERE h.osm_type = 'relation'
      AND h.visible = true
      AND h.geom IS NOT NULL
      AND (h.tags->'ref:INSEE') = ?
      AND (h.tags->'admin_level') = '8'
      AND (h.tags->'boundary') = 'administrative'
    ORDER BY h.osm_id, h.version DESC, h.valid_from DESC
) latest
ORDER BY ST_Area(geom::geography) DESC NULLS LAST
LIMIT 1
Parameters:
[
  "50130"
]
9 0.28 ms
CREATE TABLE IF NOT EXISTS zone_polygon (
                    insee_code TEXT PRIMARY KEY,
                    geom geometry(MultiPolygon, 4326) NOT NULL,
                    source TEXT NOT NULL,
                    updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
                )
Parameters:
[]
10 0.35 ms
CREATE INDEX IF NOT EXISTS zone_polygon_geom_idx ON zone_polygon USING GIST (geom)
Parameters:
[]
11 68.00 ms
SELECT ST_AsText(ST_Multi(geom)) FROM zone_polygon WHERE insee_code = ?
Parameters:
[
  "50130"
]
12 2.38 ms
WITH zone AS (SELECT ST_GeomFromText(?, 4326) AS g),
in_zone AS (
  SELECT h.osm_type, h.osm_id, h.version, h.valid_from, h.visible
  FROM osm_object_history h, zone z
  WHERE h.geom IS NOT NULL AND ST_Intersects(h.geom, z.g)
),
creations AS (
  SELECT (valid_from AT TIME ZONE 'UTC')::date AS d
  FROM in_zone
  WHERE version = 1 AND visible = true AND valid_from >= NOW() - (? || ' days')::interval
),
deletions AS (
  SELECT (del.valid_from AT TIME ZONE 'UTC')::date AS d
  FROM osm_object_history del
  JOIN in_zone prev
    ON prev.osm_type = del.osm_type
   AND prev.osm_id   = del.osm_id
   AND prev.version  = del.version - 1
  WHERE del.visible = false
    AND del.valid_from >= NOW() - (? || ' days')::interval
)
SELECT d::text AS date,
       SUM(n_creations)::int AS creations,
       SUM(n_deletions)::int AS deletions
FROM (
  SELECT d, COUNT(*) AS n_creations, 0 AS n_deletions FROM creations GROUP BY d
  UNION ALL
  SELECT d, 0, COUNT(*) FROM deletions GROUP BY d
) u
GROUP BY d
ORDER BY d
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
  "30"
  "30"
]
13 0.93 ms
SELECT to_char(qstart, 'YYYY') || '-Q' || EXTRACT(QUARTER FROM qstart)::int AS k,
       n
FROM (
  SELECT date_trunc('quarter', valid_from) AS qstart, COUNT(*) AS n
  FROM osm_object_history h
  WHERE h.geom IS NOT NULL AND ST_Intersects(h.geom, ST_GeomFromText(?, 4326))
  GROUP BY 1
) t
ORDER BY qstart
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
]
14 0.87 ms
WITH last_versions AS (
  SELECT DISTINCT ON (osm_type, osm_id) osm_type, osm_id, valid_from, visible, geom
  FROM osm_object_history h
  WHERE h.geom IS NOT NULL
    AND ST_Intersects(h.geom, ST_GeomFromText(?, 4326))
  ORDER BY osm_type, osm_id, valid_from DESC
)
SELECT TO_TIMESTAMP(AVG(EXTRACT(EPOCH FROM valid_from))) AS avg_ts,
       COUNT(*) AS n
FROM last_versions
WHERE visible = true
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
]
15 0.97 ms
WITH zone AS (SELECT ST_GeomFromText(?, 4326) AS g),
in_zone AS (
  SELECT h.osm_type, h.osm_id, h.version, h.visible
  FROM osm_object_history h, zone z
  WHERE h.geom IS NOT NULL AND ST_Intersects(h.geom, z.g)
),
deletions AS (
  SELECT 1 AS one
  FROM osm_object_history del
  JOIN in_zone prev
    ON prev.osm_type = del.osm_type
   AND prev.osm_id   = del.osm_id
   AND prev.version  = del.version - 1
  WHERE del.visible = false
)
SELECT
  (SELECT COUNT(*) FROM in_zone WHERE version = 1 AND visible = true) AS creations_total,
  (SELECT COUNT(*) FROM deletions)                                    AS deletions_total,
  (SELECT COUNT(*) FROM in_zone)                                      AS versions_total
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
]
16 0.16 ms
SELECT 1
Parameters:
[]
17 0.68 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
18 10.23 ms
SELECT osm_type, osm_id::text AS osm_id, ST_Y(ST_Centroid(geom)) AS lat, ST_X(ST_Centroid(geom)) AS lon,
            tags::jsonb AS tags_json, version, osm_timestamp, changeset, osm_user, uid::bigint AS uid
            FROM osm_object_meta m
            WHERE geom IS NOT NULL AND ST_Intersects(m.geom, ST_GeomFromText(?, 4326))
            AND (
              (tags->'shop') = 'vacant'
              OR EXISTS (SELECT 1 FROM unnest(akeys(tags)) k WHERE k LIKE 'was:%')
            )
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
]
19 0.30 ms
SELECT 1
Parameters:
[]
20 0.74 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
21 48.47 ms
SELECT osm_type, osm_id::text AS osm_id,
       ST_Y(ST_Centroid(m.geom)) AS lat, ST_X(ST_Centroid(m.geom)) AS lon,
       tags::jsonb AS tags_json, version, osm_timestamp, changeset, osm_user, uid::bigint AS uid,
       ST_AsGeoJSON(ST_Force2D(m.geom), 6, 0) AS geom_geojson,
       COALESCE(ST_Length(ST_Intersection(ST_MakeValid(m.geom), bufc.buf)::geography), 0) AS length_m,
       CASE
         WHEN (tags->'highway') = 'proposed' AND exist(tags, 'proposed') AND (tags->'proposed') = 'cycleway' THEN 'proposed_cycleway'
         WHEN (tags->'highway') = 'cycleway' THEN 'separated'
         WHEN (tags->'highway') = 'busway' THEN 'separated'
         WHEN (tags->'cycleway:both') IN ('track', 'opposite_track', 'separate')
              AND exist(tags, 'highway')
              AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway') THEN 'separated'
         WHEN EXISTS (SELECT 1 FROM unnest(akeys(tags)) k WHERE k = 'cycleway' OR k LIKE 'cycleway:%') AND exist(tags, 'highway')
              AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway') THEN 'lane'
         WHEN (exist(tags, 'bicycle') AND (tags->'bicycle') IS NOT NULL AND (tags->'bicycle') <> 'no') AND exist(tags, 'highway')
              AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway')
              AND NOT (EXISTS (SELECT 1 FROM unnest(akeys(tags)) k WHERE k = 'cycleway' OR k LIKE 'cycleway:%')) THEN 'designated'
         ELSE NULL
       END AS cycleway_category
FROM osm_object_meta m
CROSS JOIN (SELECT ST_MakeValid(ST_SetSRID(ST_GeomFromText(?), 4326)) AS poly) z
CROSS JOIN LATERAL (SELECT ST_Buffer(z.poly::geography, ?)::geometry AS buf) bufc
WHERE m.geom IS NOT NULL
  AND m.osm_type IN ('way', 'relation')
  AND ST_Intersects(m.geom, bufc.buf)
  AND (
    (tags->'highway') = 'proposed' AND exist(tags, 'proposed') AND (tags->'proposed') = 'cycleway'
    OR (tags->'highway') IN ('cycleway', 'busway')
    OR (EXISTS (SELECT 1 FROM unnest(akeys(tags)) k WHERE k = 'cycleway' OR k LIKE 'cycleway:%') AND exist(tags, 'highway')
        AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway'))
    OR ((exist(tags, 'bicycle') AND (tags->'bicycle') IS NOT NULL AND (tags->'bicycle') <> 'no') AND exist(tags, 'highway')
        AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway'))
  )
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
  2000.0
]
22 0.23 ms
SELECT 1
Parameters:
[]
23 0.73 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
24 2.51 ms
SELECT osm_type, osm_id::text AS osm_id,
       ST_Y(ST_Centroid(m.geom)) AS lat, ST_X(ST_Centroid(m.geom)) AS lon,
       tags::jsonb AS tags_json, version, osm_timestamp, changeset, osm_user, uid::bigint AS uid,
       ST_AsGeoJSON(ST_Force2D(m.geom), 6, 0) AS geom_geojson,
       COALESCE(ST_Length(ST_Intersection(ST_MakeValid(m.geom), z.poly)::geography), 0) AS length_m
FROM osm_object_meta m
CROSS JOIN (SELECT ST_MakeValid(ST_SetSRID(ST_GeomFromText(?), 4326)) AS poly) z
WHERE m.geom IS NOT NULL
  AND m.osm_type IN ('way', 'relation')
  AND ST_Intersects(m.geom, z.poly)
  AND exist(tags, 'highway')
  AND (tags->'highway') NOT IN (
    'motorway', 'motorway_link', 'trunk', 'trunk_link',
    'footway', 'steps', 'pedestrian', 'bridleway', 'raceway',
    'cycleway', 'busway', 'construction', 'proposed'
  )
  AND (tags->'oneway') IN ('yes', '-1', '1')
  AND NOT ( (tags->'highway') IN ('cycleway', 'busway')
    OR (EXISTS (SELECT 1 FROM unnest(akeys(tags)) k WHERE k = 'cycleway' OR k LIKE 'cycleway:%') AND exist(tags, 'highway') AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway'))
    OR ((exist(tags, 'bicycle') AND (tags->'bicycle') IS NOT NULL AND (tags->'bicycle') <> 'no') AND exist(tags, 'highway') AND (tags->'highway') IS NOT NULL AND (tags->'highway') NOT IN ('cycleway', 'busway') AND NOT (EXISTS (SELECT 1 FROM unnest(akeys(tags)) k WHERE k = 'cycleway' OR k LIKE 'cycleway:%'))))
  AND NOT ((tags->'oneway:bicycle') = 'no')
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
]
25 0.17 ms
SELECT 1
Parameters:
[]
26 0.65 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
27 1.61 ms
SELECT osm_type, osm_id::text AS osm_id,
       ST_Y(ST_Centroid(geom)) AS lat, ST_X(ST_Centroid(geom)) AS lon,
       tags::jsonb AS tags_json, version, osm_timestamp, changeset, osm_user, uid::bigint AS uid
FROM osm_object_meta m
WHERE geom IS NOT NULL
  AND ST_Intersects(m.geom, ST_GeomFromText(?, 4326))
  AND (tags->'man_made') = 'monitoring_station'
  AND (tags->'monitoring:bicycle') = 'yes'
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
]
28 1.63 ms
SELECT osm_type, osm_id::text AS osm_id,
                ST_Y(ST_Centroid(geom)) AS lat, ST_X(ST_Centroid(geom)) AS lon,
                tags::jsonb AS tags_json, version, osm_timestamp, changeset, osm_user, uid::bigint AS uid,
                ST_AsGeoJSON(ST_Force2D(geom), 6, 0) AS geom_geojson
            FROM osm_object_meta m
            WHERE geom IS NOT NULL AND ST_Intersects(m.geom, ST_GeomFromText(?, 4326))
              AND osm_type IN ('way', 'relation')
              AND (tags->'highway') IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
Parameters:
[
  "MULTIPOLYGON(((-1.208633 48.784153,-1.208572 48.784415,-1.208557 48.785009,-1.208533 48.785332,-1.209598 48.785382,-1.210032 48.785434,-1.210885 48.785677,-1.211321 48.78571,-1.213426 48.785804,-1.214463 48.785864,-1.215239 48.785888,-1.215972 48.785933,-1.216849 48.786047,-1.217369 48.786103,-1.217797 48.786084,-1.21821 48.785989,-1.219329 48.785664,-1.219967 48.785506,-1.220713 48.785372,-1.221358 48.785245,-1.221606 48.785167,-1.222689 48.784513,-1.2228 48.784455,-1.222287 48.785369,-1.222348 48.785513,-1.222287 48.785608,-1.221835 48.78608,-1.221579 48.786422,-1.221347 48.786264,-1.220653 48.786891,-1.221065 48.787013,-1.22126 48.787108,-1.221146 48.787406,-1.220927 48.787791,-1.220565 48.78838,-1.220974 48.788546,-1.221317 48.788642,-1.222298 48.788853,-1.223114 48.789018,-1.223636 48.789153,-1.224219 48.789342,-1.22429 48.789498,-1.224347 48.790099,-1.224399 48.790317,-1.224396 48.790575,-1.223694 48.7906,-1.223689 48.790631,-1.222905 48.790656,-1.222897 48.790731,-1.221816 48.790759,-1.2213 48.790797,-1.220493 48.790906,-1.220118 48.790857,-1.219641 48.790628,-1.219394 48.790565,-1.219161 48.790565,-1.219108 48.790764,-1.218891 48.791216,-1.218415 48.791083,-1.217614 48.790902,-1.2175 48.79119,-1.217344 48.79149,-1.216203 48.791235,-1.21597 48.791444,-1.214579 48.791868,-1.215087 48.792002,-1.214812 48.792355,-1.214718 48.792443,-1.214531 48.792472,-1.214638 48.792599,-1.214393 48.793026,-1.21438 48.793172,-1.214182 48.793344,-1.213874 48.793521,-1.213536 48.793636,-1.213506 48.793735,-1.213608 48.793891,-1.213597 48.794061,-1.213752 48.794323,-1.21399 48.794537,-1.214012 48.794759,-1.214162 48.79506,-1.214377 48.795346,-1.214588 48.79569,-1.214715 48.795795,-1.214726 48.796121,-1.214884 48.79628,-1.214783 48.796603,-1.214864 48.796731,-1.214803 48.797019,-1.21484 48.797178,-1.214788 48.797274,-1.214615 48.797275,-1.214635 48.797396,-1.214925 48.79736,-1.214897 48.79771,-1.214838 48.79799,-1.214734 48.79826,-1.214697 48.798541,-1.214491 48.798624,-1.214554 48.798867,-1.214549 48.799002,-1.214818 48.799463,-1.214827 48.799685,-1.214479 48.800214,-1.214488 48.800368,-1.214827 48.800789,-1.215099 48.801319,-1.215612 48.801463,-1.216275 48.801682,-1.21662 48.801694,-1.216838 48.801816,-1.217374 48.802053,-1.217387 48.802234,-1.217791 48.802107,-1.218889 48.802111,-1.219037 48.802046,-1.219324 48.802087,-1.220071 48.802144,-1.220352 48.802204,-1.221091 48.80219,-1.221708 48.802112,-1.221844 48.802161,-1.222234 48.802114,-1.222472 48.802175,-1.222458 48.802334,-1.222307 48.802524,-1.222041 48.802924,-1.222021 48.803218,-1.221921 48.803296,-1.221858 48.803567,-1.221771 48.803708,-1.221636 48.803771,-1.221539 48.803937,-1.22141 48.804032,-1.221338 48.804186,-1.221355 48.804275,-1.221177 48.804414,-1.221018 48.804458,-1.221009 48.80454,-1.218733 48.805656,-1.218783 48.805719,-1.218714 48.806005,-1.218389 48.806176,-1.218129 48.806238,-1.21794 48.806229,-1.217706 48.806511,-1.217784 48.806644,-1.217658 48.806845,-1.217333 48.806982,-1.217518 48.807104,-1.217604 48.807219,-1.217482 48.807379,-1.217509 48.807548,-1.217181 48.807759,-1.217182 48.80804,-1.217239 48.808182,-1.217232 48.808488,-1.217284 48.808538,-1.21732 48.809006,-1.217284 48.809059,-1.217442 48.809344,-1.217429 48.809439,-1.217902 48.80994,-1.218035 48.809982,-1.218199 48.810126,-1.218455 48.810136,-1.218659 48.810353,-1.218885 48.810489,-1.21894 48.810621,-1.219177 48.810746,-1.219236 48.810826,-1.219157 48.811057,-1.219268 48.811268,-1.219241 48.811418,-1.21929 48.811642,-1.219297 48.811898,-1.219259 48.812268,-1.219502 48.812327,-1.219568 48.812442,-1.219606 48.812663,-1.22062 48.81271,-1.220954 48.812643,-1.221277 48.812655,-1.221651 48.812702,-1.221673 48.812791,-1.221811 48.812878,-1.222577 48.812913,-1.222947 48.812875,-1.223897 48.812739,-1.224651 48.812616,-1.22495 48.813167,-1.225008 48.813426,-1.225256 48.814198,-1.225391 48.81441,-1.225608 48.81492,-1.225833 48.815361,-1.226077 48.815724,-1.226334 48.816224,-1.226447 48.816656,-1.2266 48.817058,-1.226708 48.817472,-1.226902 48.818057,-1.226904 48.818433,-1.226953 48.818602,-1.227058 48.818754,-1.227105 48.819423,-1.227071 48.819723,-1.227458 48.820279,-1.228174 48.821201,-1.228343 48.821537,-1.227319 48.821634,-1.226389 48.821645,-1.226101 48.821658,-1.224902 48.821671,-1.224587 48.821688,-1.223938 48.821673,-1.223273 48.821642,-1.222554 48.821627,-1.222495 48.821814,-1.22039 48.821337,-1.218859 48.821072,-1.218017 48.820941,-1.217987 48.820401,-1.216996 48.820225,-1.216276 48.820059,-1.215215 48.819845,-1.21463 48.81971,-1.214651 48.819601,-1.214301 48.819493,-1.213913 48.819339,-1.212785 48.818867,-1.211736 48.818518,-1.212032 48.817834,-1.211695 48.817752,-1.211062 48.817663,-1.210764 48.817644,-1.210666 48.81731,-1.210557 48.817068,-1.210508 48.816834,-1.210516 48.816634,-1.210215 48.816553,-1.210165 48.816456,-1.210012 48.816407,-1.210017 48.81633,-1.209705 48.816317,-1.20957 48.816182,-1.209341 48.816065,-1.209226 48.815959,-1.20889 48.815738,-1.208666 48.81574,-1.208265 48.81556,-1.20809 48.815559,-1.207964 48.815651,-1.207498 48.815758,-1.207095 48.815762,-1.206943 48.815725,-1.206794 48.815549,-1.206447 48.815349,-1.206475 48.815317,-1.205844 48.815059,-1.205427 48.814968,-1.205273 48.814812,-1.204992 48.814729,-1.204798 48.814609,-1.204656 48.81444,-1.204629 48.814299,-1.2045 48.814175,-1.204158 48.814024,-1.203968 48.813991,-1.203325 48.814001,-1.203085 48.814035,-1.20258 48.813998,-1.202293 48.814007,-1.202039 48.813967,-1.201607 48.81386,-1.201346 48.813819,-1.201113 48.813658,-1.200994 48.813438,-1.200743 48.813194,-1.200474 48.812977,-1.200517 48.812731,-1.200366 48.812528,-1.200018 48.812287,-1.199946 48.81214,-1.199577 48.811774,-1.199601 48.811686,-1.199349 48.811436,-1.199187 48.811095,-1.199058 48.811004,-1.19876 48.810509,-1.198472 48.810561,-1.198391 48.81027,-1.197917 48.810234,-1.197296 48.810089,-1.196378 48.810033,-1.195852 48.809968,-1.195053 48.809801,-1.194769 48.809723,-1.193804 48.80939,-1.192668 48.809031,-1.192048 48.80907,-1.190851 48.80916,-1.190338 48.809154,-1.188974 48.808776,-1.188485 48.808684,-1.18796 48.808612,-1.187935 48.808562,-1.18729 48.808369,-1.187323 48.808514,-1.187088 48.808504,-1.186876 48.80836,-1.186781 48.808231,-1.186597 48.807702,-1.186576 48.807582,-1.186092 48.807637,-1.186046 48.807386,-1.185754 48.806824,-1.184878 48.806472,-1.184412 48.806319,-1.183911 48.806184,-1.183737 48.806361,-1.183167 48.806216,-1.182881 48.806123,-1.182358 48.805912,-1.182208 48.805684,-1.181822 48.805189,-1.181557 48.80496,-1.181223 48.804767,-1.180783 48.804586,-1.179179 48.80398,-1.178841 48.80384,-1.178118 48.803588,-1.177227 48.803255,-1.177058 48.803266,-1.176473 48.80307,-1.176124 48.803031,-1.175747 48.802914,-1.174838 48.802878,-1.174747 48.80218,-1.174267 48.802127,-1.174205 48.801934,-1.173965 48.80139,-1.173713 48.800982,-1.173634 48.800815,-1.173764 48.800814,-1.173509 48.800278,-1.173863 48.800319,-1.173949 48.800263,-1.174219 48.800372,-1.174633 48.800268,-1.174739 48.800173,-1.17468 48.800063,-1.175054 48.799917,-1.175545 48.799629,-1.175562 48.799552,-1.175714 48.799441,-1.175776 48.79933,-1.175956 48.799181,-1.176066 48.799012,-1.176129 48.798534,-1.175779 48.798124,-1.175761 48.797952,-1.175655 48.797741,-1.175771 48.797585,-1.175751 48.79744,-1.175894 48.797322,-1.175911 48.797224,-1.176191 48.796767,-1.176362 48.79669,-1.176463 48.796509,-1.176692 48.796492,-1.176933 48.796537,-1.177109 48.796418,-1.177166 48.796281,-1.177479 48.796077,-1.177734 48.795985,-1.177815 48.795905,-1.178124 48.795872,-1.178519 48.795784,-1.178876 48.79566,-1.179025 48.79556,-1.17896 48.795295,-1.178977 48.795128,-1.178876 48.794944,-1.178897 48.794865,-1.179052 48.79471,-1.179093 48.794586,-1.179275 48.794419,-1.179501 48.79426,-1.17958 48.794151,-1.179598 48.793848,-1.179777 48.793631,-1.180196 48.79329,-1.180439 48.79321,-1.180688 48.793066,-1.180928 48.793053,-1.181117 48.792987,-1.181185 48.792898,-1.181434 48.792744,-1.181989 48.792447,-1.182059 48.792309,-1.182269 48.792128,-1.182483 48.791732,-1.182754 48.791631,-1.182925 48.791447,-1.183282 48.791252,-1.183429 48.791054,-1.183401 48.790892,-1.183466 48.790781,-1.183355 48.790725,-1.183446 48.79054,-1.183587 48.790393,-1.18353 48.790315,-1.183443 48.790031,-1.183465 48.789909,-1.183615 48.789822,-1.18384 48.789587,-1.184072 48.789441,-1.184151 48.789298,-1.184367 48.789144,-1.184666 48.789049,-1.184935 48.788874,-1.185092 48.788818,-1.185197 48.788631,-1.185335 48.788565,-1.185399 48.788468,-1.185674 48.78834,-1.185995 48.788261,-1.186159 48.788098,-1.186313 48.787789,-1.186232 48.787615,-1.186259 48.787408,-1.186186 48.787215,-1.186183 48.786922,-1.18594 48.786679,-1.185757 48.78661,-1.185543 48.786593,-1.185312 48.786491,-1.185242 48.786402,-1.18524 48.786114,-1.185188 48.785985,-1.185164 48.785548,-1.185256 48.785363,-1.185412 48.785213,-1.18573 48.785102,-1.186253 48.784862,-1.1868 48.78458,-1.186833 48.784362,-1.186693 48.784274,-1.186711 48.784193,-1.186886 48.784096,-1.186886 48.783826,-1.18707 48.783579,-1.187295 48.783463,-1.18753 48.78342,-1.1876 48.783356,-1.18748 48.783247,-1.187461 48.783059,-1.187504 48.782919,-1.187224 48.782761,-1.187006 48.782577,-1.187128 48.78241,-1.18708 48.782227,-1.18679 48.78194,-1.186665 48.781776,-1.186569 48.781563,-1.186548 48.781385,-1.186352 48.780903,-1.186342 48.780826,-1.186464 48.780729,-1.186873 48.780684,-1.18732 48.780599,-1.187742 48.780385,-1.188004 48.780388,-1.18913 48.780298,-1.189679 48.780635,-1.189906 48.78071,-1.190252 48.780667,-1.191053 48.780697,-1.192254 48.780704,-1.193281 48.780732,-1.193564 48.78073,-1.194042 48.780688,-1.194557 48.780956,-1.195001 48.781095,-1.195178 48.781104,-1.195888 48.781007,-1.196481 48.780969,-1.197112 48.780985,-1.197621 48.780978,-1.198227 48.780992,-1.199688 48.780973,-1.200696 48.781018,-1.200922 48.781017,-1.2016 48.781515,-1.202192 48.782184,-1.202304 48.782334,-1.20237 48.782612,-1.203821 48.783002,-1.204414 48.783136,-1.204963 48.783278,-1.205964 48.783649,-1.206959 48.783916,-1.207621 48.784013,-1.208003 48.784083,-1.208633 48.784153)))"
  "motorway"
  "trunk"
  "primary"
  "secondary"
  "tertiary"
  "unclassified"
  "residential"
  "living_street"
  "motorway_link"
  "trunk_link"
  "primary_link"
  "secondary_link"
  "tertiary_link"
  "service"
  "road"
]

Database Connections

Name Service
default doctrine.dbal.default_connection
osm doctrine.dbal.osm_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\CityFollowUp 4283
App\Entity\ZonePlaces 38
App\Entity\Stats 1
App\Entity\ActionLog 1

Entities Mapping

Class Mapping errors
App\Entity\Stats No errors.
App\Entity\Place No errors.
App\Entity\StatsHistory No errors.
App\Entity\CityFollowUp No errors.
App\Entity\ZonePlaces No errors.
App\Entity\SireneEntreprise No errors.
App\Entity\ActionLog No errors.
App\Entity\OsmObject No errors.