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

Query Metrics

38 Database Queries
30 Different statements
786.96 ms Query time
0 Invalid entities
4431 Managed entities

Grouped Statements

Show all queries

default connection

Time Count Info
320.63 ms
(40.74%)
1
"COMMIT"
Parameters:
[]
61.04 ms
(7.76%)
1
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:
[
  24965
]
1.31 ms
(0.17%)
1
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:
[
  24965
]
0.74 ms
(0.09%)
1
INSERT INTO action_log (type, data, created_at, from_url, who) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  "stats_de_ville"
  "{"insee_code":"50237","nom":"50237"}"
  "2026-07-14 02:55:35"
  null
  null
]
0.49 ms
(0.06%)
1
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:
[
  24965
]
0.43 ms
(0.05%)
1
SELECT t0.id AS id_1, t0.uuid_for_url AS uuid_for_url_2, t0.osm_kind AS osm_kind_3, t0.email AS email_4, t0.opted_out AS opted_out_5, t0.dead AS dead_6, t0.note AS note_7, t0.modified_date AS modified_date_8, t0.zip_code AS zip_code_9, t0.asked_humains_support AS asked_humains_support_10, t0.last_contact_attempt_date AS last_contact_attempt_date_11, t0.osm_id AS osm_id_12, t0.name AS name_13, t0.has_opening_hours AS has_opening_hours_14, t0.has_address AS has_address_15, t0.has_website AS has_website_16, t0.has_wheelchair AS has_wheelchair_17, t0.has_note AS has_note_18, t0.main_tag AS main_tag_19, t0.note_content AS note_content_20, t0.displayed_date AS displayed_date_21, t0.lat AS lat_22, t0.lon AS lon_23, t0.street AS street_24, t0.housenumber AS housenumber_25, t0.siret AS siret_26, t0.habitants AS habitants_27, t0.osm_data_date AS osm_data_date_28, t0.osm_version AS osm_version_29, t0.osm_user AS osm_user_30, t0.osm_uid AS osm_uid_31, t0.osm_changeset AS osm_changeset_32, t0.email_content AS email_content_33, t0.place_count AS place_count_34, t0.stats_id AS stats_id_35 FROM place t0 WHERE t0.stats_id = ?
Parameters:
[
  24965
]
0.37 ms
(0.05%)
1
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:
[
  "50237"
]
0.36 ms
(0.05%)
1
SELECT COUNT(*) FROM osm_object t0 WHERE t0.zone = ?
Parameters:
[
  "50237"
]
0.27 ms
(0.03%)
1
"START TRANSACTION"
Parameters:
[]
0.27 ms
(0.03%)
1
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:
[
  24965
]

osm connection

Time Count Info
287.65 ms
(36.55%)
1
SELECT ST_AsText(ST_Multi(geom)) FROM zone_polygon WHERE insee_code = ?
Parameters:
[
  "50237"
]
43.13 ms
(5.48%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
  2000.0
]
28.86 ms
(3.67%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
]
11.38 ms
(1.45%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
]
5.40 ms
(0.69%)
1
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:
[
  "50237"
]
5.25 ms
(0.67%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
]
4.44 ms
(0.56%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
  "motorway"
  "trunk"
  "primary"
  "secondary"
  "tertiary"
  "unclassified"
  "residential"
  "living_street"
  "motorway_link"
  "trunk_link"
  "primary_link"
  "secondary_link"
  "tertiary_link"
  "service"
  "road"
]
2.36 ms
(0.30%)
4
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
2.24 ms
(0.28%)
1
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:
[]
2.03 ms
(0.26%)
1
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_history'
Parameters:
[]
1.69 ms
(0.21%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
  "30"
  "30"
]
1.68 ms
(0.21%)
3
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_meta"
]
1.14 ms
(0.15%)
4
SELECT 1
Parameters:
[]
0.97 ms
(0.12%)
1
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:
[]
0.73 ms
(0.09%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
]
0.71 ms
(0.09%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
]
0.68 ms
(0.09%)
1
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.38866 48.814996,-1.388368 48.815144,-1.388128 48.815167,-1.387897 48.815119,-1.387598 48.815171,-1.387178 48.815301,-1.386974 48.815431,-1.386926 48.815566,-1.386949 48.815749,-1.386415 48.815865,-1.386172 48.815869,-1.386089 48.815729,-1.385827 48.815696,-1.385183 48.81573,-1.384744 48.815807,-1.384524 48.815815,-1.384045 48.815773,-1.383498 48.815916,-1.383212 48.816035,-1.382502 48.8161,-1.382192 48.816169,-1.381913 48.81627,-1.381649 48.816458,-1.381141 48.816703,-1.379408 48.81757,-1.379439 48.817746,-1.378892 48.818002,-1.378427 48.818272,-1.378148 48.818358,-1.37794 48.818335,-1.377616 48.818465,-1.377331 48.818538,-1.377078 48.818637,-1.376722 48.818818,-1.375928 48.819299,-1.374856 48.819821,-1.374512 48.819963,-1.374096 48.820099,-1.373339 48.820272,-1.373198 48.820273,-1.372781 48.81977,-1.37258 48.819505,-1.372158 48.818871,-1.371683 48.81901,-1.371561 48.818921,-1.371454 48.818663,-1.371371 48.818317,-1.371291 48.817714,-1.371229 48.81744,-1.371014 48.816809,-1.370745 48.816167,-1.370554 48.815825,-1.370412 48.815514,-1.370248 48.814877,-1.37013 48.814329,-1.370033 48.814247,-1.369334 48.814214,-1.369168 48.814165,-1.369028 48.81407,-1.368624 48.813683,-1.367944 48.813086,-1.367596 48.813393,-1.367197 48.813662,-1.366808 48.813862,-1.366917 48.813968,-1.3662 48.814287,-1.365637 48.814489,-1.364957 48.815014,-1.364804 48.815165,-1.364089 48.815599,-1.363627 48.815826,-1.362917 48.816277,-1.36243 48.816651,-1.362082 48.816968,-1.361769 48.817004,-1.3611 48.817541,-1.360176 48.818355,-1.359956 48.81856,-1.359843 48.818722,-1.359615 48.818918,-1.359136 48.819407,-1.358883 48.819906,-1.358739 48.819902,-1.358686 48.82004,-1.358493 48.820327,-1.358477 48.820553,-1.358087 48.82154,-1.358038 48.82191,-1.357951 48.822124,-1.357966 48.82226,-1.357896 48.822497,-1.35776 48.822697,-1.35756 48.822709,-1.357409 48.822952,-1.357424 48.823036,-1.35759 48.823182,-1.357602 48.823458,-1.357641 48.823574,-1.357512 48.823792,-1.357423 48.823859,-1.356821 48.824173,-1.356713 48.824339,-1.356681 48.824531,-1.356507 48.824778,-1.356537 48.825251,-1.356362 48.825438,-1.356342 48.825517,-1.356483 48.825729,-1.356425 48.825915,-1.356634 48.826242,-1.356749 48.826317,-1.356972 48.826717,-1.357167 48.826862,-1.357198 48.827058,-1.357335 48.827421,-1.357465 48.827647,-1.357518 48.827989,-1.357644 48.828424,-1.357763 48.828703,-1.35797 48.828929,-1.357952 48.829004,-1.3577 48.829446,-1.357699 48.829525,-1.357531 48.829761,-1.357255 48.829919,-1.357218 48.830005,-1.356891 48.830234,-1.356572 48.830368,-1.356441 48.830548,-1.356318 48.830635,-1.356048 48.830936,-1.355882 48.831229,-1.355648 48.831547,-1.355598 48.831675,-1.355469 48.831728,-1.355245 48.831941,-1.354777 48.832232,-1.354149 48.832685,-1.353764 48.833106,-1.353666 48.833157,-1.353501 48.833365,-1.352931 48.833655,-1.352931 48.833475,-1.352987 48.833294,-1.352917 48.833091,-1.352956 48.832877,-1.352904 48.832819,-1.352506 48.832746,-1.352158 48.832535,-1.351884 48.832529,-1.351473 48.832418,-1.35072 48.83227,-1.350889 48.832083,-1.350836 48.83201,-1.350427 48.83177,-1.350196 48.831684,-1.3497 48.831545,-1.349464 48.831611,-1.349158 48.831598,-1.348839 48.831656,-1.348417 48.831776,-1.348087 48.831811,-1.347919 48.831943,-1.348048 48.83215,-1.348306 48.832251,-1.348381 48.832364,-1.348015 48.83252,-1.347842 48.832518,-1.347674 48.832326,-1.34748 48.832442,-1.347244 48.832504,-1.347218 48.832783,-1.347117 48.832925,-1.346637 48.833141,-1.346415 48.833168,-1.346259 48.833047,-1.346188 48.832856,-1.346015 48.832859,-1.345866 48.832987,-1.345443 48.833046,-1.345255 48.833048,-1.34516 48.832974,-1.345378 48.832703,-1.345419 48.832525,-1.345329 48.832361,-1.344888 48.832288,-1.344941 48.832042,-1.345022 48.832003,-1.345347 48.83197,-1.345633 48.831814,-1.34561 48.831478,-1.345914 48.831051,-1.346332 48.831157,-1.346389 48.8311,-1.346241 48.830933,-1.346349 48.830804,-1.34644 48.830516,-1.346383 48.830323,-1.346211 48.83008,-1.345916 48.82993,-1.345635 48.829706,-1.345962 48.829505,-1.345942 48.829406,-1.345784 48.82925,-1.345759 48.829156,-1.345943 48.828877,-1.345903 48.828626,-1.346067 48.828408,-1.346105 48.828265,-1.346034 48.828199,-1.345746 48.828088,-1.345688 48.828011,-1.346002 48.827555,-1.346267 48.827544,-1.346567 48.827382,-1.346985 48.827058,-1.347153 48.826948,-1.347559 48.826798,-1.347696 48.826787,-1.347967 48.826661,-1.348215 48.826315,-1.348226 48.826176,-1.348349 48.825999,-1.348739 48.825568,-1.349142 48.82522,-1.349217 48.825126,-1.349457 48.824597,-1.349451 48.824444,-1.349639 48.824178,-1.349721 48.824006,-1.34993 48.823845,-1.349916 48.823744,-1.350005 48.823558,-1.350219 48.823262,-1.350341 48.82318,-1.350475 48.822924,-1.350625 48.82287,-1.350808 48.822599,-1.351129 48.822319,-1.351211 48.821921,-1.351651 48.821259,-1.351899 48.821321,-1.352132 48.820966,-1.352246 48.820611,-1.352265 48.82021,-1.352943 48.820214,-1.352873 48.819805,-1.352929 48.819642,-1.352491 48.819167,-1.35191 48.818766,-1.351727 48.818571,-1.352123 48.818477,-1.352478 48.818431,-1.352558 48.817203,-1.352537 48.817081,-1.352191 48.81655,-1.351819 48.816601,-1.351785 48.816461,-1.351823 48.816308,-1.35206 48.815992,-1.352103 48.815877,-1.353096 48.81569,-1.353047 48.815178,-1.353694 48.815164,-1.353728 48.815053,-1.353702 48.814823,-1.354073 48.814725,-1.355372 48.81434,-1.355522 48.814307,-1.355585 48.814046,-1.355839 48.813458,-1.356156 48.813306,-1.35787 48.813469,-1.357881 48.812896,-1.357846 48.812751,-1.358217 48.812755,-1.358227 48.812457,-1.358172 48.812149,-1.357901 48.81217,-1.35789 48.812055,-1.357947 48.811532,-1.358018 48.811498,-1.359053 48.811207,-1.358685 48.810872,-1.359021 48.810715,-1.359735 48.810443,-1.360404 48.810209,-1.360461 48.810214,-1.361274 48.809901,-1.361927 48.809619,-1.3626 48.809253,-1.362169 48.808811,-1.362042 48.808614,-1.362043 48.80835,-1.362588 48.807905,-1.363483 48.807007,-1.363771 48.806839,-1.366119 48.80576,-1.366468 48.805611,-1.368474 48.804802,-1.368134 48.804398,-1.368251 48.804357,-1.367791 48.803759,-1.367745 48.803726,-1.366966 48.803993,-1.366583 48.803597,-1.36662 48.803582,-1.366157 48.803119,-1.366447 48.803007,-1.366154 48.80263,-1.365886 48.802191,-1.366386 48.801915,-1.36513 48.800872,-1.364592 48.800369,-1.36544 48.800092,-1.365573 48.799926,-1.365728 48.799935,-1.365776 48.799841,-1.365991 48.7998,-1.366403 48.79982,-1.366398 48.799913,-1.366619 48.799873,-1.367212 48.799847,-1.367546 48.799742,-1.367699 48.799781,-1.367933 48.79971,-1.368039 48.799613,-1.368211 48.799562,-1.368586 48.799336,-1.369053 48.799263,-1.36935 48.79931,-1.369646 48.799307,-1.36991 48.799253,-1.370365 48.799229,-1.370669 48.799278,-1.370979 48.799273,-1.37105 48.799324,-1.37135 48.799338,-1.371658 48.79925,-1.371719 48.799185,-1.371971 48.799171,-1.373174 48.798976,-1.373365 48.798997,-1.373655 48.798975,-1.374041 48.798857,-1.374267 48.798761,-1.374397 48.798763,-1.374813 48.798505,-1.375093 48.798304,-1.375492 48.798232,-1.375832 48.797979,-1.376056 48.797938,-1.376348 48.797794,-1.37644 48.797799,-1.376765 48.797653,-1.376823 48.797489,-1.377123 48.797378,-1.377326 48.797439,-1.377769 48.797246,-1.37787 48.797151,-1.37788 48.796985,-1.378167 48.796668,-1.3783 48.796655,-1.379025 48.796496,-1.379232 48.796383,-1.379514 48.796331,-1.379776 48.796329,-1.380017 48.796292,-1.380153 48.796369,-1.380189 48.796628,-1.380301 48.796755,-1.380463 48.796757,-1.380587 48.796691,-1.380817 48.796699,-1.380959 48.79661,-1.381054 48.796648,-1.381259 48.796617,-1.38147 48.796503,-1.381478 48.796399,-1.381699 48.796287,-1.38203 48.796286,-1.382267 48.796255,-1.382288 48.796355,-1.382762 48.796176,-1.383122 48.796237,-1.383317 48.796245,-1.38344 48.796309,-1.383892 48.796468,-1.384198 48.796434,-1.384665 48.796284,-1.384869 48.796288,-1.385452 48.796193,-1.385685 48.796106,-1.385943 48.796047,-1.386011 48.795949,-1.385986 48.795829,-1.386331 48.795485,-1.386808 48.795385,-1.386999 48.795292,-1.387169 48.795326,-1.387576 48.795277,-1.388204 48.795328,-1.388709 48.79531,-1.388859 48.795163,-1.389117 48.79512,-1.38936 48.794946,-1.389527 48.794864,-1.390044 48.794818,-1.390336 48.794722,-1.390353 48.794635,-1.390707 48.794376,-1.390938 48.794272,-1.391186 48.794238,-1.391443 48.793993,-1.391619 48.793938,-1.391775 48.794067,-1.391978 48.794082,-1.392037 48.793925,-1.392314 48.793959,-1.392522 48.793899,-1.392689 48.793923,-1.392789 48.793836,-1.393066 48.793702,-1.393186 48.793676,-1.393621 48.79374,-1.393886 48.793671,-1.394105 48.793729,-1.394387 48.793742,-1.394561 48.793716,-1.394843 48.793617,-1.395047 48.793639,-1.395294 48.793595,-1.395489 48.793602,-1.395718 48.793538,-1.395959 48.793561,-1.39649 48.793439,-1.397093 48.793223,-1.39785 48.793163,-1.397967 48.793183,-1.398327 48.793459,-1.398621 48.793908,-1.399009 48.794053,-1.39928 48.794304,-1.399432 48.794377,-1.39941 48.794502,-1.399149 48.794561,-1.398896 48.79466,-1.398911 48.794763,-1.399348 48.79511,-1.399497 48.795289,-1.39954 48.795528,-1.399516 48.795713,-1.399401 48.795948,-1.39936 48.796172,-1.399525 48.796224,-1.399539 48.796305,-1.399347 48.796372,-1.399317 48.796472,-1.399433 48.796597,-1.39942 48.796682,-1.399286 48.796798,-1.399537 48.797197,-1.399836 48.797208,-1.400693 48.797302,-1.400963 48.797307,-1.400861 48.79775,-1.401094 48.79785,-1.401494 48.79797,-1.401464 48.798212,-1.401192 48.798363,-1.40124 48.798634,-1.401122 48.798915,-1.401011 48.799013,-1.401179 48.799106,-1.401193 48.79921,-1.401091 48.799292,-1.401016 48.799456,-1.400773 48.799614,-1.40048 48.799748,-1.400162 48.800001,-1.399833 48.800224,-1.399719 48.800423,-1.399425 48.800542,-1.399209 48.800564,-1.399112 48.800658,-1.398742 48.800855,-1.398535 48.801036,-1.398328 48.801144,-1.398199 48.801139,-1.397929 48.801329,-1.397761 48.801372,-1.397089 48.801829,-1.396962 48.801883,-1.396735 48.802114,-1.39656 48.802095,-1.396506 48.802293,-1.395795 48.803089,-1.395394 48.802996,-1.394954 48.803053,-1.394722 48.802978,-1.39442 48.803083,-1.394086 48.80333,-1.394222 48.803492,-1.39394 48.803745,-1.393538 48.80395,-1.392971 48.804388,-1.392862 48.804512,-1.392612 48.8049,-1.392517 48.805249,-1.392426 48.80549,-1.391835 48.805853,-1.391748 48.806219,-1.391632 48.806585,-1.391503 48.807193,-1.391241 48.80752,-1.391178 48.807657,-1.39117 48.807825,-1.391082 48.80804,-1.391235 48.808338,-1.391267 48.808602,-1.391374 48.808782,-1.391497 48.808803,-1.39216 48.809581,-1.392138 48.80978,-1.392351 48.809891,-1.392436 48.810026,-1.392748 48.80996,-1.392836 48.809972,-1.393104 48.810416,-1.393017 48.811342,-1.392913 48.811446,-1.392612 48.811565,-1.392538 48.811771,-1.392501 48.812007,-1.39205 48.812227,-1.39183 48.812307,-1.39145 48.812651,-1.391195 48.813057,-1.390962 48.813653,-1.390763 48.813948,-1.391019 48.814071,-1.390577 48.814269,-1.390128 48.814438,-1.389852 48.814421,-1.389366 48.814726,-1.388896 48.814876,-1.38866 48.814996)))"
]
0.26 ms
(0.03%)
1
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:
[
  "50237"
]
0.25 ms
(0.03%)
1
CREATE INDEX IF NOT EXISTS zone_polygon_geom_idx ON zone_polygon USING GIST (geom)
Parameters:
[]
0.19 ms
(0.02%)
1
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:
[]

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 4391
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.